1 #ifndef __XRDPOSIXEXTERN_H__
2 #define __XRDPOSIXEXTERN_H__
52 #if (!defined(_LARGEFILE_SOURCE) || !defined(_LARGEFILE64_SOURCE) || \
53 _FILE_OFFSET_BITS!=64) && !defined(XRDPOSIXPRELOAD32)
54 #error Compilation options are incompatible with XrdPosixExtern.hh; \
55 Specify -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
78 #include <sys/types.h>
88 extern int XrdPosix_Acl(
const char *path,
int cmd,
int nentries,
107 #if defined(__linux__) || defined(__GNU__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))
108 extern long long XrdPosix_Fgetxattr (
int fd,
const char *name,
109 void *value,
unsigned long long size);
114 extern size_t XrdPosix_Fread(
void *ptr,
size_t size,
size_t nitems, FILE *stream);
123 extern int XrdPosix_FstatV(
int ver,
int fildes,
struct stat *buf);
134 extern size_t XrdPosix_Fwrite(
const void *ptr,
size_t size,
size_t nitems, FILE *stream);
136 #if defined(__linux__) || defined(__GNU__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))
137 extern off64_t XrdPosix_Getxattr (
const char *path,
const char *name,
138 void *value,
unsigned long long size);
140 extern off64_t XrdPosix_Lgetxattr(
const char *path,
const char *name,
141 void *value,
unsigned long long size);
161 extern long long XrdPosix_Readv(
int fildes,
const struct iovec *
iov,
int iovcnt);
166 extern int XrdPosix_Readdir_r (DIR *dirp,
struct dirent *entry,
struct dirent **result);
179 #if !defined(__solaris__)
186 size_t nbyte, off64_t offset);
207 extern char *
XrdPosix_URL(
const char *path,
char *buff,
int blen);
int XrdPosix_Statfs(const char *path, struct statfs *buf)
ssize_t XrdPosix_Read(int fildes, void *buf, size_t nbyte)
int XrdPosix_Rename(const char *oname, const char *nname)
int XrdPosix_Closedir(DIR *dirp)
int XrdPosix_Fsync(int fildes)
int XrdPosix_isMyPath(const char *path)
int XrdPosix_Open(const char *path, int oflag,...)
void XrdPosix_Rewinddir(DIR *dirp)
long long XrdPosix_Readv(int fildes, const struct iovec *iov, int iovcnt)
int XrdPosix_Readdir64_r(DIR *dirp, struct dirent64 *entry, struct dirent64 **result)
int XrdPosix_Close(int fildes)
int XrdPosix_Truncate(const char *path, off64_t offset)
off64_t XrdPosix_Lseek(int fildes, off64_t offset, int whence)
void XrdPosix_Seekdir(DIR *dirp, long loc)
int XrdPosix_Rmdir(const char *path)
int XrdPosix_Chdir(const char *path)
FILE * XrdPosix_Fopen(const char *path, const char *mode)
off64_t XrdPosix_Ftello(FILE *stream)
int XrdPosix_Stat(const char *path, struct stat *buf)
int XrdPosix_Fcntl(int fd, int cmd,...)
int XrdPosix_Fseek(FILE *stream, long offset, int whence)
long XrdPosix_Ftell(FILE *stream)
int XrdPosix_Readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
int XrdPosix_Mkdir(const char *path, mode_t mode)
int XrdPosix_Fflush(FILE *stream)
char * XrdPosix_URL(const char *path, char *buff, int blen)
ssize_t XrdPosix_Writev(int fildes, const struct iovec *iov, int iovcnt)
DIR * XrdPosix_Opendir(const char *path)
long XrdPosix_Telldir(DIR *dirp)
int XrdPosix_Lstat(const char *path, struct stat *buf)
int XrdPosix_Ftruncate(int fildes, off64_t offset)
int XrdPosix_Fseeko(FILE *stream, off64_t offset, int whence)
int XrdPosix_Creat(const char *path, mode_t mode)
int XrdPosix_Statvfs(const char *path, struct statvfs *buf)
ssize_t XrdPosix_Pwrite(int fildes, const void *buf, size_t nbyte, off64_t offset)
int XrdPosix_Acl(const char *path, int cmd, int nentries, void *aclbufp)
int XrdPosix_Fstat(int fildes, struct stat *buf)
ssize_t XrdPosix_Write(int fildes, const void *buf, size_t nbyte)
size_t XrdPosix_Fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream)
int XrdPosix_Fclose(FILE *stream)
int XrdPosix_Fdatasync(int fildes)
struct dirent64 * XrdPosix_Readdir64(DIR *dirp)
long XrdPosix_Pathconf(const char *path, int name)
struct dirent * XrdPosix_Readdir(DIR *dirp)
int XrdPosix_Unlink(const char *path)
size_t XrdPosix_Fread(void *ptr, size_t size, size_t nitems, FILE *stream)
ssize_t XrdPosix_Pread(int fildes, void *buf, size_t nbyte, off64_t offset)
int XrdPosix_Access(const char *path, int amode)
int stat(const char *path, struct stat *buf)
int statvfs(const char *path, struct statvfs *buf)
int statfs(const char *path, struct statfs *buf)