Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/strings.h

    r7f9df7b9 rb1eb7ef  
    3737#define POSIX_STRINGS_H_
    3838
     39#ifndef __POSIX_DEF__
     40#define __POSIX_DEF__(x) x
     41#endif
     42
     43
    3944#include "libc/types/common.h"
    4045
    4146/* Search Functions */
    4247#ifndef POSIX_STRING_H_
    43 extern int ffs(int i);
     48extern int __POSIX_DEF__(ffs)(int i);
    4449#endif
    4550
    4651/* String/Array Comparison */
    4752#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);
     53extern int __POSIX_DEF__(strcasecmp)(const char *s1, const char *s2);
     54extern int __POSIX_DEF__(strncasecmp)(const char *s1, const char *s2, size_t n);
    5055#endif
    5156
     
    5762
    5863/* 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);
     64extern int __POSIX_DEF__(bcmp)(const void *mem1, const void *mem2, size_t n);
     65extern void __POSIX_DEF__(bcopy)(const void *src, void *dest, size_t n);
     66extern void __POSIX_DEF__(bzero)(void *mem, size_t n);
     67extern char *__POSIX_DEF__(index)(const char *s, int c);
     68extern char *__POSIX_DEF__(rindex)(const char *s, int c);
    6469
    6570
Note: See TracChangeset for help on using the changeset viewer.