From 0e34636229bf33fa2d4620f973e2793fe4c89d10 Mon Sep 17 00:00:00 2001 From: kleink Date: Sun, 27 Sep 1998 17:57:49 +0000 Subject: [PATCH] Add an internal name for strtok_r(). --- lib/libc/include/namespace.h | 3 ++- lib/libc/string/strtok_r.c | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 7ec9996d1721..83b6c2fcecf8 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -1,4 +1,4 @@ -/* $NetBSD: namespace.h,v 1.8 1998/09/10 16:02:59 kleink Exp $ */ +/* $NetBSD: namespace.h,v 1.9 1998/09/27 17:57:49 kleink Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -287,6 +287,7 @@ #define strncasecmp _strncasecmp #define strptime _strptime #define strsignal _strsignal +#define strtok_r _strtok_r #define strunvis _strunvis #define strvis _strvis #define strvisx _strvisx diff --git a/lib/libc/string/strtok_r.c b/lib/libc/string/strtok_r.c index 5252526babef..038954c5512e 100644 --- a/lib/libc/string/strtok_r.c +++ b/lib/libc/string/strtok_r.c @@ -1,4 +1,4 @@ -/* $NetBSD: strtok_r.c,v 1.3 1998/02/03 18:49:25 perry Exp $ */ +/* $NetBSD: strtok_r.c,v 1.4 1998/09/27 17:57:49 kleink Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -38,12 +38,17 @@ #if 0 static char *sccsid = "@(#)strtok.c 5.8 (Berkeley) 2/24/91"; #else -__RCSID("$NetBSD: strtok_r.c,v 1.3 1998/02/03 18:49:25 perry Exp $"); +__RCSID("$NetBSD: strtok_r.c,v 1.4 1998/09/27 17:57:49 kleink Exp $"); #endif #endif /* LIBC_SCCS and not lint */ +#include "namespace.h" #include +#ifdef __weak_alias +__weak_alias(strtok_r,_strtok_r); +#endif + char * strtok_r(s, delim, lasts) char *s;