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:
parent
bbf7bd333d
commit
452bffb217
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102281
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
typedef const void *cvp;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
/*
|
||||
* ffs -- vax ffs instruction
|
||||
|
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
char *
|
||||
strcat(s, append)
|
||||
|
@ -36,7 +36,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
/*
|
||||
* Compare strings.
|
||||
|
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
char *
|
||||
strcpy(to, from)
|
||||
|
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
size_t
|
||||
strlen(str)
|
||||
|
@ -33,7 +33,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/libkern.h>
|
||||
|
||||
int
|
||||
strncmp(s1, s2, n)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user