![]() |
XRootD
|
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.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"
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) |
long long | XrdPosix_Lseek (int fildes, long long 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) |
long long | XrdPosix_Pread (int fildes, void *buf, unsigned long long nbyte, long long offset) |
long long | XrdPosix_Pwrite (int fildes, const void *buf, unsigned long long nbyte, long long offset) |
long long | XrdPosix_Read (int fildes, void *buf, unsigned long long 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) |
long long | 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) |
long | XrdPosix_Telldir (DIR *dirp) |
int | XrdPosix_Truncate (const char *path, long long offset) |
int | XrdPosix_Unlink (const char *path) |
char * | XrdPosix_URL (const char *path, char *buff, int blen) |
long long | XrdPosix_Write (int fildes, const void *buf, unsigned long long nbyte) |
long long | XrdPosix_Writev (int fildes, const struct iovec *iov, int iovcnt) |
Variables | |
XrdPosixXrootd | Xroot |
XrdPosixXrootPath | XrootPath |
XrdPosixLinkage | Xunix |
#define ISMODE | ( | x | ) |
|
inlinestatic |
Definition at line 87 of file XrdPosix.cc.
References fseek.
Referenced by XrdPosix_Fread().
|
inlinestatic |
Definition at line 64 of file XrdPosix.cc.
Referenced by XrdPosix_Fread(), and XrdPosix_Fwrite().
int XrdPosix_Access | ( | const char * | path, |
int | amode ) |
Definition at line 114 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 155 of file XrdPosix.cc.
References XrootPath, and Xunix.
Referenced by chdir().
int XrdPosix_Close | ( | int | fildes | ) |
int XrdPosix_Closedir | ( | DIR * | dirp | ) |
Definition at line 187 of file XrdPosix.cc.
Referenced by closedir().
int XrdPosix_Creat | ( | const char * | path, |
mode_t | mode ) |
Definition at line 201 of file XrdPosix.cc.
References XrdPosix_Open().
Referenced by creat64().
int XrdPosix_Fclose | ( | FILE * | stream | ) |
Definition at line 215 of file XrdPosix.cc.
Referenced by fclose().
int XrdPosix_Fcntl | ( | int | fd, |
int | cmd, | ||
... ) |
Definition at line 235 of file XrdPosix.cc.
Referenced by fcntl64().
int XrdPosix_Fdatasync | ( | int | fildes | ) |
Definition at line 254 of file XrdPosix.cc.
Referenced by fdatasync().
int XrdPosix_Fflush | ( | FILE * | stream | ) |
Definition at line 286 of file XrdPosix.cc.
Referenced by fflush().
FILE * XrdPosix_Fopen | ( | const char * | path, |
const char * | mode ) |
Definition at line 306 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 351 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 377 of file XrdPosix.cc.
Referenced by fseek().
int XrdPosix_Fseeko | ( | FILE * | stream, |
long long | offset, | ||
int | whence ) |
Definition at line 395 of file XrdPosix.cc.
Referenced by fseeko(), and fseeko64().
int XrdPosix_Fstat | ( | int | fildes, |
struct stat * | buf ) |
Definition at line 413 of file XrdPosix.cc.
References stat, stat64(), Xroot, and Xunix.
Referenced by fstat(), and fstat64().
int XrdPosix_Fsync | ( | int | fildes | ) |
long XrdPosix_Ftell | ( | FILE * | stream | ) |
Definition at line 463 of file XrdPosix.cc.
Referenced by ftell().
long long XrdPosix_Ftello | ( | FILE * | stream | ) |
Definition at line 480 of file XrdPosix.cc.
Referenced by ftello(), and ftello64().
int XrdPosix_Ftruncate | ( | int | fildes, |
long long | offset ) |
Definition at line 497 of file XrdPosix.cc.
Referenced by ftruncate(), and ftruncate64().
size_t XrdPosix_Fwrite | ( | const void * | ptr, |
size_t | size, | ||
size_t | nitems, | ||
FILE * | stream ) |
Definition at line 513 of file XrdPosix.cc.
References fseterr(), Xroot, and Xunix.
Referenced by fwrite().
int XrdPosix_isMyPath | ( | const char * | path | ) |
long long XrdPosix_Lseek | ( | int | fildes, |
long long | offset, | ||
int | whence ) |
int XrdPosix_Lstat | ( | const char * | path, |
struct stat * | buf ) |
Definition at line 589 of file XrdPosix.cc.
References stat, stat64(), Xroot, XrootPath, and Xunix.
Referenced by lstat(), and lstat64().
int XrdPosix_Mkdir | ( | const char * | path, |
mode_t | mode ) |
Definition at line 615 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by mkdir().
int XrdPosix_Open | ( | const char * | path, |
int | oflag, | ||
... ) |
Definition at line 640 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by creat(), open(), open64(), and XrdPosix_Creat().
DIR * XrdPosix_Opendir | ( | const char * | path | ) |
Definition at line 676 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by opendir().
long XrdPosix_Pathconf | ( | const char * | path, |
int | name ) |
Definition at line 703 of file XrdPosix.cc.
References XrootPath, and Xunix.
Referenced by pathconf().
long long XrdPosix_Pread | ( | int | fildes, |
void * | buf, | ||
unsigned long long | nbyte, | ||
long long | offset ) |
Definition at line 716 of file XrdPosix.cc.
Referenced by pread(), and pread64().
long long XrdPosix_Pwrite | ( | int | fildes, |
const void * | buf, | ||
unsigned long long | nbyte, | ||
long long | offset ) |
Definition at line 733 of file XrdPosix.cc.
Referenced by pwrite(), and pwrite64().
long long XrdPosix_Read | ( | int | fildes, |
void * | buf, | ||
unsigned long long | nbyte ) |
struct dirent * XrdPosix_Readdir | ( | DIR * | dirp | ) |
struct dirent64 * XrdPosix_Readdir64 | ( | DIR * | dirp | ) |
Definition at line 793 of file XrdPosix.cc.
Referenced by readdir(), and readdir64().
int XrdPosix_Readdir64_r | ( | DIR * | dirp, |
struct dirent64 * | entry, | ||
struct dirent64 ** | result ) |
Definition at line 818 of file XrdPosix.cc.
Referenced by readdir64_r(), and readdir_r().
int XrdPosix_Readdir_r | ( | DIR * | dirp, |
struct dirent * | entry, | ||
struct dirent ** | result ) |
Definition at line 809 of file XrdPosix.cc.
Referenced by readdir_r().
long long XrdPosix_Readv | ( | int | fildes, |
const struct iovec * | iov, | ||
int | iovcnt ) |
Definition at line 766 of file XrdPosix.cc.
Referenced by readv().
int XrdPosix_Rename | ( | const char * | oldpath, |
const char * | newpath ) |
Definition at line 834 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by rename().
void XrdPosix_Rewinddir | ( | DIR * | dirp | ) |
int XrdPosix_Rmdir | ( | const char * | path | ) |
Definition at line 876 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 917 of file XrdPosix.cc.
References stat, stat64(), Xroot, XrootPath, and Xunix.
Referenced by stat(), and stat64().
int XrdPosix_Statfs | ( | const char * | path, |
struct statfs * | buf ) |
Definition at line 943 of file XrdPosix.cc.
References statfs, statfs64(), Xroot, XrootPath, and Xunix.
Referenced by statfs(), and statfs64().
int XrdPosix_Statvfs | ( | const char * | path, |
struct statvfs * | buf ) |
Definition at line 965 of file XrdPosix.cc.
References statvfs, statvfs64(), Xroot, XrootPath, and Xunix.
Referenced by statvfs(), and statvfs64().
long XrdPosix_Telldir | ( | DIR * | dirp | ) |
int XrdPosix_Truncate | ( | const char * | path, |
long long | offset ) |
Definition at line 1003 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by truncate(), and truncate64().
int XrdPosix_Unlink | ( | const char * | path | ) |
Definition at line 1028 of file XrdPosix.cc.
References Xroot, XrootPath, and Xunix.
Referenced by unlink().
char * XrdPosix_URL | ( | const char * | path, |
char * | buff, | ||
int | blen ) |
Definition at line 1092 of file XrdPosix.cc.
References XrootPath.
long long XrdPosix_Write | ( | int | fildes, |
const void * | buf, | ||
unsigned long long | nbyte ) |
Definition at line 1053 of file XrdPosix.cc.
Referenced by write().
long long XrdPosix_Writev | ( | int | fildes, |
const struct iovec * | iov, | ||
int | iovcnt ) |
Definition at line 1069 of file XrdPosix.cc.
Referenced by writev().
XrdPosixXrootd Xroot |
Definition at line 50 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 52 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_Truncate(), XrdPosix_Unlink(), and XrdPosix_URL().
|
extern |
Definition at line 56 of file XrdPosixLinkage.cc.
Referenced by access(), acl(), chdir(), close(), closedir(), creat(), creat64(), fclose(), fcntl(), fcntl64(), fdatasync(), fflush(), fopen64(), fread(), fseek(), fseeko(), fseeko64(), fstat(), fstat64(), fsync(), ftell(), ftello(), ftello64(), ftruncate(), ftruncate64(), fwrite(), llseek(), lseek(), lseek64(), lstat(), lstat64(), mkdir(), open(), open64(), opendir(), pathconf(), pread(), pread64(), pwrite(), pwrite64(), read(), readdir(), readdir64(), readdir64_r(), readdir_r(), readv(), rename(), rmdir(), seekdir(), stat(), stat64(), statfs(), statfs64(), statvfs(), statvfs64(), telldir(), truncate(), truncate64(), unlink(), write(), writev(), 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().