Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/fcntl.h
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | |||||
#define POSIX_FADV_NORMAL 0 /* no special treatment */ | #define POSIX_FADV_NORMAL 0 /* no special treatment */ | ||||
#define POSIX_FADV_RANDOM 1 /* expect random page references */ | #define POSIX_FADV_RANDOM 1 /* expect random page references */ | ||||
#define POSIX_FADV_SEQUENTIAL 2 /* expect sequential page references */ | #define POSIX_FADV_SEQUENTIAL 2 /* expect sequential page references */ | ||||
#define POSIX_FADV_WILLNEED 3 /* will need these pages */ | #define POSIX_FADV_WILLNEED 3 /* will need these pages */ | ||||
#define POSIX_FADV_DONTNEED 4 /* dont need these pages */ | #define POSIX_FADV_DONTNEED 4 /* dont need these pages */ | ||||
#define POSIX_FADV_NOREUSE 5 /* access data only once */ | #define POSIX_FADV_NOREUSE 5 /* access data only once */ | ||||
#endif | #endif | ||||
#ifdef __BSD_VISIBLE | |||||
/* | |||||
* Magic value that specify that corresponding file descriptor to filename | |||||
* is unknown and sanitary check should be omitted in the funlinkat() and | |||||
* similar syscalls. | |||||
*/ | |||||
#define FD_NONE -200 | |||||
#endif | |||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int open(const char *, int, ...); | int open(const char *, int, ...); | ||||
int creat(const char *, mode_t); | int creat(const char *, mode_t); | ||||
int fcntl(int, int, ...); | int fcntl(int, int, ...); | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
int flock(int, int); | int flock(int, int); | ||||
#endif | #endif | ||||
Show All 11 Lines |