diff options
Diffstat (limited to 'lib/libc')
32 files changed, 137 insertions, 12 deletions
diff --git a/lib/libc/string/bcmp.c b/lib/libc/string/bcmp.c index 5a3ae616800e..f8b06c3b2cab 100644 --- a/lib/libc/string/bcmp.c +++ b/lib/libc/string/bcmp.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)bcmp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <string.h> diff --git a/lib/libc/string/bcopy.c b/lib/libc/string/bcopy.c index f90b09c9b73f..b7e6861d8f74 100644 --- a/lib/libc/string/bcopy.c +++ b/lib/libc/string/bcopy.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/ffs.c b/lib/libc/string/ffs.c index 099ff8e4c911..6998422ec73c 100644 --- a/lib/libc/string/ffs.c +++ b/lib/libc/string/ffs.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)ffs.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <string.h> diff --git a/lib/libc/string/index.c b/lib/libc/string/index.c index 37e505fa998f..242e60907dee 100644 --- a/lib/libc/string/index.c +++ b/lib/libc/string/index.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)index.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/memccpy.c b/lib/libc/string/memccpy.c index c457110b62d3..9f7bbff1a14d 100644 --- a/lib/libc/string/memccpy.c +++ b/lib/libc/string/memccpy.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c index 7200894c1a72..dd9f13302686 100644 --- a/lib/libc/string/memchr.c +++ b/lib/libc/string/memchr.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)memchr.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/memcmp.c b/lib/libc/string/memcmp.c index d025d897b34a..b40e9fd7cc13 100644 --- a/lib/libc/string/memcmp.c +++ b/lib/libc/string/memcmp.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)memcmp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c index afe5f9642b83..39f4a31ff51e 100644 --- a/lib/libc/string/memset.c +++ b/lib/libc/string/memset.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/types.h> diff --git a/lib/libc/string/rindex.c b/lib/libc/string/rindex.c index 69dced4c46dc..1283db0c7e2e 100644 --- a/lib/libc/string/rindex.c +++ b/lib/libc/string/rindex.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)rindex.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <stddef.h> #include <string.h> diff --git a/lib/libc/string/strcasecmp.c b/lib/libc/string/strcasecmp.c index 463c4dee3c25..f1d4f38d6961 100644 --- a/lib/libc/string/strcasecmp.c +++ b/lib/libc/string/strcasecmp.c @@ -31,13 +31,17 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -#include <string.h> -#include <ctype.h> - #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + +#include <sys/cdefs.h> +#include <string.h> +#include <ctype.h> typedef unsigned char u_char; diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 95dcd1d7029c..480b2b48e4d0 100644 --- a/lib/libc/string/strcat.c +++ b/lib/libc/string/strcat.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <string.h> diff --git a/lib/libc/string/strcmp.c b/lib/libc/string/strcmp.c index cf25e504b2d8..da48f9100357 100644 --- a/lib/libc/string/strcmp.c +++ b/lib/libc/string/strcmp.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcmp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strcoll.c b/lib/libc/string/strcoll.c index 5213cf84d978..5f9cd694284b 100644 --- a/lib/libc/string/strcoll.c +++ b/lib/libc/string/strcoll.c @@ -23,10 +23,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + #include <stdlib.h> #include <string.h> #include "collate.h" diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index c9b44b13b125..4e26c943eb81 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strcspn.c b/lib/libc/string/strcspn.c index a1c2e1d3d7b4..6f693b033792 100644 --- a/lib/libc/string/strcspn.c +++ b/lib/libc/string/strcspn.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strcspn.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strdup.c b/lib/libc/string/strdup.c index a1c2eedaf891..55ba8cc1936a 100644 --- a/lib/libc/string/strdup.c +++ b/lib/libc/string/strdup.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strdup.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <stddef.h> #include <stdlib.h> diff --git a/lib/libc/string/strerror.c b/lib/libc/string/strerror.c index 5acefd95ee21..d64120f225ca 100644 --- a/lib/libc/string/strerror.c +++ b/lib/libc/string/strerror.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strerror.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <stdio.h> #include <string.h> diff --git a/lib/libc/string/strlcat.c b/lib/libc/string/strlcat.c index 5bc2c91b9baa..f6c749a62626 100644 --- a/lib/libc/string/strlcat.c +++ b/lib/libc/string/strlcat.c @@ -1,5 +1,3 @@ -/* $OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $ */ - /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> * All rights reserved. @@ -25,13 +23,15 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/types.h> #include <string.h> diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c index 300a28bc3911..fde5ff5182df 100644 --- a/lib/libc/string/strlcpy.c +++ b/lib/libc/string/strlcpy.c @@ -28,8 +28,14 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; +#endif #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/types.h> #include <string.h> diff --git a/lib/libc/string/strlen.c b/lib/libc/string/strlen.c index 323fbe484526..e1c66e496e33 100644 --- a/lib/libc/string/strlen.c +++ b/lib/libc/string/strlen.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strlen.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strmode.c b/lib/libc/string/strmode.c index 2c3f44a94561..a2bf3afe2be4 100644 --- a/lib/libc/string/strmode.c +++ b/lib/libc/string/strmode.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strmode.c 8.3 (Berkeley) 8/15/94"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/types.h> #include <sys/stat.h> diff --git a/lib/libc/string/strncat.c b/lib/libc/string/strncat.c index 1b82a75fa5dc..c71cfa27aaf2 100644 --- a/lib/libc/string/strncat.c +++ b/lib/libc/string/strncat.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strncmp.c b/lib/libc/string/strncmp.c index 4b701a9a385d..4b2aa0107f5a 100644 --- a/lib/libc/string/strncmp.c +++ b/lib/libc/string/strncmp.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strncmp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strncpy.c b/lib/libc/string/strncpy.c index 9e72740b8b9f..772f8d285afa 100644 --- a/lib/libc/string/strncpy.c +++ b/lib/libc/string/strncpy.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strncpy.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c index 119d8b793f22..f5b7df3fc11b 100644 --- a/lib/libc/string/strpbrk.c +++ b/lib/libc/string/strpbrk.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strpbrk.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strsep.c b/lib/libc/string/strsep.c index ddad5964ce19..485f65140c05 100644 --- a/lib/libc/string/strsep.c +++ b/lib/libc/string/strsep.c @@ -38,6 +38,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif /* * Get next token from string *stringp, where tokens are possibly-empty diff --git a/lib/libc/string/strsignal.c b/lib/libc/string/strsignal.c index 5ec6365fbd93..fd5f28879dec 100644 --- a/lib/libc/string/strsignal.c +++ b/lib/libc/string/strsignal.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strerror.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <stdio.h> #include <string.h> diff --git a/lib/libc/string/strspn.c b/lib/libc/string/strspn.c index 4676bd4923dc..eb118e2aa8dd 100644 --- a/lib/libc/string/strspn.c +++ b/lib/libc/string/strspn.c @@ -34,6 +34,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strspn.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strstr.c b/lib/libc/string/strstr.c index 1f109611e2a7..aaa648619545 100644 --- a/lib/libc/string/strstr.c +++ b/lib/libc/string/strstr.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <sys/cdefs.h> #include <string.h> diff --git a/lib/libc/string/strtok.c b/lib/libc/string/strtok.c index 1140bfc73eba..6af352970484 100644 --- a/lib/libc/string/strtok.c +++ b/lib/libc/string/strtok.c @@ -41,6 +41,11 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + #include <stddef.h> #include <string.h> diff --git a/lib/libc/string/strxfrm.c b/lib/libc/string/strxfrm.c index ac172f8bc208..31922cf412fe 100644 --- a/lib/libc/string/strxfrm.c +++ b/lib/libc/string/strxfrm.c @@ -23,10 +23,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + #include <stdlib.h> #include <string.h> #include "collate.h" diff --git a/lib/libc/string/swab.c b/lib/libc/string/swab.c index a4fc3b94097f..da850868aa79 100644 --- a/lib/libc/string/swab.c +++ b/lib/libc/string/swab.c @@ -37,6 +37,10 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif #include <string.h> |
