11539Srgrimes/*-
293747Smike * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
393747Smike * All rights reserved.
41539Srgrimes *
51539Srgrimes * Redistribution and use in source and binary forms, with or without
61539Srgrimes * modification, are permitted provided that the following conditions
71539Srgrimes * are met:
81539Srgrimes * 1. Redistributions of source code must retain the above copyright
91539Srgrimes *    notice, this list of conditions and the following disclaimer.
101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111539Srgrimes *    notice, this list of conditions and the following disclaimer in the
121539Srgrimes *    documentation and/or other materials provided with the distribution.
131539Srgrimes *
1493747Smike * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
151539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
161539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1793747Smike * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
181539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
191539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
201539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
211539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
221539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
231539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
241539Srgrimes * SUCH DAMAGE.
251539Srgrimes *
2693747Smike * $FreeBSD$
271539Srgrimes */
281539Srgrimes
2993747Smike#ifndef _STRINGS_H_
3093747Smike#define	_STRINGS_H_
3193747Smike
3293747Smike#include <sys/cdefs.h>
33102227Smike#include <sys/_types.h>
3493747Smike
35102227Smike#ifndef _SIZE_T_DECLARED
36102227Smiketypedef	__size_t	size_t;
37102227Smike#define	_SIZE_T_DECLARED
3893747Smike#endif
3993747Smike
4093747Smike__BEGIN_DECLS
41189350Sdas#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
42132577Stjrint	 bcmp(const void *, const void *, size_t) __pure;	/* LEGACY */
43132577Stjrvoid	 bcopy(const void *, void *, size_t);			/* LEGACY */
44132577Stjrvoid	 bzero(void *, size_t);					/* LEGACY */
45189350Sdas#endif
46189350Sdas#if __XSI_VISIBLE
47132577Stjrint	 ffs(int) __pure2;
48189350Sdas#endif
49201525Sed#if __BSD_VISIBLE
50132577Stjrint	 ffsl(long) __pure2;
51184587Skibint	 ffsll(long long) __pure2;
52132577Stjrint	 fls(int) __pure2;
53132577Stjrint	 flsl(long) __pure2;
54184587Skibint	 flsll(long long) __pure2;
55131875Sdes#endif
56189350Sdas#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
57132577Stjrchar	*index(const char *, int) __pure;			/* LEGACY */
58132577Stjrchar	*rindex(const char *, int) __pure;			/* LEGACY */
59189350Sdas#endif
60132577Stjrint	 strcasecmp(const char *, const char *) __pure;
61132577Stjrint	 strncasecmp(const char *, const char *, size_t) __pure;
6293747Smike__END_DECLS
6393747Smike
6493747Smike#endif /* _STRINGS_H_ */
65