]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/timer_delete.2
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man2 / timer_delete.2
CommitLineData
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
8timer_delete \- delete a POSIX per-process timer
08cad5c7
AC
9.SH LIBRARY
10Real-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
20Feature 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 ()
30deletes the timer whose ID is given in
31.IR timerid .
32If the timer was armed at the time of this call,
33it is disarmed before being deleted.
34The treatment of any pending signal generated by the deleted timer
35is unspecified.
36.SH RETURN VALUE
37On success,
38.BR timer_delete ()
39returns 0.
40On failure, \-1 is returned, and
41.I errno
42is set to indicate the error.
43.SH ERRORS
44.TP
45.B EINVAL
46.I timerid
47is not a valid timer ID.
48.SH VERSIONS
49This system call is available since Linux 2.6.
3113c7f3 50.SH STANDARDS
fee03a18 51POSIX.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)