2010-12-08 01:31:26 +08:00
|
|
|
/*
|
|
|
|
* strings.h
|
|
|
|
*
|
|
|
|
* Definitions for string operations.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STRINGS_H_
|
|
|
|
#define _STRINGS_H_
|
|
|
|
|
2016-04-14 12:50:11 +08:00
|
|
|
/* These functions are already declared in <string.h> with __BSD_VISIBLE */
|
|
|
|
#if !(defined(_STRING_H_) && __BSD_VISIBLE)
|
|
|
|
|
2010-12-08 01:31:26 +08:00
|
|
|
#include "_ansi.h"
|
|
|
|
#include <sys/reent.h>
|
2016-03-15 06:20:38 +08:00
|
|
|
#include <sys/cdefs.h>
|
2010-12-08 01:31:26 +08:00
|
|
|
#include <sys/types.h> /* for size_t */
|
|
|
|
|
2016-08-25 04:36:31 +08:00
|
|
|
#if __POSIX_VISIBLE >= 200809
|
2017-03-22 04:21:30 +08:00
|
|
|
#include <xlocale.h>
|
2016-08-25 04:36:31 +08:00
|
|
|
#endif
|
|
|
|
|
2010-12-08 01:31:26 +08:00
|
|
|
_BEGIN_STD_C
|
|
|
|
|
2016-03-15 06:20:38 +08:00
|
|
|
#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
|
2010-12-08 01:31:26 +08:00
|
|
|
/*
|
|
|
|
* Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
|
|
|
|
* Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
|
|
|
|
*/
|
|
|
|
int _EXFUN(bcmp,(const void *, const void *, size_t));
|
|
|
|
void _EXFUN(bcopy,(const void *, void *, size_t));
|
|
|
|
void _EXFUN(bzero,(void *, size_t));
|
|
|
|
char *_EXFUN(index,(const char *, int));
|
|
|
|
char *_EXFUN(rindex,(const char *, int));
|
2016-03-15 06:20:38 +08:00
|
|
|
#endif /* __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809) */
|
2010-12-08 01:31:26 +08:00
|
|
|
|
|
|
|
int _EXFUN(ffs,(int));
|
|
|
|
int _EXFUN(strcasecmp,(const char *, const char *));
|
|
|
|
int _EXFUN(strncasecmp,(const char *, const char *, size_t));
|
|
|
|
|
2016-08-25 04:36:31 +08:00
|
|
|
#if __POSIX_VISIBLE >= 200809
|
|
|
|
int strcasecmp_l (const char *, const char *, locale_t);
|
|
|
|
int strncasecmp_l (const char *, const char *, size_t, locale_t);
|
|
|
|
#endif /* __POSIX_VISIBLE >= 200809 */
|
2016-08-23 23:40:03 +08:00
|
|
|
|
2010-12-08 01:31:26 +08:00
|
|
|
_END_STD_C
|
|
|
|
|
2016-04-14 12:50:11 +08:00
|
|
|
#endif /* !(_STRING_H_ && __BSD_VISIBLE) */
|
|
|
|
|
2010-12-08 01:31:26 +08:00
|
|
|
#endif /* _STRINGS_H_ */
|