next up previous contents index
Next: 9.9.3 set_system_clock: initialize clock Up: 9.9 Extended POSIX Support Previous: 9.9.1 oskit_init_libc: Initialize the

9.9.2 fd_set_console: initialize stdin, stdout and stderr

   

SYNOPSIS

#include <oskit/c/fd.h>

oskit_error_t fd_set_console(void);

DESCRIPTION

This function initializes file descriptors number 0, 1, and 2 such that read and write calls on them will work and result in calls to getchar and putchar.

Note:

fprintf on stdout will not work unless this function is called.

RETURNS

Returns zero if successful, an error code otherwise.



University of Utah Flux Research Group