Add x32 support to x86_64/bits/sem.h
H.J. Lu
hongjiu.lu@intel.com
Wed May 16 18:19:00 GMT 2012
Hi,
X32 use the same system call as x86-64. This patch adds x32 support to
x86_64/bits/sem.h. Tested on Linux/x86-64. OK to install?
Thanks.
H.J.
* sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
__syscall_ulong_t.
diff --git a/sysdeps/unix/sysv/linux/x86_64/bits/sem.h b/sysdeps/unix/sysv/linux/x86_64/bits/sem.h
index f5831d7..0065c73 100644
--- a/sysdeps/unix/sysv/linux/x86_64/bits/sem.h
+++ b/sysdeps/unix/sysv/linux/x86_64/bits/sem.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -39,12 +39,12 @@ struct semid_ds
{
struct ipc_perm sem_perm; /* operation permission struct */
__time_t sem_otime; /* last semop() time */
- unsigned long int __unused1;
+ __syscall_ulong_t __unused1;
__time_t sem_ctime; /* last time changed by semctl() */
- unsigned long int __unused2;
- unsigned long int sem_nsems; /* number of semaphores in set */
- unsigned long int __unused3;
- unsigned long int __unused4;
+ __syscall_ulong_t __unused2;
+ __syscall_ulong_t sem_nsems; /* number of semaphores in set */
+ __syscall_ulong_t __unused3;
+ __syscall_ulong_t __unused4;
};
/* The user should define a union like the following to use it for arguments
More information about the Libc-alpha
mailing list