|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
System Calls alarm(2)
NAME
alarm - schedule an alarm signal
SYNOPSIS
#include <unistd.h>
unsigned int alarm(unsigned int sec);
DESCRIPTION
The alarm() function causes the system to generate a SIGALRM
signal for the process after the number of real-time seconds
specified by seconds have elapsed (see signal.h(3HEAD)).
Processor scheduling delays may prevent the process from
handling the signal as soon as it is generated.
If seconds is 0, a pending alarm request, if any, is can-
celled.
Alarm requests are not stacked; only one SIGALRM generation
can be scheduled in this manner; if the SIGALRM signal has
not yet been generated, the call will result in rescheduling
the time at which the SIGALRM signal will be generated.
The fork(2) function clears pending alarms in the child pro-
cess. A new process image created by one of the exec func-
tions inherits the time left to an alarm signal in the old
process's image.
RETURN VALUES
If there is a previous alarm request with time remaining,
alarm() returns a non-zero value that is the number of
seconds until the previous request would have generated a
SIGALRM signal. Otherwise, alarm() returns 0.
ERRORS
The alarm() function is always successful; no return value
is reserved to indicate an error.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Standard |
|_____________________________|_____________________________|
| MT-Level | Async-Signal-Safe |
|_____________________________|_____________________________|
SunOS 5.10 Last change: 7 Jun 2001 1
System Calls alarm(2)
SEE ALSO
exec(2), fork(2), signal.h(3HEAD), attributes(5), stan-
dards(5)
SunOS 5.10 Last change: 7 Jun 2001 2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 11:26:55 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
sqlite3 man page (5334 hits) (openSUSE 10.2)
svn man page (5209 hits) (FreeBSD 6.2)
adv_cap_autoneg man page (4870 hits) (Solaris 10 11_06)
CPAN man page (4607 hits) (Suse Linux 10.1)
ssh man page (4342 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (2884 hits) (Solaris 10 11_06)
netcat man page (2717 hits) (Suse Linux 10.1)
pprosetup man page (2492 hits) (Solaris 10 11_06)
startproc man page (2471 hits) (Suse Linux 10.1)
signal man page (2408 hits) (Suse Linux 10.1)
|