Include sys/libkern.h for the kernel prototypes of these libkern functions

instead of including the userland string.h header.

Prompted by:	breakage with old string.h from recent machine/types.h fix
Approved by:	peter (in principle)
This commit is contained in:
John Baldwin 2002-08-22 20:08:07 +00:00
parent bbf7bd333d
commit 452bffb217
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102281
8 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
#include <machine/endian.h>
typedef const void *cvp;

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
/*
* ffs -- vax ffs instruction

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
char *
strcat(s, append)

View File

@ -36,7 +36,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
/*
* Compare strings.

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
char *
strcpy(to, from)

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
size_t
strlen(str)

View File

@ -33,7 +33,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
int
strncmp(s1, s2, n)

View File

@ -36,7 +36,7 @@
* $FreeBSD$
*/
#include <string.h>
#include <sys/libkern.h>
/*
* Copy src to dst, truncating or null-padding to always copy n bytes.