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
18extern "C" {
19#endif
20
21int			daemon(int noChangeDir, int noClose);
22const char	*getprogname(void);
23void		setprogname(const char *programName);
24uint32_t	arc4random(void);
25void		arc4random_buf(void *buf, size_t nbytes);
26uint32_t	arc4random_uniform(uint32_t upper_bound);
27
28int			mkstemps(char *templat, int slen);
29
30long 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