| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: sem.h,v 1.4.30.2 2008/11/09 23:28:36 christos Exp $ */ | | 1 | /* $NetBSD: sem.h,v 1.4.30.3 2009/01/05 01:26:30 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * SVID compatible sem.h file | | 4 | * SVID compatible sem.h file |
5 | * | | 5 | * |
6 | * Author: Daniel Boulet | | 6 | * Author: Daniel Boulet |
7 | */ | | 7 | */ |
8 | | | 8 | |
9 | #ifndef _COMPAT_SYS_SEM_H_ | | 9 | #ifndef _COMPAT_SYS_SEM_H_ |
10 | #define _COMPAT_SYS_SEM_H_ | | 10 | #define _COMPAT_SYS_SEM_H_ |
11 | | | 11 | |
12 | #include <compat/sys/ipc.h> | | 12 | #include <compat/sys/ipc.h> |
13 | | | 13 | |
14 | struct semid_ds14 { | | 14 | struct semid_ds14 { |
| @@ -88,22 +88,22 @@ __native_to_semid_ds14(const struct semi | | | @@ -88,22 +88,22 @@ __native_to_semid_ds14(const struct semi |
88 | { | | 88 | { |
89 | | | 89 | |
90 | __native_to_ipc_perm14(&sembuf->sem_perm, &osembuf->sem_perm); | | 90 | __native_to_ipc_perm14(&sembuf->sem_perm, &osembuf->sem_perm); |
91 | | | 91 | |
92 | #define CVT(x) osembuf->x = sembuf->x | | 92 | #define CVT(x) osembuf->x = sembuf->x |
93 | #define CVTI(x) osembuf->x = (int)sembuf->x | | 93 | #define CVTI(x) osembuf->x = (int)sembuf->x |
94 | CVT(sem_nsems); | | 94 | CVT(sem_nsems); |
95 | CVTI(sem_otime); | | 95 | CVTI(sem_otime); |
96 | CVTI(sem_ctime); | | 96 | CVTI(sem_ctime); |
97 | #undef CVT | | 97 | #undef CVT |
98 | #undef CVTI | | 98 | #undef CVTI |
99 | } | | 99 | } |
100 | | | 100 | |
101 | int semctl(int, int, int, union __semun); | | 101 | int semctl(int, int, int, ...); |
102 | int __semctl(int, int, int, union __semun *); | | 102 | int __semctl(int, int, int, union __semun *); |
103 | int __semctl13(int, int, int, ...); | | 103 | int __semctl13(int, int, int, ...); |
104 | int __semctl14(int, int, int, ...); | | 104 | int __semctl14(int, int, int, ...); |
105 | int __semctl50(int, int, int, ...); | | 105 | int __semctl50(int, int, int, ...); |
106 | int ____semctl50(int, int, int, void *); | | 106 | int ____semctl50(int, int, int, ...); |
107 | __END_DECLS | | 107 | __END_DECLS |
108 | | | 108 | |
109 | #endif /* !_COMPAT_SYS_SEM_H_ */ | | 109 | #endif /* !_COMPAT_SYS_SEM_H_ */ |