From 392d7920cd6e66a9e0fd6a4fb2c93d1ccabf65b9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 29 Apr 1996 05:21:53 +0000 Subject: Mon Apr 29 00:11:59 1996 Roland McGrath * 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. --- errno.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'errno.h') 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 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). */ -- cgit v1.2.3