Annotation of dietlibc/dietfeatures.h, revision 1.40

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.40    ! fefe       15: /* want fread to read() directly if size of data is larger than buffer?
        !            16:  * This costs a few bytes but is worth it if the application is already
        !            17:  * buffering. */
        !            18: #define WANT_FREAD_OPTIMIZATION
        !            19: 
1.34      fefe       20: /* this is only for meaningful for ttyname and sysconf_cpus so far */
1.40    ! fefe       21: #define SLASH_PROC_OK
1.1       cvs        22: 
                     23: /* use errno_location instead of errno */
1.20      fefe       24: #define WANT_THREAD_SAFE
1.1       cvs        25: 
1.35      olaf       26: /* make the startcode, etc. dynamic aware ({con,de}structors) */
1.38      olaf       27: /* #define WANT_DYNAMIC */
1.1       cvs        28: 
                     29: /* do you want smaller or faster string routines? */
1.2       fefe       30: /* #define WANT_FASTER_STRING_ROUTINES */
1.1       cvs        31: 
1.16      fefe       32: /* read the comment in lib/strncat.c for an explanation */
1.17      fefe       33: /* #define WANT_NON_COMPLIANT_STRNCAT */
1.16      fefe       34: 
1.18      fefe       35: /* strsep, according to the Linux man page, when called on "foo,bar"
                     36:  * with separator ",", should return "foo" and then NULL.  glibc,
                     37:  * however, returns "foo", then "bar", and then NULL.  The man page
                     38:  * behaviour breaks openssh, so you might want to have glibc behaviour. */
                     39: #define WANT_BUGGY_GLIBC_STRSEP
1.5       fefe       40: 
1.4       fefe       41: #define WANT_LINKER_WARNINGS
                     42: 
1.7       fefe       43: /* you need to define this if you want to run your programs with large
1.31      fefe       44:  * file support on kernel 2.2 or 2.0 */
1.7       fefe       45: #define WANT_LARGEFILE_BACKCOMPAT
                     46: 
1.8       fefe       47: /* do you want localtime(3) to read /etc/localtime?
                     48:  * Needed for daylight saving time etc. */
                     49: #define WANT_TZFILE_PARSER
1.1       cvs        50: 
1.21      fefe       51: /* do you want the DNS routines to parse and use "domain" and "search"
                     52:  * lines from /etc/resolv.conf?  Normally not used on boot floppies and
                     53:  * embedded environments. */
                     54: #define WANT_FULL_RESOLV_CONF
                     55: 
1.27      fefe       56: /* do you want gethostbyname and friends to consult /etc/hosts? */
                     57: #define WANT_ETC_HOSTS
                     58: 
1.29      fefe       59: /* do you want math functions high precision rather than fast/small? */
                     60: #define WANT_HIGH_PRECISION_MATH
                     61: 
                     62: /* do you want support for matherr? */
                     63: #define WANT_MATHERR
                     64: 
1.30      fefe       65: /* do you want crypt(3) to use MD5 if the salt starts with "$1$"? */
                     66: #define WANT_CRYPT_MD5
                     67: 
1.32      fefe       68: /* do you want diet to include a safeguard dependency to make linking
                     69:  * against glibc fail? */
                     70: #define WANT_SAFEGUARD
1.38      olaf       71: 
                     72: /* dy you want that malloc(0) return a pointer to a "zero-length" object
                     73:  * that is realloc-able; means realloc(..,size) gives a NEW object (like a
                     74:  * call to malloc(size)).
                     75:  * WARNING: this violates C99 */
                     76: /* #define WANT_MALLOC_ZERO */
                     77: 
1.32      fefe       78: 
1.1       cvs        79: /* stop uncommenting here ;-) */
                     80: #ifndef WANT_FASTER_STRING_ROUTINES
                     81: #define WANT_SMALL_STRING_ROUTINES
1.4       fefe       82: #endif
                     83: 
1.22      fefe       84: #ifdef WANT_THREAD_SAFE
                     85: #define errno (*__errno_location())
1.23      fefe       86: #define _REENTRANT
1.22      fefe       87: #endif
                     88: 
1.33      olaf       89: #ifdef __DYN_LIB
1.39      olaf       90: /* with shared libraries you MUST have a dynamic aware startcode */
1.33      olaf       91: #ifndef WANT_DYNAMIC
                     92: #define WANT_DYNAMIC
1.35      olaf       93: #endif
                     94: /* saveguard crashes with shared objects ... */
                     95: #ifdef WANT_SAFEGUARD
                     96: #undef WANT_SAFEGUARD
1.33      olaf       97: #endif
                     98: #endif
                     99: 
1.1       cvs       100: #endif

LinuxTV legacy CVS <linuxtv.org/cvs>