sembuf.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _ASM_POWERPC_SEMBUF_H
  2. #define _ASM_POWERPC_SEMBUF_H
  3. /*
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. /*
  10. * The semid64_ds structure for PPC architecture.
  11. * Note extra padding because this structure is passed back and forth
  12. * between kernel and user space.
  13. *
  14. * Pad space is left for:
  15. * - 64-bit time_t to solve y2038 problem
  16. * - 2 miscellaneous 32-bit values
  17. */
  18. struct semid64_ds {
  19. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  20. #ifndef __powerpc64__
  21. unsigned long __unused1;
  22. #endif
  23. __kernel_time_t sem_otime; /* last semop time */
  24. #ifndef __powerpc64__
  25. unsigned long __unused2;
  26. #endif
  27. __kernel_time_t sem_ctime; /* last change time */
  28. unsigned long sem_nsems; /* no. of semaphores in array */
  29. unsigned long __unused3;
  30. unsigned long __unused4;
  31. };
  32. #endif /* _ASM_POWERPC_SEMBUF_H */