aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_self.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-03-26 22:54:57 -0400
committerRich Felker <dalias@aerifal.cx>2013-03-26 22:54:57 -0400
commit00f1521fdd3f57c7a190550426537089fc24b9da (patch)
treef4b6eafdbd50b0eeef1873e66c4d6947bfae0ed7 /src/thread/pthread_self.c
parentin pipe2, use pipe() rather than __syscall(SYS_pipe, ...) for fallback (diff)
downloadgrovel-00f1521fdd3f57c7a190550426537089fc24b9da.tar.gz
grovel-00f1521fdd3f57c7a190550426537089fc24b9da.tar.xz
provide emulation of fcntl F_DUPFD_CLOEXEC on old kernels
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.
Diffstat (limited to 'src/thread/pthread_self.c')
0 files changed, 0 insertions, 0 deletions