don't include user-land headers in libkern files when compiling for

the kernel.
This commit is contained in:
cgd 1996-04-18 02:19:59 +00:00
parent 1813cc71d0
commit 4a134a0780
11 changed files with 54 additions and 11 deletions

View File

@ -33,11 +33,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.6 1996/03/14 18:52:05 christos Exp $";
static char *rcsid = "$Id: bcmp.c,v 1.7 1996/04/18 02:19:59 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* bcmp -- vax cmpc3 instruction

View File

@ -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.5 1995/10/07 09:26:21 mycroft Exp $";
static char *rcsid = "$Id: bzero.c,v 1.6 1996/04/18 02:20:00 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* bzero -- vax movc5 instruction

View File

@ -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.5 1995/10/07 09:26:25 mycroft Exp $";
static char *rcsid = "$Id: ffs.c,v 1.6 1996/04/18 02:20:02 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* ffs -- vax ffs instruction

View File

@ -1,4 +1,4 @@
/* $NetBSD: quad.h,v 1.6 1996/03/14 18:52:14 christos Exp $ */
/* $NetBSD: quad.h,v 1.7 1996/04/18 02:20:04 cgd Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -56,7 +56,11 @@
*/
#include <sys/types.h>
#ifndef _KERNEL
#include <limits.h>
#else
#include <machine/limits.h>
#endif
/*
* Depending on the desired operation, we view a `long long' (aka quad_t) in

View File

@ -33,10 +33,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.6 1996/03/14 18:52:20 christos Exp $";
static char *rcsid = "$Id: strcat.c,v 1.7 1996/04/18 02:20:06 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
char *
strcat(s, append)

View File

@ -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.5 1995/10/07 09:26:45 mycroft Exp $";
static char *rcsid = "$Id: strcmp.c,v 1.6 1996/04/18 02:20:07 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* Compare strings.

View File

@ -33,10 +33,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.6 1996/03/14 18:52:21 christos Exp $";
static char *rcsid = "$Id: strcpy.c,v 1.7 1996/04/18 02:20:09 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
char *
strcpy(to, from)

View File

@ -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.5 1995/10/07 09:26:48 mycroft Exp $";
static char *rcsid = "$Id: strlen.c,v 1.6 1996/04/18 02:20:11 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
size_t
strlen(str)

View File

@ -28,10 +28,14 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$Id: strncasecmp.c,v 1.2 1996/02/06 21:35:31 christos Exp $";
static char *rcsid = "$Id: strncasecmp.c,v 1.3 1996/04/18 02:20:12 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
int
strncasecmp(s1, s2, n)

View File

@ -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.5 1995/10/07 09:26:49 mycroft Exp $";
static char *rcsid = "$Id: strncmp.c,v 1.6 1996/04/18 02:20:13 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
int
strncmp(s1, s2, n)

View File

@ -36,10 +36,14 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strncpy.c 5.6 (Berkeley) 1/26/91";*/
static char *rcsid = "$Id: strncpy.c,v 1.5 1995/10/07 09:26:51 mycroft Exp $";
static char *rcsid = "$Id: strncpy.c,v 1.6 1996/04/18 02:20:14 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifndef _KERNEL
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* Copy src to dst, truncating or null-padding to always copy n bytes.