keyboard.c File Reference

#include <config.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <isc/keyboard.h>
#include <isc/util.h>

Go to the source code of this file.

Functions

isc_result_t isc_keyboard_open (isc_keyboard_t *keyboard)
isc_result_t isc_keyboard_close (isc_keyboard_t *keyboard, unsigned int sleeptime)
isc_result_t isc_keyboard_getchar (isc_keyboard_t *keyboard, unsigned char *cp)
isc_boolean_t isc_keyboard_canceled (isc_keyboard_t *keyboard)


Function Documentation

isc_result_t isc_keyboard_open ( isc_keyboard_t keyboard  ) 

Definition at line 38 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdstart().

isc_result_t isc_keyboard_close ( isc_keyboard_t keyboard,
unsigned int  sleeptime 
)

Definition at line 83 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdstop().

isc_result_t isc_keyboard_getchar ( isc_keyboard_t keyboard,
unsigned char *  cp 
)

Definition at line 98 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdget().

isc_boolean_t isc_keyboard_canceled ( isc_keyboard_t keyboard  ) 

Definition at line 124 of file keyboard.c.

References ISC_R_CANCELED, ISC_TF, and isc_keyboard_t::result.

Referenced by kbdstop().


Generated on Tue Apr 28 17:41:19 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha