timer_delete(3) — Subroutines
Digital
NAME
timer_delete − deallocate a previously allocated per-process timer (P1003.4/D10)
SYNOPSIS
#include <timers.h>
int timer_delete (
timer_t timerid) ;
PARAMETERS
timerid The timer to deallocate.
DESCRIPTION
The timer_delete function frees a per-process timer allocated by a call to the timer_create function. If the timer is armed when the timer_delete function is called, the timer is disarmed and then removed. No signal is sent if the timer is deallocated with the timer_delete function.
RETURN VALUES
On a successful call, a value of 0 is returned.
On an unsuccessful call, a value of −1 is returned and errno is set to indicate that an error occurred.
ERRORS
The timer_delete function fails under the following conditions:
[EINVAL] The timer ID specified by timerid is not a valid timer ID.
[ENOSYS] The configuration does not support P1003.4/D10 Timers. Refer to the DEC OSF/1 Realtime Installation Guide for information on how to install the realtime software.