musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/fopen.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014年06月06日 15:30:28 -0400
committerRich Felker <dalias@aerifal.cx>2014年06月06日 15:30:28 -0400
commit1cacc01dc0623ac6443e19580222331812bddbbc (patch)
treead6e8282c111a7ddba9e80ecd5eb0567b0d52da7 /src/stdio/fopen.c
parent1d348566e6ab446d9c452b1b93aede74368b6618 (diff)
downloadmusl-1cacc01dc0623ac6443e19580222331812bddbbc.tar.gz
optimize SOCK_CLOEXEC fallback for socket function
the fcntl function is heavy, so make the syscall directly instead. also, avoid the code size and runtime overhead of querying the old flags, since it's reasonable to assume nothing will be set on a newly-created socket. this code is only used on old kernels which lack proper atomic close-on-exec support, so future changes that might invalidate such an assumption do not need to be considered.
Diffstat (limited to 'src/stdio/fopen.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月17日 11:06:00 +0000

AltStyle によって変換されたページ (->オリジナル) /