|
||||
File indexing completed on 2025-01-18 09:54:02
0001 /* 0002 * Copyright © 2004, 2005, 2009, 2011 Guillem Jover <guillem@hadrons.org> 0003 * 0004 * Redistribution and use in source and binary forms, with or without 0005 * modification, are permitted provided that the following conditions 0006 * are met: 0007 * 1. Redistributions of source code must retain the above copyright 0008 * notice, this list of conditions and the following disclaimer. 0009 * 2. Redistributions in binary form must reproduce the above copyright 0010 * notice, this list of conditions and the following disclaimer in the 0011 * documentation and/or other materials provided with the distribution. 0012 * 3. The name of the author may not be used to endorse or promote products 0013 * derived from this software without specific prior written permission. 0014 * 0015 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 0016 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 0017 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 0018 * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 0019 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 0020 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 0021 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 0022 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 0023 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 0024 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0025 */ 0026 0027 #ifdef LIBBSD_OVERLAY 0028 #include_next <string.h> 0029 #else 0030 #include <string.h> 0031 #endif 0032 0033 #ifndef LIBBSD_STRING_H 0034 #define LIBBSD_STRING_H 0035 0036 #ifdef LIBBSD_OVERLAY 0037 #include <sys/cdefs.h> 0038 #else 0039 #include <bsd/sys/cdefs.h> 0040 #endif 0041 #include <sys/types.h> 0042 0043 __BEGIN_DECLS 0044 #if !defined(__APPLE__) && \ 0045 (!defined(__GLIBC__) || !__GLIBC_PREREQ(2, 38) || !defined(_DEFAULT_SOURCE)) 0046 size_t strlcpy(char *dst, const char *src, size_t siz); 0047 size_t strlcat(char *dst, const char *src, size_t siz); 0048 #endif 0049 char *strnstr(const char *str, const char *find, size_t str_len); 0050 #ifndef __APPLE__ 0051 void strmode(mode_t mode, char *str); 0052 #endif 0053 0054 #if !defined(__GLIBC__) || \ 0055 !__GLIBC_PREREQ(2, 25) || \ 0056 !defined(_DEFAULT_SOURCE) 0057 void explicit_bzero(void *buf, size_t len); 0058 #endif 0059 __END_DECLS 0060 0061 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |