diff options
author | mike <mike@FreeBSD.org> | 2002-12-18 16:53:31 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-12-18 16:53:31 +0000 |
commit | 91ae3fa45da5b963b386ec2315195c8a46fca992 (patch) | |
tree | 16025c382d603596fbc3bf588b0fc5edf45a3c74 /tools/regression/lib/libc/string/test-strerror.c | |
parent | e32cc6fbb43a3952c915a86eefab4195c58aaaf5 (diff) | |
download | FreeBSD-src-91ae3fa45da5b963b386ec2315195c8a46fca992.zip FreeBSD-src-91ae3fa45da5b963b386ec2315195c8a46fca992.tar.gz |
Rearrange strerror() so that its itoa procedure can be used with
strerror_r(). Doing this allows us to ensure that strerror_r() always
fills the supplied buffer regardless of EINVAL or ERANGE errors.
strerror()'s semantics have changed slightly such that an argument of
0 is now considered invalid and errno is set to EINVAL.
Remove internal regression test for strerror() and strerror_r(). This
will be reincarnated in src/tools/regression/lib/libc/string.
In strerror(3), add a comment about strerror()'s bogus return type.
PR: 44356
Diffstat (limited to 'tools/regression/lib/libc/string/test-strerror.c')
0 files changed, 0 insertions, 0 deletions