summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in2
-rw-r--r--kern/strings.h15
2 files changed, 10 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in
index 04181e8..3b6d050 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -297,7 +297,7 @@ check:
# This is the list of routines we decide is OK to steal from the C library.
clib-routines := memcpy memmove memset bcopy bzero \
- strchr strstr \
+ strchr strstr strsep \
htonl htons ntohl ntohs \
etext edata end # actually ld magic, not libc
diff --git a/kern/strings.h b/kern/strings.h
index b71a7b3..225228d 100644
--- a/kern/strings.h
+++ b/kern/strings.h
@@ -1,25 +1,25 @@
-/*
+/*
* Mach Operating System
* Copyright (c) 1993 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
+ *
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
- *
+ *
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
- *
+ *
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
@@ -51,3 +51,6 @@ extern char *strncpy(
extern unsigned long strlen(
const char *);
+
+extern char *strsep(char **, const char *);
+extern char *strchr(const char *, int);