pintos/src/lib/user/console.c File Reference

#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)


Function Documentation

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,
  ... 
)

Definition at line 16 of file console.c.

References va_end, va_start, and vhprintf().

Referenced by expand(), and main().

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  ) 

int vhprintf ( int  handle,
const char *  format,
va_list  args 
)

int vprintf ( const char *  format,
va_list  args 
)

Definition at line 9 of file console.c.

References STDOUT_FILENO, and vhprintf().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6