|
XRootD
|
#include <cstdarg>#include <cstdio>#include <cstdlib>#include <sys/param.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/syscall.h>#include <limits.h>#include <fcntl.h>#include <unistd.h>#include <sys/uio.h>#include "XrdSys/XrdSysHeaders.hh"#include "XrdPosix/XrdPosixLinkage.hh"#include "XrdPosix/XrdPosixXrootd.hh"#include "XrdPosix/XrdPosixXrootdPath.hh"#include "XrdSys/XrdSysStatx.hh"
Include dependency graph for XrdPosix.cc:Go to the source code of this file.
Macros | |
| #define | ISMODE(x) |
Functions | |
| static void | fseteof (FILE *fp) |
| static void | fseterr (FILE *fp) |
| int | XrdPosix_Access (const char *path, int amode) |
| int | XrdPosix_Acl (const char *path, int cmd, int nentries, void *aclbufp) |
| int | XrdPosix_Chdir (const char *path) |
| int | XrdPosix_Close (int fildes) |
| int | XrdPosix_Closedir (DIR *dirp) |
| int | XrdPosix_Creat (const char *path, mode_t mode) |
| int | XrdPosix_Fclose (FILE *stream) |
| int | XrdPosix_Fcntl (int fd, int cmd,...) |
| int | XrdPosix_Fdatasync (int fildes) |
| int | XrdPosix_Fflush (FILE *stream) |
| FILE * | XrdPosix_Fopen (const char *path, const char *mode) |
| size_t | XrdPosix_Fread (void *ptr, size_t size, size_t nitems, FILE *stream) |
| int | XrdPosix_Fseek (FILE *stream, long offset, int whence) |
| int | XrdPosix_Fseeko (FILE *stream, long long offset, int whence) |
| int | XrdPosix_Fstat (int fildes, struct stat *buf) |
| int | XrdPosix_Fstatat (int dirfd, const char *path, struct stat *buf, int flags) |
| int | XrdPosix_FstatV (int ver, int fildes, struct stat *buf) |
| int | XrdPosix_Fsync (int fildes) |
| long | XrdPosix_Ftell (FILE *stream) |
| long long | XrdPosix_Ftello (FILE *stream) |
| int | XrdPosix_Ftruncate (int fildes, long long offset) |
| size_t | XrdPosix_Fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream) |
| int | XrdPosix_isMyPath (const char *path) |
| off_t | XrdPosix_Lseek (int fildes, off_t offset, int whence) |
| int | XrdPosix_Lstat (const char *path, struct stat *buf) |
| int | XrdPosix_Mkdir (const char *path, mode_t mode) |
| int | XrdPosix_Open (const char *path, int oflag,...) |
| int | XrdPosix_Openat (int dirfd, const char *path, int flag,...) |
| DIR * | XrdPosix_Opendir (const char *path) |
| long | XrdPosix_Pathconf (const char *path, int name) |
| ssize_t | XrdPosix_Pread (int fildes, void *buf, size_t nbyte, off_t offset) |
| ssize_t | XrdPosix_Pwrite (int fildes, const void *buf, size_t nbyte, off_t offset) |
| ssize_t | XrdPosix_Read (int fildes, void *buf, size_t nbyte) |
| struct dirent * | XrdPosix_Readdir (DIR *dirp) |
| struct dirent64 * | XrdPosix_Readdir64 (DIR *dirp) |
| int | XrdPosix_Readdir64_r (DIR *dirp, struct dirent64 *entry, struct dirent64 **result) |
| int | XrdPosix_Readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result) |
| ssize_t | XrdPosix_Readv (int fildes, const struct iovec *iov, int iovcnt) |
| int | XrdPosix_Rename (const char *oldpath, const char *newpath) |
| void | XrdPosix_Rewinddir (DIR *dirp) |
| int | XrdPosix_Rmdir (const char *path) |
| void | XrdPosix_Seekdir (DIR *dirp, long loc) |
| int | XrdPosix_Stat (const char *path, struct stat *buf) |
| int | XrdPosix_Statfs (const char *path, struct statfs *buf) |
| int | XrdPosix_Statvfs (const char *path, struct statvfs *buf) |
| int | XrdPosix_Statx (int dirfd, const char *path, int flags, unsigned int mask, XrdSysStatx *stx) |
| long | XrdPosix_Telldir (DIR *dirp) |
| int | XrdPosix_Truncate (const char *path, off_t offset) |
| int | XrdPosix_Unlink (const char *path) |
| char * | XrdPosix_URL (const char *path, char *buff, int blen) |
| ssize_t | XrdPosix_Write (int fildes, const void *buf, size_t nbyte) |
| ssize_t | XrdPosix_Writev (int fildes, const struct iovec *iov, int iovcnt) |
| static ssize_t | XrdResolveLink (const char *path, char *resolved) |
Variables | |
| XrdPosixXrootd | Xroot |
| XrdPosixXrootPath | XrootPath |
| XrdPosixLinkage | Xunix |
| #define ISMODE | ( | x | ) |
|
inlinestatic |
Definition at line 90 of file XrdPosix.cc.
References fseek.
Referenced by XrdPosix_Fread().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 67 of file XrdPosix.cc.
Referenced by XrdPosix_Fread(), and XrdPosix_Fwrite().
Here is the caller graph for this function:| int XrdPosix_Access | ( | const char * | path, |
| int | amode ) |
Definition at line 152 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by access().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Acl | ( | const char * | path, |
| int | cmd, | ||
| int | nentries, | ||
| void * | aclbufp ) |
Definition at line 181 of file XrdPosix.cc.
References XrdResolveLink(), XrootPath, and Xunix.
Referenced by acl().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Chdir | ( | const char * | path | ) |
Definition at line 199 of file XrdPosix.cc.
References XrdResolveLink(), XrootPath, and Xunix.
Referenced by chdir().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Close | ( | int | fildes | ) |
| int XrdPosix_Closedir | ( | DIR * | dirp | ) |
Definition at line 235 of file XrdPosix.cc.
Referenced by closedir().
Here is the caller graph for this function:| int XrdPosix_Creat | ( | const char * | path, |
| mode_t | mode ) |
Definition at line 249 of file XrdPosix.cc.
References XrdPosix_Open().
Referenced by creat64().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Fclose | ( | FILE * | stream | ) |
Definition at line 263 of file XrdPosix.cc.
Referenced by fclose().
Here is the caller graph for this function:| int XrdPosix_Fcntl | ( | int | fd, |
| int | cmd, | ||
| ... ) |
Definition at line 283 of file XrdPosix.cc.
Referenced by fcntl64().
Here is the caller graph for this function:| int XrdPosix_Fdatasync | ( | int | fildes | ) |
Definition at line 302 of file XrdPosix.cc.
Referenced by fdatasync().
Here is the caller graph for this function:| int XrdPosix_Fflush | ( | FILE * | stream | ) |
Definition at line 333 of file XrdPosix.cc.
Referenced by fflush().
Here is the caller graph for this function:| FILE * XrdPosix_Fopen | ( | const char * | path, |
| const char * | mode ) |
Definition at line 353 of file XrdPosix.cc.
References ISMODE, XrdPosixXrootd::isStream, XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by fopen64().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t XrdPosix_Fread | ( | void * | ptr, |
| size_t | size, | ||
| size_t | nitems, | ||
| FILE * | stream ) |
Definition at line 405 of file XrdPosix.cc.
References fseteof(), fseterr(), Xroot, and Xunix.
Referenced by fread().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Fseek | ( | FILE * | stream, |
| long | offset, | ||
| int | whence ) |
Definition at line 431 of file XrdPosix.cc.
Referenced by fseek().
Here is the caller graph for this function:| int XrdPosix_Fseeko | ( | FILE * | stream, |
| long long | offset, | ||
| int | whence ) |
Definition at line 449 of file XrdPosix.cc.
Referenced by fseeko64().
Here is the caller graph for this function:| int XrdPosix_Fstat | ( | int | fildes, |
| struct stat * | buf ) |
Definition at line 467 of file XrdPosix.cc.
Referenced by fstat64().
Here is the caller graph for this function:| int XrdPosix_Fstatat | ( | int | dirfd, |
| const char * | path, | ||
| struct stat * | buf, | ||
| int | flags ) |
Definition at line 501 of file XrdPosix.cc.
References dirfd, stat, XrdResolveLink(), Xroot, and XrootPath.
Referenced by fstatat64().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_FstatV | ( | int | ver, |
| int | fildes, | ||
| struct stat * | buf ) |
Definition at line 480 of file XrdPosix.cc.
Referenced by fstat64().
Here is the caller graph for this function:| int XrdPosix_Fsync | ( | int | fildes | ) |
| long XrdPosix_Ftell | ( | FILE * | stream | ) |
Definition at line 560 of file XrdPosix.cc.
Referenced by ftell().
Here is the caller graph for this function:| long long XrdPosix_Ftello | ( | FILE * | stream | ) |
Definition at line 577 of file XrdPosix.cc.
Referenced by ftello64().
Here is the caller graph for this function:| int XrdPosix_Ftruncate | ( | int | fildes, |
| long long | offset ) |
Definition at line 594 of file XrdPosix.cc.
Referenced by ftruncate64().
Here is the caller graph for this function:| size_t XrdPosix_Fwrite | ( | const void * | ptr, |
| size_t | size, | ||
| size_t | nitems, | ||
| FILE * | stream ) |
Definition at line 610 of file XrdPosix.cc.
References fseterr(), Xroot, and Xunix.
Referenced by fwrite().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_isMyPath | ( | const char * | path | ) |
Definition at line 1274 of file XrdPosix.cc.
References XrootPath.
| off_t XrdPosix_Lseek | ( | int | fildes, |
| off_t | offset, | ||
| int | whence ) |
Definition at line 676 of file XrdPosix.cc.
Referenced by llseek(), and lseek64().
Here is the caller graph for this function:| int XrdPosix_Lstat | ( | const char * | path, |
| struct stat * | buf ) |
Definition at line 692 of file XrdPosix.cc.
References stat, Xroot, and XrootPath.
Referenced by lstat64().
Here is the caller graph for this function:| int XrdPosix_Mkdir | ( | const char * | path, |
| mode_t | mode ) |
Definition at line 722 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by mkdir().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Open | ( | const char * | path, |
| int | oflag, | ||
| ... ) |
Definition at line 747 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by open64(), and XrdPosix_Creat().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Openat | ( | int | dirfd, |
| const char * | path, | ||
| int | flag, | ||
| ... ) |
Definition at line 781 of file XrdPosix.cc.
References dirfd, XrdResolveLink(), Xroot, and XrootPath.
Referenced by openat().
Here is the call graph for this function:
Here is the caller graph for this function:| DIR * XrdPosix_Opendir | ( | const char * | path | ) |
Definition at line 821 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by opendir().
Here is the call graph for this function:
Here is the caller graph for this function:| long XrdPosix_Pathconf | ( | const char * | path, |
| int | name ) |
Definition at line 848 of file XrdPosix.cc.
References XrdResolveLink(), XrootPath, and Xunix.
Referenced by pathconf().
Here is the call graph for this function:
Here is the caller graph for this function:| ssize_t XrdPosix_Pread | ( | int | fildes, |
| void * | buf, | ||
| size_t | nbyte, | ||
| off_t | offset ) |
Definition at line 866 of file XrdPosix.cc.
Referenced by pread64().
Here is the caller graph for this function:| ssize_t XrdPosix_Pwrite | ( | int | fildes, |
| const void * | buf, | ||
| size_t | nbyte, | ||
| off_t | offset ) |
Definition at line 882 of file XrdPosix.cc.
Referenced by pwrite64().
Here is the caller graph for this function:| ssize_t XrdPosix_Read | ( | int | fildes, |
| void * | buf, | ||
| size_t | nbyte ) |
| struct dirent * XrdPosix_Readdir | ( | DIR * | dirp | ) |
| struct dirent64 * XrdPosix_Readdir64 | ( | DIR * | dirp | ) |
Definition at line 941 of file XrdPosix.cc.
Referenced by readdir64().
Here is the caller graph for this function:| int XrdPosix_Readdir64_r | ( | DIR * | dirp, |
| struct dirent64 * | entry, | ||
| struct dirent64 ** | result ) |
Definition at line 966 of file XrdPosix.cc.
Referenced by readdir64_r().
Here is the caller graph for this function:| int XrdPosix_Readdir_r | ( | DIR * | dirp, |
| struct dirent * | entry, | ||
| struct dirent ** | result ) |
| ssize_t XrdPosix_Readv | ( | int | fildes, |
| const struct iovec * | iov, | ||
| int | iovcnt ) |
Definition at line 914 of file XrdPosix.cc.
Referenced by readv().
Here is the caller graph for this function:| int XrdPosix_Rename | ( | const char * | oldpath, |
| const char * | newpath ) |
Definition at line 982 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by rename().
Here is the caller graph for this function:| void XrdPosix_Rewinddir | ( | DIR * | dirp | ) |
Definition at line 1008 of file XrdPosix.cc.
Referenced by rewinddir().
Here is the caller graph for this function:| int XrdPosix_Rmdir | ( | const char * | path | ) |
Definition at line 1024 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by rmdir().
Here is the caller graph for this function:| void XrdPosix_Seekdir | ( | DIR * | dirp, |
| long | loc ) |
| int XrdPosix_Stat | ( | const char * | path, |
| struct stat * | buf ) |
Definition at line 1065 of file XrdPosix.cc.
References stat, XrdResolveLink(), Xroot, and XrootPath.
Referenced by stat64(), and XrdPosix_Statx().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Statfs | ( | const char * | path, |
| struct statfs * | buf ) |
Definition at line 1133 of file XrdPosix.cc.
References statfs, statfs64(), XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by statfs64().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Statvfs | ( | const char * | path, |
| struct statvfs * | buf ) |
Definition at line 1156 of file XrdPosix.cc.
References statvfs, statvfs64(), XrdResolveLink(), Xroot, XrootPath, and Xunix.
Referenced by statvfs64().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdPosix_Statx | ( | int | dirfd, |
| const char * | path, | ||
| int | flags, | ||
| unsigned int | mask, | ||
| XrdSysStatx * | stx ) |
Definition at line 1091 of file XrdPosix.cc.
References dirfd, stat, XrdSysStatxHelpers::Stat2Statx(), XrdPosix_Stat(), XrdResolveLink(), and XrootPath.
Here is the call graph for this function:| long XrdPosix_Telldir | ( | DIR * | dirp | ) |
| int XrdPosix_Truncate | ( | const char * | path, |
| off_t | offset ) |
Definition at line 1194 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Here is the call graph for this function:| int XrdPosix_Unlink | ( | const char * | path | ) |
Definition at line 1219 of file XrdPosix.cc.
References XrdResolveLink(), Xroot, XrootPath, and Xunix.
Here is the call graph for this function:| char * XrdPosix_URL | ( | const char * | path, |
| char * | buff, | ||
| int | blen ) |
Definition at line 1283 of file XrdPosix.cc.
References XrootPath.
| ssize_t XrdPosix_Write | ( | int | fildes, |
| const void * | buf, | ||
| size_t | nbyte ) |
| ssize_t XrdPosix_Writev | ( | int | fildes, |
| const struct iovec * | iov, | ||
| int | iovcnt ) |
|
static |
Definition at line 114 of file XrdPosix.cc.
Referenced by XrdPosix_Access(), XrdPosix_Acl(), XrdPosix_Chdir(), XrdPosix_Fopen(), XrdPosix_Fstatat(), XrdPosix_Mkdir(), XrdPosix_Open(), XrdPosix_Openat(), XrdPosix_Opendir(), XrdPosix_Pathconf(), XrdPosix_Stat(), XrdPosix_Statfs(), XrdPosix_Statvfs(), XrdPosix_Statx(), XrdPosix_Truncate(), and XrdPosix_Unlink().
Here is the caller graph for this function:| XrdPosixXrootd Xroot |
Definition at line 53 of file XrdPosix.cc.
Referenced by XrdPosix_Access(), XrdPosix_Close(), XrdPosix_Closedir(), XrdPosix_Fclose(), XrdPosix_Fcntl(), XrdPosix_Fdatasync(), XrdPosix_Fflush(), XrdPosix_Fopen(), XrdPosix_Fread(), XrdPosix_Fseek(), XrdPosix_Fseeko(), XrdPosix_Fstat(), XrdPosix_Fstatat(), XrdPosix_FstatV(), XrdPosix_Fsync(), XrdPosix_Ftell(), XrdPosix_Ftello(), XrdPosix_Ftruncate(), XrdPosix_Fwrite(), XrdPosix_Lseek(), XrdPosix_Lstat(), XrdPosix_Mkdir(), XrdPosix_Open(), XrdPosix_Openat(), XrdPosix_Opendir(), XrdPosix_Pread(), XrdPosix_Pwrite(), XrdPosix_Read(), XrdPosix_Readdir(), XrdPosix_Readdir64(), XrdPosix_Readdir64_r(), XrdPosix_Readdir_r(), XrdPosix_Readv(), XrdPosix_Rename(), XrdPosix_Rewinddir(), XrdPosix_Rmdir(), XrdPosix_Seekdir(), XrdPosix_Stat(), XrdPosix_Statfs(), XrdPosix_Statvfs(), XrdPosix_Telldir(), XrdPosix_Truncate(), XrdPosix_Unlink(), XrdPosix_Write(), and XrdPosix_Writev().
| XrdPosixXrootPath XrootPath |
Definition at line 55 of file XrdPosix.cc.
Referenced by XrdPosix_Access(), XrdPosix_Acl(), XrdPosix_Chdir(), XrdPosix_Fopen(), XrdPosix_Fstatat(), XrdPosix_isMyPath(), XrdPosix_Lstat(), XrdPosix_Mkdir(), XrdPosix_Open(), XrdPosix_Openat(), XrdPosix_Opendir(), XrdPosix_Pathconf(), XrdPosix_Rename(), XrdPosix_Rmdir(), XrdPosix_Stat(), XrdPosix_Statfs(), XrdPosix_Statvfs(), XrdPosix_Statx(), XrdPosix_Truncate(), XrdPosix_Unlink(), and XrdPosix_URL().
|
extern |
Definition at line 57 of file XrdPosixLinkage.cc.
Referenced by access(), acl(), chdir(), close(), closedir(), creat64(), fclose(), fcntl64(), fdatasync(), fflush(), fopen64(), fread(), fseek(), fseeko64(), fstat64(), fstatat64(), fsync(), ftell(), ftello64(), ftruncate64(), fwrite(), llseek(), lseek64(), lstat64(), mkdir(), open64(), openat(), opendir(), pathconf(), pread64(), pwrite64(), read(), readdir64(), readdir64_r(), readv(), rename(), rewinddir(), rmdir(), seekdir(), stat64(), statfs64(), statvfs64(), Xrd_U_Access(), Xrd_U_Acl(), Xrd_U_Chdir(), Xrd_U_Close(), Xrd_U_Closedir(), Xrd_U_Fclose(), Xrd_U_Fcntl(), Xrd_U_Fcntl64(), Xrd_U_Fdatasync(), Xrd_U_Fflush(), Xrd_U_Fgetxattr(), Xrd_U_Fopen(), Xrd_U_Fopen64(), Xrd_U_Fread(), Xrd_U_Fseek(), Xrd_U_Fseeko(), Xrd_U_Fseeko64(), Xrd_U_Fstat(), Xrd_U_Fstat64(), Xrd_U_Fstatat(), Xrd_U_Fstatat64(), Xrd_U_Fsync(), Xrd_U_Ftell(), Xrd_U_Ftello(), Xrd_U_Ftello64(), Xrd_U_Ftruncate(), Xrd_U_Ftruncate64(), Xrd_U_Fwrite(), Xrd_U_Getxattr(), Xrd_U_Lgetxattr(), Xrd_U_Lseek(), Xrd_U_Lseek64(), Xrd_U_Lstat(), Xrd_U_Lstat64(), Xrd_U_Mkdir(), Xrd_U_Open(), Xrd_U_Open64(), Xrd_U_Openat(), Xrd_U_Openat64(), Xrd_U_Opendir(), Xrd_U_Pathconf(), Xrd_U_Pread(), Xrd_U_Pread64(), Xrd_U_Pwrite(), Xrd_U_Pwrite64(), Xrd_U_Read(), Xrd_U_Readdir(), Xrd_U_Readdir64(), Xrd_U_Readdir64_r(), Xrd_U_Readdir_r(), Xrd_U_Readv(), Xrd_U_Rename(), Xrd_U_Rewinddir(), Xrd_U_Rmdir(), Xrd_U_Seekdir(), Xrd_U_Stat(), Xrd_U_Stat64(), Xrd_U_Statfs(), Xrd_U_Statfs64(), Xrd_U_Statvfs(), Xrd_U_Statvfs64(), Xrd_U_Telldir(), Xrd_U_Truncate(), Xrd_U_Truncate64(), Xrd_U_Unlink(), Xrd_U_Write(), Xrd_U_Writev(), XrdPosix_Access(), XrdPosix_Acl(), XrdPosix_Chdir(), XrdPosix_Close(), XrdPosix_Closedir(), XrdPosix_Fclose(), XrdPosix_Fcntl(), XrdPosix_Fdatasync(), XrdPosix_Fflush(), XrdPosix_Fopen(), XrdPosix_Fread(), XrdPosix_Fseek(), XrdPosix_Fseeko(), XrdPosix_Fsync(), XrdPosix_Ftell(), XrdPosix_Ftello(), XrdPosix_Ftruncate(), XrdPosix_Fwrite(), XrdPosix_Lseek(), XrdPosix_Mkdir(), XrdPosix_Open(), XrdPosix_Opendir(), XrdPosix_Pathconf(), XrdPosix_Pread(), XrdPosix_Pwrite(), XrdPosix_Read(), XrdPosix_Readdir(), XrdPosix_Readdir64(), XrdPosix_Readdir64_r(), XrdPosix_Readdir_r(), XrdPosix_Readv(), XrdPosix_Rename(), XrdPosix_Rewinddir(), XrdPosix_Rmdir(), XrdPosix_Seekdir(), XrdPosix_Statfs(), XrdPosix_Statvfs(), XrdPosix_Telldir(), XrdPosix_Truncate(), XrdPosix_Unlink(), XrdPosix_Write(), and XrdPosix_Writev().