Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2017-11-13T20:00:07Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
Children:
0a0b3d8
Parents:
a2afd8f
Message:

Use __restrict__ instead of restrict in header files.

File:
1 edited

Legend:

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

    ra2afd8f r0dd4779  
    4848 * int      strcoll_l(const char *, const char *, locale_t);
    4949 * char    *strerror_l(int, locale_t);
    50  * size_t   strxfrm_l(char *restrict, const char *restrict, size_t, locale_t);
     50 * size_t   strxfrm_l(char *__restrict__, const char *__restrict__, size_t, locale_t);
    5151 */
    5252
     
    7474
    7575/* Copying and Concatenation */
    76 extern char *__POSIX_DEF__(strcpy)(char *restrict dest, const char *restrict src);
    77 extern char *__POSIX_DEF__(strncpy)(char *restrict dest, const char *restrict src, size_t n);
    78 extern char *__POSIX_DEF__(stpcpy)(char *restrict dest, const char *restrict src);
    79 extern char *__POSIX_DEF__(stpncpy)(char *restrict dest, const char *restrict src, size_t n);
    80 extern char *__POSIX_DEF__(strcat)(char *restrict dest, const char *restrict src);
    81 extern char *__POSIX_DEF__(strncat)(char *restrict dest, const char *restrict src, size_t n);
    82 extern void *__POSIX_DEF__(memccpy)(void *restrict dest, const void *restrict src, int c, size_t n);
     76extern char *__POSIX_DEF__(strcpy)(char *__restrict__ dest, const char *__restrict__ src);
     77extern char *__POSIX_DEF__(strncpy)(char *__restrict__ dest, const char *__restrict__ src, size_t n);
     78extern char *__POSIX_DEF__(stpcpy)(char *__restrict__ dest, const char *__restrict__ src);
     79extern char *__POSIX_DEF__(stpncpy)(char *__restrict__ dest, const char *__restrict__ src, size_t n);
     80extern char *__POSIX_DEF__(strcat)(char *__restrict__ dest, const char *__restrict__ src);
     81extern char *__POSIX_DEF__(strncat)(char *__restrict__ dest, const char *__restrict__ src, size_t n);
     82extern void *__POSIX_DEF__(memccpy)(void *__restrict__ dest, const void *__restrict__ src, int c, size_t n);
    8383extern char *__POSIX_DEF__(strdup)(const char *s);
    8484extern char *__POSIX_DEF__(strndup)(const char *s, size_t n);
     
    106106/* Collation Functions */
    107107extern int __POSIX_DEF__(strcoll)(const char *s1, const char *s2);
    108 extern size_t __POSIX_DEF__(strxfrm)(char *restrict s1, const char *restrict s2, size_t n);
     108extern size_t __POSIX_DEF__(strxfrm)(char *__restrict__ s1, const char *__restrict__ s2, size_t n);
    109109
    110110/* Error Messages */
Note: See TracChangeset for help on using the changeset viewer.