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/search1.c File Reference


Detailed Description

editor front-end (bidirectional pipe) [Sec. 6.6]

Definition in file search1.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 search1.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.

bool edrcv char *  s,
size_t  smax
[static]
 

Definition at line 68 of file search1.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, and rcvfp.

Referenced by rcvall().

bool edsnd const char *  s  )  [static]
 

Definition at line 58 of file search1.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_eof, and sndfp.

Referenced by main(), and turnaround().

int main void   ) 
 

Definition at line 130 of file search1.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 107 of file search1.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, and EC_FAIL.

Referenced by main().

bool rcvall void   )  [static]
 

Definition at line 89 of file search1.c.

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

bool turnaround void   )  [static]
 

Definition at line 78 of file search1.c.

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


Variable Documentation

FILE * rcvfp [static]
 

Definition at line 27 of file search1.c.

Referenced by edinvoke(), and edrcv().

FILE* sndfp [static]
 

Definition at line 27 of file search1.c.

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


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