Annotation of dietlibc/dietfeatures.h, revision 1.35
1.4 fefe 1: #ifndef _DIETFEATURES_H
2: #define _DIETFEATURES_H
1.1 cvs 3:
4: /* feel free to comment some of these out to reduce code size */
5:
1.13 fefe 6: #define WANT_FLOATING_POINT_IN_PRINTF
7: #define WANT_FLOATING_POINT_IN_SCANF
1.12 fefe 8: #define WANT_CHARACTER_CLASSES_IN_SCANF
1.1 cvs 9: #define WANT_NULL_PRINTF
1.24 fefe 10: #define WANT_LONGLONG_PRINTF
1.1 cvs 11:
1.20 fefe 12: /* 128 or 2048 bytes buffer size? */
13: /* #define WANT_SMALL_STDIO_BUFS */
14:
1.34 fefe 15: /* this is only for meaningful for ttyname and sysconf_cpus so far */
1.28 fefe 16: #define SLASH_PROC_OK 1
1.1 cvs 17:
18: /* use errno_location instead of errno */
1.20 fefe 19: #define WANT_THREAD_SAFE
1.1 cvs 20:
1.35 ! olaf 21: /* make the startcode, etc. dynamic aware ({con,de}structors) */
1.2 fefe 22: /* #undef WANT_DYNAMIC */
1.1 cvs 23:
24: /* do you want smaller or faster string routines? */
1.2 fefe 25: /* #define WANT_FASTER_STRING_ROUTINES */
1.1 cvs 26:
1.16 fefe 27: /* read the comment in lib/strncat.c for an explanation */
1.17 fefe 28: /* #define WANT_NON_COMPLIANT_STRNCAT */
1.16 fefe 29:
1.18 fefe 30: /* strsep, according to the Linux man page, when called on "foo,bar"
31: * with separator ",", should return "foo" and then NULL. glibc,
32: * however, returns "foo", then "bar", and then NULL. The man page
33: * behaviour breaks openssh, so you might want to have glibc behaviour. */
34: #define WANT_BUGGY_GLIBC_STRSEP
1.5 fefe 35:
1.4 fefe 36: #define WANT_LINKER_WARNINGS
37:
1.7 fefe 38: /* you need to define this if you want to run your programs with large
1.31 fefe 39: * file support on kernel 2.2 or 2.0 */
1.7 fefe 40: #define WANT_LARGEFILE_BACKCOMPAT
41:
1.8 fefe 42: /* do you want localtime(3) to read /etc/localtime?
43: * Needed for daylight saving time etc. */
44: #define WANT_TZFILE_PARSER
1.1 cvs 45:
1.21 fefe 46: /* do you want the DNS routines to parse and use "domain" and "search"
47: * lines from /etc/resolv.conf? Normally not used on boot floppies and
48: * embedded environments. */
49: #define WANT_FULL_RESOLV_CONF
50:
1.27 fefe 51: /* do you want gethostbyname and friends to consult /etc/hosts? */
52: #define WANT_ETC_HOSTS
53:
1.29 fefe 54: /* do you want math functions high precision rather than fast/small? */
55: #define WANT_HIGH_PRECISION_MATH
56:
57: /* do you want support for matherr? */
58: #define WANT_MATHERR
59:
1.30 fefe 60: /* do you want crypt(3) to use MD5 if the salt starts with "$1$"? */
61: #define WANT_CRYPT_MD5
62:
1.32 fefe 63: /* do you want diet to include a safeguard dependency to make linking
64: * against glibc fail? */
65: #define WANT_SAFEGUARD
66:
1.1 cvs 67: /* stop uncommenting here ;-) */
68: #ifndef WANT_FASTER_STRING_ROUTINES
69: #define WANT_SMALL_STRING_ROUTINES
1.4 fefe 70: #endif
71:
1.22 fefe 72: #ifdef WANT_THREAD_SAFE
73: #define errno (*__errno_location())
1.23 fefe 74: #define _REENTRANT
1.22 fefe 75: #endif
76:
1.33 olaf 77: #ifdef __DYN_LIB
1.35 ! olaf 78: /* with sahred libraries you MUST have a dynamic aware startcode */
1.33 olaf 79: #ifndef WANT_DYNAMIC
80: #define WANT_DYNAMIC
1.35 ! olaf 81: #endif
! 82: /* saveguard crashes with shared objects ... */
! 83: #ifdef WANT_SAFEGUARD
! 84: #undef WANT_SAFEGUARD
1.33 olaf 85: #endif
86: #endif
87:
1.1 cvs 88: #endif
LinuxTV legacy CVS <linuxtv.org/cvs>