MOS Source Code
|
Standard input/output functions. More...
Macros | |
#define | stdin stdin |
#define | stdout stdout |
#define | stderr stderr |
Typedefs | |
typedef struct _FILE | FILE |
Functions | |
MOSAPI | int (2, 3) sprintf(char *__restrict str |
MOSAPI const char *__restrict MOSAPI | int (3, 4) snprintf(char *__restrict str |
MOSAPI const char *__restrict MOSAPI size_t const char *__restrict MOSAPI int | vsprintf (char *__restrict str, const char *__restrict format, va_list ap) |
MOSAPI int | vsnprintf (char *__restrict buf, size_t size, const char *__restrict format, va_list args) |
MOSAPI | int (1, 2) printf(const char *__restrict format |
MOSAPI MOSAPI const char *__restrict MOSAPI const char *__restrict MOSAPI int | vprintf (const char *__restrict format, va_list ap) |
MOSAPI int | vfprintf (FILE *__restrict file, const char *__restrict format, va_list ap) |
MOSAPI int | vdprintf (int fd, const char *__restrict format, va_list ap) |
MOSAPI int | getchar (void) |
MOSAPI int | putchar (int c) |
MOSAPI int | puts (const char *s) |
MOSAPI int | fputs (const char *__restrict s, FILE *__restrict file) |
MOSAPI int | fputc (int c, FILE *file) |
MOSAPI int | fgetc (FILE *file) |
size_t | fread (void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream) |
size_t | fwrite (const void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream) |
int | fseek (FILE *stream, long offset, io_seek_whence_t whence) |
off_t | ftell (FILE *stream) |
FILE * | fopen (const char *path, const char *mode) |
int | fclose (FILE *stream) |
Variables | |
MOSAPI const char *__restrict | format |
MOSAPI const char *__restrict MOSAPI size_t | size |
MOSAPI FILE * | stdin |
MOSAPI FILE * | stdout |
MOSAPI FILE * | stderr |
Standard input/output functions.
#define stdin stdin |
Definition at line 30 of file mos_stdio.h.
Referenced by main(), main(), main(), and uart_xon_hook().
#define stdout stdout |
Definition at line 31 of file mos_stdio.h.
Referenced by generate_message(), main(), main(), main(), main(), test_TestMessage(), TestIntSize(), and uart_tx_hook().
#define stderr stderr |
Definition at line 32 of file mos_stdio.h.
Referenced by abort(), avr_logger(), do_callback_decode(), do_decode(), do_roundtrip(), do_stream_decode(), free_with_check(), listdir(), main(), main(), main(), main(), malloc_with_check(), realloc_with_check(), test_OneofMessage(), and test_TestMessage().
typedef struct _FILE FILE |
Definition at line 24 of file mos_stdio.h.
MOSAPI const char *__restrict MOSAPI size_t const char *__restrict MOSAPI int vsprintf | ( | char *__restrict | str, |
const char *__restrict | format, | ||
va_list | ap ) |
Definition at line 25 of file mos_stdio.c.
Referenced by sprintf().
MOSAPI int vsnprintf | ( | char *__restrict | buf, |
size_t | size, | ||
const char *__restrict | format, | ||
va_list | args ) |
Referenced by do_syslog(), lvprintk(), mos_kwarn(), snprintf(), sysfs_printf(), test_engine_warning_handler(), and vsprintf().
MOSAPI int | ( | 1 | , |
2 | ) const |
MOSAPI MOSAPI const char *__restrict MOSAPI const char *__restrict MOSAPI int vprintf | ( | const char *__restrict | format, |
va_list | ap ) |
Referenced by avr_logger().
Referenced by uart_tx_hook().
Referenced by uart_xon_hook().
Referenced by callback(), main(), main(), main(), and stream_callback().
Referenced by generate_message(), main(), main(), main(), streamcallback(), and test_TestMessage().
int fseek | ( | FILE * | stream, |
long | offset, | ||
io_seek_whence_t | whence ) |
FILE * fopen | ( | const char * | path, |
const char * | mode ) |
Definition at line 17 of file mos_stdio.h.
Referenced by avr_logger(), lprintk(), parse_printf_flags(), printk(), snprintf(), sprintf(), vsnprintf(), and vsprintf().
Definition at line 18 of file mos_stdio.h.
Definition at line 25 of file mos_stdio.h.
Definition at line 26 of file mos_stdio.h.
Definition at line 27 of file mos_stdio.h.