Content-type: text/html Manpage of GFAL_RENAME

GFAL_RENAME

Section: Library Functions (3)
Updated: 2003/11/19 12:56:29
Index Return to Main Contents
 

NAME

gfal_rename - rename a file or a directory  

SYNOPSIS

#include "gfal_api.h"

int gfal_rename (const char *old_name, const char *new_name);  

DESCRIPTION

gfal_rename renames a file or a directory

old_name and new_name specify the old and new file names (this can only be a TURL in the current implementation).  

RETURN VALUE

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, errno is set appropriately.  

ERRORS

ENOENT
A component of old_name prefix does not exist.
EACCES
Search permission is denied on a component of the file prefixes or write permission on the parent directories is denied or old_name is a directory and write permission is denied on old_name or new_name.
EFAULT
old_name or new_name is a NULL pointer.
ENOTDIR
A component of the file prefixes is not a directory.
EINVAL
old_name or new_name has an invalid syntax.
ECOMM
Communication error.
EPROTONOSUPPORT
Access method not supported.
 

SEE ALSO

gfal(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 12:34:06 GMT, January 20, 2004