XRootD
Loading...
Searching...
No Matches
XrdPosixPreload.cc File Reference
#include <sys/types.h>
#include <cstdarg>
#include <unistd.h>
#include <cstdlib>
#include "XrdPosix/XrdPosixLinkage.hh"
#include "XrdPosix/XrdPosixOsDep.hh"
#include "XrdPosix/XrdPosixExtern.hh"
+ Include dependency graph for XrdPosixPreload.cc:

Go to the source code of this file.

Functions

int access (const char *path, int amode)
 
int acl (const char *path, int cmd, int nentries, void *aclbufp)
 
int chdir (const char *path)
 
int close (int fildes)
 
int closedir (DIR *dirp)
 
int creat64 (const char *path, mode_t mode)
 
int fclose (FILE *stream)
 
int fcntl64 (int fd, int cmd,...)
 
int fdatasync (int fildes)
 
int fflush (FILE *stream)
 
FILE * fopen64 (const char *path, const char *mode)
 
size_t fread (void *ptr, size_t size, size_t nitems, FILE *stream)
 
int fseek (FILE *stream, long offset, int whence)
 
int fseeko64 (FILE *stream, off64_t offset, int whence)
 
int fstat64 (int fildes, struct stat64 *buf)
 
int fstatat64 (int dirfd, const char *path, struct stat64 *buf, int flags)
 
int fsync (int fildes)
 
long ftell (FILE *stream)
 
off64_t ftello64 (FILE *stream)
 
int ftruncate64 (int fildes, off_t offset)
 
size_t fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream)
 
offset_t llseek (int fildes, offset_t offset, int whence)
 
off64_t lseek64 (int fildes, off64_t offset, int whence)
 
int lstat64 (const char *path, struct stat64 *buf)
 
int mkdir (const char *path, mode_t mode)
 
int open64 (const char *path, int oflag,...)
 
int openat (int dirfd, const char *path, int flag,...)
 
DIR * opendir (const char *path)
 
long pathconf (const char *path, int name)
 
ssize_t pread64 (int fildes, void *buf, size_t nbyte, off_t offset)
 
ssize_t pwrite64 (int fildes, const void *buf, size_t nbyte, off_t offset)
 
ssize_t read (int fildes, void *buf, size_t nbyte)
 
struct dirent64 * readdir64 (DIR *dirp)
 
int readdir64_r (DIR *dirp, struct dirent64 *entry, struct dirent64 **result)
 
ssize_t readv (int fildes, const struct iovec *iov, int iovcnt)
 
int rename (const char *oldpath, const char *newpath)
 
void rewinddir (DIR *dirp)
 
int rmdir (const char *path)
 
void seekdir (DIR *dirp, long loc)
 
int stat64 (const char *path, struct stat64 *buf)
 
int statfs64 (const char *path, struct statfs64 *buf)
 
int statvfs64 (const char *path, struct statvfs64 *buf)
 

Variables

XrdPosixLinkage Xunix
 

Function Documentation

◆ access()

int access ( const char * path,
int amode )

Definition at line 87 of file XrdPosixPreload.cc.

88{
89 static int Init = Xunix.Init(&Init);
90
91 return XrdPosix_Access(path, amode);
92}
XrdPosixLinkage Xunix
int XrdPosix_Access(const char *path, int amode)
Definition XrdPosix.cc:152

References XrdPosix_Access(), and Xunix.

+ Here is the call graph for this function:

◆ acl()

int acl ( const char * path,
int cmd,
int nentries,
void * aclbufp )

Definition at line 103 of file XrdPosixPreload.cc.

104{
105 static int Init = Xunix.Init(&Init);
106
107 return XrdPosix_Acl(path, cmd, nentries, aclbufp);
108}
int XrdPosix_Acl(const char *path, int cmd, int nentries, void *aclbufp)
Definition XrdPosix.cc:181

References XrdPosix_Acl(), and Xunix.

+ Here is the call graph for this function:

◆ chdir()

int chdir ( const char * path)

Definition at line 117 of file XrdPosixPreload.cc.

118{
119 static int Init = Xunix.Init(&Init);
120
121 return (isLite ? Xunix.Chdir(path) : XrdPosix_Chdir(path));
122}
int XrdPosix_Chdir(const char *path)
Definition XrdPosix.cc:199

References XrdPosix_Chdir(), and Xunix.

+ Here is the call graph for this function:

◆ close()

int close ( int fildes)

Definition at line 131 of file XrdPosixPreload.cc.

132{
133 static int Init = Xunix.Init(&Init);
134
135 return XrdPosix_Close(fildes);
136}
int XrdPosix_Close(int fildes)
Definition XrdPosix.cc:220

References XrdPosix_Close(), and Xunix.

+ Here is the call graph for this function:

◆ closedir()

int closedir ( DIR * dirp)

Definition at line 145 of file XrdPosixPreload.cc.

146{
147 static int Init = Xunix.Init(&Init);
148
149 return (isLite ? Xunix.Closedir(dirp) : XrdPosix_Closedir(dirp));
150}
int XrdPosix_Closedir(DIR *dirp)
Definition XrdPosix.cc:235

References XrdPosix_Closedir(), and Xunix.

+ Here is the call graph for this function:

◆ creat64()

int creat64 ( const char * path,
mode_t mode )

Definition at line 159 of file XrdPosixPreload.cc.

160{
161 static int Init = Xunix.Init(&Init);
162
163 return XrdPosix_Creat(path, mode);
164}
int XrdPosix_Creat(const char *path, mode_t mode)
Definition XrdPosix.cc:249

References XrdPosix_Creat(), and Xunix.

+ Here is the call graph for this function:

◆ fclose()

int fclose ( FILE * stream)

Definition at line 173 of file XrdPosixPreload.cc.

174{
175 static int Init = Xunix.Init(&Init);
176
177 return XrdPosix_Fclose(stream);
178}
int XrdPosix_Fclose(FILE *stream)
Definition XrdPosix.cc:263

References XrdPosix_Fclose(), and Xunix.

Referenced by XrdCryptosslX509::XrdCryptosslX509(), BlacklistDecision::ConfigDecision(), main(), ReadPasswd(), ReadPuk(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ParseFile(), XrdCryptosslX509ParseFile(), and XrdSecgsiGMAPInit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fcntl64()

int fcntl64 ( int fd,
int cmd,
... )

Definition at line 187 of file XrdPosixPreload.cc.

188{
189 static int Init = Xunix.Init(&Init);
190 va_list ap;
191 void *theArg;
192
193 va_start(ap, cmd);
194 theArg = va_arg(ap, void *);
195 va_end(ap);
196 return XrdPosix_Fcntl(fd, cmd, theArg);
197}
int XrdPosix_Fcntl(int fd, int cmd,...)
Definition XrdPosix.cc:283

References XrdPosix_Fcntl(), and Xunix.

+ Here is the call graph for this function:

◆ fdatasync()

int fdatasync ( int fildes)

Definition at line 207 of file XrdPosixPreload.cc.

208{
209 static int Init = Xunix.Init(&Init);
210
211 return XrdPosix_Fdatasync(fildes);
212}
int XrdPosix_Fdatasync(int fildes)
Definition XrdPosix.cc:302

References XrdPosix_Fdatasync(), and Xunix.

Referenced by XrdOssFile::Flush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fflush()

int fflush ( FILE * stream)

Definition at line 222 of file XrdPosixPreload.cc.

223{
224 static int Init = Xunix.Init(&Init);
225
226 return XrdPosix_Fflush(stream);
227}
int XrdPosix_Fflush(FILE *stream)
Definition XrdPosix.cc:333

References XrdPosix_Fflush(), and Xunix.

Referenced by __eprintf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fopen64()

FILE * fopen64 ( const char * path,
const char * mode )

Definition at line 236 of file XrdPosixPreload.cc.

237{
238 static int Init = Xunix.Init(&Init);
239
240 return XrdPosix_Fopen(path, mode);
241}
FILE * XrdPosix_Fopen(const char *path, const char *mode)
Definition XrdPosix.cc:353

References XrdPosix_Fopen(), and Xunix.

+ Here is the call graph for this function:

◆ fread()

size_t fread ( void * ptr,
size_t size,
size_t nitems,
FILE * stream )

Definition at line 250 of file XrdPosixPreload.cc.

251{
252 static int Init = Xunix.Init(&Init);
253
254 return XrdPosix_Fread(ptr, size, nitems, stream);
255}
size_t XrdPosix_Fread(void *ptr, size_t size, size_t nitems, FILE *stream)
Definition XrdPosix.cc:405

References XrdPosix_Fread(), and Xunix.

+ Here is the call graph for this function:

◆ fseek()

int fseek ( FILE * stream,
long offset,
int whence )

Definition at line 264 of file XrdPosixPreload.cc.

265{
266 static int Init = Xunix.Init(&Init);
267
268 return XrdPosix_Fseek(stream, offset, whence);
269}
int XrdPosix_Fseek(FILE *stream, long offset, int whence)
Definition XrdPosix.cc:431

References XrdPosix_Fseek(), and Xunix.

+ Here is the call graph for this function:

◆ fseeko64()

int fseeko64 ( FILE * stream,
off64_t offset,
int whence )

Definition at line 278 of file XrdPosixPreload.cc.

279{
280 static int Init = Xunix.Init(&Init);
281
282 return XrdPosix_Fseeko(stream, offset, whence);
283}
int XrdPosix_Fseeko(FILE *stream, long long offset, int whence)
Definition XrdPosix.cc:449

References XrdPosix_Fseeko(), and Xunix.

+ Here is the call graph for this function:

◆ fstat64()

int fstat64 ( int fildes,
struct stat64 * buf )

Definition at line 295 of file XrdPosixPreload.cc.

297{
298 static int Init = Xunix.Init(&Init);
299#if defined(__linux__) && defined(_STAT_VER) && __GNUC__ && __GNUC__ >= 2
300 return XrdPosix_FstatV ( ver, fildes, (struct stat *)buf);
301#else
302 return XrdPosix_Fstat ( fildes, (struct stat *)buf);
303#endif
304}
int XrdPosix_FstatV(int ver, int fildes, struct stat *buf)
Definition XrdPosix.cc:480
int XrdPosix_Fstat(int fildes, struct stat *buf)
Definition XrdPosix.cc:467
#define stat(a, b)
Definition XrdPosix.hh:105

References stat, stat64(), XrdPosix_Fstat(), XrdPosix_FstatV(), and Xunix.

+ Here is the call graph for this function:

◆ fstatat64()

int fstatat64 ( int dirfd,
const char * path,
struct stat64 * buf,
int flags )

Definition at line 313 of file XrdPosixPreload.cc.

313 {
314 static int Init = Xunix.Init(&Init);
315 return XrdPosix_Fstatat (dirfd, path, (struct stat *)buf, flags);
316 }
int XrdPosix_Fstatat(int dirfd, const char *path, struct stat *buf, int flags)
Definition XrdPosix.cc:501
#define dirfd(x)

References dirfd, stat, stat64(), XrdPosix_Fstatat(), and Xunix.

+ Here is the call graph for this function:

◆ fsync()

int fsync ( int fildes)

Definition at line 325 of file XrdPosixPreload.cc.

326{
327 static int Init = Xunix.Init(&Init);
328
329 return XrdPosix_Fsync(fildes);
330}
int XrdPosix_Fsync(int fildes)
Definition XrdPosix.cc:544

References XrdPosix_Fsync(), and Xunix.

+ Here is the call graph for this function:

◆ ftell()

long ftell ( FILE * stream)

Definition at line 339 of file XrdPosixPreload.cc.

340{
341 static int Init = Xunix.Init(&Init);
342
343 return XrdPosix_Ftell(stream);
344}
long XrdPosix_Ftell(FILE *stream)
Definition XrdPosix.cc:560

References XrdPosix_Ftell(), and Xunix.

+ Here is the call graph for this function:

◆ ftello64()

off64_t ftello64 ( FILE * stream)

Definition at line 353 of file XrdPosixPreload.cc.

354{
355 static int Init = Xunix.Init(&Init);
356
357 return XrdPosix_Ftello(stream);
358}
long long XrdPosix_Ftello(FILE *stream)
Definition XrdPosix.cc:577

References XrdPosix_Ftello(), and Xunix.

+ Here is the call graph for this function:

◆ ftruncate64()

int ftruncate64 ( int fildes,
off_t offset )

Definition at line 367 of file XrdPosixPreload.cc.

368{
369 static int Init = Xunix.Init(&Init);
370
371 return XrdPosix_Ftruncate(fildes, offset);
372}
int XrdPosix_Ftruncate(int fildes, long long offset)
Definition XrdPosix.cc:594

References XrdPosix_Ftruncate(), and Xunix.

+ Here is the call graph for this function:

◆ fwrite()

size_t fwrite ( const void * ptr,
size_t size,
size_t nitems,
FILE * stream )

Definition at line 381 of file XrdPosixPreload.cc.

382{
383 static int Init = Xunix.Init(&Init);
384
385 return XrdPosix_Fwrite(ptr, size, nitems, stream);
386}
size_t XrdPosix_Fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream)
Definition XrdPosix.cc:610

References XrdPosix_Fwrite(), and Xunix.

+ Here is the call graph for this function:

◆ llseek()

offset_t llseek ( int fildes,
offset_t offset,
int whence )

Definition at line 460 of file XrdPosixPreload.cc.

462{
463 static int Init = Xunix.Init(&Init);
464
465 return XrdPosix_Lseek(fildes, offset, whence);
466}
off_t XrdPosix_Lseek(int fildes, off_t offset, int whence)
Definition XrdPosix.cc:676

References XrdPosix_Lseek(), and Xunix.

+ Here is the call graph for this function:

◆ lseek64()

off64_t lseek64 ( int fildes,
off64_t offset,
int whence )

Definition at line 443 of file XrdPosixPreload.cc.

444{
445 static int Init = Xunix.Init(&Init);
446
447 return XrdPosix_Lseek(fildes, offset, whence);
448}

References XrdPosix_Lseek(), and Xunix.

+ Here is the call graph for this function:

◆ lstat64()

int lstat64 ( const char * path,
struct stat64 * buf )

Definition at line 478 of file XrdPosixPreload.cc.

480{
481 static int Init = Xunix.Init(&Init);
482 return XrdPosix_Lstat(path, (struct stat *)buf);
483}
int XrdPosix_Lstat(const char *path, struct stat *buf)
Definition XrdPosix.cc:692

References stat, stat64(), XrdPosix_Lstat(), and Xunix.

+ Here is the call graph for this function:

◆ mkdir()

int mkdir ( const char * path,
mode_t mode )

Definition at line 492 of file XrdPosixPreload.cc.

493{
494 static int Init = Xunix.Init(&Init);
495
496 return (isLite ? Xunix.Mkdir(path, mode) : XrdPosix_Mkdir(path, mode));
497}
int XrdPosix_Mkdir(const char *path, mode_t mode)
Definition XrdPosix.cc:722

References XrdPosix_Mkdir(), and Xunix.

+ Here is the call graph for this function:

◆ open64()

int open64 ( const char * path,
int oflag,
... )

Definition at line 506 of file XrdPosixPreload.cc.

507{
508 static int Init = Xunix.Init(&Init);
509 va_list ap;
510 int mode;
511
512 va_start(ap, oflag);
513 mode = va_arg(ap, int);
514 va_end(ap);
515 return XrdPosix_Open(path, oflag, mode);
516}
int XrdPosix_Open(const char *path, int oflag,...)
Definition XrdPosix.cc:747

References XrdPosix_Open(), and Xunix.

+ Here is the call graph for this function:

◆ openat()

int openat ( int dirfd,
const char * path,
int flag,
... )

Definition at line 525 of file XrdPosixPreload.cc.

526{
527 static int Init = Xunix.Init(&Init);
528 va_list ap;
529 int mode;
530
531 va_start(ap, flag);
532 mode = va_arg(ap, int);
533 va_end(ap);
534 return XrdPosix_Openat(dirfd, path, flag, mode);
535}
int XrdPosix_Openat(int dirfd, const char *path, int flag,...)
Definition XrdPosix.cc:781

References dirfd, XrdPosix_Openat(), and Xunix.

+ Here is the call graph for this function:

◆ opendir()

DIR * opendir ( const char * path)

Definition at line 544 of file XrdPosixPreload.cc.

545{
546 static int Init = Xunix.Init(&Init);
547
548 return (isLite ? Xunix.Opendir(path) : XrdPosix_Opendir(path));
549}
DIR * XrdPosix_Opendir(const char *path)
Definition XrdPosix.cc:821

References XrdPosix_Opendir(), and Xunix.

+ Here is the call graph for this function:

◆ pathconf()

long pathconf ( const char * path,
int name )

Definition at line 560 of file XrdPosixPreload.cc.

561{
562 static int Init = Xunix.Init(&Init);
563
564 return XrdPosix_Pathconf(path, name);
565}
long XrdPosix_Pathconf(const char *path, int name)
Definition XrdPosix.cc:848

References XrdPosix_Pathconf(), and Xunix.

Referenced by XrdOucgetName2Name().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pread64()

ssize_t pread64 ( int fildes,
void * buf,
size_t nbyte,
off_t offset )

Definition at line 574 of file XrdPosixPreload.cc.

575{
576 static int Init = Xunix.Init(&Init);
577
578 return XrdPosix_Pread (fildes, buf, nbyte, offset);
579}
ssize_t XrdPosix_Pread(int fildes, void *buf, size_t nbyte, off_t offset)
Definition XrdPosix.cc:866

References XrdPosix_Pread(), and Xunix.

+ Here is the call graph for this function:

◆ pwrite64()

ssize_t pwrite64 ( int fildes,
const void * buf,
size_t nbyte,
off_t offset )

Definition at line 588 of file XrdPosixPreload.cc.

589{
590 static int Init = Xunix.Init(&Init);
591
592 return XrdPosix_Pwrite(fildes, buf, nbyte, offset);
593}
ssize_t XrdPosix_Pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
Definition XrdPosix.cc:882

References XrdPosix_Pwrite(), and Xunix.

+ Here is the call graph for this function:

◆ read()

ssize_t read ( int fildes,
void * buf,
size_t nbyte )

Definition at line 602 of file XrdPosixPreload.cc.

603{
604 static int Init = Xunix.Init(&Init);
605
606 return XrdPosix_Read(fildes, buf, nbyte);
607}
ssize_t XrdPosix_Read(int fildes, void *buf, size_t nbyte)
Definition XrdPosix.cc:898

References XrdPosix_Read(), and Xunix.

+ Here is the call graph for this function:

◆ readdir64()

struct dirent64 * readdir64 ( DIR * dirp)

Definition at line 630 of file XrdPosixPreload.cc.

631{
632 static int Init = Xunix.Init(&Init);
633
634 return (isLite ? Xunix.Readdir64(dirp) : XrdPosix_Readdir64(dirp));
635}
struct dirent64 * XrdPosix_Readdir64(DIR *dirp)
Definition XrdPosix.cc:941

References XrdPosix_Readdir64(), and Xunix.

+ Here is the call graph for this function:

◆ readdir64_r()

int readdir64_r ( DIR * dirp,
struct dirent64 * entry,
struct dirent64 ** result )

Definition at line 644 of file XrdPosixPreload.cc.

645{
646 static int Init = Xunix.Init(&Init);
647
648 return (isLite ? Xunix.Readdir64_r(dirp, entry, result) :
649 XrdPosix_Readdir64_r(dirp, entry, result));
650}
int XrdPosix_Readdir64_r(DIR *dirp, struct dirent64 *entry, struct dirent64 **result)
Definition XrdPosix.cc:966

References XrdPosix_Readdir64_r(), and Xunix.

+ Here is the call graph for this function:

◆ readv()

ssize_t readv ( int fildes,
const struct iovec * iov,
int iovcnt )

Definition at line 616 of file XrdPosixPreload.cc.

617{
618 static int Init = Xunix.Init(&Init);
619
620 return XrdPosix_Readv(fildes, iov, iovcnt);
621}
ssize_t XrdPosix_Readv(int fildes, const struct iovec *iov, int iovcnt)
Definition XrdPosix.cc:914

References XrdPosix_Readv(), and Xunix.

+ Here is the call graph for this function:

◆ rename()

int rename ( const char * oldpath,
const char * newpath )

Definition at line 659 of file XrdPosixPreload.cc.

660{
661 static int Init = Xunix.Init(&Init);
662
663 return (isLite ? Xunix.Rename(oldpath, newpath) : XrdPosix_Rename(oldpath, newpath));
664}
int XrdPosix_Rename(const char *oldpath, const char *newpath)
Definition XrdPosix.cc:982

References XrdPosix_Rename(), and Xunix.

+ Here is the call graph for this function:

◆ rewinddir()

void rewinddir ( DIR * dirp)

Definition at line 674 of file XrdPosixPreload.cc.

675{
676 static int Init = Xunix.Init(&Init);
677
678 (isLite ? Xunix.Rewinddir(dirp) : XrdPosix_Rewinddir(dirp));
679}
void XrdPosix_Rewinddir(DIR *dirp)
Definition XrdPosix.cc:1008

References XrdPosix_Rewinddir(), and Xunix.

+ Here is the call graph for this function:

◆ rmdir()

int rmdir ( const char * path)

Definition at line 689 of file XrdPosixPreload.cc.

690{
691 static int Init = Xunix.Init(&Init);
692
693 return (isLite ? Xunix.Rmdir(path) : XrdPosix_Rmdir(path));
694}
int XrdPosix_Rmdir(const char *path)
Definition XrdPosix.cc:1024

References XrdPosix_Rmdir(), and Xunix.

+ Here is the call graph for this function:

◆ seekdir()

void seekdir ( DIR * dirp,
long loc )

Definition at line 703 of file XrdPosixPreload.cc.

704{
705 static int Init = Xunix.Init(&Init);
706
707 (isLite ? Xunix.Seekdir(dirp, loc) : XrdPosix_Seekdir(dirp, loc));
708}
void XrdPosix_Seekdir(DIR *dirp, long loc)
Definition XrdPosix.cc:1049

References XrdPosix_Seekdir(), and Xunix.

+ Here is the call graph for this function:

◆ stat64()

int stat64 ( const char * path,
struct stat64 * buf )

Definition at line 720 of file XrdPosixPreload.cc.

722{
723 static int Init = Xunix.Init(&Init);
724
725 return XrdPosix_Stat(path, (struct stat *)buf);
726}
int XrdPosix_Stat(const char *path, struct stat *buf)
Definition XrdPosix.cc:1065

References stat, stat64(), XrdPosix_Stat(), and Xunix.

Referenced by fstat64(), fstatat64(), lstat64(), and stat64().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ statfs64()

int statfs64 ( const char * path,
struct statfs64 * buf )

Definition at line 736 of file XrdPosixPreload.cc.

737{
738 static int Init = Xunix.Init(&Init);
739
740 return XrdPosix_Statfs(path, (struct statfs *)buf);
741}
int XrdPosix_Statfs(const char *path, struct statfs *buf)
Definition XrdPosix.cc:1133
#define statfs(a, b)
Definition XrdPosix.hh:111

References statfs, statfs64(), XrdPosix_Statfs(), and Xunix.

Referenced by statfs64(), and XrdPosix_Statfs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ statvfs64()

int statvfs64 ( const char * path,
struct statvfs64 * buf )

Definition at line 751 of file XrdPosixPreload.cc.

752{
753 static int Init = Xunix.Init(&Init);
754
755 return XrdPosix_Statvfs(path, (struct statvfs *)buf);
756}
int XrdPosix_Statvfs(const char *path, struct statvfs *buf)
Definition XrdPosix.cc:1156
#define statvfs(a, b)
Definition XrdPosix.hh:113

References statvfs, statvfs64(), XrdPosix_Statvfs(), and Xunix.

Referenced by statvfs64(), and XrdPosix_Statvfs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ Xunix

XrdPosixLinkage Xunix
extern

Definition at line 57 of file XrdPosixLinkage.cc.