DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

timer_delete(S)


timer_delete -- delete a per process timer

Syntax

cc . . . -lsuds
#include <time.h>

int timer_delete(timer_t timerid);

Description

The timer_delete function deletes the specified timer, timerid, previously created by the timer_create(S) function. If the timer is armed when timer_delete is called, the behavior is as if the timer is automatically disarmed before removal.

Return values

If successful, the timer_delete function returns a value of zero. Otherwise, the function returns a value of -l and sets errno to indicate the error.

Diagnostics

If any of the following conditions occur, the timer_delete function returns -1 and sets errno to the corresponding value:

[EINVAL]
The timer ID specified by timerid is not a valid timer ID.

See also

time(FP), timer_create(S)

Standards conformance

Text reprinted and/or adapted from IEEE Std 1003.1b-1993, IEEE Standard for Information Technology, POSIX Part 1: System Application Program Interface (API) Amendment 1: Realtime Extensions [C Language], copyright © 1993 by the Institute of Electrical and Electronics Engineers, Inc. The IEEE takes no responsibility for and will assume no liability for damages resulting from the reader's misinterpretation of said information resulting from the placement and context in this publication. Information is reproduced with the permission of the IEEE.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003