blob: f01d89e30d735098d682b4cca2a71e79e689d4e8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _PARISC_SEMBUF_H
2#define _PARISC_SEMBUF_H
3
Helge Dellerd8f54572014-11-10 22:04:47 +01004#include <asm/bitsperlong.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/*
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
16struct semid64_ds {
17 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
Helge Dellerd8f54572014-11-10 22:04:47 +010018#if __BITS_PER_LONG != 64
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 unsigned int __pad1;
20#endif
21 __kernel_time_t sem_otime; /* last semop time */
Helge Dellerd8f54572014-11-10 22:04:47 +010022#if __BITS_PER_LONG != 64
Linus Torvalds1da177e2005-04-16 15:20:36 -070023 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 */