diff options
author | 2015-10-11 07:32:06 +0000 | |
---|---|---|
committer | 2015-10-11 07:32:06 +0000 | |
commit | 116a5cae52969a2c9d78d06ad3d89b6396ab42f7 (patch) | |
tree | f046447912a2f1931ad69ae2316f5193d556d857 /lib/libc/gen/signal.3 | |
parent | Document that bind(2) and connect(2) ignore the incoming sa_len (diff) | |
download | wireguard-openbsd-116a5cae52969a2c9d78d06ad3d89b6396ab42f7.tar.xz wireguard-openbsd-116a5cae52969a2c9d78d06ad3d89b6396ab42f7.zip |
Simplify and lock down priv_open():
* kill the 'mode' argument
* fail if passed any flags other than O_ACCMODE OR O_NONBLOCK
* paranoia: mask O_CREAT when calling open() with only two arguments
* instead of using ioctl(FIONBIO) after the fact, pass O_NONBLOCK to
priv_open()
"good start" deraadt@
ok yasuoka@
Diffstat (limited to 'lib/libc/gen/signal.3')
0 files changed, 0 insertions, 0 deletions