mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
y2038: Use a common definition for semid_ds
Instead of replicate the same definitions from struct_semid64_ds.h on the multiple struct_semid_ds.h, use a common header which is included when required (struct_semid64_ds_helper.h). The __USE_TIME_BITS64 is not defined internally yet, although the internal header is used when building the 64-bit semctl implementation. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -23,17 +23,21 @@
|
||||
/* Data structure describing a set of semaphores. */
|
||||
struct semid_ds
|
||||
{
|
||||
#ifdef __USE_TIME_BITS64
|
||||
# include <bits/types/struct_semid64_ds_helper.h>
|
||||
#else
|
||||
struct ipc_perm sem_perm; /* operation permission struct */
|
||||
#if __TIMESIZE == 32
|
||||
# if __TIMESIZE == 32
|
||||
__syscall_ulong_t __sem_otime_high;
|
||||
__time_t sem_otime; /* last semop() time */
|
||||
__syscall_ulong_t __sem_ctime_high;
|
||||
__time_t sem_ctime; /* last time changed by semctl() */
|
||||
#else
|
||||
# else
|
||||
__time_t sem_otime; /* last semop() time */
|
||||
__time_t sem_ctime; /* last time changed by semctl() */
|
||||
#endif
|
||||
# endif
|
||||
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
|
||||
__syscall_ulong_t __glibc_reserved3;
|
||||
__syscall_ulong_t __glibc_reserved4;
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user