summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/mktemp.c
diff options
context:
space:
mode:
authorguenther <>2026-01-19 23:01:00 +0000
committerguenther <>2026-01-19 23:01:00 +0000
commit28d8cf0bbfe2d8e27749a1453bd2771c8e41c31b (patch)
tree70a6f669625e0a3bd8d7ad550c55357341c846f0 /src/lib/libc/stdlib/mktemp.c
parent72cdd91797afb2b9796ee9f67324a53c5fc6effe (diff)
downloadopenbsd-28d8cf0bbfe2d8e27749a1453bd2771c8e41c31b.tar.gz
openbsd-28d8cf0bbfe2d8e27749a1453bd2771c8e41c31b.tar.bz2
openbsd-28d8cf0bbfe2d8e27749a1453bd2771c8e41c31b.zip
While almost all the libc locks are taken and released in the same
libc call, flockfile() and ftrylockfile() can be called when single-threaded and then--while 'holding' the lock--the process can create another thread, resulting in a broken state. Have the f{lock,trylock,unlock}file() APIs *always* do real locking so the exposed state is always consistent. ok dlg@
Diffstat (limited to 'src/lib/libc/stdlib/mktemp.c')
0 files changed, 0 insertions, 0 deletions