Changeset e4f8c77 in mainline for uspace/lib/posix/string.h


Ignore:
Timestamp:
2011-07-13T22:39:18Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6910c8
Parents:
5974661 (diff), 8ecef91 (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.
Message:

Merge libposix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/string.h

    r5974661 re4f8c77  
    8585extern char *posix_strchr(const char *s, int c);
    8686extern char *posix_strrchr(const char *s, int c);
     87extern char *gnu_strchrnul(const char *s, int c);
    8788extern char *posix_strpbrk(const char *s1, const char *s2);
    8889extern size_t posix_strcspn(const char *s1, const char *s2);
     
    101102extern size_t posix_strlen(const char *s);
    102103extern size_t posix_strnlen(const char *s, size_t n);
     104
     105/* Signal messages */
     106extern char *posix_strsignal(int signum);
     107
     108/* Legacy declarations */
     109#ifndef POSIX_STRINGS_H_
     110extern int posix_ffs(int i);
     111extern int posix_strcasecmp(const char *s1, const char *s2);
     112extern int posix_strncasecmp(const char *s1, const char *s2, size_t n);
     113#endif
    103114
    104115#ifndef LIBPOSIX_INTERNAL
     
    120131        #define strchr posix_strchr
    121132        #define strrchr posix_strrchr
     133        #define strchrnul gnu_strchrnul
    122134        #define strpbrk posix_strpbrk
    123135        #define strcspn posix_strcspn
     
    130142        #define strerror posix_strerror
    131143        #define strerror_r posix_strerror_r
    132         #define strsignal(i) ((char *) "SIGNonSense: There are no signals in HelenOS.")
    133144
    134145        #define strlen posix_strlen
    135146        #define strnlen posix_strnlen
     147
     148        #define strsignal posix_strsignal
     149
     150        #define ffs posix_ffs
     151        #define strcasecmp posix_strcasecmp
     152        #define strncasecmp posix_strncasecmp
    136153#endif
    137154
Note: See TracChangeset for help on using the changeset viewer.