Changeset 03c971f in mainline for uspace/lib/posix/include/posix/strings.h
- Timestamp:
- 2013-08-15T14:20:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb2a5b2
- Parents:
- f2c19b0 (diff), 2921602 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/strings.h
rf2c19b0 r03c971f 37 37 #define POSIX_STRINGS_H_ 38 38 39 #ifndef __POSIX_DEF__ 40 #define __POSIX_DEF__(x) x 41 #endif 42 43 44 #include <libarch/types.h> 45 39 46 /* Search Functions */ 40 47 #ifndef POSIX_STRING_H_ 41 extern int posix_ffs(int i);48 extern int __POSIX_DEF__(ffs)(int i); 42 49 #endif 43 50 44 51 /* String/Array Comparison */ 45 52 #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);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); 48 55 #endif 49 56 … … 55 62 56 63 /* 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);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); 62 69 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 70 77 71 #endif // POSIX_STRINGS_H_
Note:
See TracChangeset
for help on using the changeset viewer.