[Libsysio-commit] HEAD: libsysio/include sysio.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-10-21 15:02:19
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv21252 Modified Files: sysio.h Log Message: How did I miss this file? It's _LARGEFILE64_SOURCE, not __USE_LARGEFILE64. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -b -B -p -r1.10 -r1.11 --- sysio.h 10 Oct 2003 18:50:31 -0000 1.10 +++ sysio.h 21 Oct 2003 13:27:43 -0000 1.11 @@ -79,17 +79,17 @@ typedef void *ioid_t; #define MAX_SYMLINK 250 #endif -#ifndef __USE_LARGEFILE64 +#ifndef _LARGEFILE64_SOURCE /* * Not glibc. Define this ourselves. */ -#define __USE_LARGEFILE64 0 +#define _LARGEFILE64_SOURCE 0 #endif /* * Define internal file-offset type. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define _SYSIO_OFF_T off64_t #else #define _SYSIO_OFF_T off_t @@ -99,7 +99,7 @@ typedef void *ioid_t; * Internally, all directory entries are carried in the 64-bit capable * structure. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_dirent dirent64 #else #define intnl_dirent dirent @@ -110,7 +110,7 @@ struct dirent; * Internally, all file status is carried in the 64-bit capable * structure. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_stat stat64 #else #define intnl_stat stat @@ -118,7 +118,7 @@ struct dirent; struct stat; #ifdef _HAVE_STATVFS -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_statvfs statvfs64 #else #define intnl_statvfs statvfs @@ -159,7 +159,7 @@ extern int fcntl(int fd, int cmd, ...); extern int fstat(int fd, struct stat *buf); extern int fsync(int fd); extern char *getcwd(char *buf, size_t size); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern off64_t lseek64(int fd, off64_t offset, int whence); #endif extern int lstat(const char *path, struct stat *buf); @@ -167,7 +167,7 @@ extern int lstat(const char *path, struc extern int getdirentries(int fd, char *buf, int nbytes , long *basep); #else extern ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t getdirentries64(int fd, char *buf, size_t nbytes, @@ -176,33 +176,33 @@ extern ssize_t getdirentries64(int fd, #endif extern int mkdir(const char *path, mode_t mode); extern int open(const char *path, int flag, ...); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int open64(const char *path, int flag, ...); #endif extern int creat(const char *path, mode_t mode); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int creat64(const char *path, mode_t mode); #endif extern int stat(const char *path, struct stat *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int stat64(const char *path, struct stat64 *buf); #endif #ifdef _HAVE_STATVFS extern int statvfs(const char *path, struct statvfs *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int statvfs64(const char *path, struct statvfs64 *buf); #endif extern int fstatvfs(int fd, struct statvfs *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int fstatvfs64(int fd, struct statvfs64 *buf); #endif #endif extern int truncate(const char *path, off_t length); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int truncate64(const char *path, off64_t length); #endif extern int ftruncate(int fd, off_t length); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int ftruncate64(int fd, off64_t length); #endif extern int rmdir(const char *path); @@ -222,14 +222,14 @@ extern ioid_t ipread(int fd, void *buf, extern ssize_t preadv(int fd, const struct iovec *iov, size_t count, _SYSIO_OFF_T offset); extern ssize_t pread(int fd, void *buf, size_t count, off_t offset); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t pread64(int fd, void *buf, size_t count, off64_t offset); #endif extern ioid_t ireadv(int fd, const struct iovec *iov, int count); extern ioid_t iread(int fd, void *buf, size_t count); extern ssize_t readv(int fd, const struct iovec *iov, int count); extern ssize_t read(int fd, void *buf, size_t count); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t read64(int fd, void *buf, size_t count); #endif extern ioid_t ipwritev(int fd, const struct iovec *iov, size_t count, @@ -239,14 +239,14 @@ extern ioid_t ipwrite(int fd, const void extern ssize_t pwritev(int fd, const struct iovec *iov, size_t count, _SYSIO_OFF_T offset); extern ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t pwrite64(int fd, const void *buf, size_t count, off64_t offset); #endif extern ioid_t iwritev(int fd, const struct iovec *iov, int count); extern ioid_t iwrite(int fd, const void *buf, size_t count); extern ssize_t writev(int fd, const struct iovec *iov, int count); extern ssize_t write(int fd, const void *buf, size_t count); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t write64(int fd, const void *buf, size_t count); #endif extern int mknod(const char *path, mode_t mode, dev_t dev); |