timer_delete(2freebsd)

timer_delete2freebsd

Delete a per-process timer (realtime)

Usage

#include <time.h>

int

timer_delete(timer_t timerid);

Library

library “librt”

Overview

The timer_delete() system call deletes the specified timer, timerid, previously created by the timer_create(2) system call. If the timer is armed when timer_delete() is called, the behavior is as if the timer is automatically disarmed before removal. Pending signals for the deleted timer are cleared.

Return values

The timer_delete() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

Errors

The timer_delete() system call will fail if:

[EINVAL]

The timer ID specified by timerid is not a valid timer ID.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Standards

The timer_delete() system call conforms to IEEE Std 1003.1-2004 (“POSIX.1”).

History

Support for POSIX per-process timer first appeared in FreeBSD 7.0.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.