aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-10 16:22:39 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-10 14:53:39 -0300
commit686d5420253bd76b1b7458f91d6ef9fc1a12b229 (patch)
treeef50e981313b303d5c6b500894b83542d69d8879 /libio
parent3a83f79024cc023a74c3892a1673542e8e972485 (diff)
downloadglibc-686d5420253bd76b1b7458f91d6ef9fc1a12b229.zip
glibc-686d5420253bd76b1b7458f91d6ef9fc1a12b229.tar.gz
glibc-686d5420253bd76b1b7458f91d6ef9fc1a12b229.tar.bz2
posix: Sync tempname with gnulib
The gnulib version contains an important change (9ce573cde), which fixes some problems with multithreading, entropy loss, and ASLR leak nfo. It also fixes an issue where getrandom is not being used on some new files generation (only for __GT_NOCREATE on first try). The 044bf893ac removed __path_search, which is now moved to another gnulib shared files (stdio-common/tmpdir.{c,h}). Tthis patch also fixes direxists to use __stat64_time64 instead of __xstat64, and move the include of pathmax.h for !_LIBC (since it is not used by glibc). The license is also changed from GPL 3.0 to 2.1, with permission from the authors (Bruno Haible and Paul Eggert). The sync also removed the clock fallback, since clock_gettime with CLOCK_REALTIME is expected to always succeed. It syncs with gnulib commit 323834962817af7b115187e8c9a833437f8d20ec. Checked on x86_64-linux-gnu. Co-authored-by: Bruno Haible <bruno@clisp.org> Co-authored-by: Paul Eggert <eggert@cs.ucla.edu> Reviewed-by: Bruno Haible <bruno@clisp.org>
Diffstat (limited to 'libio')
-rw-r--r--libio/oldtmpfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/oldtmpfile.c b/libio/oldtmpfile.c
index af467a6..f09ee06 100644
--- a/libio/oldtmpfile.c
+++ b/libio/oldtmpfile.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <unistd.h>
#include <iolibio.h>
+#include <stdio-common/tmpdir.h>
/* This returns a new stream opened on a temporary file (generated
by tmpnam). The file is opened with mode "w+b" (binary read/write).