diff options
author | Bruno Haible <bruno@clisp.org> | 2011-05-19 21:49:01 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-05-19 21:49:01 +0200 |
commit | 30f176b6e12f1a67070991ee7ac505f2fa8a605c (patch) | |
tree | f2dbb7e3407b9365ff218a86524e637299892b0b /modules/strerror | |
parent | b79d34835799d78d05b99916bfc363850905601c (diff) | |
download | gnulib-30f176b6e12f1a67070991ee7ac505f2fa8a605c.tar.gz |
perror: Avoid clobbering the strerror buffer when possible.
* lib/strerror-impl.h: New file, extracted from lib/strerror.c.
* lib/strerror.c: Include it.
* modules/strerror (Files): Add lib/strerror-impl.h.
* lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
(my_strerror): New function, defined through lib/strerror-impl.h.
(perror): Use it instead of strerror.
* modules/perror (Files): Add lib/strerror-impl.h.
(Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
Diffstat (limited to 'modules/strerror')
-rw-r--r-- | modules/strerror | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/strerror b/modules/strerror index 6e4c9c5463..42a476caca 100644 --- a/modules/strerror +++ b/modules/strerror @@ -3,6 +3,7 @@ strerror() function: return string describing error code. Files: lib/strerror.c +lib/strerror-impl.h m4/strerror.m4 Depends-on: |