summaryrefslogtreecommitdiff
path: root/libc/stdio/tmpnam_r.c
AgeCommit message (Collapse)Author
2015-08-14add mkstemps, mkstemps64 and mkostemps, mkostemps64 functionsRomain Naour
Change __gen_tempname() prototype in order to pass the additional suffix lenght. In __gen_tempname() add a new check for suffixlen. Update some comments in the code. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
2015-04-12remove more of the link_warningsWaldemar Brodkorb
Only the stub warnings left for now.
2014-12-10mkostemp: fix implementationAnthony G. Basile
mkostemp(char *template, int flags) generates a unique temporary filename from a template. The flags parameter accepts three of the same flags as open(2): O_APPEND, O_CLOEXEC, and O_SYNC. The current implementation of mkostemp(3) does not respect the flags and in fact confuses the flags with the file mode which should always be S_IRUSR | S_IWUSR. This patch corrects this issue. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18Replace FSF snail mail address with URLsMike Frysinger
This matches a similar change made to glibc. No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-29tmpnam, tempnam are obsolete in SUSV4Bernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-11-09Extend __gen_tempname with mode argumentMikhail Gusarov
sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2002-04-01Remove function declartions from include/features.h, createEric Andersen
a separate header file for those, and fixup references. -Erik
2002-03-31Rework __gen_tempname() to better match glibc, and add mkstemp64(),Eric Andersen
which is needed for busybox ash when using largefile support. -Erik
2001-04-18Update temp file handling and use a single function to do allEric Andersen
the heavy lifting (most of the heavy lifting stolen from glibc, but reduced a bit).
2000-11-15Add in tmpnam() support from David Whedon <dwhedon@gordian.com>,Eric Andersen
rework include/stdio.h, and fix up the resultant damage.