Mon Jan 5 01:26:30 2009 UTC ()
fix sem prototypes.


(christos)
diff -r1.4.30.2 -r1.4.30.3 src/sys/compat/sys/sem.h

cvs diff -r1.4.30.2 -r1.4.30.3 src/sys/compat/sys/sem.h (expand / switch to unified diff)

--- src/sys/compat/sys/sem.h 2008/11/09 23:28:36 1.4.30.2
+++ src/sys/compat/sys/sem.h 2009/01/05 01:26:30 1.4.30.3
@@ -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
14struct semid_ds14 { 14struct 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
101int semctl(int, int, int, union __semun); 101int semctl(int, int, int, ...);
102int __semctl(int, int, int, union __semun *); 102int __semctl(int, int, int, union __semun *);
103int __semctl13(int, int, int, ...); 103int __semctl13(int, int, int, ...);
104int __semctl14(int, int, int, ...); 104int __semctl14(int, int, int, ...);
105int __semctl50(int, int, int, ...); 105int __semctl50(int, int, int, ...);
106int ____semctl50(int, int, int, void *); 106int ____semctl50(int, int, int, ...);
107__END_DECLS 107__END_DECLS
108 108
109#endif /* !_COMPAT_SYS_SEM_H_ */ 109#endif /* !_COMPAT_SYS_SEM_H_ */