sioconf.h (xinetd-2.3.15) | : | sioconf.h (xinetd-2.3.15.4.tar.xz) | ||
---|---|---|---|---|
/* | /* | |||
* (c) Copyright 1992, 1993 by Panagiotis Tsirigotis | * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis | |||
* All rights reserved. The file named COPYRIGHT specifies the terms | * All rights reserved. The file named COPYRIGHT specifies the terms | |||
* and conditions for redistribution. | * and conditions for redistribution. | |||
*/ | */ | |||
/* | /* | |||
* $Id: sioconf.h,v 1.3 2003-03-09 19:27:07 steveg Exp $ | * $Id$ | |||
*/ | */ | |||
/* | /* | |||
* This file has 2 sections: | * This file has 2 sections: | |||
* 1. a OS-specific section | * 1. a OS-specific section | |||
* 2. a CPU/compiler-specific section | * 2. a CPU/compiler-specific section | |||
* | * | |||
* You can override/redefine any of the constants/macros in this file. | * You can override/redefine any of the constants/macros in this file. | |||
* by uncommenting the inclusion of customconf.h and placing your own | * by uncommenting the inclusion of customconf.h and placing your own | |||
* definitions in that file. | * definitions in that file. | |||
skipping to change at line 34 | skipping to change at line 34 | |||
* OS-specific section. | * OS-specific section. | |||
* | * | |||
* Features here use the flag HAVE_<feature>. | * Features here use the flag HAVE_<feature>. | |||
* List of flags (check the following for macros that can be overridden): | * List of flags (check the following for macros that can be overridden): | |||
* | * | |||
* HAVE_MMAP (overridable macros) | * HAVE_MMAP (overridable macros) | |||
* | * | |||
* HAVE_ATEXIT | * HAVE_ATEXIT | |||
* HAVE_ONEXIT | * HAVE_ONEXIT | |||
* HAVE_OTHER_FINALIZER (must define macros) | * HAVE_OTHER_FINALIZER (must define macros) | |||
* | ||||
* HAVE_MEMCPY | ||||
* HAVE_BCOPY (HAVE_MEMCPY will be pref | ||||
erred if both are defined) | ||||
* | ||||
* At least one of the following flags must be defined. The 2nd and 3rd | ||||
* flags are incompatible. | ||||
* HAVE_ISATTY | ||||
* HAVE_SYSVTTY | ||||
* HAVE_BSDTTY | ||||
*/ | */ | |||
/* | /* | |||
* Memory mapping. | * Memory mapping. | |||
* The library requires 3 macros: SIO_MMAP, SIO_MUNMAP, SIO_MNEED. | * The library requires 3 macros: SIO_MMAP, SIO_MUNMAP, SIO_MNEED. | |||
* You can selectively override any of them. | * You can selectively override any of them. | |||
* Notice that the SIO_MNEED macro is not required. If your system | * Notice that the SIO_MNEED macro is not required. If your system | |||
* does not have madvise, you can define the macro as: | * does not have madvise, you can define the macro as: | |||
* #define SIO_MNEED( addr, len ) | * #define SIO_MNEED( addr, len ) | |||
*/ | */ | |||
skipping to change at line 134 | skipping to change at line 125 | |||
#endif /* HAVE_ONEXIT */ | #endif /* HAVE_ONEXIT */ | |||
#ifdef HAVE_ATEXIT | #ifdef HAVE_ATEXIT | |||
#define SIO_FINALIZE( func ) ( atexit( func ) == 0 ) | #define SIO_FINALIZE( func ) ( atexit( func ) == 0 ) | |||
#define SIO_DEFINE_FIN( func ) static void func () | #define SIO_DEFINE_FIN( func ) static void func () | |||
#endif /* HAVE_ATEXIT */ | #endif /* HAVE_ATEXIT */ | |||
#endif /* HAVE_ONEXIT || HAVE_ATEXIT || HAVE_FINALIZER */ | #endif /* HAVE_ONEXIT || HAVE_ATEXIT || HAVE_FINALIZER */ | |||
/* | /* | |||
* HAVE_MEMCPY should be defined if your OS supports the mem* functions | ||||
* (memcpy etc). If not, then you can define HAVE_BCOPY if your OS supports | ||||
* bcopy. | ||||
*/ | ||||
#if defined( HAVE_MEMCPY ) && defined( HAVE_BCOPY ) | ||||
#undef HAVE_BCOPY | ||||
#endif | ||||
/* | ||||
* Support for the isatty(3) function. This function identifies if a | ||||
* descriptor refers to a terminal. | ||||
* | ||||
* Case 1: isatty(3) is in the C library | ||||
* --> define HAVE_ISATTY | ||||
* Case 2: no isatty(3), BSD 4.3 tty handling | ||||
* --> define HAVE_BSDTTY | ||||
* Case 3: no isatty(3), System V tty handling | ||||
* --> define HAVE_SYSVTTY | ||||
* | ||||
* The following code checks: | ||||
* 1) that at least one of the flags is defined | ||||
* 2) only one of the BSD, SYS V flags is defined | ||||
*/ | ||||
#if !defined(HAVE_ISATTY) && !defined(HAVE_BSDTTY) && !defined(HAVE_SYSVTTY) | ||||
#error function_isatty_not_available ; | ||||
#endif | ||||
#ifdef HAVE_ISATTY | ||||
#undef HAVE_BSDTTY | ||||
#undef HAVE_SYSVTTY | ||||
#endif | ||||
#if defined(HAVE_BSDTTY) && defined(HAVE_SYSVTTY) | ||||
#error HAVE_BSDTTY_and_HAVE_SYSVTTY_both_defined ; | ||||
#endif | ||||
/* | ||||
* CPU/compiler-specific section. | * CPU/compiler-specific section. | |||
* | * | |||
* The following constant affects the behavior of Sprint. | * The following constant affects the behavior of Sprint. | |||
* | * | |||
* Sprint performs integer->string conversions by first converting | * Sprint performs integer->string conversions by first converting | |||
* the integer to the widest int type supported by the CPU/compiler. | * the integer to the widest int type supported by the CPU/compiler. | |||
* By default, this is the "long int" type. If your machine has | * By default, this is the "long int" type. If your machine has | |||
* a wider type, you can specify it by defining the WIDE_INT constant. | * a wider type, you can specify it by defining the WIDE_INT constant. | |||
* For example: | * For example: | |||
* #define WIDE_INT long long | * #define WIDE_INT long long | |||
End of changes. 3 change blocks. | ||||
48 lines changed or deleted | 1 lines changed or added |