Deleted Added
full compact
stdlib.h (313970) stdlib.h (315282)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)stdlib.h 8.5 (Berkeley) 5/19/95
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)stdlib.h 8.5 (Berkeley) 5/19/95
30 * $FreeBSD: stable/11/include/stdlib.h 313970 2017-02-19 21:08:10Z pfg $
30 * $FreeBSD: stable/11/include/stdlib.h 315282 2017-03-14 20:14:57Z pfg $
31 */
32
33#ifndef _STDLIB_H_
34#define _STDLIB_H_
35
36#include <sys/cdefs.h>
37#include <sys/_null.h>
38#include <sys/_types.h>
39
31 */
32
33#ifndef _STDLIB_H_
34#define _STDLIB_H_
35
36#include <sys/cdefs.h>
37#include <sys/_null.h>
38#include <sys/_types.h>
39
40__NULLABILITY_PRAGMA_PUSH
41
40#if __BSD_VISIBLE
41#ifndef _RUNE_T_DECLARED
42typedef __rune_t rune_t;
43#define _RUNE_T_DECLARED
44#endif
45#endif
46
47#ifndef _SIZE_T_DECLARED

--- 28 unchanged lines hidden (view full) ---

76#include <xlocale/_stdlib.h>
77#endif
78extern int __mb_cur_max;
79extern int ___mb_cur_max(void);
80#define MB_CUR_MAX (___mb_cur_max())
81
82_Noreturn void abort(void);
83int abs(int) __pure2;
42#if __BSD_VISIBLE
43#ifndef _RUNE_T_DECLARED
44typedef __rune_t rune_t;
45#define _RUNE_T_DECLARED
46#endif
47#endif
48
49#ifndef _SIZE_T_DECLARED

--- 28 unchanged lines hidden (view full) ---

78#include <xlocale/_stdlib.h>
79#endif
80extern int __mb_cur_max;
81extern int ___mb_cur_max(void);
82#define MB_CUR_MAX (___mb_cur_max())
83
84_Noreturn void abort(void);
85int abs(int) __pure2;
84int atexit(void (*)(void));
86int atexit(void (* _Nonnull)(void));
85double atof(const char *);
86int atoi(const char *);
87long atol(const char *);
88void *bsearch(const void *, const void *, size_t,
87double atof(const char *);
88int atoi(const char *);
89long atol(const char *);
90void *bsearch(const void *, const void *, size_t,
89 size_t, int (*)(const void *, const void *));
91 size_t, int (*)(const void * _Nonnull, const void *));
90void *calloc(size_t, size_t) __malloc_like __result_use_check
91 __alloc_size(1) __alloc_size(2);
92div_t div(int, int) __pure2;
93_Noreturn void exit(int);
94void free(void *);
95char *getenv(const char *);
96long labs(long) __pure2;
97ldiv_t ldiv(long, long) __pure2;
98void *malloc(size_t) __malloc_like __result_use_check __alloc_size(1);
99int mblen(const char *, size_t);
100size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t);
101int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
102void qsort(void *, size_t, size_t,
92void *calloc(size_t, size_t) __malloc_like __result_use_check
93 __alloc_size(1) __alloc_size(2);
94div_t div(int, int) __pure2;
95_Noreturn void exit(int);
96void free(void *);
97char *getenv(const char *);
98long labs(long) __pure2;
99ldiv_t ldiv(long, long) __pure2;
100void *malloc(size_t) __malloc_like __result_use_check __alloc_size(1);
101int mblen(const char *, size_t);
102size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t);
103int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
104void qsort(void *, size_t, size_t,
103 int (*)(const void *, const void *));
105 int (* _Nonnull)(const void *, const void *));
104int rand(void);
105void *realloc(void *, size_t) __result_use_check __alloc_size(2);
106void srand(unsigned);
107double strtod(const char * __restrict, char ** __restrict);
108float strtof(const char * __restrict, char ** __restrict);
109long strtol(const char * __restrict, char ** __restrict, int);
110long double
111 strtold(const char * __restrict, char ** __restrict);

--- 143 unchanged lines hidden (view full) ---

255__uint32_t
256 arc4random(void);
257void arc4random_addrandom(unsigned char *, int);
258void arc4random_buf(void *, size_t);
259void arc4random_stir(void);
260__uint32_t
261 arc4random_uniform(__uint32_t);
262#ifdef __BLOCKS__
106int rand(void);
107void *realloc(void *, size_t) __result_use_check __alloc_size(2);
108void srand(unsigned);
109double strtod(const char * __restrict, char ** __restrict);
110float strtof(const char * __restrict, char ** __restrict);
111long strtol(const char * __restrict, char ** __restrict, int);
112long double
113 strtold(const char * __restrict, char ** __restrict);

--- 143 unchanged lines hidden (view full) ---

257__uint32_t
258 arc4random(void);
259void arc4random_addrandom(unsigned char *, int);
260void arc4random_buf(void *, size_t);
261void arc4random_stir(void);
262__uint32_t
263 arc4random_uniform(__uint32_t);
264#ifdef __BLOCKS__
263int atexit_b(void (^)(void));
265int atexit_b(void (^ _Nonnull)(void));
264void *bsearch_b(const void *, const void *, size_t,
266void *bsearch_b(const void *, const void *, size_t,
265 size_t, int (^)(const void *, const void *));
267 size_t, int (^ _Nonnull)(const void *, const void *));
266#endif
267char *getbsize(int *, long *);
268 /* getcap(3) functions */
269char *cgetcap(char *, const char *, int);
270int cgetclose(void);
271int cgetent(char **, char **, const char *);
272int cgetfirst(char **, char **);
273int cgetmatch(const char *, const char *);

--- 7 unchanged lines hidden (view full) ---

281char *devname(__dev_t, __mode_t);
282char *devname_r(__dev_t, __mode_t, char *, int);
283char *fdevname(int);
284char *fdevname_r(int, char *, int);
285int getloadavg(double [], int);
286const char *
287 getprogname(void);
288
268#endif
269char *getbsize(int *, long *);
270 /* getcap(3) functions */
271char *cgetcap(char *, const char *, int);
272int cgetclose(void);
273int cgetent(char **, char **, const char *);
274int cgetfirst(char **, char **);
275int cgetmatch(const char *, const char *);

--- 7 unchanged lines hidden (view full) ---

283char *devname(__dev_t, __mode_t);
284char *devname_r(__dev_t, __mode_t, char *, int);
285char *fdevname(int);
286char *fdevname_r(int, char *, int);
287int getloadavg(double [], int);
288const char *
289 getprogname(void);
290
289int heapsort(void *, size_t, size_t, int (*)(const void *, const void *));
291int heapsort(void *, size_t, size_t,
292 int (* _Nonnull)(const void *, const void *));
290#ifdef __BLOCKS__
293#ifdef __BLOCKS__
291int heapsort_b(void *, size_t, size_t, int (^)(const void *, const void *));
294int heapsort_b(void *, size_t, size_t,
295 int (^ _Nonnull)(const void *, const void *));
292void qsort_b(void *, size_t, size_t,
296void qsort_b(void *, size_t, size_t,
293 int (^)(const void *, const void *));
297 int (^ _Nonnull)(const void *, const void *));
294#endif
295int l64a_r(long, char *, int);
296int mergesort(void *, size_t, size_t, int (*)(const void *, const void *));
297#ifdef __BLOCKS__
298int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *));
299#endif
300int mkostemp(char *, int);
301int mkostemps(char *, int, int);

--- 17 unchanged lines hidden (view full) ---

319__int64_t
320 strtoq(const char *, char **, int);
321__uint64_t
322 strtouq(const char *, char **, int);
323
324extern char *suboptarg; /* getsubopt(3) external variable */
325#endif /* __BSD_VISIBLE */
326__END_DECLS
298#endif
299int l64a_r(long, char *, int);
300int mergesort(void *, size_t, size_t, int (*)(const void *, const void *));
301#ifdef __BLOCKS__
302int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *));
303#endif
304int mkostemp(char *, int);
305int mkostemps(char *, int, int);

--- 17 unchanged lines hidden (view full) ---

323__int64_t
324 strtoq(const char *, char **, int);
325__uint64_t
326 strtouq(const char *, char **, int);
327
328extern char *suboptarg; /* getsubopt(3) external variable */
329#endif /* __BSD_VISIBLE */
330__END_DECLS
331__NULLABILITY_PRAGMA_POP
327
328#endif /* !_STDLIB_H_ */
332
333#endif /* !_STDLIB_H_ */