Hash :
854fbb81
Author :
Date :
2021-01-11T16:46:12
tempname: consume less entropy Derived from a glibc patch proposed by Adhemerval Zanella in: https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html * lib/tempname.c: Include stdbool.h. (random_bits): New arg use_getrandom. (try_tempname_len): Skip getrandom on the first try, unless __GT_NOCREATE. * modules/tempname (Depends-on): Add stdbool.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
Description:
gen_tempname() function and try_tempname() function:
create a private temporary file or directory.
Files:
lib/tempname.c
lib/tempname.h
m4/tempname.m4
Depends-on:
c99
clock-time
extensions
fcntl-h
getrandom
libc-config
lstat
mkdir
stdalign
stdbool
stdint
sys_stat
time
configure.ac:
gl_FUNC_GEN_TEMPNAME
gl_MODULE_INDICATOR([tempname])
Makefile.am:
lib_SOURCES += tempname.c
Include:
"tempname.h"
Link:
$(LIB_GETRANDOM)
$(LIB_CLOCK_GETTIME)
License:
LGPLv2+
Maintainer:
Eric Blake and Jim Meyering