1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-16 23:02:13 +03:00

Separate out error_t definition

so interfaces needing it can get it.

	* stdlib/errno.h (error_t): Move definition to...
	* bits/types/error_t.h: ... new header.
	* stdlib/Makefile (headers): Add bits/types/error_t.h.
	* sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
	* sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
	* sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
	* hurd/hurd.h: Include <bits/types/error_t.h>
	* hurd/hurd/fd.h: Include <bits/types/error_t.h>
	* hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
	* hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
	* hurd/hurd/resource.h: Include <bits/types/error_t.h>
	* hurd/hurd/signal.h: Include <bits/types/error_t.h>
	* hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
This commit is contained in:
Samuel Thibault
2018-03-04 03:15:49 +01:00
parent ba89615dab
commit 974393ea43
14 changed files with 77 additions and 23 deletions

View File

@@ -181,14 +181,6 @@ function print_errno_enum(maxseq)
print " __FORCE_ERROR_T_CODES_SIGNED = -1";
print "};";
print "";
print "/* User-visible type of error codes. It is ok to use 'int' or";
print " 'kern_return_t' for these, but with 'error_t' the debugger prints";
print " symbolic values. */";
print "# if !defined __error_t_defined && defined __USE_GNU";
print "# define __error_t_defined 1";
print "typedef enum __error_t_codes error_t;"
print "# endif";
print "";
print "#endif /* not __ASSEMBLER__ */";
}