OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man2 / timer_delete.2
1 .\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .TH TIMER_DELETE 2 2009-02-20 Linux "Linux Programmer's Manual"
24 .SH NAME
25 timer_delete \- delete a POSIX per-process timer
26 .SH SYNOPSIS
27 .nf
28 .B  #include <time.h>
29
30 .BI "int timer_delete(timer_t " timerid );
31 .fi
32
33 Link with \fI\-lrt\fP.
34 .sp
35 .in -4n
36 Feature Test Macro Requirements for glibc (see
37 .BR feature_test_macros (7)):
38 .in
39 .sp
40 .BR timer_delete ():
41 _POSIX_C_SOURCE >= 199309
42 .SH DESCRIPTION
43 .BR timer_delete ()
44 deletes the timer whose ID is given in
45 .IR timerid .
46 If the timer was armed at the time of this call,
47 it is disarmed before being deleted.
48 The treatment of any pending signal generated by the deleted timer
49 is unspecified.
50 .SH RETURN VALUE
51 On success,
52 .BR timer_delete ()
53 returns 0.
54 On failure, \-1 is returned, and
55 .I errno
56 is set to indicate the error.
57 .SH ERRORS
58 .TP
59 .B EINVAL
60 .I timerid
61 is not a valid timer ID.
62 .SH VERSIONS
63 This system call is available since Linux 2.6.
64 .SH CONFORMING TO
65 POSIX.1-2001
66 .SH SEE ALSO
67 .BR clock_gettime (2),
68 .BR timer_create (2),
69 .BR timer_settime (2),
70 .BR timer_getoverrun (2),
71 .BR time (7)