summaryrefslogtreecommitdiffstats
path: root/sys/posix4/semaphore.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-10-03 18:34:13 +0000
committermike <mike@FreeBSD.org>2002-10-03 18:34:13 +0000
commit96a42355e2c83e96c49318518b0ab107a1b4ae21 (patch)
tree4b6ab3e73315d559dbbc1c52bcf557db83bc8cb0 /sys/posix4/semaphore.h
parent440b25e6ba5f82ee1735b88769c435ac11105327 (diff)
downloadFreeBSD-src-96a42355e2c83e96c49318518b0ab107a1b4ae21.zip
FreeBSD-src-96a42355e2c83e96c49318518b0ab107a1b4ae21.tar.gz
Fix various style(9) bugs:
o Unusual order of #ifndef _FOO_H_, followed by license. o Missing tabs in typedef and #define. o Reversed comment for #endif.
Diffstat (limited to 'sys/posix4/semaphore.h')
-rw-r--r--sys/posix4/semaphore.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/posix4/semaphore.h b/sys/posix4/semaphore.h
index b404a03..a4ee56e5 100644
--- a/sys/posix4/semaphore.h
+++ b/sys/posix4/semaphore.h
@@ -1,8 +1,3 @@
-#ifndef _SEMAPHORE_H_
-#define _SEMAPHORE_H_
-
-/* semaphore.h: POSIX 1003.1b semaphores */
-
/*-
* Copyright (c) 1996, 1997
* HD Associates, Inc. All rights reserved.
@@ -37,6 +32,11 @@
* $FreeBSD$
*/
+/* semaphore.h: POSIX 1003.1b semaphores */
+
+#ifndef _SEMAPHORE_H_
+#define _SEMAPHORE_H_
+
#include <sys/_posix.h>
#include <machine/limits.h>
@@ -47,10 +47,10 @@
/* Opaque type definition. */
struct sem;
-typedef struct sem *sem_t;
+typedef struct sem * sem_t;
-#define SEM_FAILED ((sem_t *)0)
-#define SEM_VALUE_MAX UINT_MAX
+#define SEM_FAILED ((sem_t *)0)
+#define SEM_VALUE_MAX UINT_MAX
#ifndef _KERNEL
#include <sys/cdefs.h>
@@ -69,4 +69,4 @@ __END_DECLS
#endif
-#endif /* _SEMAPHORE_H_ */
+#endif /* !_SEMAPHORE_H_ */
OpenPOWER on IntegriCloud