From 3ce549ead6369c57623dc5314b591b07eb9e9afc Mon Sep 17 00:00:00 2001 From: mickey <> Date: Sun, 28 Nov 2004 07:16:54 +0000 Subject: [PATCH] repair libkern support (again) and add rcsids --- src/lib/libc/string/bcmp.c | 6 ++++-- src/lib/libc/string/bzero.c | 6 ++++-- src/lib/libc/string/strcat.c | 6 ++++-- src/lib/libc/string/strcmp.c | 6 ++++-- src/lib/libc/string/strcpy.c | 6 ++++-- src/lib/libc/string/strncmp.c | 6 ++++-- src/lib/libc/string/strncpy.c | 8 +++++++- 7 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/lib/libc/string/bcmp.c b/src/lib/libc/string/bcmp.c index 2beeef82..8dc8798f 100644 --- a/src/lib/libc/string/bcmp.c +++ b/src/lib/libc/string/bcmp.c @@ -1,3 +1,5 @@ +/* $OpenBSD: bcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $ */ + /* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. @@ -28,10 +30,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bcmp.c,v 1.5 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: bcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/bzero.c b/src/lib/libc/string/bzero.c index 7e557ecd..9d8a2cef 100644 --- a/src/lib/libc/string/bzero.c +++ b/src/lib/libc/string/bzero.c @@ -1,3 +1,5 @@ +/* $OpenBSD: bzero.c,v 1.6 2004/11/28 07:16:54 mickey Exp $ */ + /* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. @@ -28,10 +30,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bzero.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; +static char *rcsid = "$OpenBSD: bzero.c,v 1.6 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c index 885822ba..4f9734ab 100644 --- a/src/lib/libc/string/strcat.c +++ b/src/lib/libc/string/strcat.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strcat.c,v 1.7 2004/11/28 07:16:54 mickey Exp $ */ + /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. @@ -28,10 +30,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strcat.c,v 1.6 2003/07/24 01:15:42 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strcat.c,v 1.7 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/strcmp.c b/src/lib/libc/string/strcmp.c index 9bda0a8d..0fe34c28 100644 --- a/src/lib/libc/string/strcmp.c +++ b/src/lib/libc/string/strcmp.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $ */ + /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -31,10 +33,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strcmp.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/strcpy.c b/src/lib/libc/string/strcpy.c index e5c3d7dc..0acd1bba 100644 --- a/src/lib/libc/string/strcpy.c +++ b/src/lib/libc/string/strcpy.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strcpy.c,v 1.7 2004/11/28 07:16:54 mickey Exp $ */ + /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. @@ -28,10 +30,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strcpy.c,v 1.6 2003/07/24 01:15:42 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strcpy.c,v 1.7 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/strncmp.c b/src/lib/libc/string/strncmp.c index 82420e21..ddab42dc 100644 --- a/src/lib/libc/string/strncmp.c +++ b/src/lib/libc/string/strncmp.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strncmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $ */ + /* * Copyright (c) 1989 The Regents of the University of California. * All rights reserved. @@ -28,10 +30,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strncmp.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strncmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_STANDALONE) #include #else #include diff --git a/src/lib/libc/string/strncpy.c b/src/lib/libc/string/strncpy.c index 00493f4f..d73008c6 100644 --- a/src/lib/libc/string/strncpy.c +++ b/src/lib/libc/string/strncpy.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $ */ + /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -31,10 +33,14 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strncpy.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ +#if !defined(_KERNEL) && !defined(_STANDALONE) #include +#else +#include +#endif /* * Copy src to dst, truncating or null-padding to always copy n bytes.