]>
Commit | Line | Data |
---|---|---|
527d64f8 MK |
1 | .\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk |
2 | .\" <mtk.manpages@gmail.com> | |
3 | .\" | |
5fbde956 | 4 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
4784c377 | 5 | .\" |
45186a5d | 6 | .TH TIMER_DELETE 2 2021-03-22 "Linux man-pages (unreleased)" |
527d64f8 MK |
7 | .SH NAME |
8 | timer_delete \- delete a POSIX per-process timer | |
08cad5c7 AC |
9 | .SH LIBRARY |
10 | Real-time library | |
8fc3b2cf | 11 | .RI ( librt ", " \-lrt ) |
527d64f8 MK |
12 | .SH SYNOPSIS |
13 | .nf | |
14 | .B #include <time.h> | |
dbfe9c70 | 15 | .PP |
527d64f8 MK |
16 | .BI "int timer_delete(timer_t " timerid ); |
17 | .fi | |
dbfe9c70 | 18 | .PP |
d39ad78f | 19 | .RS -4 |
527d64f8 MK |
20 | Feature Test Macro Requirements for glibc (see |
21 | .BR feature_test_macros (7)): | |
d39ad78f | 22 | .RE |
68e4db0a | 23 | .PP |
527d64f8 | 24 | .BR timer_delete (): |
1dd0d7b4 | 25 | .nf |
5c10d2c5 | 26 | _POSIX_C_SOURCE >= 199309L |
1dd0d7b4 | 27 | .fi |
527d64f8 MK |
28 | .SH DESCRIPTION |
29 | .BR timer_delete () | |
30 | deletes the timer whose ID is given in | |
31 | .IR timerid . | |
32 | If the timer was armed at the time of this call, | |
33 | it is disarmed before being deleted. | |
34 | The treatment of any pending signal generated by the deleted timer | |
35 | is unspecified. | |
36 | .SH RETURN VALUE | |
37 | On success, | |
38 | .BR timer_delete () | |
39 | returns 0. | |
40 | On failure, \-1 is returned, and | |
41 | .I errno | |
42 | is set to indicate the error. | |
43 | .SH ERRORS | |
44 | .TP | |
45 | .B EINVAL | |
46 | .I timerid | |
47 | is not a valid timer ID. | |
48 | .SH VERSIONS | |
49 | This system call is available since Linux 2.6. | |
3113c7f3 | 50 | .SH STANDARDS |
fee03a18 | 51 | POSIX.1-2001, POSIX.1-2008. |
527d64f8 MK |
52 | .SH SEE ALSO |
53 | .BR clock_gettime (2), | |
54 | .BR timer_create (2), | |
527d64f8 | 55 | .BR timer_getoverrun (2), |
3e5c319e | 56 | .BR timer_settime (2), |
527d64f8 | 57 | .BR time (7) |