Last change
on this file was 3809, checked in by bird, 11 years ago |
0.6: s/const/const/g - just use the (now) standard 'const' everywhere in emx and kLIBC code. Avoid changing external code too much. fixes #279.
|
-
Property cvs2svn:cvs-rev
set to
1.8
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | /* malloc.h,v 1.7 2004/09/14 22:27:34 bird Exp */
|
---|
2 | /** @file
|
---|
3 | * EMX
|
---|
4 | * @todo Merge with stdlib.h.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef _MALLOC_H
|
---|
8 | #define _MALLOC_H
|
---|
9 |
|
---|
10 | #include <sys/cdefs.h>
|
---|
11 | #include <sys/_types.h>
|
---|
12 |
|
---|
13 | #if defined (__cplusplus)
|
---|
14 | extern "C" {
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | #if !defined (_SIZE_T) && !defined (_SIZE_T_DECLARED)
|
---|
18 | #define _SIZE_T
|
---|
19 | #define _SIZE_T_DECLARED
|
---|
20 | typedef __size_t size_t;
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #if !defined (NULL)
|
---|
24 | #if defined (__cplusplus)
|
---|
25 | #define NULL 0
|
---|
26 | #else
|
---|
27 | #define NULL ((void *)0)
|
---|
28 | #endif
|
---|
29 | #endif
|
---|
30 |
|
---|
31 |
|
---|
32 | void *calloc (size_t, size_t);
|
---|
33 | void free (void *);
|
---|
34 | void *malloc (size_t);
|
---|
35 | void *realloc (void *, size_t);
|
---|
36 |
|
---|
37 |
|
---|
38 | #if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) || defined (_WITH_UNDERSCORE) || defined(__USE_EMX)
|
---|
39 |
|
---|
40 | #if !defined (_HEAPOK)
|
---|
41 | #define _HEAPOK 0
|
---|
42 | #define _HEAPEMPTY 1
|
---|
43 | #define _HEAPBADBEGIN 2
|
---|
44 | #define _HEAPBADNODE 3
|
---|
45 | #define _HEAPBADEND 4
|
---|
46 | #define _HEAPBADROVER 5
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | void *_tcalloc (size_t, size_t);
|
---|
50 | void _tfree (void *);
|
---|
51 | int _theapmin (void);
|
---|
52 | void *_tmalloc (size_t);
|
---|
53 | void *_trealloc (void *, size_t);
|
---|
54 |
|
---|
55 | void *_expand (void *, size_t);
|
---|
56 | int _heapchk (void);
|
---|
57 | int _heapmin (void);
|
---|
58 | int _heapset (unsigned);
|
---|
59 | int _heap_walk (int (*)(const void *, size_t, int, int,
|
---|
60 | const char *, size_t));
|
---|
61 | size_t _msize (const void *);
|
---|
62 |
|
---|
63 | #endif
|
---|
64 |
|
---|
65 | void *valloc(size_t);
|
---|
66 | void *memalign(size_t, size_t);
|
---|
67 |
|
---|
68 | #if defined (__cplusplus)
|
---|
69 | }
|
---|
70 | #endif
|
---|
71 |
|
---|
72 | #endif /* not _MALLOC_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.