summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r--lib/libc/stdio/mktemp.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index afe3f2d..bc4c928 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -32,7 +32,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -40,12 +44,13 @@ static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
-#include <unistd.h>
#include <ctype.h>
+#include <unistd.h>
static int _gettemp(char *, int *);
-int mkstemp(path)
+int
+mkstemp(path)
char *path;
{
int fd;
@@ -60,8 +65,8 @@ mktemp(path)
return(_gettemp(path, (int *)NULL) ? path : (char *)NULL);
}
-static
-int _gettemp(path, doopen)
+static int
+_gettemp(path, doopen)
char *path;
register int *doopen;
{
OpenPOWER on IntegriCloud