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.
This commit is contained in:
parent
440b25e6ba
commit
96a42355e2
@ -1,8 +1,3 @@
|
|||||||
#ifndef _SEMAPHORE_H_
|
|
||||||
#define _SEMAPHORE_H_
|
|
||||||
|
|
||||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997
|
* Copyright (c) 1996, 1997
|
||||||
* HD Associates, Inc. All rights reserved.
|
* HD Associates, Inc. All rights reserved.
|
||||||
@ -37,6 +32,11 @@
|
|||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||||
|
|
||||||
|
#ifndef _SEMAPHORE_H_
|
||||||
|
#define _SEMAPHORE_H_
|
||||||
|
|
||||||
#include <sys/_posix.h>
|
#include <sys/_posix.h>
|
||||||
#include <machine/limits.h>
|
#include <machine/limits.h>
|
||||||
|
|
||||||
@ -47,10 +47,10 @@
|
|||||||
|
|
||||||
/* Opaque type definition. */
|
/* Opaque type definition. */
|
||||||
struct sem;
|
struct sem;
|
||||||
typedef struct sem *sem_t;
|
typedef struct sem * sem_t;
|
||||||
|
|
||||||
#define SEM_FAILED ((sem_t *)0)
|
#define SEM_FAILED ((sem_t *)0)
|
||||||
#define SEM_VALUE_MAX UINT_MAX
|
#define SEM_VALUE_MAX UINT_MAX
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
@ -69,4 +69,4 @@ __END_DECLS
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _SEMAPHORE_H_ */
|
#endif /* !_SEMAPHORE_H_ */
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
#ifndef _SEMAPHORE_H_
|
|
||||||
#define _SEMAPHORE_H_
|
|
||||||
|
|
||||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997
|
* Copyright (c) 1996, 1997
|
||||||
* HD Associates, Inc. All rights reserved.
|
* HD Associates, Inc. All rights reserved.
|
||||||
@ -37,6 +32,11 @@
|
|||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||||
|
|
||||||
|
#ifndef _SEMAPHORE_H_
|
||||||
|
#define _SEMAPHORE_H_
|
||||||
|
|
||||||
#include <sys/_posix.h>
|
#include <sys/_posix.h>
|
||||||
#include <machine/limits.h>
|
#include <machine/limits.h>
|
||||||
|
|
||||||
@ -47,10 +47,10 @@
|
|||||||
|
|
||||||
/* Opaque type definition. */
|
/* Opaque type definition. */
|
||||||
struct sem;
|
struct sem;
|
||||||
typedef struct sem *sem_t;
|
typedef struct sem * sem_t;
|
||||||
|
|
||||||
#define SEM_FAILED ((sem_t *)0)
|
#define SEM_FAILED ((sem_t *)0)
|
||||||
#define SEM_VALUE_MAX UINT_MAX
|
#define SEM_VALUE_MAX UINT_MAX
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
@ -69,4 +69,4 @@ __END_DECLS
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _SEMAPHORE_H_ */
|
#endif /* !_SEMAPHORE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user