Deleted Added
full compact
stdlib.h (76653) stdlib.h (86368)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)stdlib.h 8.5 (Berkeley) 5/19/95
34 * $FreeBSD: head/include/stdlib.h 76653 2001-05-15 23:41:01Z dd $
34 * $FreeBSD: head/include/stdlib.h 86368 2001-11-15 02:05:03Z mike $
35 */
36
37#ifndef _STDLIB_H_
38#define _STDLIB_H_
39
40#include <sys/cdefs.h>
41
42#include <machine/ansi.h>

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

63 int rem; /* remainder */
64} div_t;
65
66typedef struct {
67 long quot; /* quotient */
68 long rem; /* remainder */
69} ldiv_t;
70
35 */
36
37#ifndef _STDLIB_H_
38#define _STDLIB_H_
39
40#include <sys/cdefs.h>
41
42#include <machine/ansi.h>

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

63 int rem; /* remainder */
64} div_t;
65
66typedef struct {
67 long quot; /* quotient */
68 long rem; /* remainder */
69} ldiv_t;
70
71#ifdef __LONG_LONG_SUPPORTED
72typedef struct {
73 long long quot;
74 long long rem;
75} lldiv_t;
76#endif
77
71#ifndef NULL
72#define NULL 0
73#endif
74
75#define EXIT_FAILURE 1
76#define EXIT_SUCCESS 0
77
78#define RAND_MAX 0x7fffffff

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

113int system __P((const char *));
114
115int mblen __P((const char *, size_t));
116size_t mbstowcs __P((wchar_t *, const char *, size_t));
117int wctomb __P((char *, wchar_t));
118int mbtowc __P((wchar_t *, const char *, size_t));
119size_t wcstombs __P((char *, const wchar_t *, size_t));
120
78#ifndef NULL
79#define NULL 0
80#endif
81
82#define EXIT_FAILURE 1
83#define EXIT_SUCCESS 0
84
85#define RAND_MAX 0x7fffffff

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

120int system __P((const char *));
121
122int mblen __P((const char *, size_t));
123size_t mbstowcs __P((wchar_t *, const char *, size_t));
124int wctomb __P((char *, wchar_t));
125int mbtowc __P((wchar_t *, const char *, size_t));
126size_t wcstombs __P((char *, const wchar_t *, size_t));
127
128#ifdef __LONG_LONG_SUPPORTED
129long long
130 llabs __P((long long)) __pure2;
131lldiv_t lldiv __P((long long, long long)) __pure2;
132#endif
133
121#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
122extern char *_malloc_options;
123extern void (*_malloc_message)__P((char *p1, char *p2, char *p3, char *p4));
124
125int putenv __P((const char *));
126int setenv __P((const char *, const char *, int));
127
128double drand48 __P((void));

--- 64 unchanged lines hidden ---
134#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
135extern char *_malloc_options;
136extern void (*_malloc_message)__P((char *p1, char *p2, char *p3, char *p4));
137
138int putenv __P((const char *));
139int setenv __P((const char *, const char *, int));
140
141double drand48 __P((void));

--- 64 unchanged lines hidden ---