2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c2/bufio.h File Reference


Detailed Description

header for above [Sec. 2.12.2]

Definition in file bufio.h.

Go to the source code of this file.

Compounds

struct  BUFIO

Functions

BUFIO * Bopen (const char *path, const char *dir)
BUFIO * Bfdopen (int fd, const char *dir)
int Bgetc (BUFIO *b)
bool Bputc (BUFIO *b, int c)
bool Bclose (BUFIO *b)
bool Bgets (BUFIO *b, char *s, size_t smax)
void Bsettimeout (BUFIO *b, struct timeval *timeout)


Function Documentation

bool Bclose BUFIO b  ) 
 

Definition at line 165 of file bufio.c.

References close(), BUFIO::dir, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, BUFIO::fd, BUFIO::fdopen, and writebuf().

Referenced by copy3(), and test_Bfdopen().

BUFIO* Bfdopen int  fd,
const char *  dir
 

Definition at line 55 of file bufio.c.

References Bopen_internal().

Referenced by test_Bfdopen().

int Bgetc BUFIO b  ) 
 

Definition at line 138 of file bufio.c.

References BUFIO::buf, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, errno, BUFIO::next, readbuf(), and BUFIO::total.

Referenced by Bgets(), copy3(), and test_Bfdopen().

bool Bgets BUFIO b,
char *  s,
size_t  smax
 

Definition at line 185 of file bufio.c.

References Bgetc().

BUFIO* Bopen const char *  path,
const char *  dir
 

Definition at line 89 of file bufio.c.

References Bopen_internal().

Referenced by copy3().

bool Bputc BUFIO b,
int  c
 

Definition at line 153 of file bufio.c.

References BUFIO::buf, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, BUFIO::next, and writebuf().

Referenced by copy3().

void Bsettimeout BUFIO b,
struct timeval timeout
 

Definition at line 207 of file bufio.c.

References BUFIO::timeout.


Generated on Fri Apr 23 10:57:07 2004 for AUP2 Example Source by doxygen 1.3.1