blob: 579a591e629e890239a33916c1d0a77804548fd9 [file] [log] [blame]
Shinya Kuribayashi89fded82007-08-31 14:41:45 +09001/*
wdenk4fc95692003-02-28 00:49:47 +00002 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
Shinya Kuribayashi89fded82007-08-31 14:41:45 +09006 * Copyright (c) 1994, 95, 96, 97, 98, 2000, 01 Ralf Baechle
7 * Copyright (c) 2000 by Silicon Graphics, Inc.
8 * Copyright (c) 2001 MIPS Technologies, Inc.
9 */
10#ifndef _ASM_STRING_H
11#define _ASM_STRING_H
12
Shinya Kuribayashi89fded82007-08-31 14:41:45 +090013/*
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090014 * We don't do inline string functions, since the
15 * optimised inline asm versions are not small.
wdenk4fc95692003-02-28 00:49:47 +000016 */
wdenk4fc95692003-02-28 00:49:47 +000017
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090018#undef __HAVE_ARCH_STRCPY
19extern char *strcpy(char *__dest, __const__ char *__src);
wdenk4fc95692003-02-28 00:49:47 +000020
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090021#undef __HAVE_ARCH_STRNCPY
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020022extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000023
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090024#undef __HAVE_ARCH_STRCMP
25extern int strcmp(__const__ char *__cs, __const__ char *__ct);
wdenk4fc95692003-02-28 00:49:47 +000026
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090027#undef __HAVE_ARCH_STRNCMP
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020028extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
wdenk4fc95692003-02-28 00:49:47 +000029
30#undef __HAVE_ARCH_MEMSET
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020031extern void *memset(void *__s, int __c, __kernel_size_t __count);
wdenk4fc95692003-02-28 00:49:47 +000032
33#undef __HAVE_ARCH_MEMCPY
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020034extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000035
36#undef __HAVE_ARCH_MEMMOVE
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020037extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000038
Shinya Kuribayashi89fded82007-08-31 14:41:45 +090039#endif /* _ASM_STRING_H */