xref: /openbmc/linux/arch/parisc/include/uapi/asm/sembuf.h (revision 9b9c2cd4)
1 #ifndef _PARISC_SEMBUF_H
2 #define _PARISC_SEMBUF_H
3 
4 #include <asm/bitsperlong.h>
5 
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 */
18 #if __BITS_PER_LONG != 64
19 	unsigned int	__pad1;
20 #endif
21 	__kernel_time_t	sem_otime;		/* last semop time */
22 #if __BITS_PER_LONG != 64
23 	unsigned int	__pad2;
24 #endif
25 	__kernel_time_t	sem_ctime;		/* last change time */
26 	unsigned long 	sem_nsems;		/* no. of semaphores in array */
27 	unsigned long	__unused1;
28 	unsigned long	__unused2;
29 };
30 
31 #endif /* _PARISC_SEMBUF_H */
32