]> git.saurik.com Git - apple/xnu.git/blame - osfmk/libsa/stdlib.h
xnu-792.24.17.tar.gz
[apple/xnu.git] / osfmk / libsa / stdlib.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
6601e61a 4 * @APPLE_LICENSE_HEADER_START@
1c79356b 5 *
6601e61a
A
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
8f6c56a5 11 *
6601e61a
A
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
8f6c56a5
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
6601e61a
A
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
8f6c56a5 19 *
6601e61a 20 * @APPLE_LICENSE_HEADER_END@
1c79356b
A
21 */
22/*
23 * @OSF_COPYRIGHT@
24 *
25 */
26/*
27 * HISTORY
28 *
29 * Revision 1.1.1.1 1998/09/22 21:05:51 wsanchez
30 * Import of Mac OS X kernel (~semeria)
31 *
32 * Revision 1.1.1.1 1998/03/07 02:25:35 wsanchez
33 * Import of OSF Mach kernel (~mburg)
34 *
35 * Revision 1.1.4.1 1997/02/21 15:43:19 barbou
36 * Removed "size_t" definition, include "types.h" instead.
37 * [1997/02/21 15:36:24 barbou]
38 *
39 * Revision 1.1.2.3 1996/09/30 10:14:34 bruel
40 * Added strtol and strtoul prototypes.
41 * [96/09/30 bruel]
42 *
43 * Revision 1.1.2.2 1996/09/23 15:06:22 bruel
44 * removed bzero and bcopy definitions.
45 * [96/09/23 bruel]
46 *
47 * Revision 1.1.2.1 1996/09/17 16:56:24 bruel
48 * created from standalone mach servers.
49 * [96/09/17 bruel]
50 *
51 * $EndLog$
52 */
53
54#ifndef _MACH_STDLIB_H_
55#define _MACH_STDLIB_H_
56
57#include <types.h>
58
59#ifndef NULL
60#define NULL (void *)0
61#endif
62
63extern int atoi(const char *);
64
65extern void free(void *);
66extern void *malloc(size_t);
67extern void *realloc(void *, size_t);
68
69extern char *getenv(const char *);
70
71extern void exit(int);
72
73extern long int strtol (const char *, char **, int);
74extern unsigned long int strtoul (const char *, char **, int);
75
76#endif /* _MACH_STDLIB_H_ */