Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _PARISC_SEMBUF_H |
| 2 | #define _PARISC_SEMBUF_H |
| 3 | |
Helge Deller | d8f5457 | 2014-11-10 22:04:47 +0100 | [diff] [blame] | 4 | #include <asm/bitsperlong.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | /* |
| 7 | * The semid64_ds structure for parisc architecture. |
| 8 | * Note extra padding because this structure is passed back and forth |
| 9 | * between kernel and user space. |
| 10 | * |
| 11 | * Pad space is left for: |
| 12 | * - 64-bit time_t to solve y2038 problem |
| 13 | * - 2 miscellaneous 32-bit values |
| 14 | */ |
| 15 | |
| 16 | struct semid64_ds { |
| 17 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ |
Helge Deller | d8f5457 | 2014-11-10 22:04:47 +0100 | [diff] [blame] | 18 | #if __BITS_PER_LONG != 64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | unsigned int __pad1; |
| 20 | #endif |
| 21 | __kernel_time_t sem_otime; /* last semop time */ |
Helge Deller | d8f5457 | 2014-11-10 22:04:47 +0100 | [diff] [blame] | 22 | #if __BITS_PER_LONG != 64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | unsigned int __pad2; |
| 24 | #endif |
| 25 | __kernel_time_t sem_ctime; /* last change time */ |
| 26 | unsigned int sem_nsems; /* no. of semaphores in array */ |
| 27 | unsigned int __unused1; |
| 28 | unsigned int __unused2; |
| 29 | }; |
| 30 | |
| 31 | #endif /* _PARISC_SEMBUF_H */ |