chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / include / klibc / sysconfig.h
1 /*
2  * klibc/sysconfig.h
3  *
4  * Allows for definitions of some things which may be system-dependent
5  */
6
7 #ifndef _KLIBC_SYSCONFIG_H
8 #define _KLIBC_SYSCONFIG_H
9
10 /*
11  * Define this to obtain memory using sbrk() instead
12  * of mmap().  This should make it friendlier on
13  * non-MMU architectures.  This should become a
14  * per-architecture configurable.
15  */
16 #undef MALLOC_USING_SBRK
17
18 /*
19  * This is the minimum chunk size we will ask the kernel for using
20  * malloc(); this should be a multiple of the page size on all
21  * architectures.
22  */
23 #define MALLOC_CHUNK_SIZE       65536
24 #define MALLOC_CHUNK_MASK       (MALLOC_CHUNK_SIZE-1)
25
26 /*
27  * This is the minimum alignment for the memory returned by sbrk().
28  * It must be a power of 2.  If MALLOC_USING_SBRK is defined it should
29  * be no smaller than the size of struct arena_header in malloc.h (4
30  * pointers.)
31  */
32 #define SBRK_ALIGNMENT          32
33
34 #endif /* _KLIBC_SYSCONFIG_H */