1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>

	* include/features.h: Define new macros __GNUC_PREREQ and
	__GLIBC_PREREQ which can be used to test the version of gcc
	and glibc respectively.

	* assert/assert.h: Use __GNUC_PREREQ.
	* intl/libintl.h: Likewise.
	* math/complex.h: Likewise.
	* math/tgmath.h: Likewise.
	* misc/sys/cdefs.h: Likewise.
	* posix/sys/types.h: Likewise.
	* socket/sys/socket.h: Likewise.
	* string/bits/string2.h: Likewise.
	* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
	* sysdeps/i386/fpu/bits/mathinline.h: Likewise.

1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>

	* include/libintl.h: Declare _libc_intl_domainname here.
	Define _ and N_ here.
	* include/libc-symbols.h: Don't include <libintl.h>.  Don't
	define _ and N_.  Don't declare _libc_intl_domainname.
	* Makeconfig (CPPFLAGS): Use -imacros to read libc-symbols.h.

	* db2/config.h: Don't include sys/stat.h or define
	HAVE_ST_BLKSIZE here...
	* db2/compat.h: ...do it here.

	* linuxthreads/internals.h: Include bits/libc-tsd.h after all
	other headers.
	* linuxthreads/no-tsd.c: Include sys/cdefs.h for __P.
	* iconv/iconv.c: Include stddef.h for NULL.
	* malloc/malloc.h: Include features.h.
	* sysdeps/generic/morecore.c: Use __malloc_ptr_t not __ptr_t.

	* sysdeps/unix/make_errlist.c: Write an "#include <libintl.h>"
	into the generated file.
	* sysdeps/gnu/errlist.awk: Likewise.
	* sysdeps/gnu/errlist.c: Rebuilt.

	* assert/assert-perr.c: Include libintl.h.
	* assert/assert.c: Likewise.
	* elf/dl-open.c: Likewise.
	* elf/dlsym.c: Likewise.
	* elf/dlvsym.c: Likewise.
	* iconv/iconv_prog.c: Likewise.
	* inet/rcmd.c: Likewise.
	* inet/ruserpass.c: Likewise.
	* locale/programs/charset.c: Likewise.
	* locale/programs/ld-collate.c: Likewise.
	* locale/programs/ld-ctype.c: Likewise.
	* locale/programs/ld-messages.c: Likewise.
	* locale/programs/ld-monetary.c: Likewise.
	* locale/programs/ld-numeric.c: Likewise.
	* locale/programs/ld-time.c: Likewise.
	* locale/programs/locfile.c: Likewise.
	* locale/programs/repertoire.c: Likewise.
	* login/programs/database.c: Likewise.
	* login/programs/request.c: Likewise.
	* malloc/mcheck.c: Likewise.
	* misc/error.c: Likewise.
	* nis/nis_call.c: Likewise.
	* nis/nis_callback.c: Likewise.
	* nis/nis_error.c: Likewise.
	* nis/nis_local_names.c: Likewise.
	* nis/nis_print.c: Likewise.
	* nis/nis_print_group_entry.c: Likewise.
	* nis/ypclnt.c: Likewise.
	* nis/nss_nisplus/nisplus-publickey.c: Likewise.
	* nscd/cache.c: Likewise.
	* nscd/connections.c: Likewise.
	* nscd/grpcache.c: Likewise.
	* nscd/hstcache.c: Likewise.
	* nscd/nscd_conf.c: Likewise.
	* nscd/nscd_stat.c: Likewise.
	* nscd/pwdcache.c: Likewise.
	* posix/id.c: Likewise.
	* resolv/herror.c: Likewise.
	* stdio-common/psignal.c: Likewise.
	* string/strsignal.c: Likewise.
	* sunrpc/auth_unix.c: Likewise.
	* sunrpc/clnt_perr.c: Likewise.
	* sunrpc/clnt_raw.c: Likewise.
	* sunrpc/clnt_tcp.c: Likewise.
	* sunrpc/clnt_udp.c: Likewise.
	* sunrpc/clnt_unix.c: Likewise.
	* sunrpc/get_myaddr.c: Likewise.
	* sunrpc/pm_getmaps.c: Likewise.
	* sunrpc/pmap_clnt.c: Likewise.
	* sunrpc/pmap_rmt.c: Likewise.
	* sunrpc/rpc_main.c: Likewise.
	* sunrpc/rpc_scan.c: Likewise.
	* sunrpc/svc_run.c: Likewise.
	* sunrpc/svc_simple.c: Likewise.
	* sunrpc/svc_tcp.c: Likewise.
	* sunrpc/svc_udp.c: Likewise.
	* sunrpc/svc_unix.c: Likewise.
	* sunrpc/xdr_rec.c: Likewise.
	* sunrpc/xdr_ref.c: Likewise.
	* sysdeps/mach/hurd/mips/dl-machine.c: Likewise.
	* sysdeps/posix/gai_strerror.c: Likewise.
	* sysdeps/unix/siglist.c: Likewise.
	* sysdeps/unix/sysv/linux/siglist.c: Likewise.
	* sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
	* sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Likewise.
	* timezone/zic.c: Likewise.
This commit is contained in:
Ulrich Drepper
1999-06-19 09:58:37 +00:00
parent 7db0da77fe
commit 4360eafdd2
91 changed files with 240 additions and 66 deletions

108
ChangeLog
View File

@ -1,3 +1,111 @@
1999-06-18 Zack Weinberg <zack@rabi.columbia.edu>
* include/features.h: Define new macros __GNUC_PREREQ and
__GLIBC_PREREQ which can be used to test the version of gcc
and glibc respectively.
* assert/assert.h: Use __GNUC_PREREQ.
* intl/libintl.h: Likewise.
* math/complex.h: Likewise.
* math/tgmath.h: Likewise.
* misc/sys/cdefs.h: Likewise.
* posix/sys/types.h: Likewise.
* socket/sys/socket.h: Likewise.
* string/bits/string2.h: Likewise.
* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1999-06-18 Zack Weinberg <zack@rabi.columbia.edu>
* include/libintl.h: Declare _libc_intl_domainname here.
Define _ and N_ here.
* include/libc-symbols.h: Don't include <libintl.h>. Don't
define _ and N_. Don't declare _libc_intl_domainname.
* Makeconfig (CPPFLAGS): Use -imacros to read libc-symbols.h.
* db2/config.h: Don't include sys/stat.h or define
HAVE_ST_BLKSIZE here...
* db2/compat.h: ...do it here.
* linuxthreads/internals.h: Include bits/libc-tsd.h after all
other headers.
* linuxthreads/no-tsd.c: Include sys/cdefs.h for __P.
* iconv/iconv.c: Include stddef.h for NULL.
* malloc/malloc.h: Include features.h.
* sysdeps/generic/morecore.c: Use __malloc_ptr_t not __ptr_t.
* sysdeps/unix/make_errlist.c: Write an "#include <libintl.h>"
into the generated file.
* sysdeps/gnu/errlist.awk: Likewise.
* sysdeps/gnu/errlist.c: Rebuilt.
* assert/assert-perr.c: Include libintl.h.
* assert/assert.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dlsym.c: Likewise.
* elf/dlvsym.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* inet/rcmd.c: Likewise.
* inet/ruserpass.c: Likewise.
* locale/programs/charset.c: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/repertoire.c: Likewise.
* login/programs/database.c: Likewise.
* login/programs/request.c: Likewise.
* malloc/mcheck.c: Likewise.
* misc/error.c: Likewise.
* nis/nis_call.c: Likewise.
* nis/nis_callback.c: Likewise.
* nis/nis_error.c: Likewise.
* nis/nis_local_names.c: Likewise.
* nis/nis_print.c: Likewise.
* nis/nis_print_group_entry.c: Likewise.
* nis/ypclnt.c: Likewise.
* nis/nss_nisplus/nisplus-publickey.c: Likewise.
* nscd/cache.c: Likewise.
* nscd/connections.c: Likewise.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* posix/id.c: Likewise.
* resolv/herror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* string/strsignal.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_raw.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/get_myaddr.c: Likewise.
* sunrpc/pm_getmaps.c: Likewise.
* sunrpc/pmap_clnt.c: Likewise.
* sunrpc/pmap_rmt.c: Likewise.
* sunrpc/rpc_main.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/svc_run.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/mach/hurd/mips/dl-machine.c: Likewise.
* sysdeps/posix/gai_strerror.c: Likewise.
* sysdeps/unix/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Likewise.
* timezone/zic.c: Likewise.
1999-06-18 H.J. Lu <hjl@gnu.org> 1999-06-18 H.J. Lu <hjl@gnu.org>
* localedata/Makefile (charmaps): Exclude SCCS. * localedata/Makefile (charmaps): Exclude SCCS.

View File

@ -570,7 +570,7 @@ libio-include = -I$(..)libio
# These are the variables that the implicit compilation rules use. # These are the variables that the implicit compilation rules use.
CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \ CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
-include $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \ -imacros $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
$(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F))
override CFLAGS = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \ override CFLAGS = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
$(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F)) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))

View File

@ -20,6 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sysdep.h> #include <sysdep.h>
#include <libintl.h>
extern const char *__assert_program_name; /* In assert.c. */ extern const char *__assert_program_name; /* In assert.c. */

View File

@ -20,6 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sysdep.h> #include <sysdep.h>
#include <libintl.h>
const char *__assert_program_name; const char *__assert_program_name;

View File

@ -87,18 +87,12 @@ __END_DECLS
/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__' /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
which contains the name of the function currently being defined. which contains the name of the function currently being defined.
# define __ASSERT_FUNCTION __PRETTY_FUNCTION__
This is broken in G++ before version 2.6. This is broken in G++ before version 2.6.
C9x has a similar variable called __func__, but prefer the GCC one since C9x has a similar variable called __func__, but prefer the GCC one since
it demangles C++ function names. */ it demangles C++ function names. */
# ifdef __GNUC__ # if __GNUC_PREREQ (2, (defined __cplusplus ? 6 : 4))
# if __GNUC__ > 2 || (__GNUC__ == 2 \
&& __GNUC_MINOR__ >= (defined __cplusplus ? 6 : 4))
# define __ASSERT_FUNCTION __PRETTY_FUNCTION__ # define __ASSERT_FUNCTION __PRETTY_FUNCTION__
# else # else
# define __ASSERT_FUNCTION ((__const char *) 0)
# endif
# else
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
# define __ASSERT_FUNCTION __func__ # define __ASSERT_FUNCTION __func__
# else # else

View File

@ -3,6 +3,12 @@
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h>
#ifdef _STATBUF_ST_BLKSIZE
# define HAVE_ST_BLKSIZE
#endif
#ifndef EFTYPE #ifndef EFTYPE
# define EFTYPE EINVAL # define EFTYPE EINVAL
#endif #endif

View File

@ -2,16 +2,10 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */ /* config.h.in. Generated automatically from configure.in by autoheader. */
/* ...but edited by hand to be used in GNU libc. */ /* ...but edited by hand to be used in GNU libc. */
#include <sys/stat.h> /* To get _STATBUF_ST_BLKSIZE. */
/* Define to empty if the keyword does not work. */ /* Define to empty if the keyword does not work. */
/* #undef const */ /* #undef const */
/* Define if your struct stat has st_blksize. */
#ifdef _STATBUF_ST_BLKSIZE
# define HAVE_ST_BLKSIZE 1
#endif
/* Define to `int' if <sys/types.h> doesn't define. */ /* Define to `int' if <sys/types.h> doesn't define. */
/* #undef mode_t */ /* #undef mode_t */

View File

@ -22,6 +22,7 @@
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <sys/mman.h> /* Check whether MAP_COPY is defined. */ #include <sys/mman.h> /* Check whether MAP_COPY is defined. */
#include <sys/param.h> #include <sys/param.h>
#include <bits/libc-lock.h> #include <bits/libc-lock.h>

View File

@ -20,6 +20,7 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <setjmp.h> #include <setjmp.h>
#include <stddef.h> #include <stddef.h>
#include <libintl.h>
#include <elf/ldsodefs.h> #include <elf/ldsodefs.h>
struct dlsym_args struct dlsym_args

View File

@ -20,6 +20,7 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <setjmp.h> #include <setjmp.h>
#include <stddef.h> #include <stddef.h>
#include <libintl.h>
#include <elf/ldsodefs.h> #include <elf/ldsodefs.h>
#include <dl-hash.h> #include <dl-hash.h>

View File

@ -19,6 +19,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stddef.h> /* for NULL */
#include <errno.h> #include <errno.h>
#include <iconv.h> #include <iconv.h>

View File

@ -30,6 +30,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#ifdef _POSIX_MAPPED_FILES #ifdef _POSIX_MAPPED_FILES
# include <sys/mman.h> # include <sys/mman.h>
#endif #endif

View File

@ -244,9 +244,23 @@
#define __GLIBC__ 2 #define __GLIBC__ 2
#define __GLIBC_MINOR__ 2 #define __GLIBC_MINOR__ 2
/* Convenience macros to test the versions of glibc and gcc.
Use them like this:
#if __GNUC_PREREQ (2,8)
... code requiring gcc 2.8 or later ...
#endif
Note - they won't work for gcc1 or glibc1, since the _MINOR macros
were not defined then. */
#define __GNUC_PREREQ(maj,min) (defined __GNUC__ && defined __GNUC_MINOR__ \
&& ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((maj<<16) + min))
#define __GLIBC_PREREQ(maj,min) (defined __GLIBC__ && defined __GLIBC_MINOR__ \
&& ((__GLIBC__ << 16) + __GLIBC_MINOR__) >= ((maj<<16) + min))
/* This is here only because every header file already includes this one. */ /* This is here only because every header file already includes this one. */
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
#ifndef _SYS_CDEFS_H
# include <sys/cdefs.h> # include <sys/cdefs.h>
#endif
/* If we don't have __REDIRECT, prototypes will be missing if /* If we don't have __REDIRECT, prototypes will be missing if
__USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */ __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */

View File

@ -52,34 +52,7 @@
#define _REENTRANT 1 #define _REENTRANT 1
#include <config.h> #include <config.h>
/*
*/
#ifndef __ASSEMBLER__
/* Define the macros `_' and `N_' for conveniently marking translatable
strings in the libc source code. */
# define N_(msgid) msgid
# include <libintl.h>
extern const char _libc_intl_domainname[];
# ifdef dgettext
/* This is defined as an optimizing macro, so use it. */
# define _(msgid) dgettext (_libc_intl_domainname, (msgid))
# else
/* Be sure to use only the __ name when `dgettext' is a plain function
instead of an optimizing macro. */
# define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
# endif
#endif
/*
*/
/* The symbols in all the user (non-_) macros are C symbols. /* The symbols in all the user (non-_) macros are C symbols.
HAVE_GNU_LD without HAVE_ELF implies a.out. */ HAVE_GNU_LD without HAVE_ELF implies a.out. */

View File

@ -6,4 +6,20 @@ extern char *__gettext __P ((__const char *__msgid));
extern char *__textdomain __P ((__const char *__domainname)); extern char *__textdomain __P ((__const char *__domainname));
extern char *__bindtextdomain __P ((__const char *__domainname, extern char *__bindtextdomain __P ((__const char *__domainname,
__const char *__dirname)); __const char *__dirname));
extern const char _libc_intl_domainname[];
/* Define the macros `_' and `N_' for conveniently marking translatable
strings in the libc source code. */
# define N_(msgid) msgid
# ifdef dgettext
/* This is defined as an optimizing macro, so use it. */
# define _(msgid) dgettext (_libc_intl_domainname, (msgid))
# else
/* Be sure to use only the __ name when `dgettext' is a plain function
instead of an optimizing macro. */
# define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
# endif
#endif #endif

View File

@ -49,6 +49,7 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#include <libintl.h>
int __ivaliduser __P ((FILE *, u_int32_t, const char *, const char *)); int __ivaliduser __P ((FILE *, u_int32_t, const char *, const char *));

View File

@ -41,6 +41,7 @@ static char sccsid[] = "@(#)ruserpass.c 8.3 (Berkeley) 4/2/94";
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
/* #include "ftp_var.h" */ /* #include "ftp_var.h" */

View File

@ -82,7 +82,7 @@ extern char *bindtextdomain __P ((__const char *__domainname,
# define dgettext(domainname, msgid) \ # define dgettext(domainname, msgid) \
dcgettext (domainname, msgid, LC_MESSAGES) dcgettext (domainname, msgid, LC_MESSAGES)
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) # if __GNUC_PREREQ (2,7)
/* Variable defined in loadmsgcat.c which gets incremented every time a /* Variable defined in loadmsgcat.c which gets incremented every time a
new catalog is loaded. */ new catalog is loaded. */
extern int _nl_msg_cat_cntr; extern int _nl_msg_cat_cntr;

View File

@ -16,12 +16,12 @@
/* Includes */ /* Includes */
#include <bits/libc-tsd.h> /* for _LIBC_TSD_KEY_N */
#include <limits.h> #include <limits.h>
#include <setjmp.h> #include <setjmp.h>
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <bits/libc-tsd.h> /* for _LIBC_TSD_KEY_N */
#include "pt-machine.h" #include "pt-machine.h"

View File

@ -17,6 +17,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <sys/cdefs.h> /* for __P */
#include <bits/libc-tsd.h> #include <bits/libc-tsd.h>
/* This file provides uinitialized (common) definitions for the /* This file provides uinitialized (common) definitions for the

View File

@ -28,6 +28,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include "error.h" #include "error.h"
#include "charset.h" #include "charset.h"

View File

@ -29,6 +29,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>
#include <libintl.h>
#include "localeinfo.h" #include "localeinfo.h"
#include "locales.h" #include "locales.h"

View File

@ -25,6 +25,7 @@
#include <endian.h> #include <endian.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include "locales.h" #include "locales.h"
#include "localeinfo.h" #include "localeinfo.h"

View File

@ -24,6 +24,7 @@
#include <alloca.h> #include <alloca.h>
#include <langinfo.h> #include <langinfo.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <sys/uio.h> #include <sys/uio.h>
#ifdef HAVE_REGEX #ifdef HAVE_REGEX

View File

@ -25,6 +25,7 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
/* Undefine following line in production version. */ /* Undefine following line in production version. */

View File

@ -24,6 +24,7 @@
#include <alloca.h> #include <alloca.h>
#include <langinfo.h> #include <langinfo.h>
#include <string.h> #include <string.h>
#include <libintl.h>
/* Undefine following line in production version. */ /* Undefine following line in production version. */
/* #define NDEBUG 1 */ /* #define NDEBUG 1 */

View File

@ -23,6 +23,7 @@
#include <langinfo.h> #include <langinfo.h>
#include <string.h> #include <string.h>
#include <libintl.h>
/* Undefine following line in production version. */ /* Undefine following line in production version. */
/* #define NDEBUG 1 */ /* #define NDEBUG 1 */

View File

@ -29,6 +29,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/uio.h> #include <sys/uio.h>

View File

@ -27,6 +27,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include "linereader.h" #include "linereader.h"
#include "charset.h" #include "charset.h"

View File

@ -26,6 +26,7 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <utmp.h> #include <utmp.h>
#include <libintl.h>
#include "utmpd-private.h" #include "utmpd-private.h"

View File

@ -22,6 +22,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <utmp.h> #include <utmp.h>
#include <libintl.h>
#include "utmpd.h" #include "utmpd.h"
#include "utmpd-private.h" #include "utmpd-private.h"

View File

@ -20,6 +20,8 @@
#ifndef _MALLOC_H #ifndef _MALLOC_H
#define _MALLOC_H 1 #define _MALLOC_H 1
#include <features.h>
/* /*
`ptmalloc', a malloc implementation for multiple threads without `ptmalloc', a malloc implementation for multiple threads without
lock contention, by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>. lock contention, by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.

View File

@ -25,6 +25,7 @@
# include <malloc.h> # include <malloc.h>
# include <mcheck.h> # include <mcheck.h>
# include <stdio.h> # include <stdio.h>
# include <libintl.h>
#endif #endif
/* Old hook values. */ /* Old hook values. */

View File

@ -33,7 +33,7 @@ __BEGIN_DECLS
/* We might need to add support for more compilers here. But once ISO /* We might need to add support for more compilers here. But once ISO
C 9X is out hopefully all maintained compilers will provide the data C 9X is out hopefully all maintained compilers will provide the data
types `float complex' and `double complex'. */ types `float complex' and `double complex'. */
#if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 #if __GNUC_PREREQ (2, 7)
# define _Complex __complex__ # define _Complex __complex__
#endif #endif

View File

@ -34,7 +34,7 @@
do not try this for now and instead concentrate only on GNU CC. Once do not try this for now and instead concentrate only on GNU CC. Once
we have more information support for other compilers might follow. */ we have more information support for other compilers might follow. */
#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7) #if __GNUC_PREREQ (2, 7)
/* We have two kinds of generic macros: to support functions which are /* We have two kinds of generic macros: to support functions which are
only defined on real valued parameters and those which are defined only defined on real valued parameters and those which are defined

View File

@ -26,6 +26,7 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <libintl.h>
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
# if __STDC__ # if __STDC__

View File

@ -33,7 +33,7 @@
/* GCC can always grok prototypes. For C++ programs we add throw() /* GCC can always grok prototypes. For C++ programs we add throw()
to help it optimize the function calls. But this works only with to help it optimize the function calls. But this works only with
gcc 2.8.x and egcs. */ gcc 2.8.x and egcs. */
# if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8) # if defined __cplusplus && __GNUC_PREREQ (2,8)
# define __THROW throw () # define __THROW throw ()
# else # else
# define __THROW # define __THROW
@ -42,6 +42,7 @@
/* This macro will be used for functions which might take C++ callback /* This macro will be used for functions which might take C++ callback
functions. */ functions. */
# define __PMT(args) args # define __PMT(args) args
# define __DOTS , ... # define __DOTS , ...
#else /* Not GCC. */ #else /* Not GCC. */
@ -131,7 +132,6 @@
/* /*
#elif __SOME_OTHER_COMPILER__ #elif __SOME_OTHER_COMPILER__
# define __attribute__(xyz)
# define __REDIRECT(name, proto, alias) name proto; \ # define __REDIRECT(name, proto, alias) name proto; \
_Pragma("let " #name " = " #alias) _Pragma("let " #name " = " #alias)
*/ */
@ -150,17 +150,13 @@
run in pedantic mode if the uses are carefully marked using the run in pedantic mode if the uses are carefully marked using the
`__extension__' keyword. But this is not generally available before `__extension__' keyword. But this is not generally available before
version 2.8. */ version 2.8. */
#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) #if !__GNUC_PREREQ (2,8)
# define __extension__ /* Ignore */ # define __extension__ /* Ignore */
#endif #endif
/* __restrict is known in EGCS 1.2 and above. */ /* __restrict is known in EGCS 1.2 and above. */
#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92) #if !__GNUC_PREREQ (2,92)
# define __restrict /* Ignore */ # define __restrict /* Ignore */
#endif #endif
#endif /* sys/cdefs.h */ #endif /* sys/cdefs.h */

View File

@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/auth.h> #include <rpc/auth.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>

View File

@ -21,6 +21,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/pmap_clnt.h> #include <rpc/pmap_clnt.h>
#include <string.h> #include <string.h>

View File

@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <syslog.h> #include <syslog.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>

View File

@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>
nis_name nis_name

View File

@ -19,6 +19,7 @@
#include <time.h> #include <time.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>

View File

@ -18,6 +18,7 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>
void void

View File

@ -22,6 +22,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <syslog.h> #include <syslog.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>

View File

@ -21,6 +21,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>
#include <rpcsvc/yp.h> #include <rpcsvc/yp.h>

View File

@ -23,6 +23,7 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <rpcsvc/nis.h> #include <rpcsvc/nis.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -24,6 +24,7 @@
#include <pthread.h> #include <pthread.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/poll.h> #include <sys/poll.h>

View File

@ -26,6 +26,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include "nscd.h" #include "nscd.h"
#include "dbg_log.h" #include "dbg_log.h"

View File

@ -28,6 +28,7 @@
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "nscd.h" #include "nscd.h"

View File

@ -22,6 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -24,6 +24,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include "nscd.h" #include "nscd.h"
#include "dbg_log.h" #include "dbg_log.h"

View File

@ -27,6 +27,7 @@
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include "nscd.h" #include "nscd.h"
#include "dbg_log.h" #include "dbg_log.h"

View File

@ -22,6 +22,7 @@
#include <grp.h> #include <grp.h>
#include <pwd.h> #include <pwd.h>
#include <limits.h> #include <limits.h>
#include <libintl.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -132,7 +132,7 @@ typedef unsigned int uint;
/* These size-specific names are used by some of the inet code. */ /* These size-specific names are used by some of the inet code. */
#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) #if !__GNUC_PREREQ (2, 7)
/* These types are defined by the ISO C 9x header <inttypes.h>. */ /* These types are defined by the ISO C 9x header <inttypes.h>. */
# ifndef __int8_t_defined # ifndef __int8_t_defined

View File

@ -58,6 +58,7 @@ static char rcsid[] = "$Id$";
#include <sys/param.h> #include <sys/param.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <netdb.h> #include <netdb.h>
#include <libintl.h>
#if defined(BSD) && (BSD >= 199103) #if defined(BSD) && (BSD >= 199103)
# include <unistd.h> # include <unistd.h>
# include <string.h> # include <string.h>

View File

@ -61,8 +61,7 @@ enum
uses with any of the listed types to be allowed without complaint. uses with any of the listed types to be allowed without complaint.
G++ 2.7 does not support transparent unions so there we want the G++ 2.7 does not support transparent unions so there we want the
old-style declaration, too. */ old-style declaration, too. */
#if (!defined __GNUC__ || __GNUC__ < 2 || defined __cplusplus || \ #if defined __cplusplus || !__GNUC_PREREQ (2, 7)
(__GNUC__ == 2 && __GNUC_MINOR__ < 7))
# define __SOCKADDR_ARG struct sockaddr * # define __SOCKADDR_ARG struct sockaddr *
# define __CONST_SOCKADDR_ARG __const struct sockaddr * # define __CONST_SOCKADDR_ARG __const struct sockaddr *
#else #else

View File

@ -18,6 +18,7 @@
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <libintl.h>
#ifndef HAVE_GNU_LD #ifndef HAVE_GNU_LD

View File

@ -167,9 +167,9 @@ __STRING2_COPY_TYPE (8);
: memset (s, c, n))) : memset (s, c, n)))
# endif # endif
/* GCC optimizes memset(s, 0, n) but not bzero(s, n). */ /* GCC optimizes memset(s, 0, n) but not bzero(s, n).
#if defined __GNUC__ \ The optimization is broken before EGCS 1.1. */
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 90)) #if __GNUC_PREREQ (2, 91)
# define __bzero(s, n) __builtin_memset (s, '\0', n) # define __bzero(s, n) __builtin_memset (s, '\0', n)
# endif # endif

View File

@ -20,6 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <bits/libc-lock.h> #include <bits/libc-lock.h>

View File

@ -42,6 +42,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <sys/param.h> #include <sys/param.h>
#include <rpc/types.h> #include <rpc/types.h>

View File

@ -39,6 +39,7 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpc/types.h> #include <rpc/types.h>
#include <rpc/auth.h> #include <rpc/auth.h>
#include <rpc/clnt.h> #include <rpc/clnt.h>

View File

@ -45,6 +45,7 @@ static char sccsid[] = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/svc.h> #include <rpc/svc.h>
#include <rpc/xdr.h> #include <rpc/xdr.h>
#include <libintl.h>
#define MCALL_MSG_SIZE 24 #define MCALL_MSG_SIZE 24

View File

@ -54,6 +54,7 @@ static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro";
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <sys/poll.h> #include <sys/poll.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -39,6 +39,7 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/xdr.h> #include <rpc/xdr.h>
#include <rpc/clnt.h> #include <rpc/clnt.h>

View File

@ -50,6 +50,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <sys/poll.h> #include <sys/poll.h>

View File

@ -44,6 +44,7 @@ static char sccsid[] = "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h> #include <sys/socket.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <net/if.h> #include <net/if.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
/* Order of following two #includes reversed by roland@gnu */ /* Order of following two #includes reversed by roland@gnu */

View File

@ -46,6 +46,7 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
#include <netdb.h> #include <netdb.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <libintl.h>
/* /*
* Get a copy of the current port maps. * Get a copy of the current port maps.

View File

@ -36,6 +36,7 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <net/if.h> #include <net/if.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -41,6 +41,7 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/pmap_prot.h> #include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h> #include <rpc/pmap_clnt.h>

View File

@ -42,6 +42,7 @@ const char main_rcsid[] =
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <libintl.h>
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -41,6 +41,7 @@ char scan_rcsid[] =
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include "rpc_scan.h" #include "rpc_scan.h"
#include "rpc_parse.h" #include "rpc_parse.h"
#include "rpc_util.h" #include "rpc_util.h"

View File

@ -37,6 +37,7 @@ static char sccsid[] = "@(#)svc_run.c 1.1 87/10/13 Copyr 1984 Sun Micro";
* Wait for input, call server program. * Wait for input, call server program.
*/ */
#include <errno.h> #include <errno.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
static int svc_stop; static int svc_stop;

View File

@ -40,6 +40,7 @@ static char sccsid[] = "@(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/pmap_clnt.h> #include <rpc/pmap_clnt.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -44,6 +44,7 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <libintl.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/poll.h> #include <sys/poll.h>

View File

@ -45,6 +45,7 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <errno.h> #include <errno.h>
#include <libintl.h>
#ifdef USE_IN_LIBIO #ifdef USE_IN_LIBIO
# include <libio/iolibio.h> # include <libio/iolibio.h>

View File

@ -46,6 +46,7 @@
#include <sys/poll.h> #include <sys/poll.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <libintl.h>
/* /*
* Ops vector for AF_UNIX based rpc service handle * Ops vector for AF_UNIX based rpc service handle

View File

@ -48,6 +48,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <libintl.h>
#ifdef USE_IN_LIBIO #ifdef USE_IN_LIBIO
# include <libio/iolibio.h> # include <libio/iolibio.h>

View File

@ -44,6 +44,7 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
#include <string.h> #include <string.h>
#include <rpc/types.h> #include <rpc/types.h>
#include <rpc/xdr.h> #include <rpc/xdr.h>
#include <libintl.h>
#ifdef USE_IN_LIBIO #ifdef USE_IN_LIBIO
# include <libio/iolibio.h> # include <libio/iolibio.h>

View File

@ -75,7 +75,7 @@ __inline_copysign(copysign, double)
#undef __MATH_INLINE_copysign #undef __MATH_INLINE_copysign
#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)) #if __GNUC_PREREQ (2, 8)
__MATH_INLINE float __fabsf (float __x) { return __builtin_fabsf (__x); } __MATH_INLINE float __fabsf (float __x) { return __builtin_fabsf (__x); }
__MATH_INLINE float fabsf (float __x) { return __builtin_fabsf (__x); } __MATH_INLINE float fabsf (float __x) { return __builtin_fabsf (__x); }
__MATH_INLINE double __fabs (double __x) { return __builtin_fabs (__x); } __MATH_INLINE double __fabs (double __x) { return __builtin_fabs (__x); }

View File

@ -30,7 +30,7 @@
systems with potentially hostile include files. */ systems with potentially hostile include files. */
#include <stddef.h> #include <stddef.h>
extern __ptr_t __sbrk __P ((ptrdiff_t increment)); extern __malloc_ptr_t __sbrk __P ((ptrdiff_t increment));
#endif #endif
#ifndef NULL #ifndef NULL
@ -40,12 +40,12 @@ extern __ptr_t __sbrk __P ((ptrdiff_t increment));
/* Allocate INCREMENT more bytes of data space, /* Allocate INCREMENT more bytes of data space,
and return the start of data space, or NULL on errors. and return the start of data space, or NULL on errors.
If INCREMENT is negative, shrink data space. */ If INCREMENT is negative, shrink data space. */
__ptr_t __malloc_ptr_t
__default_morecore (increment) __default_morecore (increment)
__malloc_ptrdiff_t increment; __malloc_ptrdiff_t increment;
{ {
__ptr_t result = (__ptr_t) __sbrk (increment); __malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
if (result == (__ptr_t) -1) if (result == (__malloc_ptr_t) -1)
return NULL; return NULL;
return result; return result;
} }

View File

@ -40,6 +40,7 @@ BEGIN {
print "/* This file is generated from errno.texi by errlist.awk. */" print "/* This file is generated from errno.texi by errlist.awk. */"
print ""; print "";
print "#include <errno.h>"; print "#include <errno.h>";
print "#include <libintl.h>";
print ""; print "";
print "#ifndef SYS_ERRLIST"; print "#ifndef SYS_ERRLIST";
print "# define SYS_ERRLIST _sys_errlist"; print "# define SYS_ERRLIST _sys_errlist";

View File

@ -1,6 +1,7 @@
/* This file is generated from errno.texi by errlist.awk. */ /* This file is generated from errno.texi by errlist.awk. */
#include <errno.h> #include <errno.h>
#include <libintl.h>
#ifndef SYS_ERRLIST #ifndef SYS_ERRLIST
# define SYS_ERRLIST _sys_errlist # define SYS_ERRLIST _sys_errlist

View File

@ -138,7 +138,7 @@ __signbitl (long double __x)
/* The gcc, version 2.7 or below, has problems with all this inlining /* The gcc, version 2.7 or below, has problems with all this inlining
code. So disable it for this version of the compiler. */ code. So disable it for this version of the compiler. */
#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)) #if __GNUC_PREREQ (2, 8)
#if ((!defined __NO_MATH_INLINES || defined __LIBC_INTERNAL_MATH_INLINES) \ #if ((!defined __NO_MATH_INLINES || defined __LIBC_INTERNAL_MATH_INLINES) \
&& defined __OPTIMIZE__) && defined __OPTIMIZE__)
@ -426,7 +426,7 @@ __inline_mathcode2 (pow, __x, __y, \
__inline_mathop (sqrt, "fsqrt") __inline_mathop (sqrt, "fsqrt")
__inline_mathop_ (long double, __sqrtl, "fsqrt") __inline_mathop_ (long double, __sqrtl, "fsqrt")
#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 8) #if __GNUC_PREREQ (2, 8)
__inline_mathcode_ (double, fabs, __x, return __builtin_fabs (__x)) __inline_mathcode_ (double, fabs, __x, return __builtin_fabs (__x))
__inline_mathcode_ (float, fabsf, __x, return __builtin_fabsf (__x)) __inline_mathcode_ (float, fabsf, __x, return __builtin_fabsf (__x))
__inline_mathcode_ (long double, fabsl, __x, return __builtin_fabsl (__x)) __inline_mathcode_ (long double, fabsl, __x, return __builtin_fabsl (__x))

View File

@ -31,6 +31,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <libintl.h>
void weak_function void weak_function
abort (void) abort (void)

View File

@ -19,6 +19,7 @@
#include <stdio.h> #include <stdio.h>
#include <netdb.h> #include <netdb.h>
#include <libintl.h>
static struct static struct
{ {

View File

@ -58,6 +58,7 @@ main ()
Boston, MA 02111-1307, USA. */\n\n", year); Boston, MA 02111-1307, USA. */\n\n", year);
puts ("#include <stddef.h>\n"); puts ("#include <stddef.h>\n");
puts ("#include <libintl.h>\n");
puts ("\n/* This is a list of all known `errno' codes. */\n"); puts ("\n/* This is a list of all known `errno' codes. */\n");
printf ("\nconst int _sys_nerr = %d;\n\n", sys_nerr); printf ("\nconst int _sys_nerr = %d;\n\n", sys_nerr);

View File

@ -17,6 +17,7 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stddef.h> #include <stddef.h>
#include <libintl.h>
/* This is a list of all known signal numbers. */ /* This is a list of all known signal numbers. */

View File

@ -19,6 +19,7 @@
#include <stddef.h> #include <stddef.h>
#include <signal.h> #include <signal.h>
#include <sizes.h> #include <sizes.h>
#include <libintl.h>
#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
# define SYS_SIGLIST __new_sys_siglist # define SYS_SIGLIST __new_sys_siglist

View File

@ -19,6 +19,7 @@
#include <stddef.h> #include <stddef.h>
#include <signal.h> #include <signal.h>
#include <sizes.h> #include <sizes.h>
#include <libintl.h>
#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
# define SYS_SIGLIST __new_sys_siglist # define SYS_SIGLIST __new_sys_siglist

View File

@ -17,6 +17,7 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stddef.h> #include <stddef.h>
#include <libintl.h>
/* This is a list of all known `errno' codes. */ /* This is a list of all known `errno' codes. */

View File

@ -11,6 +11,8 @@ static char elsieid[] = "@(#)zic.c 7.99";
#include "sys/stat.h" /* for umask manifest constants */ #include "sys/stat.h" /* for umask manifest constants */
#endif /* defined unix */ #endif /* defined unix */
#include <libintl.h>
/* /*
** On some ancient hosts, predicates like `isspace(C)' are defined ** On some ancient hosts, predicates like `isspace(C)' are defined
** only if isascii(C) || C == EOF. Modern hosts obey the C Standard, ** only if isascii(C) || C == EOF. Modern hosts obey the C Standard,