summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/putwc.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2016-04-09 13:32:42 +0000
committerjilles <jilles@FreeBSD.org>2016-04-09 13:32:42 +0000
commit15cca94824de0fbecb8dc3951d0a7e27f5a0ec67 (patch)
treebf032f976c283c35de30d920650828c88cf09e0e /lib/libc/stdio/putwc.c
parent336b1f7bb670aa4ebb365bab9cfc602548954333 (diff)
downloadFreeBSD-src-15cca94824de0fbecb8dc3951d0a7e27f5a0ec67.zip
FreeBSD-src-15cca94824de0fbecb8dc3951d0a7e27f5a0ec67.tar.gz
MFC r295385: semget(): Check for [EEXIST] error first.
Although POSIX literally permits failing with [EINVAL] if IPC_CREAT and IPC_EXCL were both passed, the semaphore set already exists and has fewer semaphores than nsems, this does not allow an application to retry safely: if the [EINVAL] is actually because of the semmsl limit, an infinite loop would result. PR: 206927
Diffstat (limited to 'lib/libc/stdio/putwc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud