Changes in uspace/lib/posix/stdio.h [59f799b:09b0b1fb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.h
r59f799b r09b0b1fb 1 1 /* 2 2 * Copyright (c) 2011 Jiri Zarevucky 3 * Copyright (c) 2011 Petr Koupy4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup libposix31 * @{32 */33 /** @file34 */35 36 29 #ifndef POSIX_STDIO_H_ 37 30 #define POSIX_STDIO_H_ 38 31 39 32 #include "libc/stdio.h" 40 #include "sys/types.h"41 33 42 /* Character Input/Output */43 34 #define putc fputc 44 35 #define getc fgetc 45 extern int posix_ungetc(int c, FILE *stream);46 36 47 /* Opening Streams */48 extern FILE *posix_freopen(49 const char *restrict filename,50 const char *restrict mode,51 FILE *restrict stream);52 37 53 /* Error Messages */ 38 extern FILE *posix_freopen(const char *restrict filename, 39 const char *restrict mode, 40 FILE *restrict stream); 41 54 42 extern void posix_perror(const char *s); 55 43 56 /* File Positioning */ 57 extern int posix_fseeko(FILE *stream, posix_off_t offset, int whence); 58 extern posix_off_t posix_ftello(FILE *stream); 59 60 /* Formatted Input/Output */ 61 extern int posix_sprintf(char *restrict s, const char *restrict format, ...); 62 extern int posix_sscanf(const char *restrict s, const char *restrict format, ...); 63 64 #ifndef LIBPOSIX_INTERNAL 65 #define ungetc posix_ungetc 66 44 #ifndef POSIX_INTERNAL 67 45 #define freopen posix_freopen 68 69 46 #define perror posix_perror 70 71 #define fseeko posix_fseeko72 #define ftello posix_ftello73 74 #define sprintf posix_sprintf75 #define sscanf posix_sscanf76 47 #endif 77 48 78 49 #endif /* POSIX_STDIO_H_ */ 79 50 80 /** @}81 */
Note:
See TracChangeset
for help on using the changeset viewer.