xref: /minix/minix/llvm/include/common/util/util_def.h (revision 00b67f09)
1 
2 #ifndef _GNU_SOURCE
3 #define _GNU_SOURCE 1
4 #endif
5 
6 #ifndef __USE_GNU
7 #define __USE_GNU 1
8 #endif
9 
10 #ifndef UNIX_PATH_MAX
11 #define UNIX_PATH_MAX 108
12 #endif
13 
14 #ifndef PAGE_SIZE
15 #define PAGE_SIZE	4096
16 #endif
17 
18 #ifndef MIN_MMAP_ADDR
19 #define MIN_MMAP_ADDR   ((void*)(PAGE_SIZE*100))
20 #endif
21 
22 #ifndef _UTIL_PRINTF
23 #define _UTIL_PRINTF              printf
24 #endif
25 
26 #ifndef _UTIL_PTHREAD_CREATE
27 #define _UTIL_PTHREAD_CREATE      pthread_create
28 #endif
29 
30 #ifndef _UTIL_PTHREAD_JOIN
31 #define _UTIL_PTHREAD_JOIN        pthread_join
32 #endif
33 
34 #ifndef _UTIL_PTHREAD_CANCEL
35 #define _UTIL_PTHREAD_CANCEL      pthread_cancel
36 #endif
37 
38 #ifndef _UTIL_PTHREAD_SIGMASK
39 #define _UTIL_PTHREAD_SIGMASK     pthread_sigmask
40 #endif
41 
42 #ifndef _UTIL_MALLOC
43 #define _UTIL_MALLOC              malloc
44 #endif
45 
46 #ifndef _UTIL_CALLOC
47 #define _UTIL_CALLOC              calloc
48 #endif
49 
50 #ifndef _UTIL_FREE
51 #define _UTIL_FREE                free
52 #endif
53 
54