I'm not entirely happy with the amount of ugliness here, but since F_DUPFD_CLOEXEC is used elsewhere in code that's expected to work on old kernels (popen), it seems necessary. reportedly even some modern kernels went back and broke F_DUPFD_CLOEXEC (making it behave like plain F_DUPFD), so it might be necessary to add some additional fixup code later to deal with that issue too. |
||
|---|---|---|
| .. | ||
| creat.c | ||
| fcntl.c | ||
| open.c | ||
| openat.c | ||
| posix_fadvise.c | ||
| posix_fallocate.c | ||