1 /* 2 * Copyright 2006-2010 Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BSD_STDLIB_H_ 6 #define _BSD_STDLIB_H_ 7 8 9 #include_next <stdlib.h> 10 #include <features.h> 11 12 13 #ifdef _DEFAULT_SOURCE 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 int daemon(int noChangeDir, int noClose); 21 const char *getprogname(void); 22 void setprogname(const char *programName); 23 24 int mkstemps(char *templat, int slen); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 31 #endif 32 33 34 #endif /* _BSD_STDLIB_H_ */ 35