Add x32 support to x86_64/bits/sem.h

This commit is contained in:
H.J. Lu 2012-05-16 11:47:22 -07:00
parent cb2b9ef758
commit a26b685664
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
__syscall_ulong_t.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2002, 2011 Free Software Foundation, Inc.
/* Copyright (C) 2002-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