xref: /haiku/headers/compatibility/bsd/stdlib.h (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
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 #include <stdint.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 int			daemon(int noChangeDir, int noClose);
22 const char	*getprogname(void);
23 void		setprogname(const char *programName);
24 uint32_t	arc4random(void);
25 void		arc4random_buf(void *buf, size_t nbytes);
26 uint32_t	arc4random_uniform(uint32_t upper_bound);
27 
28 int			mkstemps(char *templat, int slen);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 
35 #endif
36 
37 
38 #endif	/* _BSD_STDLIB_H_ */
39