Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rmtimer(3) [osf1 man page]

rmtimer(3)						     Library Functions Manual							rmtimer(3)

NAME
rmtimer - Frees a per-process timer LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <sys/timers.h> int rmtimer( timer_t timer_id ); PARAMETERS
Specifies the per-process timer to deallocate. DESCRIPTION
The rmtimer() function is used to free a previously allocated per-process timer (previously returned by the mktimer() function). Any pend- ing per-process timer event generated by the timer specified by the timer_id parameter is canceled when this function successfully exe- cutes. NOTES
Trial use RETURN VALUES
Upon successful completion, the value 0 (zero) is returned. Otherwise, the value -1 is returned and errno is set to indicate the error. ERRORS
If the rmtimer() function fails, errno may be set to the following value: The timerid parameter does not specify an allocated per-process timer. RELATED INFORMATION
Functions: gettimer(3), mktimer(3), reltimer(3) delim off rmtimer(3)

Check Out this Related Man Page

mktimer(3)						     Library Functions Manual							mktimer(3)

NAME
mktimer - Allocates a per-process timer LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <sys/timers.h> timer_t mktimer( int clock_type, int notify_type, void *reserved) ; PARAMETERS
Specifies the system-wide clock to be used as a per-process time base for the new timer. Specifies the mechanism by which a process is to be notified when the per-process timer times out. Not used. DESCRIPTION
The mktimer() function is used to allocate a per-process timer using a specified system-wide clock as its timebase. The mktimer() function returns a unique timer ID of type timer_t, which is used to identify the timer in per-process timer requests. Each implementation of per-process timers defines a set of clocks that can be used as a time base for per-process timers, and one or more mechanisms for notifying the process that a per-process timer has expired. The Tru64 UNIX operating system allows each process to allocate one per-process timer whose clock_type parameter is specified by the TIMEOFDAY symbolic constant, which is defined in the timers.h include file, using the notification mechanism whose notify_type parameter is specified by the DELIVERY_SIGNALS symbolic constant. When the notify_type parameter is specified as DELIVERY_SIGNALS, the system sends a SIGALRM signal to the process whenever the timer expires. NOTES
Per-process timers are not inherited by a child process across fork() or exec() functions. The reserved parameter is not currently used, but is specified for future support of other delivery mechanisms. The mktimer() function is part of the POSIX 1003.4 real time extensions, which is not an approved standard. As such, it is liable to change. Trial use RETURN VALUES
Upon successful completion, the mktimer() function returns a timer_t value, which may be passed to a per-process timer call. Otherwise, mktimer() returns a value of (timer_t)-1 and sets errno to indicate the error. ERRORS
If the mktimer() function fails, errno may be set to one of the following values: The calling process has already allocated all available timers. The clock_type or notify_type parameter is invalid. RELATED INFORMATION
Functions: exec(2), fork(2), getclock(3), gettimer(3), reltimer(3), rmtimer(3), setclock(3) delim off mktimer(3)
Man Page

We Also Found This Discussion For You

1. What is on Your Mind?

Throw my Toys out of the Pram!

Hi Folks, Today hasn't been the best one of my career in IT. I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them. At the... (3 Replies)
Discussion started by: gull04
3 Replies