Changes in uspace/lib/c/include/stdio.h [7699c21:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdio.h
r7699c21 r79ae36dd 39 39 #include <stdarg.h> 40 40 #include <str.h> 41 #include <io/verify.h> 42 #include <abi/klog.h> 41 #include <adt/list.h> 42 43 #ifndef NVERIFY_PRINTF 44 45 #define PRINTF_ATTRIBUTE(start, end) \ 46 __attribute__((format(gnu_printf, start, end))) 47 48 #else /* NVERIFY_PRINTF */ 49 50 #define PRINTF_ATTRIBUTE(start, end) 51 52 #endif /* NVERIFY_PRINTF */ 43 53 44 54 #define EOF (-1) … … 52 62 int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \ 53 63 if (_n > 0) \ 54 (void) __SYSCALL3(SYS_KLOG, KLOG_WRITE, (sysarg_t) _buf, str_size(_buf)); \64 (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) _buf, str_size(_buf)); \ 55 65 } 56 66 … … 143 153 144 154 extern void setvbuf(FILE *, void *, int, size_t); 145 extern void setbuf(FILE *, void *);146 155 147 156 /* Misc file functions */
Note:
See TracChangeset
for help on using the changeset viewer.