Changeset 0dd4779 in mainline for uspace/lib/posix/include/posix/stdio.h
- Timestamp:
- 2017-11-13T20:00:07Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a0b3d8
- Parents:
- a2afd8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/stdio.h
ra2afd8f r0dd4779 143 143 #undef putc 144 144 #define putc fputc 145 extern int __POSIX_DEF__(fputs)(const char * restrict s, FILE *restrictstream);145 extern int __POSIX_DEF__(fputs)(const char *__restrict__ s, FILE *__restrict__ stream); 146 146 #undef getc 147 147 #define getc fgetc 148 148 extern int __POSIX_DEF__(ungetc)(int c, FILE *stream); 149 extern ssize_t __POSIX_DEF__(getdelim)(char ** restrict lineptr, size_t *restrictn,150 int delimiter, FILE * restrictstream);151 extern ssize_t __POSIX_DEF__(getline)(char ** restrict lineptr, size_t *restrictn,152 FILE * restrictstream);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); 153 153 154 154 /* Opening Streams */ 155 extern FILE *__POSIX_DEF__(freopen)(const char * restrictfilename,156 const char * restrict mode, FILE *restrictstream);155 extern FILE *__POSIX_DEF__(freopen)(const char *__restrict__ filename, 156 const char *__restrict__ mode, FILE *__restrict__ stream); 157 157 158 158 /* Error Messages */ … … 165 165 166 166 extern 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) *restrictpos);167 extern int __POSIX_DEF__(fgetpos)(FILE *__restrict__ stream, __POSIX_DEF__(fpos_t) *__restrict__ pos); 168 168 extern int __POSIX_DEF__(fseek)(FILE *stream, long offset, int whence); 169 169 extern int __POSIX_DEF__(fseeko)(FILE *stream, __POSIX_DEF__(off_t) offset, int whence); … … 175 175 176 176 /* Formatted Output */ 177 extern int __POSIX_DEF__(dprintf)(int fildes, const char * restrictformat, ...)177 extern int __POSIX_DEF__(dprintf)(int fildes, const char *__restrict__ format, ...) 178 178 PRINTF_ATTRIBUTE(2, 3); 179 extern int __POSIX_DEF__(vdprintf)(int fildes, const char * restrictformat, va_list ap);180 extern int __POSIX_DEF__(sprintf)(char * restrict s, const char *restrictformat, ...)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, ...) 181 181 PRINTF_ATTRIBUTE(2, 3); 182 extern int __POSIX_DEF__(vsprintf)(char * restrict s, const char *restrictformat, va_list ap);182 extern int __POSIX_DEF__(vsprintf)(char *__restrict__ s, const char *__restrict__ format, va_list ap); 183 183 184 184 /* Formatted Input */ 185 185 extern int __POSIX_DEF__(fscanf)( 186 FILE * restrict stream, const char *restrictformat, ...);186 FILE *__restrict__ stream, const char *__restrict__ format, ...); 187 187 extern int __POSIX_DEF__(vfscanf)( 188 FILE * restrict stream, const char *restrictformat, va_list arg);189 extern int __POSIX_DEF__(scanf)(const char * restrictformat, ...);190 extern int __POSIX_DEF__(vscanf)(const char * restrictformat, va_list arg);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); 191 191 extern int __POSIX_DEF__(sscanf)( 192 const char * restrict s, const char *restrictformat, ...);192 const char *__restrict__ s, const char *__restrict__ format, ...); 193 193 extern int __POSIX_DEF__(vsscanf)( 194 const char * restrict s, const char *restrictformat, va_list arg);194 const char *__restrict__ s, const char *__restrict__ format, va_list arg); 195 195 196 196 /* File Locking */
Note:
See TracChangeset
for help on using the changeset viewer.