diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/envz.c | 2 | ||||
-rw-r--r-- | string/envz.h | 2 | ||||
-rw-r--r-- | string/stratcliff.c | 2 | ||||
-rw-r--r-- | string/strerror.c | 30 | ||||
-rw-r--r-- | string/strerror_r.c | 2 | ||||
-rw-r--r-- | string/string.h | 8 | ||||
-rw-r--r-- | string/strxfrm.c | 30 |
7 files changed, 39 insertions, 37 deletions
diff --git a/string/envz.c b/string/envz.c index 03af3d49ad..f00fe24d31 100644 --- a/string/envz.c +++ b/string/envz.c @@ -123,7 +123,7 @@ envz_add (char **envz, size_t *envz_len, const char *name, const char *value) } /* Adds each entry in ENVZ2 to ENVZ & ENVZ_LEN, as if with envz_add(). If - OVERRIDE is true, then values in ENVZ2 will supercede those with the same + OVERRIDE is true, then values in ENVZ2 will supersede those with the same name in ENV, otherwise not. */ error_t envz_merge (char **envz, size_t *envz_len, const char *envz2, diff --git a/string/envz.h b/string/envz.h index b7a34b3b6c..23aaed6119 100644 --- a/string/envz.h +++ b/string/envz.h @@ -49,7 +49,7 @@ extern error_t envz_add __P ((char **__envz, size_t *__envz_len, __const char *__name, __const char *__value)); /* Adds each entry in ENVZ2 to ENVZ & ENVZ_LEN, as if with envz_add(). If - OVERRIDE is true, then values in ENVZ2 will supercede those with the same + OVERRIDE is true, then values in ENVZ2 will supersede those with the same name in ENV, otherwise not. */ extern error_t envz_merge __P ((char **__envz, size_t *__envz_len, __const char *__envz2, size_t __envz2_len, diff --git a/string/stratcliff.c b/string/stratcliff.c index a994e569be..ebe565968e 100644 --- a/string/stratcliff.c +++ b/string/stratcliff.c @@ -47,7 +47,7 @@ main (int argc, char *argv[]) puts ("No test, mmap not available."); else { - printf ("mmaping failed: %m"); + printf ("mmap failed: %m"); result = 1; } } diff --git a/string/strerror.c b/string/strerror.c index 62a08a016f..7052ef64d6 100644 --- a/string/strerror.c +++ b/string/strerror.c @@ -1,27 +1,27 @@ -/* Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1991, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <string.h> extern char *_strerror_internal __P ((int, char *, size_t)); -/* Return a string descibing the errno code in ERRNUM. +/* Return a string describing the errno code in ERRNUM. The storage is good only until the next call to strerror. Writing to the storage causes undefined behavior. */ char * diff --git a/string/strerror_r.c b/string/strerror_r.c index e03e50c635..6a43a556a9 100644 --- a/string/strerror_r.c +++ b/string/strerror_r.c @@ -21,7 +21,7 @@ extern char *_strerror_internal __P ((int, char *, size_t)); -/* Return a string descibing the errno code in ERRNUM. At most BUFLEN +/* Return a string describing the errno code in ERRNUM. At most BUFLEN characters of the result will be placed in STRERRBUF. */ char * __strerror_r (int errnum, char *buf, size_t buflen) diff --git a/string/string.h b/string/string.h index 79a7aaa58d..c51fb956ea 100644 --- a/string/string.h +++ b/string/string.h @@ -93,7 +93,9 @@ extern char *strdup __P ((__const char *__s)); resultant string is terminated even if no null terminator appears before STRING[N]. */ extern char *__strndup __P ((__const char *__string, size_t __n)); +#if defined(__USE_GNU) extern char *strndup __P ((__const char *__string, size_t __n)); +#endif #if defined (__USE_GNU) && defined (__GNUC__) /* Duplicate S, returning an identical alloca'd string. */ @@ -129,9 +131,9 @@ extern size_t strcspn __P ((__const char *__s, __const char *__reject)); /* Return the length of the initial segment of S which consists entirely of characters in ACCEPT. */ extern size_t strspn __P ((__const char *__s, __const char *__accept)); -/* Find the first occurence in S of any character in ACCEPT. */ +/* Find the first occurrence in S of any character in ACCEPT. */ extern char *strpbrk __P ((__const char *__s, __const char *__accept)); -/* Find the first occurence of NEEDLE in HAYSTACK. */ +/* Find the first occurrence of NEEDLE in HAYSTACK. */ extern char *strstr __P ((__const char *__haystack, __const char *__needle)); /* Divide S into tokens separated by characters in DELIM. */ extern char *strtok __P ((char *__s, __const char *__delim)); @@ -142,7 +144,7 @@ extern char *strtok __P ((char *__s, __const char *__delim)); extern char *strtok_r __P ((char *__s, __const char *__delim, char **__save_ptr)); -/* Find the first occurence of NEEDLE in HAYSTACK. +/* Find the first occurrence of NEEDLE in HAYSTACK. NEEDLE is NEEDLELEN bytes long; HAYSTACK is HAYSTACKLEN bytes long. */ extern __ptr_t memmem __P ((__const __ptr_t __haystack, size_t __haystacklen, diff --git a/string/strxfrm.c b/string/strxfrm.c index 6d0a7061b7..820ad93947 100644 --- a/string/strxfrm.c +++ b/string/strxfrm.c @@ -1,21 +1,21 @@ /* Copyright (C) 1995, 1996 Free Software Foundation, Inc. -This file is part of the GNU C Library. -Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. + This file is part of the GNU C Library. + Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #include <stddef.h> #include <stdlib.h> @@ -178,7 +178,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n) u_int32_t w; /* Here we have to check for IGNORE entries. If these are - found we count them and go on witht he next value. */ + found we count them and go on with he next value. */ while ((w = run->data[pass].value[idx]) == (u_int32_t) IGNORE_CHAR) { ++ignore; |