Cygwin: (mostly) drop NT4 and Samba < 3.0 support
[newlib-cygwin.git] / winsup / cygwin / local_includes / cygheap_malloc.h
blob6950e8265ce7609920fd712f809b95f4580d5794
1 /* cygheap_malloc.h: Cygwin heap manager allocation functions.
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #ifndef _CYGHEAP_MALLOC_H
10 #define _CYGHEAP_MALLOC_H
12 #undef cfree
14 enum cygheap_types
16 HEAP_FHANDLER,
17 HEAP_STR,
18 HEAP_ARGV,
19 HEAP_BUF,
20 HEAP_MOUNT,
21 HEAP_SIGS,
22 HEAP_ARCHETYPES,
23 HEAP_TLS,
24 HEAP_COMMUNE,
25 HEAP_USER,
26 HEAP_1_START,
27 HEAP_1_HOOK,
28 HEAP_1_STR,
29 HEAP_1_ARGV,
30 HEAP_1_BUF,
31 HEAP_1_EXEC,
32 HEAP_1_MAX = 100,
33 HEAP_2_STR,
34 HEAP_2_DLL,
35 HEAP_MMAP,
36 HEAP_2_MAX = 200,
37 HEAP_3_FHANDLER
40 extern "C" {
41 void cfree (void *);
42 void *cmalloc (cygheap_types, size_t);
43 void *crealloc (void *, size_t);
44 void *ccalloc (cygheap_types, size_t, size_t);
45 void *cmalloc_abort (cygheap_types, size_t);
46 void *crealloc_abort (void *, size_t);
47 void *ccalloc_abort (cygheap_types, size_t, size_t);
48 PWCHAR cwcsdup (PCWSTR);
49 PWCHAR cwcsdup1 (PCWSTR);
50 char *cstrdup (const char *);
51 char *cstrdup1 (const char *);
52 void cfree_and_set (char *&, char * = NULL);
55 #endif /*_CYGHEAP_MALLOC_H*/