aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/Makefile4
-rw-r--r--libio/_G_config.h37
-rw-r--r--libio/stdio.h5
3 files changed, 40 insertions, 6 deletions
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 <gnu/types.h>
+#define __need_size_t
+#include <stddef.h>
+#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 <statbuf.h> 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 <stdio_lim.h>
#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 */