Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | |||||
* is unknown and sanitary check should be omitted in the funlinkat() and | * is unknown and sanitary check should be omitted in the funlinkat() and | ||||
* similar syscalls. | * similar syscalls. | ||||
*/ | */ | ||||
#define FD_NONE -200 | #define FD_NONE -200 | ||||
#endif | #endif | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int open(const char *, int, ...); | int open(const char *, int, ...); | ||||
kib: Start it from 1. | |||||
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 | ||||
#if __POSIX_VISIBLE >= 200809 | #if __POSIX_VISIBLE >= 200809 | ||||
int openat(int, const char *, int, ...); | int openat(int, const char *, int, ...); | ||||
#endif | #endif | ||||
#if __POSIX_VISIBLE >= 200112 | #if __POSIX_VISIBLE >= 200112 | ||||
int posix_fadvise(int, off_t, off_t, int); | int posix_fadvise(int, off_t, off_t, int); | ||||
int posix_fallocate(int, off_t, off_t); | int posix_fallocate(int, off_t, off_t); | ||||
#endif | #endif | ||||
int fdeallocate(int, off_t, off_t); | |||||
off_t fzero(int, off_t, off_t); | |||||
Done Inline ActionsMove this right after flock(), avoiding another ifdef. kib: Move this right after flock(), avoiding another ifdef. | |||||
__END_DECLS | __END_DECLS | ||||
#endif | #endif | ||||
#endif /* !_SYS_FCNTL_H_ */ | #endif /* !_SYS_FCNTL_H_ */ |
Start it from 1.