blob: 31ffc534c5f9b63f6686cbb14ad601b6ccba0e6d [file] [log] [blame]
/*
* Copyright (C) 2018 Synaptics Incorporated. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED "AS-IS," AND
* SYNAPTICS EXPRESSLY DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES,
* INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE, AND ANY WARRANTIES OF NON-INFRINGEMENT OF ANY
* INTELLECTUAL PROPERTY RIGHTS. IN NO EVENT SHALL SYNAPTICS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE, OR
* CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE
* OF THE INFORMATION CONTAINED IN THIS DOCUMENT, HOWEVER CAUSED AND
* BASED ON ANY THEORY OF LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, AND EVEN IF SYNAPTICS WAS
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. IF A TRIBUNAL OF
* COMPETENT JURISDICTION DOES NOT PERMIT THE DISCLAIMER OF DIRECT
* DAMAGES OR ANY OTHER DAMAGES, SYNAPTICS' TOTAL CUMULATIVE LIABILITY
* TO ANY PARTY SHALL NOT EXCEED ONE HUNDRED U.S. DOLLARS.
*/
#ifndef _LINUX_STRING_H_
#define _LINUX_STRING_H_
#include <stddef.h>
#include <stdint.h>
#include "com_type.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __HAVE_ARCH_STRCPY
extern char * strcpy(char * dest,const char *src);
#endif
#ifndef __HAVE_ARCH_STRNCPY
extern char * strncpy(char * dest,const char *src, size_t count);
#endif
#ifndef __HAVE_ARCH_STRCAT
extern char * strcat(char * dest, const char *src);
#endif
#ifndef __HAVE_ARCH_STRNCAT
extern char * strncat(char * dest, const char * src, size_t count);
#endif
#ifndef __HAVE_ARCH_STRCMP
extern int strcmp(const char * cs ,const char * ct);
#endif
#ifndef __HAVE_ARCH_STRNCMP
extern int strncmp(const char * cs,const char * ct,size_t count);
#endif
#ifndef __HAVE_ARCH_STRCHR
extern char * strchr(const char * s ,int c);
#endif
#ifndef __HAVE_ARCH_STRRCHR
extern char * strrchr(const char * s,int c);
#endif
#ifndef __HAVE_ARCH_STRSTR
extern char * strstr(const char * s1,const char * s2);
#endif
#ifndef __HAVE_ARCH_STRLEN
extern size_t strlen(const char * s);
#endif
#ifndef __HAVE_ARCH_STRNLEN
extern size_t strnlen(const char * s,size_t count);
#endif
#ifndef __HAVE_ARCH_STRDUP
extern char * strdup(const char * s);
#endif
#ifndef __HAVE_ARCH_STRSWAB
extern char * strswab(const char * s);
#endif
#ifndef __HAVE_ARCH_MEMSET
extern void * memset(void * s,int c,size_t count);
#endif
#ifndef __HAVE_ARCH_MEMCPY
extern void * memcpy(void * dest,const void * src ,size_t count);
#endif
#ifndef __HAVE_ARCH_MEMMOVE
extern void * memmove(void * dest,const void * src,size_t count);
#endif
#ifndef __HAVE_ARCH_MEMSCAN
extern void * memscan(void * addr,int c ,size_t size);
#endif
#ifndef __HAVE_ARCH_MEMCMP
extern int memcmp(const void * cs,const void * ct,size_t count);
#endif
#ifndef __HAVE_ARCH_MEMCHR
extern void * memchr(const void * s,int c,size_t n);
#endif
extern size_t strlcpy(char * dest,const char *src, size_t count);
extern size_t strlcat(char *dst, const char *src, size_t siz);
#ifdef __cplusplus
}
#endif
#endif /* _LINUX_STRING_H_ */