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

Detailed Description

sleep implementation using alarm [Sec. 9.7.2]

Definition in file slp.c.

Go to the source code of this file.


void slp_handler (int signum)
unsigned aup_sleep (unsigned secs)
void alarm_handler (int signum)
int main (void)

Function Documentation

void alarm_handler int  signum  )  [static]

Definition at line 66 of file slp.c.

References write().

Referenced by main().

unsigned aup_sleep unsigned  secs  ) 

Definition at line 29 of file slp.c.

References alarm(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, ec_neg1, errno, sigaction::sa_handler, set(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigprocmask(), sigsuspend(), and slp_handler().

Referenced by main().

int main void   ) 

Definition at line 71 of file slp.c.

References alarm(), alarm_handler(), aup_sleep(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), pause(), sigaction::sa_handler, sigaction(), and time().

void slp_handler int  signum  )  [static]

Definition at line 25 of file slp.c.

Referenced by aup_sleep().

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