Deleted Added
full compact
clock_gettime.2 (108028) clock_gettime.2 (108087)
1.\" $OpenBSD: clock_gettime.2,v 1.4 1997/05/08 20:21:16 kstailey Exp $
2.\"
3.\" Copyright (c) 1980, 1991, 1993
4.\" The Regents of the University of California. All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

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

26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
1.\" $OpenBSD: clock_gettime.2,v 1.4 1997/05/08 20:21:16 kstailey Exp $
2.\"
3.\" Copyright (c) 1980, 1991, 1993
4.\" The Regents of the University of California. All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

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

26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" $FreeBSD: head/lib/libc/sys/clock_gettime.2 108028 2002-12-18 09:22:32Z ru $
34.\" $FreeBSD: head/lib/libc/sys/clock_gettime.2 108087 2002-12-19 09:40:28Z ru $
35.\"
36.Dd May 8, 1997
37.Dt CLOCK_GETTIME 2
38.Os
39.Sh NAME
40.Nm clock_gettime ,
41.Nm clock_settime ,
42.Nm clock_getres

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

55The
56.Fn clock_gettime
57and
58.Fn clock_settime
59allow the calling process to retrieve or set the value used by a clock
60which is specifed by
61.Fa clock_id .
62.Pp
35.\"
36.Dd May 8, 1997
37.Dt CLOCK_GETTIME 2
38.Os
39.Sh NAME
40.Nm clock_gettime ,
41.Nm clock_settime ,
42.Nm clock_getres

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

55The
56.Fn clock_gettime
57and
58.Fn clock_settime
59allow the calling process to retrieve or set the value used by a clock
60which is specifed by
61.Fa clock_id .
62.Pp
63The
63.Fa clock_id
64.Fa clock_id
65argument
64can be one of three values: CLOCK_REALTIME for time that increments as
65a wall clock should, CLOCK_VIRTUAL for time that increments only when
66the CPU is running in user mode on behalf of the calling process, or
67CLOCK_PROF for time that increments when the CPU is running in user or
68kernel mode.
69.Pp
70The structure pointed to by
71.Fa tp

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

98.Rv -std
99.Sh ERRORS
100The following error codes may be set in
101.Va errno :
102.Bl -tag -width Er
103.It Bq Er EINVAL
104The
105.Fa clock_id
66can be one of three values: CLOCK_REALTIME for time that increments as
67a wall clock should, CLOCK_VIRTUAL for time that increments only when
68the CPU is running in user mode on behalf of the calling process, or
69CLOCK_PROF for time that increments when the CPU is running in user or
70kernel mode.
71.Pp
72The structure pointed to by
73.Fa tp

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

100.Rv -std
101.Sh ERRORS
102The following error codes may be set in
103.Va errno :
104.Bl -tag -width Er
105.It Bq Er EINVAL
106The
107.Fa clock_id
108argument
106was not a valid value.
107.It Bq Er EFAULT
108The
109.Fa *tp
110argument address referenced invalid memory.
111.It Bq Er EPERM
112A user other than the super-user attempted to set the time.
113.El

--- 13 unchanged lines hidden ---
109was not a valid value.
110.It Bq Er EFAULT
111The
112.Fa *tp
113argument address referenced invalid memory.
114.It Bq Er EPERM
115A user other than the super-user attempted to set the time.
116.El

--- 13 unchanged lines hidden ---