summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>1996-05-01 12:57:54 +0000
committerderaadt <>1996-05-01 12:57:54 +0000
commit2686d34ae2184cc85034a4afb5eacf55b9732934 (patch)
tree70f1f93a5298feae7003283e3209b83aec055f19
parent1bff96637c43ff8d699b4b2095e0b6ad787e7e76 (diff)
downloadopenbsd-2686d34ae2184cc85034a4afb5eacf55b9732934.tar.gz
openbsd-2686d34ae2184cc85034a4afb5eacf55b9732934.tar.bz2
openbsd-2686d34ae2184cc85034a4afb5eacf55b9732934.zip
switch on _KERNEL to load proper include file
-rw-r--r--src/lib/libc/string/bcmp.c8
-rw-r--r--src/lib/libc/string/bzero.c6
-rw-r--r--src/lib/libc/string/ffs.c6
-rw-r--r--src/lib/libc/string/strcat.c8
-rw-r--r--src/lib/libc/string/strcmp.c6
-rw-r--r--src/lib/libc/string/strcpy.c8
-rw-r--r--src/lib/libc/string/strlen.c6
-rw-r--r--src/lib/libc/string/strncmp.c6
8 files changed, 43 insertions, 11 deletions
diff --git a/src/lib/libc/string/bcmp.c b/src/lib/libc/string/bcmp.c
index edd83c2686..782aa1a30b 100644
--- a/src/lib/libc/string/bcmp.c
+++ b/src/lib/libc/string/bcmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $ */ 1/* $OpenBSD: bcmp.c,v 1.3 1996/05/01 12:57:37 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1987 Regents of the University of California. 4 * Copyright (c) 1987 Regents of the University of California.
@@ -35,10 +35,14 @@
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37/*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/
38static char *rcsid = "$Id: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $"; 38static char *rcsid = "$Id: bcmp.c,v 1.3 1996/05/01 12:57:37 deraadt Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41#ifndef _KERNEL
41#include <string.h> 42#include <string.h>
43#else
44#include <lib/libkern/libkern.h>
45#endif
42 46
43/* 47/*
44 * bcmp -- vax cmpc3 instruction 48 * bcmp -- vax cmpc3 instruction
diff --git a/src/lib/libc/string/bzero.c b/src/lib/libc/string/bzero.c
index 4865e396ef..7d89de23f3 100644
--- a/src/lib/libc/string/bzero.c
+++ b/src/lib/libc/string/bzero.c
@@ -33,10 +33,14 @@
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)bzero.c 5.7 (Berkeley) 2/24/91";*/ 35/*static char *sccsid = "from: @(#)bzero.c 5.7 (Berkeley) 2/24/91";*/
36static char *rcsid = "$Id: bzero.c,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $"; 36static char *rcsid = "$Id: bzero.c,v 1.2 1996/05/01 12:57:40 deraadt Exp $";
37#endif /* LIBC_SCCS and not lint */ 37#endif /* LIBC_SCCS and not lint */
38 38
39#ifndef _KERNEL
39#include <string.h> 40#include <string.h>
41#else
42#include <lib/libkern/libkern.h>
43#endif
40 44
41/* 45/*
42 * bzero -- vax movc5 instruction 46 * bzero -- vax movc5 instruction
diff --git a/src/lib/libc/string/ffs.c b/src/lib/libc/string/ffs.c
index 42bc87ddea..6a8ff26593 100644
--- a/src/lib/libc/string/ffs.c
+++ b/src/lib/libc/string/ffs.c
@@ -33,10 +33,14 @@
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)ffs.c 5.4 (Berkeley) 5/17/90";*/ 35/*static char *sccsid = "from: @(#)ffs.c 5.4 (Berkeley) 5/17/90";*/
36static char *rcsid = "$Id: ffs.c,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $"; 36static char *rcsid = "$Id: ffs.c,v 1.2 1996/05/01 12:57:42 deraadt Exp $";
37#endif /* LIBC_SCCS and not lint */ 37#endif /* LIBC_SCCS and not lint */
38 38
39#ifndef _KERNEL
39#include <string.h> 40#include <string.h>
41#else
42#include <lib/libkern/libkern.h>
43#endif
40 44
41/* 45/*
42 * ffs -- vax ffs instruction 46 * ffs -- vax ffs instruction
diff --git a/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c
index 10e0aefe12..2958d5e78c 100644
--- a/src/lib/libc/string/strcat.c
+++ b/src/lib/libc/string/strcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $ */ 1/* $OpenBSD: strcat.c,v 1.3 1996/05/01 12:57:45 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1988 Regents of the University of California. 4 * Copyright (c) 1988 Regents of the University of California.
@@ -35,10 +35,14 @@
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37/*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/
38static char *rcsid = "$Id: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $"; 38static char *rcsid = "$Id: strcat.c,v 1.3 1996/05/01 12:57:45 deraadt Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41#ifndef _KERNEL
41#include <string.h> 42#include <string.h>
43#else
44#include <lib/libkern/libkern.h>
45#endif
42 46
43char * 47char *
44strcat(s, append) 48strcat(s, append)
diff --git a/src/lib/libc/string/strcmp.c b/src/lib/libc/string/strcmp.c
index ae19e2e26e..690da8f3fb 100644
--- a/src/lib/libc/string/strcmp.c
+++ b/src/lib/libc/string/strcmp.c
@@ -36,10 +36,14 @@
36 36
37#if defined(LIBC_SCCS) && !defined(lint) 37#if defined(LIBC_SCCS) && !defined(lint)
38/*static char *sccsid = "from: @(#)strcmp.c 5.5 (Berkeley) 1/26/91";*/ 38/*static char *sccsid = "from: @(#)strcmp.c 5.5 (Berkeley) 1/26/91";*/
39static char *rcsid = "$Id: strcmp.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; 39static char *rcsid = "$Id: strcmp.c,v 1.2 1996/05/01 12:57:47 deraadt Exp $";
40#endif /* LIBC_SCCS and not lint */ 40#endif /* LIBC_SCCS and not lint */
41 41
42#ifndef _KERNEL
42#include <string.h> 43#include <string.h>
44#else
45#include <lib/libkern/libkern.h>
46#endif
43 47
44/* 48/*
45 * Compare strings. 49 * Compare strings.
diff --git a/src/lib/libc/string/strcpy.c b/src/lib/libc/string/strcpy.c
index 86956cdb95..04bf0fa67f 100644
--- a/src/lib/libc/string/strcpy.c
+++ b/src/lib/libc/string/strcpy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $ */ 1/* $OpenBSD: strcpy.c,v 1.3 1996/05/01 12:57:49 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1988 Regents of the University of California. 4 * Copyright (c) 1988 Regents of the University of California.
@@ -35,10 +35,14 @@
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/
38static char *rcsid = "$Id: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $"; 38static char *rcsid = "$Id: strcpy.c,v 1.3 1996/05/01 12:57:49 deraadt Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41#ifndef _KERNEL
41#include <string.h> 42#include <string.h>
43#else
44#include <lib/libkern/libkern.h>
45#endif
42 46
43char * 47char *
44strcpy(to, from) 48strcpy(to, from)
diff --git a/src/lib/libc/string/strlen.c b/src/lib/libc/string/strlen.c
index d23aadafc0..f5d526d9c4 100644
--- a/src/lib/libc/string/strlen.c
+++ b/src/lib/libc/string/strlen.c
@@ -33,10 +33,14 @@
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strlen.c 5.5 (Berkeley) 1/26/91";*/ 35/*static char *sccsid = "from: @(#)strlen.c 5.5 (Berkeley) 1/26/91";*/
36static char *rcsid = "$Id: strlen.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; 36static char *rcsid = "$Id: strlen.c,v 1.2 1996/05/01 12:57:52 deraadt Exp $";
37#endif /* LIBC_SCCS and not lint */ 37#endif /* LIBC_SCCS and not lint */
38 38
39#ifndef _KERNEL
39#include <string.h> 40#include <string.h>
41#else
42#include <lib/libkern/libkern.h>
43#endif
40 44
41size_t 45size_t
42strlen(str) 46strlen(str)
diff --git a/src/lib/libc/string/strncmp.c b/src/lib/libc/string/strncmp.c
index 0638d4dcf2..43217391d0 100644
--- a/src/lib/libc/string/strncmp.c
+++ b/src/lib/libc/string/strncmp.c
@@ -33,10 +33,14 @@
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/ 35/*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/
36static char *rcsid = "$Id: strncmp.c,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $"; 36static char *rcsid = "$Id: strncmp.c,v 1.2 1996/05/01 12:57:54 deraadt Exp $";
37#endif /* LIBC_SCCS and not lint */ 37#endif /* LIBC_SCCS and not lint */
38 38
39#ifndef _KERNEL
39#include <string.h> 40#include <string.h>
41#else
42#include <lib/libkern/libkern.h>
43#endif
40 44
41int 45int
42strncmp(s1, s2, n) 46strncmp(s1, s2, n)