Make our mktemp(3) callback-driven and split into multiple files.
authormillert <millert@openbsd.org>
Fri, 19 Jan 2024 19:45:02 +0000 (19:45 +0000)
committermillert <millert@openbsd.org>
Fri, 19 Jan 2024 19:45:02 +0000 (19:45 +0000)
commit2ce65aae1433afb7f4c414d38275987387d74c67
tree7d6254b6c2bfc7921c5cd8ea01b7092aef1e1b01
parenta6ae7c73ddd52937b0cb01eec62210e020a266e3
Make our mktemp(3) callback-driven and split into multiple files.
Previously, calling any of the mktemp(3) family would pull in
lstat(2), open(2) and mkdir(2).  Now, only the necessary system
calls will be reachable from the binary.  OK deraadt@ guenther@
lib/libc/hidden/stdlib.h
lib/libc/stdlib/Makefile.inc
lib/libc/stdlib/__mktemp4.c [new file with mode: 0644]
lib/libc/stdlib/mkdtemp.c [new file with mode: 0644]
lib/libc/stdlib/mkstemp.c [new file with mode: 0644]
lib/libc/stdlib/mktemp.c