Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tty.C File Reference

#include "std/config.H"
#include "tty.H"

Include dependency graph for tty.C:

Go to the source code of this file.

Defines

#define _INCLUDE_XOPEN_SOURCE
#define TRUE   1
#define BIT(N, INT)   ((1 << N) & ((int)(INT)))
#define brcase   break; case
#define brdefault   break; default
#define VMIN_CHARACTERS   0
#define VTIME_LENGTH   0
#define MILLISEC_TO_TIME(PTR, MSEC, TIME)

Typedefs

typedef unsigned char byte

Functions

int Select (int maxfds, fd_set *reads, fd_set *writes, fd_set *errors, struct timeval *timeout)
static void cspeed (speed_t sp, char *buf)

Variables

int TTYdebug = 0
int(* SELECT )(int, fd_set *, fd_set *, fd_set *, timeval *) = select


Define Documentation

#define _INCLUDE_XOPEN_SOURCE
 

Definition at line 2 of file tty.C.

#define BIT N,
INT   )     ((1 << N) & ((int)(INT)))
 

Definition at line 19 of file tty.C.

#define brcase   break; case
 

Definition at line 20 of file tty.C.

Referenced by cspeed(), Cam_int::down(), Cam_int_fp::down(), ColorIDTexture::draw(), RefImageClient::draw_ref_img(), HybridCalc< Wpt >::hybrid_centroid(), NetStream::interpret(), DISTRIB::interpret(), main(), GL_VIEW::paint(), TTYfd::print_flags(), TTYfd::set_parity(), HybridCalc< Wpt >::subdiv_val(), and TabletDesc::TabletDesc().

#define brdefault   break; default
 

Definition at line 21 of file tty.C.

Referenced by cspeed(), ColorIDTexture::draw(), RefImageClient::draw_ref_img(), HybridCalc< Wpt >::hybrid_centroid(), NetStream::interpret(), DISTRIB::interpret(), operator<<(), and HybridCalc< Wpt >::subdiv_val().

#define MILLISEC_TO_TIME PTR,
MSEC,
TIME   ) 
 

Value:

if ((MSEC) != -1) {                     \
           (TIME).tv_sec  =  (MSEC)/1000;       \
           (TIME).tv_usec = ((MSEC)%1000)*1000; \
           PTR =  &TIME;                        \
        } else                                  \
           PTR = NULL

Definition at line 112 of file tty.C.

Referenced by TTYfd::nread(), and TTYfd::write().

#define TRUE   1
 

Definition at line 16 of file tty.C.

Referenced by Select(), and TTYfd::setup().

#define VMIN_CHARACTERS   0
 

Definition at line 110 of file tty.C.

Referenced by TTYfd::nread(), and TTYfd::setup().

#define VTIME_LENGTH   0
 

Definition at line 111 of file tty.C.

Referenced by TTYfd::nread(), and TTYfd::setup().


Typedef Documentation

typedef unsigned char byte
 

Definition at line 24 of file tty.C.


Function Documentation

static void cspeed speed_t  sp,
char *  buf
[static]
 

Definition at line 230 of file tty.C.

References brcase, and brdefault.

Referenced by TTYfd::print_flags().

int Select int  maxfds,
fd_set *  reads,
fd_set *  writes,
fd_set *  errors,
struct timeval *  timeout
 

Definition at line 29 of file tty.C.

References int(), and TRUE.

Referenced by signalSafeSelect().


Variable Documentation

int(* SELECT)(int, fd_set *, fd_set *, fd_set *, timeval *) = select
 

Definition at line 27 of file tty.C.

Referenced by fsleep(), TTYfd::nread(), signalSafeSelect(), and TTYfd::write().

int TTYdebug = 0
 

Definition at line 23 of file tty.C.

Referenced by TTYfd::nread(), TTYfd::read_all(), and TTYfd::write().


Generated on Mon Sep 18 11:43:48 2006 for jot by  doxygen 1.4.4