ALARM

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
BSD 4  

NAME

alarm - set signal timer alarm  

SYNOPSIS

Fd #include <unistd.h> Ft u_int Fn alarm u_int seconds  

DESCRIPTION

Bf -symbolic This interface is made obsolete by setitimer(2). Ef

The Fn alarm function waits a count of seconds before asserting the terminating signal SIGALRM When the signal has successfully been caught, Fn alarm returns the amount of time left on the clock. The maximum mumber of seconds allowed is 2147483647.

If an alarm has been set with Fn alarm , another call to Fn alarm will superceed the prior call. The request Fn alarm 0 voids the current alarm.  

SEE ALSO

sigaction(2), setitimer(2), sigpause(2), sigvec(2), signal(3), sleep(3), ualarm(3), usleep(3)  

HISTORY

An Fn alarm function appeared in AT&T System v7 .


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 06:42:31 GMT, May 19, 2025