2017-11-01 22:08:43 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _PARISC_SEMBUF_H
|
|
|
|
#define _PARISC_SEMBUF_H
|
|
|
|
|
2014-11-11 05:04:47 +08:00
|
|
|
#include <asm/bitsperlong.h>
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* The semid64_ds structure for parisc architecture.
|
|
|
|
* Note extra padding because this structure is passed back and forth
|
|
|
|
* between kernel and user space.
|
|
|
|
*
|
|
|
|
* Pad space is left for:
|
|
|
|
* - 2 miscellaneous 32-bit values
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct semid64_ds {
|
|
|
|
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
|
2015-05-06 05:19:43 +08:00
|
|
|
#if __BITS_PER_LONG == 64
|
2005-04-17 06:20:36 +08:00
|
|
|
__kernel_time_t sem_otime; /* last semop time */
|
|
|
|
__kernel_time_t sem_ctime; /* last change time */
|
2015-05-06 05:19:43 +08:00
|
|
|
#else
|
|
|
|
unsigned long sem_otime_high;
|
|
|
|
unsigned long sem_otime; /* last semop time */
|
|
|
|
unsigned long sem_ctime_high;
|
|
|
|
unsigned long sem_ctime; /* last change time */
|
|
|
|
#endif
|
|
|
|
unsigned long sem_nsems; /* no. of semaphores in array */
|
2015-11-07 06:36:01 +08:00
|
|
|
unsigned long __unused1;
|
|
|
|
unsigned long __unused2;
|
2005-04-17 06:20:36 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _PARISC_SEMBUF_H */
|