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