fernly/include/bionic.h
Mandl eba08f0218 bionic: fix gcc build
The memset() prototype from glibc includes __THROW and __nonnull as
decorators, which are nonstandard.  Remove these for additional
compatibility with gcc.

Additionally, remove linux/types.h and linux/string.h, and replace them
with sys/types.h and sys/string.h.
2015-01-14 12:16:46 +08:00

29 lines
850 B
C

#ifndef __BIONIC_H__
#define __BIONIC_H__
#include <stdint.h>
# define ULONG_MAX 4294967295UL
size_t _strspn(const char *s1, const char *s2);
char * _strpbrk(const char *s1, const char *s2);
char *_strtok(char *str, const char *delim, char **saveptr);
int _strcasecmp(const char *s1, const char *s2);
void *_memcpy(void *dst0, const void *src0, size_t length);
void *memset(void *__s, int __c, size_t __n);
unsigned long strtoul(const char *nptr, char **endptr, unsigned int base);
int _strlen(const char *s);
int _strnlen(const char *s, uint32_t maxlen);
void _usleep(uint32_t usecs);
void _msleep(uint32_t msecs);
/* ctype replacements */
int _isspace(char c);
int _isdigit(char c);
int _isxdigit(char c);
int _isupper(char c);
int _islower(char c);
int _isalpha(char c);
int _isalnum(char c);
int _toupper(char c);
#endif /* __BIONIC_H__ */