Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include add mkostemp{s,} mkstemps from FreeBSD
details: https://anonhg.NetBSD.org/src/rev/5b10e559deea
branches: trunk
changeset: 796799:5b10e559deea
user: christos <christos%NetBSD.org@localhost>
date: Wed Jun 18 17:48:22 2014 +0000
description:
add mkostemp{s,} mkstemps from FreeBSD
diffstat:
include/stdlib.h | 4 +++-
include/unistd.h | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 59fd897c741d -r 5b10e559deea include/stdlib.h
--- a/include/stdlib.h Wed Jun 18 17:47:58 2014 +0000
+++ b/include/stdlib.h Wed Jun 18 17:48:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.109 2014/06/12 18:49:37 christos Exp $ */
+/* $NetBSD: stdlib.h,v 1.110 2014/06/18 17:48:22 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -182,6 +182,8 @@
#endif
#ifdef _NETBSD_SOURCE
#define RANDOM_MAX 0x7fffffff /* (((long)1 << 31) - 1) */
+int mkostemp(char *, int);
+int mkostemps(char *, int, int);
#endif
char *mkdtemp(char *);
diff -r 59fd897c741d -r 5b10e559deea include/unistd.h
--- a/include/unistd.h Wed Jun 18 17:47:58 2014 +0000
+++ b/include/unistd.h Wed Jun 18 17:48:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unistd.h,v 1.140 2014/01/02 23:33:50 christos Exp $ */
+/* $NetBSD: unistd.h,v 1.141 2014/06/18 17:48:22 christos Exp $ */
/*-
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -353,6 +353,7 @@
int initgroups(const char *, gid_t);
int iruserok(uint32_t, int, const char *, const char *);
int issetugid(void);
+int mkstemps(char *, int);
int nfssvc(int, void *);
int pipe2(int *, int);
int profil(char *, size_t, u_long, u_int);
Home |
Main Index |
Thread Index |
Old Index