99a9e88e55
* sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure when __stdio_open fails with a code other than ENFILE or EMFILE. * csu/initfini.c (SECTION): New macro, different definitions for #ifdef HAVE_ELF and not. (_init, _fini): Use that macro. * config.make.in (have-initfini): New variable, set by configure. * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
27 lines
908 B
C
27 lines
908 B
C
/* This file is used by some of the resolver code in inet/ that
|
|
comes from BIND 4.9. I have written this file instead of modifying
|
|
those things not to use it so that I can later drop in replacement
|
|
files from future BIND distributions without change. */
|
|
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
/* Some BIND code decides it can omit the definitions of some functions
|
|
if BSD is defined to some value. That might make sense when the BIND
|
|
code is augmenting or replacing an existing system library, but we can
|
|
never omit a function here, since we are defining the system library. */
|
|
|
|
#undef BSD
|
|
|
|
/* Some code does stupid compatibility kludges for SunOS braindeath
|
|
#ifdef sun. */
|
|
|
|
#undef sun
|
|
|
|
/* The source code copied from BIND for inet_addr/inet_aton
|
|
doesn't actually define the functions without these macros. */
|
|
|
|
#define NEED_INETADDR
|
|
#define NEED_INETATON
|