comparison lib/strerror-override.c @ 16891:e98619449f63

error, strerror-override: Support new errno values from POSIX:2008. * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and ENOTRECOVERABLE. * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all platforms. * lib/strerror-override.c (strerror_override): Conditionalize the EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD. * lib/strerror-override.h (strerror_override): Declare also if GNULIB_defined_EOWNERDEAD is defined. * tests/test-errno.c (e130, e131): New variables. * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD, ENOTRECOVERABLE. Reported by Paolo Bonzini.
author Bruno Haible <bruno@clisp.org>
date Sun, 03 Jun 2012 15:47:14 +0200
parents 8250f2777afc
children 75dd3fc6e824
comparison
equal deleted inserted replaced
16890:663c3bea50ab 16891:e98619449f63
95 return "No data available"; 95 return "No data available";
96 case ENOSR: 96 case ENOSR:
97 return "Out of streams resources"; 97 return "Out of streams resources";
98 case ENOSTR: 98 case ENOSTR:
99 return "Device not a stream"; 99 return "Device not a stream";
100 case ENOTRECOVERABLE:
101 return "State not recoverable";
102 case EOWNERDEAD:
103 return "Owner died";
104 case ETIME: 100 case ETIME:
105 return "Timer expired"; 101 return "Timer expired";
106 case EOTHER: 102 case EOTHER:
107 return "Other error"; 103 return "Other error";
108 #endif 104 #endif
281 #if GNULIB_defined_ECANCELED 277 #if GNULIB_defined_ECANCELED
282 case ECANCELED: 278 case ECANCELED:
283 return "Operation canceled"; 279 return "Operation canceled";
284 #endif 280 #endif
285 281
282 #if GNULIB_defined_EOWNERDEAD
283 case EOWNERDEAD:
284 return "Owner died";
285 case ENOTRECOVERABLE:
286 return "State not recoverable";
287 #endif
288
286 default: 289 default:
287 return NULL; 290 return NULL;
288 } 291 }
289 } 292 }