TIMER_DELETE(3) Library Functions Manual TIMER_DELETE(3)

timer_deletedelete a per-process timer (REALTIME)


#include <time.h>

int timer_delete(timer_t timerid);

The timer_delete () function deletes the specified timer, , previously created by the timer_create(3) function. If the timer is armed when timer_delete () is called, the behavior shall be as if the timer is automatically disarmed before removal. The disposition of pending signals for the deleted timer is unspecified.

If successful, the timer_delete () function shall return a value of zero. Otherwise, the function shall return a value of -1 and set to indicate the error.

The timer_delete () function may fail if:

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

None.

None.

None.

None.

timer_create(3), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <time.h>

First released in Issue 5. Included for alignment with the POSIX Realtime Extension.

The timer_delete () function is marked as part of the Timers option.

The [ENOSYS] error condition has been removed as stubs need not be provided if an implementation does not support the Timers option.

IEEE Std 1003.1-2001 (“POSIX.1”)/Cor 2-2004, item XSH/TC2/D6/139 is applied, updating the ERRORS section so that the [EINVAL] error becomes optional.

footer end

December 6, 2001 posix.fail