Deleted Added
full compact
getitimer.2 (108028) getitimer.2 (108087)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getitimer.2 8.3 (Berkeley) 5/16/95
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getitimer.2 8.3 (Berkeley) 5/16/95
33.\" $FreeBSD: head/lib/libc/sys/getitimer.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/getitimer.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd May 16, 1995
36.Dt GETITIMER 2
37.Os
38.Sh NAME
39.Nm getitimer ,
40.Nm setitimer
41.Nd get/set value of interval timer

--- 93 unchanged lines hidden (view full) ---

135and
136.Fa it_value
137in
138.Fn setitimer
139is 100000000.
140.Sh NOTES
141Three macros for manipulating time values are defined in
142.Ao Pa sys/time.h Ac .
34.\"
35.Dd May 16, 1995
36.Dt GETITIMER 2
37.Os
38.Sh NAME
39.Nm getitimer ,
40.Nm setitimer
41.Nd get/set value of interval timer

--- 93 unchanged lines hidden (view full) ---

135and
136.Fa it_value
137in
138.Fn setitimer
139is 100000000.
140.Sh NOTES
141Three macros for manipulating time values are defined in
142.Ao Pa sys/time.h Ac .
143.Fa Timerclear
143The
144.Fn timerclear
145macro
144sets a time value to zero,
146sets a time value to zero,
145.Fa timerisset
147.Fn timerisset
146tests if a time value is non-zero, and
148tests if a time value is non-zero, and
147.Fa timercmp
149.Fn timercmp
148compares two time values.
149.Sh RETURN VALUES
150.Rv -std
151.Sh ERRORS
152The
153.Fn getitimer
154and
155.Fn setitimer
156system calls
157will fail if:
158.Bl -tag -width Er
159.It Bq Er EFAULT
160The
161.Fa value
150compares two time values.
151.Sh RETURN VALUES
152.Rv -std
153.Sh ERRORS
154The
155.Fn getitimer
156and
157.Fn setitimer
158system calls
159will fail if:
160.Bl -tag -width Er
161.It Bq Er EFAULT
162The
163.Fa value
162parameter specified a bad address.
164argument specified a bad address.
163.It Bq Er EINVAL
165.It Bq Er EINVAL
164A
166The
165.Fa value
167.Fa value
166parameter specified a time that was too large
168argument specified a time that was too large
167to be handled.
168.El
169.Sh SEE ALSO
170.Xr gettimeofday 2 ,
171.Xr select 2 ,
172.Xr sigvec 2 ,
173.Xr clocks 7
174.Sh HISTORY
175The
176.Fn getitimer
177system call appeared in
178.Bx 4.2 .
169to be handled.
170.El
171.Sh SEE ALSO
172.Xr gettimeofday 2 ,
173.Xr select 2 ,
174.Xr sigvec 2 ,
175.Xr clocks 7
176.Sh HISTORY
177The
178.Fn getitimer
179system call appeared in
180.Bx 4.2 .