Changeset fdf97f6 in mainline for uspace/lib/posix/include/posix/strings.h
- Timestamp:
- 2013-02-25T19:11:50Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1935591
- Parents:
- c84f1a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/strings.h
rc84f1a4 rfdf97f6 37 37 #define POSIX_STRINGS_H_ 38 38 39 #ifndef __POSIX_DEF__ 40 #define __POSIX_DEF__(x) x 41 #endif 42 39 43 /* Search Functions */ 40 44 #ifndef POSIX_STRING_H_ 41 extern int posix_ffs(int i);45 extern int __POSIX_DEF__(ffs)(int i); 42 46 #endif 43 47 44 48 /* String/Array Comparison */ 45 49 #ifndef POSIX_STRING_H_ 46 extern int posix_strcasecmp(const char *s1, const char *s2);47 extern int posix_strncasecmp(const char *s1, const char *s2, size_t n);50 extern int __POSIX_DEF__(strcasecmp)(const char *s1, const char *s2); 51 extern int __POSIX_DEF__(strncasecmp)(const char *s1, const char *s2, size_t n); 48 52 #endif 49 53 … … 55 59 56 60 /* Legacy Functions */ 57 extern int posix_bcmp(const void *mem1, const void *mem2, size_t n);58 extern void posix_bcopy(const void *src, void *dest, size_t n);59 extern void posix_bzero(void *mem, size_t n);60 extern char * posix_index(const char *s, int c);61 extern char * posix_rindex(const char *s, int c);61 extern int __POSIX_DEF__(bcmp)(const void *mem1, const void *mem2, size_t n); 62 extern void __POSIX_DEF__(bcopy)(const void *src, void *dest, size_t n); 63 extern void __POSIX_DEF__(bzero)(void *mem, size_t n); 64 extern char *__POSIX_DEF__(index)(const char *s, int c); 65 extern char *__POSIX_DEF__(rindex)(const char *s, int c); 62 66 63 #ifndef LIBPOSIX_INTERNAL64 #define ffs posix_ffs65 66 #define strcasecmp posix_strcasecmp67 #define strncasecmp posix_strncasecmp68 69 #define bcmp posix_bcmp70 #define bcopy posix_bcopy71 #undef bzero72 #define bzero posix_bzero73 #define index posix_index74 #define rindex posix_rindex75 #endif76 67 77 68 #endif // POSIX_STRINGS_H_
Note:
See TracChangeset
for help on using the changeset viewer.