File:  [DVB] / dietlibc / dietfeatures.h
Revision 1.21: download - view: text, annotated - select for diffs
Wed May 23 14:57:32 2001 UTC (23 years ago) by fefe
Branches: MAIN
CVS tags: HEAD
add getserv*.
the dns routines can now optionally (WANT_FULL_RESOLV_CONF) try
to append the different domains from /etc/resolv.conf.

#ifndef _DIETFEATURES_H
#define _DIETFEATURES_H

/* feel free to comment some of these out to reduce code size */

#define WANT_FLOATING_POINT_IN_PRINTF
#define WANT_FLOATING_POINT_IN_SCANF
#define WANT_CHARACTER_CLASSES_IN_SCANF
#define WANT_NULL_PRINTF

/* 128 or 2048 bytes buffer size? */
/* #define WANT_SMALL_STDIO_BUFS */

/* #define SLASH_PROC_OK */

#define WANT_BUFFERED_STDIO

/* use errno_location instead of errno */
#define WANT_THREAD_SAFE

/* make the startcode, etc. dynamic aware */
/* #undef WANT_DYNAMIC */

/* do you want smaller or faster string routines? */
/* #define WANT_FASTER_STRING_ROUTINES */

/* read the comment in lib/strncat.c for an explanation */
/* #define WANT_NON_COMPLIANT_STRNCAT */

/* strsep, according to the Linux man page, when called on "foo,bar"
 * with separator ",", should return "foo" and then NULL.  glibc,
 * however, returns "foo", then "bar", and then NULL.  The man page
 * behaviour breaks openssh, so you might want to have glibc behaviour. */
#define WANT_BUGGY_GLIBC_STRSEP

/* do you want ungetc?  makes fgetc more complex */
#define WANT_UNGETC

#define WANT_LINKER_WARNINGS

/* you need to define this if you want to run your programs with large
 * file support on kernel 2.2 or 2.4 */
#define WANT_LARGEFILE_BACKCOMPAT

/* do you want localtime(3) to read /etc/localtime?
 * Needed for daylight saving time etc. */
#define WANT_TZFILE_PARSER

/* do you want the DNS routines to parse and use "domain" and "search"
 * lines from /etc/resolv.conf?  Normally not used on boot floppies and
 * embedded environments. */
#define WANT_FULL_RESOLV_CONF

/* stop uncommenting here ;-) */
#ifndef WANT_FASTER_STRING_ROUTINES
#define WANT_SMALL_STRING_ROUTINES
#endif

#endif

LinuxTV legacy CVS <linuxtv.org/cvs>