diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-08-29 12:06:14 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-08-29 12:22:30 +0200 |
commit | 883359805325a82f4f291ff85624f141f6c93636 (patch) | |
tree | 8e263430aeaf929600d2e734b159f8686ae97c70 /sysdeps/mach/hurd/errnos.awk | |
parent | ed479b02c2b04291d07708baf50bc6d2929f8b94 (diff) | |
download | glibc-883359805325a82f4f291ff85624f141f6c93636.tar.gz glibc-883359805325a82f4f291ff85624f141f6c93636.tar.xz glibc-883359805325a82f4f291ff85624f141f6c93636.zip |
Hurd: Add ESUCCESS error_t value.
Diffstat (limited to 'sysdeps/mach/hurd/errnos.awk')
-rw-r--r-- | sysdeps/mach/hurd/errnos.awk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/errnos.awk b/sysdeps/mach/hurd/errnos.awk index 35f5628b8e..2434daab22 100644 --- a/sysdeps/mach/hurd/errnos.awk +++ b/sysdeps/mach/hurd/errnos.awk @@ -31,6 +31,14 @@ BEGIN { print ""; print "#ifdef _ERRNO_H\n"; print "enum __error_t_codes\n{"; + print "\t/* The value zero always means success and it is perfectly fine for"; + print "\t code to use 0 explicitly (or implicitly, e.g. via Boolean coercion)."; + print "\t Having an enum entry for zero both makes the debugger print the name"; + print "\t for error_t-typed zero values, and prevents the compiler from"; + print "\t issuing warnings about 'case 0:' in a switch on an error_t-typed"; + print "\t value. */"; + print "\tESUCCESS = 0," + print ""; errnoh = 0; maxerrno = 0; in_mach_errors = ""; |