1TIMER_DELETE(3P) POSIX Programmer's Manual TIMER_DELETE(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 timer_delete — delete a per-process timer
13
15 #include <time.h>
16
17 int timer_delete(timer_t timerid);
18
20 The timer_delete() function deletes the specified timer, timerid, pre‐
21 viously created by the timer_create() function. If the timer is armed
22 when timer_delete() is called, the behavior shall be as if the timer is
23 automatically disarmed before removal. The disposition of pending sig‐
24 nals for the deleted timer is unspecified.
25
26 The behavior is undefined if the value specified by the timerid argu‐
27 ment to timer_delete() does not correspond to a timer ID returned by
28 timer_create() but not yet deleted by timer_delete().
29
31 If successful, the timer_delete() function shall return a value of
32 zero. Otherwise, the function shall return a value of -1 and set errno
33 to indicate the error.
34
36 No errors are defined.
37
38 The following sections are informative.
39
41 None.
42
44 None.
45
47 If an implementation detects that the value specified by the timerid
48 argument to timer_delete() does not correspond to a timer ID returned
49 by timer_create() but not yet deleted by timer_delete(), it is recom‐
50 mended that the function should fail and report an [EINVAL] error.
51
53 None.
54
56 timer_create()
57
58 The Base Definitions volume of POSIX.1‐2017, <time.h>
59
61 Portions of this text are reprinted and reproduced in electronic form
62 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
63 table Operating System Interface (POSIX), The Open Group Base Specifi‐
64 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
65 Electrical and Electronics Engineers, Inc and The Open Group. In the
66 event of any discrepancy between this version and the original IEEE and
67 The Open Group Standard, the original IEEE and The Open Group Standard
68 is the referee document. The original Standard can be obtained online
69 at http://www.opengroup.org/unix/online.html .
70
71 Any typographical or formatting errors that appear in this page are
72 most likely to have been introduced during the conversion of the source
73 files to man page format. To report such errors, see https://www.ker‐
74 nel.org/doc/man-pages/reporting_bugs.html .
75
76
77
78IEEE/The Open Group 2017 TIMER_DELETE(3P)