Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Don't make declarations visible from userland, unles...



details:   https://anonhg.NetBSD.org/src/rev/474f76e2da2c
branches:  trunk
changeset: 552708:474f76e2da2c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 30 20:37:36 2003 +0000

description:
Don't make declarations visible from userland, unless _LIBC is defined,
because we don't define semid_t.
XXX: Should we be defining __semid_t instead?

diffstat:

 sys/sys/ksem.h |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 64d3da36534f -r 474f76e2da2c sys/sys/ksem.h
--- a/sys/sys/ksem.h    Tue Sep 30 20:36:40 2003 +0000
+++ b/sys/sys/ksem.h    Tue Sep 30 20:37:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ksem.h,v 1.3 2003/01/23 23:52:38 thorpej Exp $ */
+/*     $NetBSD: ksem.h,v 1.4 2003/09/30 20:37:36 christos Exp $        */
 
 /*
  * Copyright (c) 2002 Alfred Perlstein <alfred%FreeBSD.org@localhost>
@@ -31,8 +31,11 @@
 
 #include <sys/cdefs.h>
 
-#ifndef _KERNEL
+#ifdef _KERNEL
+void ksem_init(void);
+#endif
 
+#ifdef _LIBC
 __BEGIN_DECLS
 int _ksem_close(semid_t);
 int _ksem_destroy(semid_t);
@@ -44,11 +47,6 @@
 int _ksem_unlink(const char *);
 int _ksem_wait(semid_t);
 __END_DECLS
-
-#else
-
-void ksem_init(void);
-
-#endif /* !_KERNEL */
+#endif /* _LIBC */
 
 #endif /* _SYS_KSEM_H_ */



Home | Main Index | Thread Index | Old Index