sembuf.h 794 B

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