mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
* gl/modules/tempname (Depends-on): Add randint and stdbool. * gl/lib/tempname.c: Include randint.h and stdbool.h. (uint64_t): Remove definition. Not needed. [_LIBC] (RANDOM_BITS): Remove this block, now that we have proper random bits. (check_x_suffix): New function. (gen_tempname_len): Rename from __gen_tempname. Add a parameter, x_suffix_len, telling how many X's there must be at the end of the template. Use pseudo-random numbers all the way, rather than adding 7777 from one iteration to the next. (__gen_tempname): New function, to call gen_tempname_len, requiring a suffix length of 6. * gl/lib/tempname.h: Add prototype for gen_tempname_len. Signed-off-by: Jim Meyering <meyering@redhat.com>
31 lines
351 B
Plaintext
31 lines
351 B
Plaintext
Description:
|
|
gen_tempname, gen_tempname_len: create a private temporary file or directory.
|
|
|
|
Files:
|
|
lib/tempname.c
|
|
lib/tempname.h
|
|
m4/tempname.m4
|
|
|
|
Depends-on:
|
|
extensions
|
|
gettimeofday
|
|
randint
|
|
stdbool
|
|
stdint
|
|
sys_stat
|
|
sys_time
|
|
|
|
configure.ac:
|
|
gl_FUNC_GEN_TEMPNAME
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
"tempname.h"
|
|
|
|
License:
|
|
LGPL
|
|
|
|
Maintainer:
|
|
Eric Blake and Jim Meyering
|