Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c3a7bc41
Commit
c3a7bc41
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Remove last remaining bits of strtok.
parent
0d440bfb
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
10 additions
and
79 deletions
+10
-79
arch/alpha/kernel/alpha_ksyms.c
arch/alpha/kernel/alpha_ksyms.c
+0
-1
arch/arm/kernel/armksyms.c
arch/arm/kernel/armksyms.c
+1
-1
arch/cris/kernel/ksyms.c
arch/cris/kernel/ksyms.c
+0
-2
arch/i386/kernel/i386_ksyms.c
arch/i386/kernel/i386_ksyms.c
+0
-1
arch/ia64/kernel/ia64_ksyms.c
arch/ia64/kernel/ia64_ksyms.c
+0
-1
arch/m68k/kernel/m68k_ksyms.c
arch/m68k/kernel/m68k_ksyms.c
+0
-1
arch/mips/kernel/mips_ksyms.c
arch/mips/kernel/mips_ksyms.c
+1
-2
arch/mips64/kernel/mips64_ksyms.c
arch/mips64/kernel/mips64_ksyms.c
+1
-2
arch/parisc/kernel/parisc_ksyms.c
arch/parisc/kernel/parisc_ksyms.c
+0
-1
arch/ppc/kernel/ppc_ksyms.c
arch/ppc/kernel/ppc_ksyms.c
+0
-1
arch/sh/kernel/sh_ksyms.c
arch/sh/kernel/sh_ksyms.c
+0
-3
arch/sparc/kernel/sparc_ksyms.c
arch/sparc/kernel/sparc_ksyms.c
+0
-1
arch/sparc64/kernel/sparc64_ksyms.c
arch/sparc64/kernel/sparc64_ksyms.c
+0
-1
arch/x86_64/kernel/x8664_ksyms.c
arch/x86_64/kernel/x8664_ksyms.c
+0
-1
include/asm-i386/string-486.h
include/asm-i386/string-486.h
+1
-1
include/asm-i386/string.h
include/asm-i386/string.h
+1
-1
include/asm-m68k/string.h
include/asm-m68k/string.h
+0
-23
include/linux/string.h
include/linux/string.h
+0
-2
kernel/ksyms.c
kernel/ksyms.c
+0
-1
lib/string.c
lib/string.c
+5
-32
No files found.
arch/alpha/kernel/alpha_ksyms.c
View file @
c3a7bc41
...
...
@@ -103,7 +103,6 @@ EXPORT_SYMBOL(strncpy);
EXPORT_SYMBOL
(
strnlen
);
EXPORT_SYMBOL
(
strncat
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strchr
);
EXPORT_SYMBOL
(
strrchr
);
...
...
arch/arm/kernel/armksyms.c
View file @
c3a7bc41
...
...
@@ -180,7 +180,7 @@ EXPORT_SYMBOL_NOVERS(strchr);
EXPORT_SYMBOL_NOVERS
(
strlen
);
EXPORT_SYMBOL_NOVERS
(
strnlen
);
EXPORT_SYMBOL_NOVERS
(
strpbrk
);
EXPORT_SYMBOL_NOVERS
(
str
tok
);
EXPORT_SYMBOL_NOVERS
(
str
sep
);
EXPORT_SYMBOL_NOVERS
(
strrchr
);
EXPORT_SYMBOL_NOVERS
(
strstr
);
EXPORT_SYMBOL_NOVERS
(
memset
);
...
...
arch/cris/kernel/ksyms.c
View file @
c3a7bc41
...
...
@@ -38,9 +38,7 @@ EXPORT_SYMBOL(loops_per_usec);
/* String functions */
EXPORT_SYMBOL
(
memcmp
);
EXPORT_SYMBOL
(
memmove
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
simple_strtol
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strcpy
);
EXPORT_SYMBOL
(
strchr
);
...
...
arch/i386/kernel/i386_ksyms.c
View file @
c3a7bc41
...
...
@@ -93,7 +93,6 @@ EXPORT_SYMBOL_NOVERS(__get_user_1);
EXPORT_SYMBOL_NOVERS
(
__get_user_2
);
EXPORT_SYMBOL_NOVERS
(
__get_user_4
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strstr
);
...
...
arch/ia64/kernel/ia64_ksyms.c
View file @
c3a7bc41
...
...
@@ -23,7 +23,6 @@ EXPORT_SYMBOL(strncpy);
EXPORT_SYMBOL
(
strnlen
);
EXPORT_SYMBOL
(
strrchr
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
#include <linux/irq.h>
...
...
arch/m68k/kernel/m68k_ksyms.c
View file @
c3a7bc41
...
...
@@ -54,7 +54,6 @@ EXPORT_SYMBOL(dump_thread);
EXPORT_SYMBOL
(
strnlen
);
EXPORT_SYMBOL
(
strrchr
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
enable_irq
);
EXPORT_SYMBOL
(
disable_irq
);
EXPORT_SYMBOL
(
kernel_thread
);
...
...
arch/mips/kernel/mips_ksyms.c
View file @
c3a7bc41
...
...
@@ -51,7 +51,6 @@ EXPORT_SYMBOL_NOVERS(memcmp);
EXPORT_SYMBOL_NOVERS
(
memset
);
EXPORT_SYMBOL_NOVERS
(
memcpy
);
EXPORT_SYMBOL_NOVERS
(
memmove
);
EXPORT_SYMBOL
(
simple_strtol
);
EXPORT_SYMBOL_NOVERS
(
strcat
);
EXPORT_SYMBOL_NOVERS
(
strchr
);
EXPORT_SYMBOL_NOVERS
(
strlen
);
...
...
@@ -60,7 +59,7 @@ EXPORT_SYMBOL_NOVERS(strncat);
EXPORT_SYMBOL_NOVERS
(
strnlen
);
EXPORT_SYMBOL_NOVERS
(
strrchr
);
EXPORT_SYMBOL_NOVERS
(
strstr
);
EXPORT_SYMBOL_NOVERS
(
str
tok
);
EXPORT_SYMBOL_NOVERS
(
str
sep
);
EXPORT_SYMBOL
(
_clear_page
);
EXPORT_SYMBOL
(
enable_irq
);
...
...
arch/mips64/kernel/mips64_ksyms.c
View file @
c3a7bc41
...
...
@@ -48,14 +48,13 @@ EXPORT_SYMBOL_NOVERS(memcmp);
EXPORT_SYMBOL_NOVERS
(
memset
);
EXPORT_SYMBOL_NOVERS
(
memcpy
);
EXPORT_SYMBOL_NOVERS
(
memmove
);
EXPORT_SYMBOL
(
simple_strtol
);
EXPORT_SYMBOL_NOVERS
(
strcat
);
EXPORT_SYMBOL_NOVERS
(
strchr
);
EXPORT_SYMBOL_NOVERS
(
strlen
);
EXPORT_SYMBOL_NOVERS
(
strncat
);
EXPORT_SYMBOL_NOVERS
(
strnlen
);
EXPORT_SYMBOL_NOVERS
(
strrchr
);
EXPORT_SYMBOL_NOVERS
(
str
tok
);
EXPORT_SYMBOL_NOVERS
(
str
sep
);
EXPORT_SYMBOL_NOVERS
(
strpbrk
);
EXPORT_SYMBOL
(
_clear_page
);
...
...
arch/parisc/kernel/parisc_ksyms.c
View file @
c3a7bc41
...
...
@@ -20,7 +20,6 @@ EXPORT_SYMBOL(strlen);
EXPORT_SYMBOL
(
strncat
);
EXPORT_SYMBOL
(
strncmp
);
EXPORT_SYMBOL
(
strncpy
);
EXPORT_SYMBOL
(
strtok
);
#include <linux/pci.h>
EXPORT_SYMBOL
(
hppa_dma_ops
);
...
...
arch/ppc/kernel/ppc_ksyms.c
View file @
c3a7bc41
...
...
@@ -123,7 +123,6 @@ EXPORT_SYMBOL(strncat);
EXPORT_SYMBOL
(
strchr
);
EXPORT_SYMBOL
(
strrchr
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strlen
);
EXPORT_SYMBOL
(
strnlen
);
...
...
arch/sh/kernel/sh_ksyms.c
View file @
c3a7bc41
...
...
@@ -39,9 +39,6 @@ EXPORT_SYMBOL(no_irq_type);
/* Networking helper routines. */
EXPORT_SYMBOL
(
csum_partial_copy
);
EXPORT_SYMBOL
(
simple_strtol
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
strlen
);
...
...
arch/sparc/kernel/sparc_ksyms.c
View file @
c3a7bc41
...
...
@@ -250,7 +250,6 @@ EXPORT_SYMBOL_NOVERS(strncmp);
EXPORT_SYMBOL
(
strchr
);
EXPORT_SYMBOL
(
strrchr
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strstr
);
EXPORT_SYMBOL
(
page_kernel
);
...
...
arch/sparc64/kernel/sparc64_ksyms.c
View file @
c3a7bc41
...
...
@@ -303,7 +303,6 @@ EXPORT_SYMBOL(strcmp);
EXPORT_SYMBOL
(
strchr
);
EXPORT_SYMBOL
(
strrchr
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strstr
);
#ifdef CONFIG_SOLARIS_EMUL_MODULE
...
...
arch/x86_64/kernel/x8664_ksyms.c
View file @
c3a7bc41
...
...
@@ -87,7 +87,6 @@ EXPORT_SYMBOL_NOVERS(__put_user_1);
EXPORT_SYMBOL_NOVERS
(
__put_user_2
);
EXPORT_SYMBOL_NOVERS
(
__put_user_4
);
EXPORT_SYMBOL
(
strtok
);
EXPORT_SYMBOL
(
strpbrk
);
EXPORT_SYMBOL
(
strstr
);
...
...
include/asm-i386/string-486.h
View file @
c3a7bc41
...
...
@@ -5,7 +5,7 @@
* This string-include defines all string functions as inline
* functions. Use gcc. It also assumes ds=es=data space, this should be
* normal. Most of the string-functions are rather heavily hand-optimized,
* see especially str
tok
,strstr,str[c]spn. They should work, but are not
* see especially str
sep
,strstr,str[c]spn. They should work, but are not
* very easy to understand. Everything is done entirely within the register
* set, making the functions fast and clean.
*
...
...
include/asm-i386/string.h
View file @
c3a7bc41
...
...
@@ -20,7 +20,7 @@
* This string-include defines all string functions as inline
* functions. Use gcc. It also assumes ds=es=data space, this should be
* normal. Most of the string-functions are rather heavily hand-optimized,
* see especially str
tok
,strstr,str[c]spn. They should work, but are not
* see especially str
sep
,strstr,str[c]spn. They should work, but are not
* very easy to understand. Everything is done entirely within the register
* set, making the functions fast and clean. String instructions have been
* used through-out, making for "slightly" unclear code :-)
...
...
include/asm-m68k/string.h
View file @
c3a7bc41
...
...
@@ -117,29 +117,6 @@ static inline size_t strspn(const char *s, const char *accept)
}
#endif
#if 0
#define __HAVE_ARCH_STRTOK
extern inline char * strtok(char * s,const char * ct)
{
char *sbegin, *send;
sbegin = s ? s : ___strtok;
if (!sbegin) {
return NULL;
}
sbegin += strspn(sbegin,ct);
if (*sbegin == '\0') {
___strtok = NULL;
return( NULL );
}
send = strpbrk( sbegin, ct);
if (send && *send != '\0')
*send++ = '\0';
___strtok = send;
return (sbegin);
}
#endif
/* strstr !! */
#define __HAVE_ARCH_STRLEN
...
...
include/linux/string.h
View file @
c3a7bc41
...
...
@@ -12,9 +12,7 @@
extern
"C"
{
#endif
extern
char
*
___strtok
;
extern
char
*
strpbrk
(
const
char
*
,
const
char
*
);
extern
char
*
strtok
(
char
*
,
const
char
*
);
extern
char
*
strsep
(
char
**
,
const
char
*
);
extern
__kernel_size_t
strspn
(
const
char
*
,
const
char
*
);
...
...
kernel/ksyms.c
View file @
c3a7bc41
...
...
@@ -537,7 +537,6 @@ EXPORT_SYMBOL(sys_tz);
EXPORT_SYMBOL
(
file_fsync
);
EXPORT_SYMBOL
(
fsync_buffers_list
);
EXPORT_SYMBOL
(
clear_inode
);
EXPORT_SYMBOL
(
___strtok
);
EXPORT_SYMBOL
(
init_special_inode
);
EXPORT_SYMBOL
(
__get_hash_table
);
EXPORT_SYMBOL
(
new_inode
);
...
...
lib/string.c
View file @
c3a7bc41
...
...
@@ -13,6 +13,10 @@
* * Fri Jun 25 1999, Ingo Oeser <ioe@informatik.tu-chemnitz.de>
* - Added strsep() which will replace strtok() soon (because strsep() is
* reentrant and should be faster). Use only strsep() in new code, please.
*
* * Sat Feb 09 2002, Jason Thomas <jason@topic.com.au>,
* Matthew Hawkins <matt@mh.dropbear.id.au>
* - Kissed strtok() goodbye
*/
#include <linux/types.h>
...
...
@@ -52,8 +56,6 @@ int strnicmp(const char *s1, const char *s2, size_t len)
}
#endif
char
*
___strtok
;
#ifndef __HAVE_ARCH_STRCPY
/**
* strcpy - Copy a %NUL terminated string
...
...
@@ -290,35 +292,6 @@ char * strpbrk(const char * cs,const char * ct)
}
#endif
#ifndef __HAVE_ARCH_STRTOK
/**
* strtok - Split a string into tokens
* @s: The string to be searched
* @ct: The characters to search for
*
* WARNING: strtok is deprecated, use strsep instead.
*/
char
*
strtok
(
char
*
s
,
const
char
*
ct
)
{
char
*
sbegin
,
*
send
;
sbegin
=
s
?
s
:
___strtok
;
if
(
!
sbegin
)
{
return
NULL
;
}
sbegin
+=
strspn
(
sbegin
,
ct
);
if
(
*
sbegin
==
'\0'
)
{
___strtok
=
NULL
;
return
(
NULL
);
}
send
=
strpbrk
(
sbegin
,
ct
);
if
(
send
&&
*
send
!=
'\0'
)
*
send
++
=
'\0'
;
___strtok
=
send
;
return
(
sbegin
);
}
#endif
#ifndef __HAVE_ARCH_STRSEP
/**
* strsep - Split a string into tokens
...
...
@@ -452,7 +425,7 @@ void * memmove(void * dest,const void *src,size_t count)
int
memcmp
(
const
void
*
cs
,
const
void
*
ct
,
size_t
count
)
{
const
unsigned
char
*
su1
,
*
su2
;
signed
char
res
=
0
;
int
res
=
0
;
for
(
su1
=
cs
,
su2
=
ct
;
0
<
count
;
++
su1
,
++
su2
,
count
--
)
if
((
res
=
*
su1
-
*
su2
)
!=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment