#include <cstdarg>#include <cstdio>#include <cstdlib>#include <sys/param.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/syscall.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"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_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,...) |
| 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) |
Variables | |
| XrdPosixXrootd | Xroot |
| XrdPosixXrootPath | XrootPath |
| XrdPosixLinkage | Xunix |
| #define ISMODE | ( | x | ) |
|
inlinestatic |
Definition at line 89 of file XrdPosix.cc.
References fseek.
Referenced by XrdPosix_Fread().
|
inlinestatic |
Definition at line 66 of file XrdPosix.cc.
Referenced by XrdPosix_Fread(), and XrdPosix_Fwrite().
| int XrdPosix_Access | ( | const char * | path, |
| int | amode ) |
Definition at line 116 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by access().
| int XrdPosix_Acl | ( | const char * | path, |
| int | cmd, | ||
| int | nentries, | ||
| void * | aclbufp ) |
| int XrdPosix_Chdir | ( | const char * | path | ) |
Definition at line 157 of file XrdPosix.cc.
References XrootPath, and Xunix.
Referenced by chdir().
| int XrdPosix_Close | ( | int | fildes | ) |
| int XrdPosix_Closedir | ( | DIR * | dirp | ) |
Definition at line 189 of file XrdPosix.cc.
Referenced by closedir().
| int XrdPosix_Creat | ( | const char * | path, |
| mode_t | mode ) |
Definition at line 203 of file XrdPosix.cc.
References XrdPosix_Open().
Referenced by creat64().
| int XrdPosix_Fclose | ( | FILE * | stream | ) |
Definition at line 217 of file XrdPosix.cc.
Referenced by fclose().
| int XrdPosix_Fcntl | ( | int | fd, |
| int | cmd, | ||
| ... ) |
Definition at line 237 of file XrdPosix.cc.
Referenced by fcntl64().
| int XrdPosix_Fdatasync | ( | int | fildes | ) |
Definition at line 256 of file XrdPosix.cc.
Referenced by fdatasync().
| int XrdPosix_Fflush | ( | FILE * | stream | ) |
Definition at line 287 of file XrdPosix.cc.
Referenced by fflush().
| FILE * XrdPosix_Fopen | ( | const char * | path, |
| const char * | mode ) |
Definition at line 307 of file XrdPosix.cc.
References ISMODE, XrdPosixXrootd::isStream, Xroot, XrootPath, and Xunix.
Referenced by fopen64().
| size_t XrdPosix_Fread | ( | void * | ptr, |
| size_t | size, | ||
| size_t | nitems, | ||
| FILE * | stream ) |
Definition at line 354 of file XrdPosix.cc.
References fseteof(), fseterr(), Xroot, and Xunix.
Referenced by fread().
| int XrdPosix_Fseek | ( | FILE * | stream, |
| long | offset, | ||
| int | whence ) |
Definition at line 380 of file XrdPosix.cc.
Referenced by fseek().
| int XrdPosix_Fseeko | ( | FILE * | stream, |
| long long | offset, | ||
| int | whence ) |
Definition at line 398 of file XrdPosix.cc.
Referenced by fseeko64().
| int XrdPosix_Fstat | ( | int | fildes, |
| struct stat * | buf ) |
Definition at line 416 of file XrdPosix.cc.
References stat, stat64(), Xroot, and Xunix.
Referenced by fstat64().
| int XrdPosix_Fsync | ( | int | fildes | ) |
| long XrdPosix_Ftell | ( | FILE * | stream | ) |
Definition at line 466 of file XrdPosix.cc.
Referenced by ftell().
| long long XrdPosix_Ftello | ( | FILE * | stream | ) |
Definition at line 483 of file XrdPosix.cc.
Referenced by ftello64().
| int XrdPosix_Ftruncate | ( | int | fildes, |
| long long | offset ) |
Definition at line 500 of file XrdPosix.cc.
Referenced by ftruncate64().
| size_t XrdPosix_Fwrite | ( | const void * | ptr, |
| size_t | size, | ||
| size_t | nitems, | ||
| FILE * | stream ) |
Definition at line 516 of file XrdPosix.cc.
References fseterr(), Xroot, and Xunix.
Referenced by fwrite().
| int XrdPosix_isMyPath | ( | const char * | path | ) |
Definition at line 1108 of file XrdPosix.cc.
References XrootPath.
| off_t XrdPosix_Lseek | ( | int | fildes, |
| off_t | offset, | ||
| int | whence ) |
Definition at line 574 of file XrdPosix.cc.
Referenced by llseek(), and lseek64().
| int XrdPosix_Lstat | ( | const char * | path, |
| struct stat * | buf ) |
Definition at line 590 of file XrdPosix.cc.
References stat, stat64(), Xroot, XrootPath, and Xunix.
Referenced by lstat64().
| int XrdPosix_Mkdir | ( | const char * | path, |
| mode_t | mode ) |
Definition at line 616 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by mkdir().
| int XrdPosix_Open | ( | const char * | path, |
| int | oflag, | ||
| ... ) |
Definition at line 641 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by open64(), and XrdPosix_Creat().
| DIR * XrdPosix_Opendir | ( | const char * | path | ) |
Definition at line 677 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by opendir().
| long XrdPosix_Pathconf | ( | const char * | path, |
| int | name ) |
Definition at line 704 of file XrdPosix.cc.
References XrootPath, and Xunix.
Referenced by pathconf().
| ssize_t XrdPosix_Pread | ( | int | fildes, |
| void * | buf, | ||
| size_t | nbyte, | ||
| off_t | offset ) |
Definition at line 717 of file XrdPosix.cc.
Referenced by pread64().
| ssize_t XrdPosix_Pwrite | ( | int | fildes, |
| const void * | buf, | ||
| size_t | nbyte, | ||
| off_t | offset ) |
Definition at line 733 of file XrdPosix.cc.
Referenced by pwrite64().
| 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 792 of file XrdPosix.cc.
Referenced by readdir64().
| int XrdPosix_Readdir64_r | ( | DIR * | dirp, |
| struct dirent64 * | entry, | ||
| struct dirent64 ** | result ) |
Definition at line 817 of file XrdPosix.cc.
Referenced by readdir64_r().
| 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 765 of file XrdPosix.cc.
Referenced by readv().
| int XrdPosix_Rename | ( | const char * | oldpath, |
| const char * | newpath ) |
Definition at line 833 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by rename().
| void XrdPosix_Rewinddir | ( | DIR * | dirp | ) |
Definition at line 859 of file XrdPosix.cc.
Referenced by rewinddir().
| int XrdPosix_Rmdir | ( | const char * | path | ) |
Definition at line 875 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by rmdir().
| void XrdPosix_Seekdir | ( | DIR * | dirp, |
| long | loc ) |
| int XrdPosix_Stat | ( | const char * | path, |
| struct stat * | buf ) |
Definition at line 916 of file XrdPosix.cc.
References stat, stat64(), Xroot, XrootPath, and Xunix.
Referenced by stat64(), and XrdPosix_Statx().
| int XrdPosix_Statfs | ( | const char * | path, |
| struct statfs * | buf ) |
Definition at line 968 of file XrdPosix.cc.
References statfs, statfs64(), Xroot, XrootPath, and Xunix.
Referenced by statfs64().
| int XrdPosix_Statvfs | ( | const char * | path, |
| struct statvfs * | buf ) |
Definition at line 990 of file XrdPosix.cc.
References statvfs, statvfs64(), Xroot, XrootPath, and Xunix.
Referenced by statvfs64().
| int XrdPosix_Statx | ( | int | dirfd, |
| const char * | path, | ||
| int | flags, | ||
| unsigned int | mask, | ||
| XrdSysStatx * | stx ) |
Definition at line 938 of file XrdPosix.cc.
References dirfd, stat, XrdSysStatxHelpers::Stat2Statx(), XrdPosix_Stat(), and XrootPath.
| long XrdPosix_Telldir | ( | DIR * | dirp | ) |
| int XrdPosix_Truncate | ( | const char * | path, |
| off_t | offset ) |
Definition at line 1028 of file XrdPosix.cc.
| int XrdPosix_Unlink | ( | const char * | path | ) |
Definition at line 1053 of file XrdPosix.cc.
| char * XrdPosix_URL | ( | const char * | path, |
| char * | buff, | ||
| int | blen ) |
Definition at line 1117 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 ) |
| XrdPosixXrootd Xroot |
Definition at line 52 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_Fsync(), XrdPosix_Ftell(), XrdPosix_Ftello(), XrdPosix_Ftruncate(), XrdPosix_Fwrite(), XrdPosix_Lseek(), XrdPosix_Lstat(), XrdPosix_Mkdir(), XrdPosix_Open(), 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 54 of file XrdPosix.cc.
Referenced by XrdPosix_Access(), XrdPosix_Acl(), XrdPosix_Chdir(), XrdPosix_Fopen(), XrdPosix_isMyPath(), XrdPosix_Lstat(), XrdPosix_Mkdir(), XrdPosix_Open(), 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(), fsync(), ftell(), ftello64(), ftruncate64(), fwrite(), llseek(), lseek64(), lstat64(), mkdir(), open64(), 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_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_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_Fstat(), XrdPosix_Fsync(), XrdPosix_Ftell(), XrdPosix_Ftello(), XrdPosix_Ftruncate(), XrdPosix_Fwrite(), XrdPosix_Lseek(), XrdPosix_Lstat(), 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_Stat(), XrdPosix_Statfs(), XrdPosix_Statvfs(), XrdPosix_Telldir(), XrdPosix_Truncate(), XrdPosix_Unlink(), XrdPosix_Write(), and XrdPosix_Writev().