Changes in uspace/lib/posix/stdio.h [8b5fb5e:e3891262] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.h
r8b5fb5e re3891262 40 40 #include "sys/types.h" 41 41 #include "libc/stdarg.h" 42 #include "limits.h"43 42 44 #undef L_ctermid 45 #define L_ctermid PATH_MAX 46 47 extern void posix_clearerr(FILE *stream); 48 extern char *posix_ctermid(char *s); 49 50 /* Input/Output */ 43 /* Character Input/Output */ 51 44 #undef putc 52 45 #define putc fputc … … 54 47 #define getc fgetc 55 48 extern int posix_ungetc(int c, FILE *stream); 56 57 extern ssize_t posix_getdelim(char **restrict lineptr, size_t *restrict n,58 int delimiter, FILE *restrict stream);59 extern ssize_t posix_getline(char **restrict lineptr, size_t *restrict n,60 FILE *restrict stream);61 49 62 50 /* Opening Streams */ … … 66 54 FILE *restrict stream); 67 55 68 /* Memory Streams */69 70 extern FILE *posix_fmemopen(void *restrict buf, size_t size,71 const char *restrict mode);72 extern FILE *posix_open_memstream(char **bufp, size_t *sizep);73 74 56 /* Error Messages */ 75 57 extern void posix_perror(const char *s); 76 58 77 59 /* File Positioning */ 78 79 typedef struct _posix_fpos posix_fpos_t;80 extern int posix_fsetpos(FILE *stream, const posix_fpos_t *pos);81 extern int posix_fgetpos(FILE *restrict stream, posix_fpos_t *restrict pos);82 extern int posix_fseek(FILE *stream, long offset, int whence);83 60 extern int posix_fseeko(FILE *stream, posix_off_t offset, int whence); 84 extern long posix_ftell(FILE *stream);85 61 extern posix_off_t posix_ftello(FILE *stream); 86 62 87 63 /* Formatted Input/Output */ 88 extern int posix_dprintf(int fildes, const char *restrict format, ...) 89 PRINTF_ATTRIBUTE(2, 3); 90 extern int posix_vdprintf(int fildes, const char *restrict format, va_list ap); 91 extern int posix_sprintf(char *restrict s, const char *restrict format, ...) 92 PRINTF_ATTRIBUTE(2, 3); 64 extern int posix_sprintf(char *restrict s, const char *restrict format, ...); 93 65 extern int posix_vsprintf(char *restrict s, const char *restrict format, va_list ap); 94 95 extern int posix_fscanf( 96 FILE *restrict stream, const char *restrict format, ...); 97 extern int posix_vfscanf( 98 FILE *restrict stream, const char *restrict format, va_list arg); 99 extern int posix_scanf(const char *restrict format, ...); 100 extern int posix_vscanf(const char *restrict format, va_list arg); 101 extern int posix_sscanf( 102 const char *restrict s, const char *restrict format, ...); 103 extern int posix_vsscanf( 104 const char *restrict s, const char *restrict format, va_list arg); 105 106 /* File Locking */ 107 108 extern void posix_flockfile(FILE *file); 109 extern int posix_ftrylockfile(FILE *file); 110 extern void posix_funlockfile(FILE *file); 111 112 extern int posix_getc_unlocked(FILE *stream); 113 extern int posix_getchar_unlocked(void); 114 extern int posix_putc_unlocked(int c, FILE *stream); 115 extern int posix_putchar_unlocked(int c); 66 extern int posix_sscanf(const char *restrict s, const char *restrict format, ...); 116 67 117 68 /* Deleting Files */ … … 125 76 126 77 #ifndef LIBPOSIX_INTERNAL 127 #define clearerr posix_clearerr128 #define ctermid posix_ctermid129 130 78 #define ungetc posix_ungetc 131 132 #define getdelim posix_getdelim133 #define getline posix_getline134 79 135 80 #define freopen posix_freopen 136 81 137 #define fmemopen posix_fmemopen138 #define open_memstream posix_open_memstream139 140 82 #define perror posix_perror 141 83 142 #define fpos_t posix_fpos_t143 #define fsetpos posix_fsetpos144 #define fgetpos posix_fgetpos145 #define fseek posix_fseek146 84 #define fseeko posix_fseeko 147 #define ftell posix_ftell148 85 #define ftello posix_ftello 149 86 150 #define dprintf posix_dprintf151 #define vdprintf posix_vdprintf152 87 #define sprintf posix_sprintf 153 88 #define vsprintf posix_vsprintf 154 155 #define fscanf posix_fscanf156 #define vfscanf posix_vfscanf157 #define vscanf posix_vscanf158 #define scanf posix_scanf159 89 #define sscanf posix_sscanf 160 #define vsscanf posix_vsscanf161 162 #define flockfile posix_flockfile163 #define ftrylockfile posix_ftrylockfile164 #define funlockfile posix_funlockfile165 166 #define getc_unlocked posix_getc_unlocked167 #define getchar_unlocked posix_getchar_unlocked168 #define putc_unlocked posix_putc_unlocked169 #define putchar_unlocked posix_putchar_unlocked170 90 171 91 #define remove posix_remove
Note:
See TracChangeset
for help on using the changeset viewer.