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/stdio.h

    ra2afd8f r0dd4779  
    143143#undef putc
    144144#define putc fputc
    145 extern int __POSIX_DEF__(fputs)(const char *restrict s, FILE *restrict stream);
     145extern int __POSIX_DEF__(fputs)(const char *__restrict__ s, FILE *__restrict__ stream);
    146146#undef getc
    147147#define getc fgetc
    148148extern int __POSIX_DEF__(ungetc)(int c, FILE *stream);
    149 extern ssize_t __POSIX_DEF__(getdelim)(char **restrict lineptr, size_t *restrict n,
    150     int delimiter, FILE *restrict stream);
    151 extern ssize_t __POSIX_DEF__(getline)(char **restrict lineptr, size_t *restrict n,
    152     FILE *restrict stream);
     149extern ssize_t __POSIX_DEF__(getdelim)(char **__restrict__ lineptr, size_t *__restrict__ n,
     150    int delimiter, FILE *__restrict__ stream);
     151extern ssize_t __POSIX_DEF__(getline)(char **__restrict__ lineptr, size_t *__restrict__ n,
     152    FILE *__restrict__ stream);
    153153
    154154/* Opening Streams */
    155 extern FILE *__POSIX_DEF__(freopen)(const char *restrict filename,
    156     const char *restrict mode, FILE *restrict stream);
     155extern FILE *__POSIX_DEF__(freopen)(const char *__restrict__ filename,
     156    const char *__restrict__ mode, FILE *__restrict__ stream);
    157157
    158158/* Error Messages */
     
    165165
    166166extern int __POSIX_DEF__(fsetpos)(FILE *stream, const __POSIX_DEF__(fpos_t) *pos);
    167 extern int __POSIX_DEF__(fgetpos)(FILE *restrict stream, __POSIX_DEF__(fpos_t) *restrict pos);
     167extern int __POSIX_DEF__(fgetpos)(FILE *__restrict__ stream, __POSIX_DEF__(fpos_t) *__restrict__ pos);
    168168extern int __POSIX_DEF__(fseek)(FILE *stream, long offset, int whence);
    169169extern int __POSIX_DEF__(fseeko)(FILE *stream, __POSIX_DEF__(off_t) offset, int whence);
     
    175175
    176176/* Formatted Output */
    177 extern int __POSIX_DEF__(dprintf)(int fildes, const char *restrict format, ...)
     177extern int __POSIX_DEF__(dprintf)(int fildes, const char *__restrict__ format, ...)
    178178    PRINTF_ATTRIBUTE(2, 3);
    179 extern int __POSIX_DEF__(vdprintf)(int fildes, const char *restrict format, va_list ap);
    180 extern int __POSIX_DEF__(sprintf)(char *restrict s, const char *restrict format, ...)
     179extern int __POSIX_DEF__(vdprintf)(int fildes, const char *__restrict__ format, va_list ap);
     180extern int __POSIX_DEF__(sprintf)(char *__restrict__ s, const char *__restrict__ format, ...)
    181181    PRINTF_ATTRIBUTE(2, 3);
    182 extern int __POSIX_DEF__(vsprintf)(char *restrict s, const char *restrict format, va_list ap);
     182extern int __POSIX_DEF__(vsprintf)(char *__restrict__ s, const char *__restrict__ format, va_list ap);
    183183
    184184/* Formatted Input */
    185185extern int __POSIX_DEF__(fscanf)(
    186     FILE *restrict stream, const char *restrict format, ...);
     186    FILE *__restrict__ stream, const char *__restrict__ format, ...);
    187187extern int __POSIX_DEF__(vfscanf)(
    188     FILE *restrict stream, const char *restrict format, va_list arg);
    189 extern int __POSIX_DEF__(scanf)(const char *restrict format, ...);
    190 extern int __POSIX_DEF__(vscanf)(const char *restrict format, va_list arg);
     188    FILE *__restrict__ stream, const char *__restrict__ format, va_list arg);
     189extern int __POSIX_DEF__(scanf)(const char *__restrict__ format, ...);
     190extern int __POSIX_DEF__(vscanf)(const char *__restrict__ format, va_list arg);
    191191extern int __POSIX_DEF__(sscanf)(
    192     const char *restrict s, const char *restrict format, ...);
     192    const char *__restrict__ s, const char *__restrict__ format, ...);
    193193extern int __POSIX_DEF__(vsscanf)(
    194     const char *restrict s, const char *restrict format, va_list arg);
     194    const char *__restrict__ s, const char *__restrict__ format, va_list arg);
    195195
    196196/* File Locking */
Note: See TracChangeset for help on using the changeset viewer.