Changes in uspace/lib/posix/include/posix/strings.h [7f9df7b9:b1eb7ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/strings.h
r7f9df7b9 rb1eb7ef 37 37 #define POSIX_STRINGS_H_ 38 38 39 #ifndef __POSIX_DEF__ 40 #define __POSIX_DEF__(x) x 41 #endif 42 43 39 44 #include "libc/types/common.h" 40 45 41 46 /* Search Functions */ 42 47 #ifndef POSIX_STRING_H_ 43 extern int ffs(int i);48 extern int __POSIX_DEF__(ffs)(int i); 44 49 #endif 45 50 46 51 /* String/Array Comparison */ 47 52 #ifndef POSIX_STRING_H_ 48 extern int strcasecmp(const char *s1, const char *s2);49 extern int strncasecmp(const char *s1, const char *s2, size_t n);53 extern int __POSIX_DEF__(strcasecmp)(const char *s1, const char *s2); 54 extern int __POSIX_DEF__(strncasecmp)(const char *s1, const char *s2, size_t n); 50 55 #endif 51 56 … … 57 62 58 63 /* Legacy Functions */ 59 extern int bcmp(const void *mem1, const void *mem2, size_t n);60 extern void bcopy(const void *src, void *dest, size_t n);61 extern void bzero(void *mem, size_t n);62 extern char * index(const char *s, int c);63 extern char * rindex(const char *s, int c);64 extern int __POSIX_DEF__(bcmp)(const void *mem1, const void *mem2, size_t n); 65 extern void __POSIX_DEF__(bcopy)(const void *src, void *dest, size_t n); 66 extern void __POSIX_DEF__(bzero)(void *mem, size_t n); 67 extern char *__POSIX_DEF__(index)(const char *s, int c); 68 extern char *__POSIX_DEF__(rindex)(const char *s, int c); 64 69 65 70
Note:
See TracChangeset
for help on using the changeset viewer.