06-14-2004
Hi
Thanks for both Rusell & Drivers.
This was just great for me.
Well then how different are the alarm() & ualarm().
Can we use them also. I'm bit puzzled with them.
Again Thanks for all your quick responses.
Regards
Vishwa.
3 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hey guys, I am Shelby! :-) I am 13 years old and i love Unix. When i was about 6 i was introduced to computers, because almost all of my family is comprised of artists, i used macs at a very early age. I generally sat on the computer until the time i was about 10 when i walked into a laptop store... (2 Replies)
Discussion started by: mesaynaysayer
2 Replies
2. Programming
Hi guys,
I'm the maintainer of Imperfect world of Robots, and I'm here to introduce this project to any AI lover. This is a free (as in freedom) software and release under the terms of GNU General Public License.
Although it belongs to the programming game category, it's not only about... (0 Replies)
Discussion started by: aidin_36
0 Replies
3. What is on Your Mind?
Hello! I didn't see an Introduce Yourself/Meet and Greet board, so I think this might be the right place.
I'm a student and a new coder. I run Ubuntu 11.10 currently, and I program in Python, and I'm learning a few languages alongside.
Random pages:
Twitter - @NihilusV, other links can... (1 Reply)
Discussion started by: NihilusV
1 Replies
ALARM(3) BSD Library Functions Manual ALARM(3)
NAME
alarm -- set signal timer alarm
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
unsigned int
alarm(unsigned int seconds);
DESCRIPTION
This interface is made obsolete by setitimer(2).
The alarm() function sets a timer to deliver the signal SIGALRM to the calling process seconds after the call to alarm(). If an alarm has
already been set with alarm() but has not been delivered, another call to alarm() will supersede the prior call. The request alarm(0) voids
the current alarm and the signal SIGALRM will not be delivered. The maximum number of seconds allowed is 2147483647.
The return value of alarm() is the amount of time left on the timer from a previous call to alarm(). If no alarm is currently set, the
return value is 0. If there is an error setting the timer, alarm() returns ((unsigned int) -1).
SEE ALSO
setitimer(2), sigaction(2), sigsuspend(2), signal(3), sigvec(3), sleep(3), ualarm(3), usleep(3)
STANDARDS
The alarm() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').
HISTORY
An alarm() function appeared in Version 7 AT&T UNIX.
BSD
April 19, 1994 BSD