Unix and Linux Discussions Tagged with timer |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
2,252 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,029 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
14,542 |
Ubuntu |
|
|
|
2 |
8,141 |
Shell Programming and Scripting |
|
|
|
2 |
7,632 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
83,158 |
Shell Programming and Scripting |
|
|
|
7 |
8,418 |
Homework & Coursework Questions |
|
|
|
1 |
5,301 |
Programming |
|
|
|
2 |
7,966 |
Programming |
|
|
|
2 |
2,918 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,303 |
Shell Programming and Scripting |
|
|
|
1 |
8,614 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
4,655 |
Linux |
|
|
|
0 |
2,823 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
6,912 |
Solaris |
|
|
|
0 |
3,881 |
Programming |
|
|
|
1 |
5,372 |
Programming |
|
|
|
2 |
3,408 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
6 |
4,366 |
UNIX for Dummies Questions & Answers |
mktimer(3C) mktimer(3C)
NAME
mktimer - allocate a per-process timer
SYNOPSIS
DESCRIPTION
The function is used to allocate a per-process timer using the specified system-wide clock as the timing base. returns an unique timer ID
of type used to identify the timer in timer requests (see gettimer(3C)). specifies the system-wide clock to be used as the timing base for
the new timer. specifies the mechanism by which the process is to be notified when the timer expires.
supports one per-process timer with a of and of
If is the system causes a signal to be sent to the process whenever the timer expires.
For the machine-dependent clock resolution and maximum value are and seconds, respectively. These constants are defined in
RETURN VALUE
Upon successful completion, returns a which can be passed to the per_process timer calls. If unsuccessful, returns a value of and sets to
indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EAGAIN] The calling process has already allocated all of the timers it is allowed.
[EINVAL] is not defined, or does not allow the specified notification mechanism.
FILES
SEE ALSO
timers(2), getclock(3C), gettimer(3C), reltimer(3C), rmtimer(3C), setclock(3C), thread_safety(5).
STANDARDS CONFORMANCE
mktimer(3C)