freebsd-skq/lib/libc/string
Mike Barcroft 5a98f074e6 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
2002-12-18 16:53:31 +00:00
..
bcmp.3
bcmp.c
bcopy.3
bcopy.c
bstring.3
bzero.3
bzero.c
ffs.3
ffs.c
index.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
index.c
Makefile.inc libc_r wasn't so tied to libc for 22 months. 2002-11-18 09:50:57 +00:00
memccpy.3
memccpy.c
memchr.3
memchr.c
memcmp.3
memcmp.c
memcpy.3
memcpy.c
memmove.3
memmove.c
memset.3
memset.c
rindex.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
rindex.c
stpcpy.c Add stpcpy(3). 2002-10-03 19:39:20 +00:00
strcasecmp.3
strcasecmp.c
strcasestr.c
strcat.3
strcat.c
strchr.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
strchr.c
strcmp.3
strcmp.c
strcoll.3 Add cross-references to the wide character counterparts of these functions. 2002-10-15 10:11:53 +00:00
strcoll.c
strcpy.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
strcpy.c
strcspn.3
strcspn.c
strdup.3
strdup.c
strerror.3 Rearrange strerror() so that its itoa procedure can be used with 2002-12-18 16:53:31 +00:00
strerror.c Rearrange strerror() so that its itoa procedure can be used with 2002-12-18 16:53:31 +00:00
string.3 C89 does not specifiy strsep(), so our strsep() implementation cannot 2002-10-19 13:41:22 +00:00
strlcat.c
strlcpy.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
strlcpy.c
strlen.3
strlen.c
strmode.3
strmode.c
strncat.c
strncmp.c
strncpy.c
strnstr.c
strpbrk.3
strpbrk.c
strrchr.3
strrchr.c
strsep.3 mdoc(7) police: formatting nits. 2002-11-29 15:57:50 +00:00
strsep.c
strsignal.c
strspn.3
strspn.c
strstr.3
strstr.c
strtok.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
strtok.c
strxfrm.3 Add cross-references to the wide character counterparts of these functions. 2002-10-15 10:11:53 +00:00
strxfrm.c
swab.3
swab.c
wcscat.c Simplify by removing unneeded local variables and explicit null termination. 2002-09-26 09:28:55 +00:00
wcschr.c Reimplement, handling the case where c == L'\0' correctly and fixing 2002-10-23 10:47:47 +00:00
wcscmp.c Fix the NetBSD RCS id's on these files; somehow they were initially 2002-10-23 11:08:40 +00:00
wcscoll.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcscoll.c Add a placeholder implementation of wcscoll() and wcsxfrm() which gives 2002-10-04 03:18:26 +00:00
wcscpy.c Simplify by removing useless local variables and explicit null termination. 2002-09-26 09:23:07 +00:00
wcscspn.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslcat.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslcpy.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslen.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsncat.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsncmp.c Fix the NetBSD RCS id's on these files; somehow they were initially 2002-10-23 11:08:40 +00:00
wcsncpy.c Restore Berkeley SCCS id. 2002-10-24 02:48:45 +00:00
wcspbrk.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsrchr.c Reimplement more efficiently, using a single forward scan (like strrchr(3)) 2002-10-23 10:52:04 +00:00
wcsspn.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsstr.c Replace wcsstr() with an implementation based on strstr(), which is far 2002-10-24 02:53:45 +00:00
wcstok.3 Remove stray comma at the end of the See Also list. 2002-10-15 09:49:54 +00:00
wcstok.c
wcswidth.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcswidth.c
wcsxfrm.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcsxfrm.c Add a placeholder implementation of wcscoll() and wcsxfrm() which gives 2002-10-04 03:18:26 +00:00
wmemchr.3
wmemchr.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemcmp.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemcpy.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemmove.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemset.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00