os/ossrv/genericopenlibs/openenvcore/include/string.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/string.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,164 @@
     1.4 +/*-
     1.5 + * Copyright (c) 1990, 1993
     1.6 + *	The Regents of the University of California.  All rights reserved.
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + * 1. Redistributions of source code must retain the above copyright
    1.12 + *    notice, this list of conditions and the following disclaimer.
    1.13 + * 2. Redistributions in binary form must reproduce the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer in the
    1.15 + *    documentation and/or other materials provided with the distribution.
    1.16 + * 4. Neither the name of the University nor the names of its contributors
    1.17 + *    may be used to endorse or promote products derived from this software
    1.18 + *    without specific prior written permission.
    1.19 + *
    1.20 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    1.21 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.22 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.23 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.24 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.25 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.26 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.27 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.28 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.29 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.30 + * SUCH DAMAGE.
    1.31 + *
    1.32 + *	@(#)string.h	8.1 (Berkeley) 6/2/93
    1.33 + * $FreeBSD: src/include/string.h,v 1.21.2.1 2005/08/29 18:46:39 andre Exp $
    1.34 + *  © Portions copyright (c) 2005-2006  Nokia Corporation.  All rights reserved.
    1.35 + */
    1.36 +
    1.37 +#ifndef _STRING_H_
    1.38 +#define	_STRING_H_
    1.39 +
    1.40 +#include <sys/cdefs.h>
    1.41 +#include <sys/_null.h>
    1.42 +#include <sys/_types.h>
    1.43 +
    1.44 +#ifdef __SYMBIAN32__
    1.45 +#include <_ansi.h>
    1.46 +#endif
    1.47 +/*
    1.48 + * Prototype functions which were historically defined in <string.h>, but
    1.49 + * are required by POSIX to be prototyped in <strings.h>.
    1.50 + */
    1.51 +#if __BSD_VISIBLE
    1.52 +#include <strings.h>
    1.53 +#endif
    1.54 +
    1.55 +#ifndef _SIZE_T_DECLARED
    1.56 +typedef	__size_t	size_t;
    1.57 +#define	_SIZE_T_DECLARED
    1.58 +#endif
    1.59 +
    1.60 +__BEGIN_DECLS
    1.61 +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    1.62 +IMPORT_C 
    1.63 +void	*memccpy(void * __restrict, const void * __restrict, int, size_t);
    1.64 +#endif
    1.65 +IMPORT_C 
    1.66 +void	*memchr(const void *, int, size_t) __pure;
    1.67 +IMPORT_C 
    1.68 +int	 memcmp(const void *, const void *, size_t) __pure;
    1.69 +IMPORT_C 
    1.70 +void	*memcpy(void * __restrict, const void * __restrict, size_t);
    1.71 +IMPORT_C 
    1.72 +void	*memmove(void *, const void *, size_t);
    1.73 +IMPORT_C 
    1.74 +void	*memset(void *, int, size_t);
    1.75 +#if __BSD_VISIBLE
    1.76 +IMPORT_C 
    1.77 +char	*stpcpy(char *, const char *);
    1.78 +IMPORT_C 
    1.79 +char	*strcasestr(const char *, const char *) __pure;
    1.80 +#endif
    1.81 +IMPORT_C 
    1.82 +char	*strcat(char * __restrict, const char * __restrict);
    1.83 +IMPORT_C 
    1.84 +char	*strchr(const char *, int) __pure;
    1.85 +IMPORT_C 
    1.86 +int	 strcmp(const char *, const char *) __pure;
    1.87 +IMPORT_C 
    1.88 +int	 strcoll(const char *, const char *);
    1.89 +IMPORT_C 
    1.90 +char	*strcpy(char * __restrict, const char * __restrict);
    1.91 +IMPORT_C 
    1.92 +size_t	 strcspn(const char *, const char *) __pure;
    1.93 +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    1.94 +IMPORT_C 
    1.95 +char	*strdup(const char *);
    1.96 +#endif
    1.97 +IMPORT_C 
    1.98 +char	*strndup(const char *,size_t);
    1.99 +IMPORT_C 
   1.100 +size_t strnlen(const char *,size_t);
   1.101 +IMPORT_C 
   1.102 +char	*strerror(int);
   1.103 +#if __POSIX_VISIBLE >= 200112
   1.104 +IMPORT_C 
   1.105 +int	 strerror_r(int, char *, size_t);
   1.106 +#endif
   1.107 +#if __BSD_VISIBLE
   1.108 +IMPORT_C size_t	 strlcat(char *, const char *, size_t);
   1.109 +IMPORT_C size_t	 strlcpy(char *, const char *, size_t);
   1.110 +#endif
   1.111 +IMPORT_C 
   1.112 +size_t	 strlen(const char *) __pure;
   1.113 +
   1.114 +#if __BSD_VISIBLE
   1.115 +#ifdef __SYMBIAN_COMPILE_UNUSED__
   1.116 +void	 strmode(int, char *);
   1.117 +#endif
   1.118 +
   1.119 +#endif
   1.120 +IMPORT_C 
   1.121 +char	*strncat(char * __restrict, const char * __restrict, size_t);
   1.122 +IMPORT_C 
   1.123 +int	 strncmp(const char *, const char *, size_t) __pure;
   1.124 +IMPORT_C 
   1.125 +char	*strncpy(char * __restrict, const char * __restrict, size_t);
   1.126 +#if __BSD_VISIBLE
   1.127 +IMPORT_C 
   1.128 +char	*strnstr(const char *, const char *, size_t) __pure;
   1.129 +#endif
   1.130 +IMPORT_C 
   1.131 +char	*strpbrk(const char *, const char *) __pure;
   1.132 +IMPORT_C 
   1.133 +char	*strrchr(const char *, int) __pure;
   1.134 +#if __BSD_VISIBLE
   1.135 +IMPORT_C 
   1.136 +char	*strsep(char **, const char *);
   1.137 +#endif
   1.138 +IMPORT_C 
   1.139 +size_t	 strspn(const char *, const char *) __pure;
   1.140 +IMPORT_C 
   1.141 +char	*strstr(const char *, const char *) __pure;
   1.142 +IMPORT_C 
   1.143 +char	*strtok(char * __restrict, const char * __restrict);
   1.144 +#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
   1.145 +IMPORT_C 
   1.146 +char	*strtok_r(char *, const char *, char **);
   1.147 +#endif
   1.148 +IMPORT_C 
   1.149 +size_t	 strxfrm(char * __restrict, const char * __restrict, size_t);
   1.150 +#if __BSD_VISIBLE
   1.151 +
   1.152 +#ifndef _SWAB_DECLARED
   1.153 +#define _SWAB_DECLARED
   1.154 +
   1.155 +#ifndef _SSIZE_T_DECLARED
   1.156 +typedef	__ssize_t	ssize_t;
   1.157 +#define	_SSIZE_T_DECLARED
   1.158 +#endif /* _SIZE_T_DECLARED */
   1.159 +
   1.160 +IMPORT_C 
   1.161 +void	 swab(const void * __restrict, void * __restrict, ssize_t);
   1.162 +#endif /* _SWAB_DECLARED */
   1.163 +
   1.164 +#endif /* __BSD_VISIBLE */
   1.165 +__END_DECLS
   1.166 +
   1.167 +#endif /* _STRING_H_ */