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  

c5/x5a.c File Reference


Detailed Description

Miscellaneous examples for Chap. 5 [Chap. 5].

Definition in file x5a.c.

Go to the source code of this file.

Functions

int exec_path (const char *path, char *const argv[], char *newargv[])
int execvp2 (const char *file, char *const argv[])
void exectest (void)
void forkbuf (void)
void junk (void)
void forktest (void)
void gp (void)
int main (int argc, char *argv[])


Function Documentation

int exec_path const char *  path,
char *const  argv[],
char *  newargv[]
 

Definition at line 24 of file x5a.c.

References errno, and execv().

Referenced by execvp2().

void exectest void   ) 
 

Definition at line 78 of file x5a.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, and execl().

int execvp2 const char *  file,
char *const  argv[]
 

Definition at line 41 of file x5a.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_neg1, ec_null, errno, exec_path(), and getenv().

void forkbuf void   ) 
 

Definition at line 90 of file x5a.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), and fork().

void forktest void   ) 
 

Definition at line 132 of file x5a.c.

References fork().

Referenced by main().

void gp void   ) 
 

Definition at line 142 of file x5a.c.

References getpid(), open(), and syserr().

void junk void   ) 
 

Definition at line 103 of file x5a.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, errno, execl(), fcntl(), and sysconf().

int main int  argc,
char *  argv[]
 

Definition at line 154 of file x5a.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, exit(), and forktest().


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