new file for the posix interface More...
#include <common/gfal_constants.h>
#include "gfal_posix_api.h"
#include "gfal_posix_internal.h"
Functions | |
int | gfal_access (const char *path, int amode) |
test access to the given file | |
int | gfal_chmod (const char *path, mode_t mode) |
change the right for a file or a folder | |
int | gfal_rename (const char *oldpath, const char *newpath) |
change the name or location of a file oldpath and newpath need to be on the same plugin this functions work only with plugins (lfc ) and local files | |
int | gfal_stat (const char *path, struct stat *buff) |
informations about a file These functions return information about a file. No permissions are required on the file itself, but — in the case of stat() and lstat() — execute (search) permission is required on all of the directories in path that lead to the file. | |
int | gfal_lstat (const char *path, struct stat *buff) |
gfal_lstat is identical to gfal_stat except for symbolic links. In this case, the link itself is statted and not followed. | |
int | gfal_mkdirp (const char *path, mode_t mode) |
create a new directory creates a new directory with permission bits taken from mode. The default behavior of this command is recursive, like "mkdir -p". | |
int | gfal_mkdir (const char *path, mode_t mode) |
int | gfal_rmdir (const char *path) |
removes a directory if it is empty remove an existing directory, return error if the dir is not empty | |
DIR * | gfal_opendir (const char *name) |
open a directory | |
struct dirent * | gfal_readdir (DIR *d) |
read a directory similar to the POSIX call readdir The readdir() function returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by dirp. It returns NULL on reaching the end of the directory stream or if an error occurred. struct dirent { ino_t d_ino; // inode number off_t d_off; // offset to the next dirent unsigned short d_reclen; // length of this record unsigned char d_type; // type of file; not supported // by all file system types char d_name[256]; // filename }; | |
int | gfal_closedir (DIR *d) |
close a file descriptor of a directory similar to the POSIX call closedir close the file descriptor of an opendir call | |
int | gfal_open (const char *path, int flag,...) |
open a file similar to the POSIX call open opens a file according to the value of flags. | |
int | gfal_creat (const char *filename, mode_t mode) |
create a new file or truncate an existing one similar to the POSIX call creat opens a file according to the value of flags. | |
int | gfal_read (int fd, void *buff, size_t s_buff) |
read a file similar to the POSIX call read gfal_read reads up to size bytes from the file descriptor fd into the buffer pointed by buff | |
int | gfal_write (int fd, const void *buff, size_t s_buff) |
write a file similar to the POSIX call write gfal_write writes size bytes from the buffer pointed by buff to the file descriptor fd. | |
int | gfal_close (int fd) |
close a file similar to the POSIX call close closes the file whose descriptor fd is the one returned by gfal_open. | |
int | gfal_symlink (const char *oldpath, const char *newpath) |
make a new name for a file | |
off_t | gfal_lseek (int fd, off_t offset, int whence) |
set position in a file | |
ssize_t | gfal_getxattr (const char *path, const char *name, void *value, size_t size) |
retrieve an extended attribute value | |
ssize_t | gfal_readlink (const char *path, char *buff, size_t buffsiz) |
int | gfal_unlink (const char *path) |
delete a name and possibly the file it refers to | |
ssize_t | gfal_listxattr (const char *path, char *list, size_t size) |
list all extended attributes | |
int | gfal_setxattr (const char *path, const char *name, const void *value, size_t size, int flags) |
set an extended attribute to a given value similar to the setxattr standard call of libattr | |
int | gfal_removexattr (const char *path, const char *name) |
removes the extended attribute identified by name and associated with the given path in the filesystem similar to the removexattr standard call of libattr | |
void | gfal_posix_print_error () |
int | gfal_flush (int fd) |
void | gfal_posix_release_error () |
int | gfal_set_parameter_string (const char *namespace, const char *key, const char *value) |
char * | gfal_get_parameter_string (const char *namespace, const char *key) |
int | gfal_set_parameter_int (const char *module, const char *name, int value) |
int | gfal_get_parameter_int (const char *module, const char *name) |
int | gfal_set_parameter_boolean (const char *namespace, const char *key, int value) |
int | gfal_get_parameter_boolean (const char *namespace, const char *key) |
void | gfal_posix_clear_error () |
int | gfal_posix_code_error () |
int | gfal_posix_check_error () |
char * | gfal_posix_strerror_r (char *buff_err, size_t s_err) |
ssize_t | gfal_pread (int fd, void *buffer, size_t count, off_t offset) |
ssize_t | gfal_pwrite (int fd, const void *buffer, size_t count, off_t offset) |
new file for the posix interface
int gfal_mkdirp | ( | const char * | path, | |
mode_t | mode | |||
) |
create a new directory creates a new directory with permission bits taken from mode. The default behavior of this command is recursive, like "mkdir -p".
path | : url of the directory, can be in supported protocols (lfn, srm, file, guid,..) | |
mode | : right of the directory ( depend of the implementation ) |
References gfal_posix_internal_mkdir().
Referenced by gfal_mkdir().