diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-06 15:30:28 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-06 15:30:28 -0400 |
commit | 1cacc01dc0623ac6443e19580222331812bddbbc (patch) | |
tree | ad6e8282c111a7ddba9e80ecd5eb0567b0d52da7 /src/prng | |
parent | 1d348566e6ab446d9c452b1b93aede74368b6618 (diff) | |
download | musl-1cacc01dc0623ac6443e19580222331812bddbbc.tar.gz musl-1cacc01dc0623ac6443e19580222331812bddbbc.tar.xz musl-1cacc01dc0623ac6443e19580222331812bddbbc.zip |
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/prng')
0 files changed, 0 insertions, 0 deletions