diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-04 00:31:25 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-04 00:31:25 -0400 |
commit | f0b85fd926c5a381416c94be62e7bc20d9fdbdb1 (patch) | |
tree | 9b7c800d5b67e35f27f6a3e98ba112188ff2874a /include/sys | |
parent | 2dd8d5e1b8ba1118ff1782e96545cb8a2318592c (diff) | |
download | musl-f0b85fd926c5a381416c94be62e7bc20d9fdbdb1.tar.gz |
add *64 junk for sys/*.h headers
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/mman.h | 5 | ||||
-rw-r--r-- | include/sys/resource.h | 6 | ||||
-rw-r--r-- | include/sys/sendfile.h | 5 | ||||
-rw-r--r-- | include/sys/stat.h | 11 | ||||
-rw-r--r-- | include/sys/statfs.h | 7 | ||||
-rw-r--r-- | include/sys/statvfs.h | 7 | ||||
-rw-r--r-- | include/sys/types.h | 9 |
7 files changed, 50 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index 4f871634..a48c2b4f 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -33,6 +33,11 @@ int madvise (void *, size_t, int); int shm_open (const char *, int, mode_t); int shm_unlink (const char *); +#ifdef _LARGEFILE64_SOURCE +#define mmap64 mmap +#define off64_t off_t +#endif + #ifdef __cplusplus } #endif diff --git a/include/sys/resource.h b/include/sys/resource.h index cb39923f..4baceb3e 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -87,6 +87,12 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); #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 } diff --git a/include/sys/sendfile.h b/include/sys/sendfile.h index f0c6ed05..ba9aa548 100644 --- a/include/sys/sendfile.h +++ b/include/sys/sendfile.h @@ -9,6 +9,11 @@ extern "C" { ssize_t sendfile(int, int, off_t *, size_t); +#ifdef _LARGEFILE64_SOURCE +#define sendfile64 sendfile +#define off64_t off_t +#endif + #ifdef __cplusplus } #endif diff --git a/include/sys/stat.h b/include/sys/stat.h index 5e339d5c..5d50ae76 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -96,6 +96,17 @@ int lchmod(const char *, mode_t); #define S_IEXEC S_IXUSR #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 } #endif diff --git a/include/sys/statfs.h b/include/sys/statfs.h index f5239d8f..c1cbe9e0 100644 --- a/include/sys/statfs.h +++ b/include/sys/statfs.h @@ -16,6 +16,13 @@ typedef struct { int statfs (const char *, 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 } #endif diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index b9f72b7e..3eaa2dcf 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -41,6 +41,13 @@ int fstatvfs (int, struct statvfs *); #define ST_NOATIME 1024 #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 } #endif diff --git a/include/sys/types.h b/include/sys/types.h index 18433f86..b9b65f6a 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -72,6 +72,15 @@ typedef long register_t; #include <sys/sysmacros.h> #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 } #endif |