#include <stdio.h>
#include <string.h>
#include <syscall.h>
#include <syscall-nr.h>
Go to the source code of this file.
Data Structures | |
struct | vhprintf_aux |
Functions | |
int | vprintf (const char *format, va_list args) |
int | hprintf (int handle, const char *format,...) |
int | puts (const char *s) |
int | putchar (int c) |
static void | add_char (char, void *) |
static void | flush (struct vhprintf_aux *) |
int | vhprintf (int handle, const char *format, va_list args) |
static void add_char | ( | char | c, | |
void * | aux_ | |||
) | [static] |
Definition at line 78 of file console.c.
References vhprintf_aux::buf, vhprintf_aux::char_cnt, flush(), and vhprintf_aux::p.
Referenced by vhprintf().
static void flush | ( | struct vhprintf_aux * | aux | ) | [static] |
Definition at line 89 of file console.c.
References vhprintf_aux::buf, vhprintf_aux::handle, vhprintf_aux::p, and write().
Referenced by add_char(), and vhprintf().
int hprintf | ( | int | handle, | |
const char * | format, | |||
... | ||||
) |
int putchar | ( | int | c | ) |
Definition at line 41 of file console.c.
References acquire_console(), putchar_have_lock(), release_console(), STDOUT_FILENO, and write().
int puts | ( | const char * | s | ) |
Definition at line 31 of file console.c.
References acquire_console(), putchar(), putchar_have_lock(), release_console(), STDOUT_FILENO, strlen(), and write().
int vhprintf | ( | int | handle, | |
const char * | format, | |||
va_list | args | |||
) |
Definition at line 64 of file console.c.
References __vprintf(), add_char(), vhprintf_aux::buf, vhprintf_aux::char_cnt, flush(), vhprintf_aux::handle, and vhprintf_aux::p.
int vprintf | ( | const char * | format, | |
va_list | args | |||
) |