Module Name: src Committed By: christos Date: Wed Jun 18 17:48:22 UTC 2014
Modified Files: src/include: stdlib.h unistd.h Log Message: add mkostemp{s,} mkstemps from FreeBSD To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/include/stdlib.h cvs rdiff -u -r1.140 -r1.141 src/include/unistd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/stdlib.h diff -u src/include/stdlib.h:1.109 src/include/stdlib.h:1.110 --- src/include/stdlib.h:1.109 Thu Jun 12 14:49:37 2014 +++ src/include/stdlib.h Wed Jun 18 13:48:22 2014 @@ -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 @@ void srandom(unsigned int) __RENAME(__s #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 *); Index: src/include/unistd.h diff -u src/include/unistd.h:1.140 src/include/unistd.h:1.141 --- src/include/unistd.h:1.140 Thu Jan 2 18:33:50 2014 +++ src/include/unistd.h Wed Jun 18 13:48:22 2014 @@ -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 @@ __aconst char *getusershell(void); 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);