neovim/test/includes/pre/fcntl.h
Michael Reed 729064af5f test: sys/fcntl.h -> fcntl.h
POSIX.1-2008[1] says that the latter should be used, and all of our
supported platforms would seem to support this scheme, apparently even
Windows[2].

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
[2]: https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx
2016-01-14 23:36:58 -05:00

8 lines
225 B
C

#include <fcntl.h>
static const mode_t kO_RDONLY = O_RDONLY;
static const mode_t kO_WRONLY = O_WRONLY;
static const mode_t kO_RDWR = O_RDWR;
static const mode_t kO_CREAT = O_CREAT;
static const mode_t kO_EXCL = O_EXCL;