summaryrefslogtreecommitdiffstats
path: root/gl/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/strerror.c')
-rw-r--r--gl/strerror.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gl/strerror.c b/gl/strerror.c
index 798d854..b0df778 100644
--- a/gl/strerror.c
+++ b/gl/strerror.c
@@ -1,6 +1,6 @@
1/* strerror.c --- POSIX compatible system error routine 1/* strerror.c --- POSIX compatible system error routine
2 2
3 Copyright (C) 2007-2009 Free Software Foundation, Inc. 3 Copyright (C) 2007-2010 Free Software Foundation, Inc.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -313,7 +313,13 @@ rpl_strerror (int n)
313 break; 313 break;
314# endif 314# endif
315 315
316# if GNULIB_defined_ 316# if GNULIB_defined_ESTALE
317 case ESTALE:
318 msg = "Stale NFS file handle";
319 break;
320# endif
321
322# if GNULIB_defined_ECANCELED
317 case ECANCELED: 323 case ECANCELED:
318 msg = "Operation canceled"; 324 msg = "Operation canceled";
319 break; 325 break;
@@ -328,10 +334,10 @@ rpl_strerror (int n)
328 334
329 if (result == NULL || result[0] == '\0') 335 if (result == NULL || result[0] == '\0')
330 { 336 {
331 static char const fmt[] = "Unknown error (%d)"; 337 static char const fmt[] = "Unknown error (%d)";
332 static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; 338 static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)];
333 sprintf (msg_buf, fmt, n); 339 sprintf (msg_buf, fmt, n);
334 return msg_buf; 340 return msg_buf;
335 } 341 }
336 342
337 return result; 343 return result;