]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Sync tempname with gnulib
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 10 Oct 2023 19:22:39 +0000 (16:22 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 10 Apr 2024 17:53:39 +0000 (14:53 -0300)
commit686d5420253bd76b1b7458f91d6ef9fc1a12b229
treeef50e981313b303d5c6b500894b83542d69d8879
parent3a83f79024cc023a74c3892a1673542e8e972485
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>
12 files changed:
SHARED-FILES
include/stdio.h
libio/oldtmpfile.c
stdio-common/Makefile
stdio-common/tempnam.c
stdio-common/tempname.c
stdio-common/tmpdir.c [new file with mode: 0644]
stdio-common/tmpdir.h [new file with mode: 0644]
stdio-common/tmpfile.c
stdio-common/tmpnam.c
stdio-common/tmpnam_r.c
sysdeps/posix/tempname.c