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  

c6/search0.c File Reference


Detailed Description

editor front-end (unidirectional pipes) [Sec. 6.5]

Definition in file search0.c.

Go to the source code of this file.

Functions

bool edinvoke (void)
bool edsnd (const char *s)
bool edrcv (char *s, size_t smax)
bool turnaround (void)
bool rcvall (void)
bool prompt (const char *msg, char *result, size_t resultmax, bool *eofp)
int main (void)

Variables

FILE * sndfp
FILE * rcvfp


Function Documentation

bool edinvoke void   )  [static]
 

Definition at line 29 of file search0.c.

References _exit(), close(), dup2(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, ec_null, execlp(), fork(), pipe(), rcvfp, and sndfp.

Referenced by main().

bool edrcv char *  s,
size_t  smax
[static]
 

Definition at line 74 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, and rcvfp.

bool edsnd const char *  s  )  [static]
 

Definition at line 64 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_eof, and sndfp.

int main void   ) 
 

Definition at line 136 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, edinvoke(), edsnd(), exit(), prompt(), and rcvall().

bool prompt const char *  msg,
char *  result,
size_t  resultmax,
bool *  eofp
[static]
 

Definition at line 113 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, and EC_FAIL.

bool rcvall void   )  [static]
 

Definition at line 95 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, edrcv(), and turnaround().

Referenced by main().

bool turnaround void   )  [static]
 

Definition at line 84 of file search0.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_eof, ec_false, edsnd(), and sndfp.

Referenced by rcvall().


Variable Documentation

FILE * rcvfp [static]
 

Definition at line 27 of file search0.c.

Referenced by edinvoke(), and edrcv().

FILE* sndfp [static]
 

Definition at line 27 of file search0.c.

Referenced by edinvoke(), edsnd(), and turnaround().


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