xref: /haiku/headers/compatibility/bsd/stdlib.h (revision dd2a1e350b303b855a50fd64e6cb55618be1ae6a)
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 long long	strtonum(const char *numstr, long long minval,
31 				long long maxval, const char **errstrp);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 
38 #endif
39 
40 
41 #endif	/* _BSD_STDLIB_H_ */
42