doc
c_lib.h
Go to the documentation of this file.
1 /*
2  * cynapses libc functions
3  *
4  * Copyright (c) 2008-2013 by Andreas Schneider <asn@cryptomilk.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include <stdlib.h>
22 #include <string.h>
23 
24 #include "c_macro.h"
25 #include "c_alloc.h"
26 #include "c_dir.h"
27 #include "c_file.h"
28 #include "c_list.h"
29 #include "c_path.h"
30 #include "c_rbtree.h"
31 #include "c_string.h"
32 #include "c_time.h"
33 #include "c_private.h"
34 
35 #ifdef malloc
36 #undef malloc
37 #endif
38 #define malloc(x) DO_NOT_CALL_MALLOC__USE_C_MALLOC_INSTEAD
39 
40 #ifdef calloc
41 #undef calloc
42 #endif
43 #define calloc(x,y) DO_NOT_CALL_CALLOC__USE_C_CALLOC_INSTEAD
44 
45 #ifdef realloc
46 #undef realloc
47 #endif
48 #define realloc(x,y) DO_NOT_CALL_REALLOC__USE_C_REALLOC_INSTEAD
49 
50 #ifdef dirname
51 #undef dirname
52 #endif
53 #define dirname(x) DO_NOT_CALL_MALLOC__USE_C_DIRNAME_INSTEAD
54 
55 #ifdef basename
56 #undef basename
57 #endif
58 #define basename(x) DO_NOT_CALL_MALLOC__USE_C_BASENAME_INSTEAD
59 
60 #ifdef strdup
61 #undef strdup
62 #endif
63 #define strdup(x) DO_NOT_CALL_STRDUP__USE_C_STRDUP_INSTEAD
64 
Interface of the cynapses libc directory function.
cynapses libc macro definitions
Interface of the cynapses libc alloc function.
c_list – a doubly-linked list.
Interface of the cynapses libc red-black tree implementation.
Interface of the cynapses libc file function.
Interface of the cynapses libc path functions.
Interface of the cynapses string implementations.