summaryrefslogtreecommitdiffstats
path: root/gl/strerror.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-08 01:11:46 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-13 01:26:35 (GMT)
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/strerror.c
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
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;