Changeset 1916d1f in mainline for uspace/lib/posix/stdio.h
- Timestamp:
- 2011-07-12T13:41:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50fc490
- Parents:
- 11809eab (diff), 6817eba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.h
r11809eab r1916d1f 42 42 #include "limits.h" 43 43 44 /* Identifying the Terminal */ 44 45 #undef L_ctermid 45 46 #define L_ctermid PATH_MAX 47 extern char *posix_ctermid(char *s); 46 48 49 /* Error Recovery */ 47 50 extern void posix_clearerr(FILE *stream); 48 extern char *posix_ctermid(char *s);49 51 50 52 /* Input/Output */ 51 53 #undef putc 52 54 #define putc fputc 55 extern int posix_fputs(const char *restrict s, FILE *restrict stream); 53 56 #undef getc 54 57 #define getc fgetc 55 58 extern int posix_ungetc(int c, FILE *stream); 56 57 59 extern ssize_t posix_getdelim(char **restrict lineptr, size_t *restrict n, 58 60 int delimiter, FILE *restrict stream); … … 61 63 62 64 /* Opening Streams */ 63 extern FILE *posix_freopen( 64 const char *restrict filename, 65 const char *restrict mode, 66 FILE *restrict stream); 67 68 /* Memory Streams */ 69 65 extern FILE *posix_freopen(const char *restrict filename, 66 const char *restrict mode, FILE *restrict stream); 70 67 extern FILE *posix_fmemopen(void *restrict buf, size_t size, 71 68 const char *restrict mode); … … 76 73 77 74 /* File Positioning */ 78 79 75 typedef struct _posix_fpos posix_fpos_t; 80 76 extern int posix_fsetpos(FILE *stream, const posix_fpos_t *pos); … … 85 81 extern posix_off_t posix_ftello(FILE *stream); 86 82 87 /* Formatted Input/Output */ 83 /* Flushing Buffers */ 84 extern int posix_fflush(FILE *stream); 85 86 /* Formatted Output */ 88 87 extern int posix_dprintf(int fildes, const char *restrict format, ...) 89 88 PRINTF_ATTRIBUTE(2, 3); … … 93 92 extern int posix_vsprintf(char *restrict s, const char *restrict format, va_list ap); 94 93 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 108 107 extern void posix_flockfile(FILE *file); 109 108 extern int posix_ftrylockfile(FILE *file); 110 109 extern void posix_funlockfile(FILE *file); 111 112 110 extern int posix_getc_unlocked(FILE *stream); 113 111 extern int posix_getchar_unlocked(void); … … 121 119 #undef L_tmpnam 122 120 #define L_tmpnam PATH_MAX 123 124 121 extern char *posix_tmpnam(char *s); 125 122 126 123 #ifndef LIBPOSIX_INTERNAL 127 #define clearerr posix_clearerr128 124 #define ctermid posix_ctermid 129 125 126 #define clearerr posix_clearerr 127 128 #define fputs posix_fputs 130 129 #define ungetc posix_ungetc 131 132 130 #define getdelim posix_getdelim 133 131 #define getline posix_getline 134 132 135 133 #define freopen posix_freopen 136 137 134 #define fmemopen posix_fmemopen 138 135 #define open_memstream posix_open_memstream … … 147 144 #define ftell posix_ftell 148 145 #define ftello posix_ftello 146 147 #define fflush posix_fflush 149 148 150 149 #define dprintf posix_dprintf
Note:
See TracChangeset
for help on using the changeset viewer.