summary refs log tree commit diff
path: root/errno.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-29 05:21:53 +0000
committerRoland McGrath <roland@gnu.org>1996-04-29 05:21:53 +0000
commit392d7920cd6e66a9e0fd6a4fb2c93d1ccabf65b9 (patch)
tree0071b8b380e466f0f27db67b8f678bfb5f234aa8 /errno.h
parent7b3547eb0fb471e1f2135f709eb53d79a45838cb (diff)
downloadglibc-392d7920cd6e66a9e0fd6a4fb2c93d1ccabf65b9.tar.gz
glibc-392d7920cd6e66a9e0fd6a4fb2c93d1ccabf65b9.tar.xz
glibc-392d7920cd6e66a9e0fd6a4fb2c93d1ccabf65b9.zip
Mon Apr 29 00:11:59 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
	* errno.h [!__error_t_defined] (error_t): New type.
	* sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
	typedef in errnos.h.

	* string/envz.c, string/envz.h: New files.
	* string/argz.h, string/argz-append.c, string/argz-count.c,
	string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
	string/argz-insert.c, string/argz-stringify.c: New files.
	* string/Makefile (routines): Add envz, argz-*.
	(headers): Add argz.h, envz.h.
Diffstat (limited to 'errno.h')
-rw-r--r--errno.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/errno.h b/errno.h
index 2b6fd17e72..f1fbd5e082 100644
--- a/errno.h
+++ b/errno.h
@@ -47,6 +47,14 @@ extern int errno;
 #endif
 
 #ifdef __USE_GNU
+
+/* The Hurd <errnos.h> defines `error_t' as an enumerated type
+   so that printing `error_t' values in the debugger shows the names.  */
+#ifndef __error_t_defined
+typedef int error_t;
+#define __error_t_defined	1
+#endif
+
 /* The full and simple forms of the name with which the program was
    invoked.  These variables are set up automatically at startup based on
    the value of ARGV[0] (this works only if you use GNU ld).  */