RFIO_MKDIR(3) Rfio Library Functions RFIO_MKDIR(3)NAME
rfio_mkdir - create a new directory
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_mkdir (const char *path, mode_t mode);
DESCRIPTION
rfio_mkdir creates a new directory.
An entry is created and the directory's owner ID is set to the effective user ID of the requestor. The group ID of the directory is set to
the effective group ID of the requestor.
path specifies the logical pathname relative to the current directory or the full pathname.
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.
ERRORS
ENOENT A component of path prefix does not exist or path is a null pathname.
EACCES Search permission is denied on a component of the path prefix or write permission on the parent directory is denied.
EFAULT path is a NULL pointer.
EEXIST path exists already.
ENOTDIR A component of path prefix is not a directory.
ENOSPC No space to store the new 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)AUTHOR
LCG Grid Deployment Team
LCG $Date: 2005/03/31 13:13:03 $ RFIO_MKDIR(3)
Check Out this Related Man Page
RFIO_RMDIR(3) Rfio Library Functions RFIO_RMDIR(3)NAME
rfio_rmdir - remove a directory
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_rmdir (const char *path);
DESCRIPTION
rfio_rmdir removes a directory if it is empty.
path specifies the logical pathname relative to the current directory or the full pathname.
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.
ERRORS
ENOENT The named directory 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 directory and
the effective user ID of the requestor does not match the owner ID of the parent directory and
the requestor is not super-user.
EFAULT path is a NULL pointer.
EEXIST The named directory is not empty.
ENOTDIR A component of path prefix is not a directory.
EINVAL path is the current 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_mkdir(3)AUTHOR
LCG Grid Deployment Team
LCG $Date: 2005/03/31 13:13:03 $ RFIO_RMDIR(3)
Hi All,
The path requires me to go Single User mode. On single user mode, the patch still won't continue:
dhcpagent supports a new keyword in /etc/default/dhcpagent.
Please merge the existing /etc/default/dhcpagent with the
patched version of /etc/default/dhcpagent shipped with this... (2 Replies)
Hi
Could someone help me?
I'm not sure how to find the full pathname of a directory.
I just want to be able to specify a directory.
e.g
directory1/directory2/directory3/directory4/directory5
I want to be able to put in "directory5"
and then i want a return of the full address.
... (3 Replies)
Hi,
The requirement is like,
the program needs 2 argument one is user_id and second one is directory path. My script will check if that user_id has write access to the directory path. The directory path may be in any file system like AFS or NFS.
Can any one please suggest some points to... (1 Reply)
Hey
I'm new to the forums here, and I'm seeking help for this script that I'm writing. When I do ls -l of a directory it shows the full pathname for files in it. For example, if the directory is /internet/post/forum/ and the file is topic, it currently shows internet/post/forum/topic. What's the... (3 Replies)
I have a Perl script that has a variable for a directory path and I want to define another variable that will navigate to up directory from the given directory path.
This is the given directory path in Perl and this is the way the directory path is derived
use FindBin;
$apphome =... (0 Replies)
Hi All,
I have this file system /sys/app/ and application creating many file under that path.
I want any created file under that path to be created with 644 permission
Any help support in this please! (2 Replies)