Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rfio_munlink(3) [debian man page]

RFIO_UNLINK(3)						      Rfio Library Functions						    RFIO_UNLINK(3)

NAME
rfio_unlink - remove a file entry SYNOPSIS
#include <sys/types.h> #include "rfio_api.h" int rfio_unlink (const char *path); int rfio_munlink (const char *path); int rfio_munlink_reset (); int rfio_unend (); DESCRIPTION
rfio_unlink removes a file entry. path specifies the logical pathname relative to the current directory or the full pathname. rfio_munlink is identical to rfio_unlink but keeps the connection open to the server unless there are more than MAXMCON connections already opened. This is useful when issuing a series of unlink calls. The last rfio_munlink call should be followed by a call to rfio_unend. rfio_munlink_reset is to be used when your program is forking. In such a case the permanent connections opened with rfio_munlink become shared between the parent and the child. Use rfio_munlink_reset to perform the necessary reset and close of the socket file descriptor in the parent or the child in order to be sure that only of them will receice an answer from the RFIO daemon. rfio_munlink_reset is to be used when your program is forking. In such a case the permanent connections opened with rfio_munlink become shared between the parent and the child. Use rfio_munlink_reset to perform the necessary reset and close of the socket file descriptor in the parent or the child in order to be sure that only of them will receice an answer from the RFIO daemon. See NOTES section below. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. NOTES
Multiple connections using rfio_munlink are thread-safe but not process-wide, therefore a forked child cann share file descriptors opened with rfio_munlink by its parent. Use rfio_msymlink_reset in such case. Multiple connections behaviour is undefined if you work in a multi-threaded environment and with threads not created using the LCG's Cthread interface. ERRORS
EPERM path is a directory. ENOENT The named file does not exist or is a null pathname. EACCES Search permission is denied on a component of the path prefix or write permission is denied on the parent directory or the parent has the sticky bit S_ISVTX set and the effective user ID of the requestor does not match the owner ID of the file and the effective user ID of the requestor does not match the owner ID of the directory and the file is not writable by the requestor and the requestor is not super-user. EFAULT path is a NULL pointer. ENOTDIR A component of path prefix is not a directory. ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. SEE ALSO
Castor_limits(4), rfio_rmdir(3), Cthread(3) AUTHOR
LCG Grid Deployment Team LCG
$Date: 2005/03/31 13:13:04 $ RFIO_UNLINK(3)

Check Out this Related Man Page

RFIO_STAT(3)						      Rfio Library Functions						      RFIO_STAT(3)

NAME
rfio_stat - get information about a file or directory SYNOPSIS
#include <sys/types.h> #include "rfio_api.h" int rfio_stat (const char *path, struct stat *statbuf); int rfio_fstat (int s, struct stat *statbuf); int rfio_lstat (const char *path, struct stat *statbuf); int rfio_mstat (const char *path, struct stat *statbuf); int rfio_mstat_reset (); int rfio_end (); Under Linux, for large files: #define _LARGEFILE64_SOURCE #include <sys/types.h> #include "rfio_api.h" int rfio_stat64 (const char *path, struct stat64 *statbuf); int rfio_fstat64 (int s, struct stat64 *statbuf); int rfio_lstat64 (const char *path, struct stat64 *statbuf); int rfio_mstat64 (const char *path, struct stat64 *statbuf); For large files, under other systems: #include <sys/types.h> #include "rfio_api.h" int rfio_stat64 (const char *path, struct stat64 *statbuf); int rfio_fstat64 (int s, struct stat64 *statbuf); int rfio_lstat64 (const char *path, struct stat64 *statbuf); int rfio_mstat64 (const char *path, struct stat64 *statbuf); DESCRIPTION
rfio_stat gets information about a file or directory. rfio_lstat is identical to rfio_stat except for symbolic links. In this case, the link itself is statted and not followed. rfio_fstat is identical to rfio_stat but works on the file descriptor s returned by rfio_open. rfio_mstat is identical to rfio_stat but keeps the connection open to the server unless there are more than MAXMCON connections already opened. This is useful when issuing a series of stat calls. The last rfio_mstat call should be followed by a call to rfio_end. rfio_mstat_reset is to be used when your program is forking. In such a case the permanent connections opened with rfio_mstat become shared between the parent and the child. Use rfio_mstat_reset to perform the necessary reset and close of the socket file descriptor in the parent or the child in order to be sure that only of them will receice an answer from the RFIO daemon. See NOTES section below. path specifies the logical pathname relative to the current directory or the full pathname. statbuf is a pointer to a stat structure, receiving result of your query. The 64 bits functions must be used for large files. They have the same syntax as the normal stat functions except that they use a stat64 structure. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. NOTES
Multiple connections using rfio_mstat are thread-safe but not process-wide, therefore a forked child can share file descriptors opened with rfio_mstat by its parent. Use rfio_mstat_reset in such case. Multiple connections behaviour is undefined if you work in a multi-threaded environment and with threads not created using the LCG's Cthread interface. ERRORS
ENOENT The named file/directory does not exist or is a null pathname. EBADF s is not a valid file descriptor. EACCES Search permission is denied on a component of the path prefix. EFAULT path or statbuf is a NULL pointer. ENOTDIR A component of path prefix is not a directory. ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. SEE ALSO
Castor_limits(4), rfio_chmod(3), rfio_chown(3), Cthread(3) AUTHOR
LCG Grid Deployment Team LCG
$Date: 2005/03/31 13:13:03 $ RFIO_STAT(3)
Man Page