From fa00327fbf80bd0928c0c4babc6680ff1c9f3584 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 4 Jun 1996 06:48:18 +0000 Subject: * sysdeps/libm-i387/s_finite.S: Use %eax instead of %al in setnel insn. * intl/l10nflist.c: Fix conditional on #include . * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros removed. Instead, include . * libio/_G_config.h: New file. * libio/Makefile (headers): Add _G_config.h. * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c. --- libio/Makefile | 4 ++-- libio/_G_config.h | 37 +++++++++++++++++++++++++++++++++++++ libio/stdio.h | 5 +---- 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 libio/_G_config.h (limited to 'libio') diff --git a/libio/Makefile b/libio/Makefile index 02426a79c2..e4df6b545e 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1995 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ # subdir := libio -headers := stdio.h libio.h +headers := stdio.h libio.h _G_config.h routines := \ filedoalloc iofclose iofdopen iofflush iofgetpos iofgets iofopen \ diff --git a/libio/_G_config.h b/libio/_G_config.h new file mode 100644 index 0000000000..5340055fc7 --- /dev/null +++ b/libio/_G_config.h @@ -0,0 +1,37 @@ +/* This file is needed by libio to define various configuration parameters. + These are always the same in the GNU C library. */ + +#ifndef _G_config_h +#define _G_config_h 1 + +/* Define types for libio in terms of the standard internal type names. */ + +#include +#define __need_size_t +#include +#define _G_size_t size_t +#define _G_fpos_t __off_t +#define _G_ssize_t __ssize_t +#define _G_off_t __off_t +#define _G_pid_t __pid_t +#define _G_uid_t __uid_t + + +/* These library features are always available in the GNU C library. */ +#define _G_HAVE_ATEXIT 1 +#define _G_HAVE_SYS_WAIT 1 +#define _G_NEED_STDARG_H 1 +#define _G_va_list __gnuc_va_list + +/* This is defined by if `st_blksize' exists. */ +#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) + +#define _G_BUFSIZ 8192 + +/* These are the vtbl details for ELF. */ +#define _G_NAMES_HAVE_UNDERSCORE 0 +#define _G_VTABLE_LABEL_PREFIX "_vt." +#define _G_VTABLE_LABEL_HAS_LENGTH 1 + + +#endif /* _G_config.h */ diff --git a/libio/stdio.h b/libio/stdio.h index a1766cea33..e2670c9fba 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -71,12 +71,9 @@ typedef _IO_size_t size_t; typedef struct _IO_FILE FILE; typedef _IO_fpos_t fpos_t; -#define FOPEN_MAX _G_FOPEN_MAX -#define FILENAME_MAX _G_FILENAME_MAX -#define TMP_MAX 999 /* Only limited by filename length */ +#include #define P_tmpdir "/tmp" -#define L_tmpnam 20 /* For use by debuggers. These are linked in if printf or fprintf are used. */ extern FILE *stdin, *stdout, *stderr; /* TODO */ -- cgit v1.2.3