Linux updates (#14170)

* Add posix_memalign()

* Add linux-specific open() flags

O_TMPFILE: since Linux 3.11
O_PATH: since Linux 2.6.39
O_NOATIME: since Linux 2.6.8
O_DIRECT: since Linux 2.4.10

* Fix Stat type

* Fix POSIX AF_INET* const generation
This commit is contained in:
wltsmrz 2020-05-05 02:23:49 +09:00 • committed by GitHub
commit c817e85f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 14 deletions

View file

@ -128,6 +128,10 @@ const O_RDONLY* = cint(0)
const O_RDWR* = cint(2)
const O_WRONLY* = cint(1)
const O_CLOEXEC* = cint(524288)
const O_DIRECT* = cint(16384)
const O_PATH* = cint(2097152)
const O_NOATIME* = cint(262144)
const O_TMPFILE* = cint(4259840)
const POSIX_FADV_NORMAL* = cint(0)
const POSIX_FADV_SEQUENTIAL* = cint(2)
const POSIX_FADV_RANDOM* = cint(1)
@ -174,13 +178,20 @@ const FNM_NOMATCH* = cint(1)
const FNM_PATHNAME* = cint(1)
const FNM_PERIOD* = cint(4)
const FNM_NOESCAPE* = cint(2)
const FNM_NOSYS* = cint(-1)
# <ftw.h>
const FTW_F* = cint(0)
const FTW_D* = cint(1)
const FTW_DNR* = cint(2)
const FTW_DP* = cint(5)
const FTW_NS* = cint(3)
const FTW_SL* = cint(4)
const FTW_SLN* = cint(6)
const FTW_PHYS* = cint(1)
const FTW_MOUNT* = cint(2)
const FTW_DEPTH* = cint(8)
const FTW_CHDIR* = cint(4)
# <glob.h>
const GLOB_APPEND* = cint(32)
@ -402,6 +413,7 @@ const SS_ONSTACK* = cint(1)
const SS_DISABLE* = cint(2)
const MINSIGSTKSZ* = cint(2048)
const SIGSTKSZ* = cint(8192)
const SIG_HOLD* = cast[Sighandler](2)
const SIG_DFL* = cast[Sighandler](0)
const SIG_ERR* = cast[Sighandler](-1)
const SIG_IGN* = cast[Sighandler](1)
@ -473,7 +485,7 @@ const SOCK_SEQPACKET* = cint(5)
const SOCK_STREAM* = cint(1)
const SOCK_CLOEXEC* = cint(524288)
const SOL_SOCKET* = cint(1)
const SOMAXCONN* = cint(128)
const SOMAXCONN* = cint(4096)
const SO_REUSEPORT* = cint(15)
const MSG_NOSIGNAL* = cint(16384)
const MSG_PEEK* = cint(2)
@ -531,6 +543,7 @@ const POSIX_SPAWN_SETSCHEDPARAM* = cint(16)
const POSIX_SPAWN_SETSCHEDULER* = cint(32)
const POSIX_SPAWN_SETSIGDEF* = cint(4)
const POSIX_SPAWN_SETSIGMASK* = cint(8)
const POSIX_SPAWN_USEVFORK* = cint(64)
# <stdio.h>
const IOFBF* = cint(0)