extensive header cleanup for standards conformance & correctness

thanks to Peter Mazinger (psm) for pointing many of these issues out
and submitting a patch on which this commit is loosely based
This commit is contained in:
Rich Felker committed 2011-02-14 18:41:25 -05:00
1 parent 80695b1d1e
commit 74eea628cf
15 files changed
+64 -56

No files matched your search

+3 -2
View File
@@ -68,9 +68,9 @@ TYPEDEF long long intmax_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
TYPEDEF unsigned int useconds_t;
TYPEDEF unsigned useconds_t;
TYPEDEF int suseconds_t;
STRUCT timeval { time_t tv_sec; long tv_usec; };
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
TYPEDEF int pid_t;
@@ -111,5 +111,6 @@ TYPEDEF int nl_item;
TYPEDEF struct __locale * locale_t;
STRUCT iovec { void *iov_base; size_t iov_len; };
EOF
-2
View File
@@ -1,5 +1,3 @@
struct iovec;
struct msghdr
{
void *msg_name;
+3 -6
View File
@@ -15,11 +15,8 @@ struct stat
off_t st_size;
blksize_t st_blksize;
blkcnt_t st_blocks;
time_t st_atime;
unsigned long __st_atime_nsec;
time_t st_mtime;
unsigned long __st_mtime_nsec;
time_t st_ctime;
unsigned long __st_ctime_nsec;
struct timespec st_atim;
struct timespec st_mtim;
struct timespec st_ctim;
ino_t st_ino;
};
-4
View File
@@ -1,4 +0,0 @@
struct iovec {
void *iov_base;
size_t iov_len;
};
+2
View File
@@ -6,6 +6,8 @@
#define WCONTINUED 8
#define WNOWAIT 0x1000000
#if defined(__XOPEN_SOURCE) || defined(__GNU_SOURCE)
#define P_ALL 0
#define P_PID 1
#define P_PGID 2
#endif