From 6cf35f84045f38f067365623886fecff16ca92f9 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 1 Aug 2015 18:31:06 +0200 Subject: add mkstemps, mkstemps64 and mkostemps, mkostemps64 functions 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 Signed-off-by: Waldemar Brodkorb --- libpthread/nptl/sem_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread/nptl') diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c index 3a7207908..5584557ff 100644 --- a/libpthread/nptl/sem_open.c +++ b/libpthread/nptl/sem_open.c @@ -336,7 +336,7 @@ sem_open (const char *name, int oflag, ...) mempcpy (mempcpy (tmpfname, mountpoint.dir, mountpoint.dirlen), "XXXXXX", 7); - fd = __gen_tempname (tmpfname, __GT_FILE, 0, mode); + fd = __gen_tempname (tmpfname, __GT_FILE, 0, 0, mode); if (fd == -1) return SEM_FAILED; -- cgit v1.2.3