X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Ffcntl.h;h=af2934057dfdd2debd2d4622711e905135938c1a;hb=01f3480d377a764135a1bd28af0d901d765ded50;hp=4d91338b3deba517f7195ecf24f89b57334237c8;hpb=7d7f44253f2d8cfd0a7adf9f918d88aa24d4e012;p=musl diff --git a/include/fcntl.h b/include/fcntl.h index 4d91338b..af293405 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -36,8 +36,9 @@ int openat(int, const char *, int, ...); int posix_fadvise(int, off_t, off_t, int); int posix_fallocate(int, off_t, off_t); -#define O_SEARCH O_PATH -#define O_EXEC O_PATH +#define O_SEARCH O_PATH +#define O_EXEC O_PATH +#define O_TTY_INIT 0 #define O_ACCMODE (03|O_SEARCH) #define O_RDONLY 00 @@ -66,8 +67,10 @@ int posix_fallocate(int, off_t, off_t); #define POSIX_FADV_RANDOM 1 #define POSIX_FADV_SEQUENTIAL 2 #define POSIX_FADV_WILLNEED 3 +#ifndef POSIX_FADV_DONTNEED #define POSIX_FADV_DONTNEED 4 #define POSIX_FADV_NOREUSE 5 +#endif #undef SEEK_SET #undef SEEK_CUR @@ -126,6 +129,7 @@ int posix_fallocate(int, off_t, off_t); #define F_SEAL_SHRINK 0x0002 #define F_SEAL_GROW 0x0004 #define F_SEAL_WRITE 0x0008 +#define F_SEAL_FUTURE_WRITE 0x0010 #define F_GET_RW_HINT 1035 #define F_SET_RW_HINT 1036