summaryrefslogtreecommitdiffstats
path: root/libc/stdio/tmpnam.c
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2009-11-08 02:33:15 +0600
committerAustin Foxley <austinf@cetoncorp.com>2009-11-09 14:39:02 -0800
commit7c5a18c19270347359fc14048900dadb45096817 (patch)
tree0dfa0d0733532d4c7342b32a12d1d34524197b9c /libc/stdio/tmpnam.c
parent1d6f1b7c404c0929ebf6c5ef78185709de78e3a3 (diff)
downloaduClibc-alpine-7c5a18c19270347359fc14048900dadb45096817.tar.bz2
uClibc-alpine-7c5a18c19270347359fc14048900dadb45096817.tar.xz
Extend __gen_tempname with mode argument
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>
Diffstat (limited to 'libc/stdio/tmpnam.c')
-rw-r--r--libc/stdio/tmpnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/tmpnam.c b/libc/stdio/tmpnam.c
index 1f180e08a..323105ba4 100644
--- a/libc/stdio/tmpnam.c
+++ b/libc/stdio/tmpnam.c
@@ -41,7 +41,7 @@ tmpnam (char *s)
0))
return NULL;
- if (__builtin_expect (__gen_tempname (tmpbuf, __GT_NOCREATE), 0))
+ if (__builtin_expect (__gen_tempname (tmpbuf, __GT_NOCREATE, 0), 0))
return NULL;
if (s == NULL)