1 #ifndef ROS_INC_STDIO_H
2 #define ROS_INC_STDIO_H
4 #include <ros/common.h>
9 #define NULL ((void *) 0)
14 #define printd(args...) cprintf(args)
16 #define printd(args...) {}
19 #define printk(args...) cprintf(args)
20 #define I_AM_HERE printk("Core %d is in %s() at %s:%d\n", core_id(), \
21 __FUNCTION__, __FILE__, __LINE__);
25 void cputbuf(const char*COUNT(len) buf, int len);
31 void printfmt(void (*putch)(int, TV(t)), TV(t) putdat, const char *NTS fmt, ...);
32 void vprintfmt(void (*putch)(int, TV(t)), TV(t) putdat, const char *NTS fmt, va_list);
34 void printfmt(void (*putch)(int, void**), void **putdat, const char *NTS fmt, ...);
35 void vprintfmt(void (*putch)(int, void**), void **putdat, const char *NTS fmt, va_list);
39 int ( cprintf)(const char * NTS fmt, ...);
40 int vcprintf(const char * NTS fmt, va_list);
43 int snprintf(char *COUNT(size) str, int size, const char *NTS fmt, ...);
44 int vsnprintf(char *COUNT(size) str, int size, const char *NTS fmt, va_list);
47 int printf(const char *NTS fmt, ...);
48 int fprintf(int fd, const char *NTS fmt, ...);
49 int vfprintf(int fd, const char *NTS fmt, va_list);
52 int readline(char *buf, size_t buf_l, const char *prompt, ...);
54 char *seprintf(char *buf, char *end, const char *fmt, ...);
56 // kern/src/net/eipconv.c
57 void printemac(void (*putch)(int, void**), void **putdat, uint8_t *mac);
58 void printip(void (*putch)(int, void**), void **putdat, uint8_t *ip);
59 void printipmask(void (*putch)(int, void**), void **putdat, uint8_t *ip);
60 void printipv4(void (*putch)(int, void**), void **putdat, uint8_t *ip);
62 #endif /* !ROS_INC_STDIO_H */