Changes in uspace/lib/posix/stdio.h [221afc9e:8b5fb5e] in mainline
- File:
-
- 1 edited
-
uspace/lib/posix/stdio.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.h
r221afc9e r8b5fb5e 42 42 #include "limits.h" 43 43 44 /* Identifying the Terminal */45 44 #undef L_ctermid 46 45 #define L_ctermid PATH_MAX 46 47 extern void posix_clearerr(FILE *stream); 47 48 extern char *posix_ctermid(char *s); 48 49 /* Error Recovery */50 extern void posix_clearerr(FILE *stream);51 49 52 50 /* Input/Output */ 53 51 #undef putc 54 52 #define putc fputc 55 extern int posix_fputs(const char *restrict s, FILE *restrict stream);56 53 #undef getc 57 54 #define getc fgetc 58 55 extern int posix_ungetc(int c, FILE *stream); 56 59 57 extern ssize_t posix_getdelim(char **restrict lineptr, size_t *restrict n, 60 58 int delimiter, FILE *restrict stream); … … 63 61 64 62 /* Opening Streams */ 65 extern FILE *posix_freopen(const char *restrict filename, 66 const char *restrict mode, FILE *restrict stream); 63 extern FILE *posix_freopen( 64 const char *restrict filename, 65 const char *restrict mode, 66 FILE *restrict stream); 67 68 /* Memory Streams */ 69 67 70 extern FILE *posix_fmemopen(void *restrict buf, size_t size, 68 71 const char *restrict mode); … … 73 76 74 77 /* File Positioning */ 78 75 79 typedef struct _posix_fpos posix_fpos_t; 76 80 extern int posix_fsetpos(FILE *stream, const posix_fpos_t *pos); … … 81 85 extern posix_off_t posix_ftello(FILE *stream); 82 86 83 /* Flushing Buffers */ 84 extern int posix_fflush(FILE *stream); 85 86 /* Formatted Output */ 87 /* Formatted Input/Output */ 87 88 extern int posix_dprintf(int fildes, const char *restrict format, ...) 88 89 PRINTF_ATTRIBUTE(2, 3); … … 92 93 extern int posix_vsprintf(char *restrict s, const char *restrict format, va_list ap); 93 94 94 /* Formatted Input */95 95 extern int posix_fscanf( 96 96 FILE *restrict stream, const char *restrict format, ...); … … 105 105 106 106 /* File Locking */ 107 107 108 extern void posix_flockfile(FILE *file); 108 109 extern int posix_ftrylockfile(FILE *file); 109 110 extern void posix_funlockfile(FILE *file); 111 110 112 extern int posix_getc_unlocked(FILE *stream); 111 113 extern int posix_getchar_unlocked(void); … … 119 121 #undef L_tmpnam 120 122 #define L_tmpnam PATH_MAX 123 121 124 extern char *posix_tmpnam(char *s); 122 125 123 126 #ifndef LIBPOSIX_INTERNAL 127 #define clearerr posix_clearerr 124 128 #define ctermid posix_ctermid 125 129 126 #define clearerr posix_clearerr130 #define ungetc posix_ungetc 127 131 128 #define fputs posix_fputs129 #define ungetc posix_ungetc130 132 #define getdelim posix_getdelim 131 133 #define getline posix_getline 132 134 133 135 #define freopen posix_freopen 136 134 137 #define fmemopen posix_fmemopen 135 138 #define open_memstream posix_open_memstream … … 144 147 #define ftell posix_ftell 145 148 #define ftello posix_ftello 146 147 #define fflush posix_fflush148 149 149 150 #define dprintf posix_dprintf
Note:
See TracChangeset
for help on using the changeset viewer.
