diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-01 12:57:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-01 12:57:55 +0000 |
commit | 4751af531fdb8e456be9dffe13ca007170251814 (patch) | |
tree | 4acd15841ba1d9d65cca1697ac923b0ef55c11f7 /lib/libc/string | |
parent | 3761adc2833099367121aaa13f9905fe7180de61 (diff) |
switch on _KERNEL to load proper include file
Diffstat (limited to 'lib/libc/string')
-rw-r--r-- | lib/libc/string/bcmp.c | 8 | ||||
-rw-r--r-- | lib/libc/string/bzero.c | 6 | ||||
-rw-r--r-- | lib/libc/string/ffs.c | 6 | ||||
-rw-r--r-- | lib/libc/string/strcat.c | 8 | ||||
-rw-r--r-- | lib/libc/string/strcmp.c | 6 | ||||
-rw-r--r-- | lib/libc/string/strcpy.c | 8 | ||||
-rw-r--r-- | lib/libc/string/strlen.c | 6 | ||||
-rw-r--r-- | lib/libc/string/strncmp.c | 6 |
8 files changed, 43 insertions, 11 deletions
diff --git a/lib/libc/string/bcmp.c b/lib/libc/string/bcmp.c index edd83c2686d..782aa1a30bb 100644 --- a/lib/libc/string/bcmp.c +++ b/lib/libc/string/bcmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $ */ +/* $OpenBSD: bcmp.c,v 1.3 1996/05/01 12:57:37 deraadt Exp $ */ /* * Copyright (c) 1987 Regents of the University of California. @@ -35,10 +35,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $"; +static char *rcsid = "$Id: bcmp.c,v 1.3 1996/05/01 12:57:37 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif /* * bcmp -- vax cmpc3 instruction diff --git a/lib/libc/string/bzero.c b/lib/libc/string/bzero.c index 29d6e4385cf..7d89de23f34 100644 --- a/lib/libc/string/bzero.c +++ b/lib/libc/string/bzero.c @@ -33,10 +33,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)bzero.c 5.7 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: bzero.c,v 1.1 1995/10/18 08:42:21 deraadt Exp $"; +static char *rcsid = "$Id: bzero.c,v 1.2 1996/05/01 12:57:40 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif /* * bzero -- vax movc5 instruction diff --git a/lib/libc/string/ffs.c b/lib/libc/string/ffs.c index 977b8056b02..6a8ff265934 100644 --- a/lib/libc/string/ffs.c +++ b/lib/libc/string/ffs.c @@ -33,10 +33,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)ffs.c 5.4 (Berkeley) 5/17/90";*/ -static char *rcsid = "$Id: ffs.c,v 1.1 1995/10/18 08:42:21 deraadt Exp $"; +static char *rcsid = "$Id: ffs.c,v 1.2 1996/05/01 12:57:42 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif /* * ffs -- vax ffs instruction diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 10e0aefe124..2958d5e78c1 100644 --- a/lib/libc/string/strcat.c +++ b/lib/libc/string/strcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $ */ +/* $OpenBSD: strcat.c,v 1.3 1996/05/01 12:57:45 deraadt Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -35,10 +35,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $"; +static char *rcsid = "$Id: strcat.c,v 1.3 1996/05/01 12:57:45 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif char * strcat(s, append) diff --git a/lib/libc/string/strcmp.c b/lib/libc/string/strcmp.c index f9d4f087a19..690da8f3fb9 100644 --- a/lib/libc/string/strcmp.c +++ b/lib/libc/string/strcmp.c @@ -36,10 +36,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strcmp.c 5.5 (Berkeley) 1/26/91";*/ -static char *rcsid = "$Id: strcmp.c,v 1.1 1995/10/18 08:42:22 deraadt Exp $"; +static char *rcsid = "$Id: strcmp.c,v 1.2 1996/05/01 12:57:47 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif /* * Compare strings. diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index 86956cdb957..04bf0fa67fe 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $ */ +/* $OpenBSD: strcpy.c,v 1.3 1996/05/01 12:57:49 deraadt Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -35,10 +35,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $"; +static char *rcsid = "$Id: strcpy.c,v 1.3 1996/05/01 12:57:49 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif char * strcpy(to, from) diff --git a/lib/libc/string/strlen.c b/lib/libc/string/strlen.c index de45ec06632..f5d526d9c43 100644 --- a/lib/libc/string/strlen.c +++ b/lib/libc/string/strlen.c @@ -33,10 +33,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strlen.c 5.5 (Berkeley) 1/26/91";*/ -static char *rcsid = "$Id: strlen.c,v 1.1 1995/10/18 08:42:22 deraadt Exp $"; +static char *rcsid = "$Id: strlen.c,v 1.2 1996/05/01 12:57:52 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif size_t strlen(str) diff --git a/lib/libc/string/strncmp.c b/lib/libc/string/strncmp.c index c82612749e4..43217391d00 100644 --- a/lib/libc/string/strncmp.c +++ b/lib/libc/string/strncmp.c @@ -33,10 +33,14 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/ -static char *rcsid = "$Id: strncmp.c,v 1.1 1995/10/18 08:42:23 deraadt Exp $"; +static char *rcsid = "$Id: strncmp.c,v 1.2 1996/05/01 12:57:54 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ +#ifndef _KERNEL #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif int strncmp(s1, s2, n) |