2017-11-01 14:08:43 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2005-04-16 22:20:36 +00:00
|
|
|
#ifndef _PARISC_SEMBUF_H
|
|
|
|
#define _PARISC_SEMBUF_H
|
|
|
|
|
2014-11-10 21:04:47 +00:00
|
|
|
#include <asm/bitsperlong.h>
|
2019-12-05 00:53:03 +00:00
|
|
|
#include <asm/ipcbuf.h>
|
2014-11-10 21:04:47 +00:00
|
|
|
|
2005-04-16 22:20:36 +00: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-05 21:19:43 +00:00
|
|
|
#if __BITS_PER_LONG == 64
|
2019-11-04 20:17:26 +00:00
|
|
|
long sem_otime; /* last semop time */
|
|
|
|
long sem_ctime; /* last change time */
|
2015-05-05 21:19:43 +00: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-06 22:36:01 +00:00
|
|
|
unsigned long __unused1;
|
|
|
|
unsigned long __unused2;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _PARISC_SEMBUF_H */
|