summaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorNicholas J. Kain <njkain@gmail.com>2011-02-15 08:02:33 -0500
committerNicholas J. Kain <njkain@gmail.com>2011-02-15 08:02:33 -0500
commitbb89bdd00e494baa11ceb67bf40cc28b0104b642 (patch)
treebb4bfe97db688698fe0dd95a182c968f46d4f669 /arch/x86_64
parent1e12632591ab98a6ea3af8680716c28282552981 (diff)
downloadmusl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.gz
musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.bz2
musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.xz
musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.zip
Update x86_64 bits to mirror (modulo platform differences) the latest changes
to i386.
Diffstat (limited to 'arch/x86_64')
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh8
-rw-r--r--arch/x86_64/bits/signal.h14
-rw-r--r--arch/x86_64/bits/socket.h2
-rw-r--r--arch/x86_64/bits/stat.h9
-rw-r--r--arch/x86_64/bits/wait.h2
5 files changed, 20 insertions, 15 deletions
diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh
index ce0b8ff1..2f5cf5d2 100755
--- a/arch/x86_64/bits/alltypes.h.sh
+++ b/arch/x86_64/bits/alltypes.h.sh
@@ -68,10 +68,10 @@ TYPEDEF long long intmax_t;
TYPEDEF unsigned long long uintmax_t;
TYPEDEF long time_t;
-TYPEDEF unsigned int useconds_t;
+TYPEDEF long useconds_t;
TYPEDEF long suseconds_t;
-STRUCT timeval { time_t tv_sec; long tv_usec; };
-STRUCT timespec { time_t tv_sec; long tv_nsec; };
+STRUCT timeval { time_t tv_sec; int tv_usec; };
+STRUCT timespec { time_t tv_sec; unsigned long tv_nsec; };
TYPEDEF int pid_t;
TYPEDEF int id_t;
@@ -96,7 +96,7 @@ TYPEDEF long timer_t;
TYPEDEF int clockid_t;
TYPEDEF long clock_t;
-TYPEDEF struct { unsigned long __bits[1024/sizeof(long)]; } sigset_t;
+TYPEDEF struct { unsigned long __bits[128/sizeof(long)]; } sigset_t;
TYPEDEF struct __siginfo siginfo_t;
TYPEDEF unsigned int socklen_t;
diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h
index 02c54d5a..a9690488 100644
--- a/arch/x86_64/bits/signal.h
+++ b/arch/x86_64/bits/signal.h
@@ -1,3 +1,6 @@
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+
struct __siginfo
{
int si_signo;
@@ -65,12 +68,17 @@ struct __siginfo
#define SIG_UNBLOCK 1
#define SIG_SETMASK 2
-#define SIG_ERR ((void (*)(int))-1)
-#define SIG_DFL ((void (*)(int)) 0)
-#define SIG_IGN ((void (*)(int)) 1)
#define SIG_HOLD ((void (*)(int)) 2)
+#endif
+
+#ifdef _GNU_SOURCE
#define NSIG 64
+#endif
+
+#define SIG_ERR ((void (*)(int))-1)
+#define SIG_DFL ((void (*)(int)) 0)
+#define SIG_IGN ((void (*)(int)) 1)
#define SIGHUP 1
#define SIGINT 2
diff --git a/arch/x86_64/bits/socket.h b/arch/x86_64/bits/socket.h
index cec01729..b3230625 100644
--- a/arch/x86_64/bits/socket.h
+++ b/arch/x86_64/bits/socket.h
@@ -1,5 +1,3 @@
-struct iovec;
-
struct msghdr
{
void *msg_name;
diff --git a/arch/x86_64/bits/stat.h b/arch/x86_64/bits/stat.h
index 84a4179a..21457961 100644
--- a/arch/x86_64/bits/stat.h
+++ b/arch/x86_64/bits/stat.h
@@ -15,11 +15,8 @@ struct stat {
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;
long __unused[3];
};
diff --git a/arch/x86_64/bits/wait.h b/arch/x86_64/bits/wait.h
index ca9b57e0..ae3f1012 100644
--- a/arch/x86_64/bits/wait.h
+++ b/arch/x86_64/bits/wait.h
@@ -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