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  

c9/prcssync.c File Reference


Detailed Description

Process-synchronization examples [Sec. 9.2.3].

Definition in file prcssync.c.

Go to the source code of this file.

Functions

void try1 (void)
void handler (int signum)
void try2 (void)
void try3 (void)
void try4 (void)
void try5 (void)
void try6 (void)
int main (void)

Variables

volatile sig_atomic_t got_sig


Function Documentation

void handler int  signum  )  [static]
 

Definition at line 37 of file prcssync.c.

References got_sig.

Referenced by try2(), try3(), and try4().

int main void   ) 
 

Definition at line 204 of file prcssync.c.

References exit(), sleep(), try1(), try2(), try3(), try4(), try5(), and try6().

void try1 void   ) 
 

Definition at line 23 of file prcssync.c.

References exit(), and fork().

Referenced by main().

void try2 void   ) 
 

Definition at line 43 of file prcssync.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, errno, exit(), fork(), got_sig, handler(), kill(), pause(), sigaction::sa_handler, and sigaction().

Referenced by main().

void try3 void   ) 
 

Definition at line 73 of file prcssync.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, errno, exit(), fork(), got_sig, handler(), kill(), pause(), sigaction::sa_handler, set(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), and sigprocmask().

Referenced by main().

void try4 void   ) 
 

Definition at line 108 of file prcssync.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, errno, exit(), fork(), got_sig, handler(), kill(), sigaction::sa_handler, set(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), sigprocmask(), and sigsuspend().

Referenced by main().

void try5 void   ) 
 

Definition at line 148 of file prcssync.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, ec_rv, exit(), fork(), kill(), set(), sigaddset(), sigemptyset(), sigprocmask(), and sigwait().

Referenced by main().

void try6 void   ) 
 

Definition at line 178 of file prcssync.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, exit(), fork(), pipe(), and read().

Referenced by main().


Variable Documentation

volatile sig_atomic_t got_sig [static]
 

Definition at line 35 of file prcssync.c.

Referenced by handler(), try2(), try3(), and try4().


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