James Thornton logo
James Thornton
Google
Web jamesthornton.com
Internet Business Consultant Call Toll Free: 1 (800) 409-2501
About James Google Profile Electric Speed The Electors Juced Contact Me
JamesThornton.com -> Linux -> Man -> One Page

Name

alarm - set an alarm clock for delivery of a signal

Synopsis


#include <unistd.h>
unsigned int alarm(unsigned int seconds);

Description

alarm arranges for a SIGALRM signal to be delivered to the process in seconds seconds.

If seconds is zero, no new alarm is scheduled.

In any event any previously set alarm is cancelled.

Return Value

alarm returns the number of seconds remaining until any previously scheduled alarm was due to be delivered, or zero if there was no previously scheduled alarm.

Notes

alarm and setitimer share the same timer; calls to one will interfere with use of the other.

sleep() may be implemented using SIGALRM; mixing calls to alarm() and sleep() is a bad idea.

Scheduling delays can, as ever, cause the execution of the process to be delayed by an arbitrary amount of time.

Conforming to

SVr4, SVID, POSIX, X/OPEN, BSD 4.3

See Also

setitimer(2) , signal(2) , sigaction(2) , gettimeofday(2) , select(2) , pause(2) , sleep(3)


Bathroom Corner Vanity
cantonantiques.com Antique furniture, specializing in antique bathroom vanities


Add a comment | Add a link