mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
sys/mman.h: consistently use #define<tab>
There were 12 cases of `#define<space>` and 91 of `#define<tab>` and in some cases like msync() flags (MS_*) there wasn't consistency. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D46233
This commit is contained in:
parent
d8a16b6a4c
commit
b5c95c93fd
1 changed files with 12 additions and 12 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SYS_MMAN_H_
|
#ifndef _SYS_MMAN_H_
|
||||||
#define _SYS_MMAN_H_
|
#define _SYS_MMAN_H_
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
@ -39,10 +39,10 @@
|
||||||
/*
|
/*
|
||||||
* Inheritance for minherit()
|
* Inheritance for minherit()
|
||||||
*/
|
*/
|
||||||
#define INHERIT_SHARE 0
|
#define INHERIT_SHARE 0
|
||||||
#define INHERIT_COPY 1
|
#define INHERIT_COPY 1
|
||||||
#define INHERIT_NONE 2
|
#define INHERIT_NONE 2
|
||||||
#define INHERIT_ZERO 3
|
#define INHERIT_ZERO 3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -118,9 +118,9 @@
|
||||||
* Flags provided to shm_rename
|
* Flags provided to shm_rename
|
||||||
*/
|
*/
|
||||||
/* Don't overwrite dest, if it exists */
|
/* Don't overwrite dest, if it exists */
|
||||||
#define SHM_RENAME_NOREPLACE (1 << 0)
|
#define SHM_RENAME_NOREPLACE (1 << 0)
|
||||||
/* Atomically swap src and dest */
|
/* Atomically swap src and dest */
|
||||||
#define SHM_RENAME_EXCHANGE (1 << 1)
|
#define SHM_RENAME_EXCHANGE (1 << 1)
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* __BSD_VISIBLE */
|
||||||
|
|
||||||
|
|
@ -128,21 +128,21 @@
|
||||||
/*
|
/*
|
||||||
* Process memory locking
|
* Process memory locking
|
||||||
*/
|
*/
|
||||||
#define MCL_CURRENT 0x0001 /* Lock only current memory */
|
#define MCL_CURRENT 0x0001 /* Lock only current memory */
|
||||||
#define MCL_FUTURE 0x0002 /* Lock all future memory as well */
|
#define MCL_FUTURE 0x0002 /* Lock all future memory as well */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Error return from mmap()
|
* Error return from mmap()
|
||||||
*/
|
*/
|
||||||
#define MAP_FAILED ((void *)-1)
|
#define MAP_FAILED ((void *)-1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* msync() flags
|
* msync() flags
|
||||||
*/
|
*/
|
||||||
#define MS_SYNC 0x0000 /* msync synchronously */
|
#define MS_SYNC 0x0000 /* msync synchronously */
|
||||||
#define MS_ASYNC 0x0001 /* return immediately */
|
#define MS_ASYNC 0x0001 /* return immediately */
|
||||||
#define MS_INVALIDATE 0x0002 /* invalidate all cached data */
|
#define MS_INVALIDATE 0x0002 /* invalidate all cached data */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Advice to madvise
|
* Advice to madvise
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue