add *64 junk for sys/*.h headers
This commit is contained in:
parent
2dd8d5e1b8
commit
f0b85fd926
7 changed files with 50 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ int madvise (void *, size_t, int);
|
||||||
int shm_open (const char *, int, mode_t);
|
int shm_open (const char *, int, mode_t);
|
||||||
int shm_unlink (const char *);
|
int shm_unlink (const char *);
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define mmap64 mmap
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,12 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
|
||||||
|
|
||||||
#define RLIM_NLIMITS RLIMIT_NLIMITS
|
#define RLIM_NLIMITS RLIMIT_NLIMITS
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define getrlimit64 getrlimit
|
||||||
|
#define setrlimit64 setrlimit
|
||||||
|
#define rlimit64 rlimit
|
||||||
|
#define rlim64_t rlim_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,11 @@ extern "C" {
|
||||||
|
|
||||||
ssize_t sendfile(int, int, off_t *, size_t);
|
ssize_t sendfile(int, int, off_t *, size_t);
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define sendfile64 sendfile
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,17 @@ int lchmod(const char *, mode_t);
|
||||||
#define S_IEXEC S_IXUSR
|
#define S_IEXEC S_IXUSR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define stat64 stat
|
||||||
|
#define fstat64 fstat
|
||||||
|
#define lstat64 lstat
|
||||||
|
#define fstatat64 fstatat
|
||||||
|
#define blksize64_t blksize_t
|
||||||
|
#define blkcnt64_t blkcnt_t
|
||||||
|
#define ino64_t ino_t
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,13 @@ typedef struct {
|
||||||
int statfs (const char *, struct statfs *);
|
int statfs (const char *, struct statfs *);
|
||||||
int fstatfs (int, struct statfs *);
|
int fstatfs (int, struct statfs *);
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define statfs64 statfs
|
||||||
|
#define fstatfs64 fstatfs
|
||||||
|
#define fsblkcnt64_t fsblkcnt_t
|
||||||
|
#define fsfilcnt64_t fsfilcnt_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,13 @@ int fstatvfs (int, struct statvfs *);
|
||||||
#define ST_NOATIME 1024
|
#define ST_NOATIME 1024
|
||||||
#define ST_NODIRATIME 2048
|
#define ST_NODIRATIME 2048
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define statvfs64 statvfs
|
||||||
|
#define fstatvfs64 fstatvfs
|
||||||
|
#define fsblkcnt64_t fsblkcnt_t
|
||||||
|
#define fsfilcnt64_t fsfilcnt_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,15 @@ typedef long register_t;
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _LARGEFILE64_SOURCE
|
||||||
|
#define blksize64_t blksize_t
|
||||||
|
#define blkcnt64_t blkcnt_t
|
||||||
|
#define fsblkcnt64_t fsblkcnt_t
|
||||||
|
#define fsfilcnt64_t fsfilcnt_t
|
||||||
|
#define ino64_t ino_t
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue