clock_gettime.2 (130865) | clock_gettime.2 (131504) |
---|---|
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 130865 2004-06-21 18:57:32Z mpp $ | 34.\" $FreeBSD: head/lib/libc/sys/clock_gettime.2 131504 2004-07-02 23:52:20Z ru $ |
35.\" 36.Dd June 17, 2004 37.Dt CLOCK_GETTIME 2 38.Os 39.Sh NAME 40.Nm clock_gettime , 41.Nm clock_settime , 42.Nm clock_getres --- 47 unchanged lines hidden (view full) --- 90This limitation is imposed to prevent a malicious super-user 91from setting arbitrary time stamps on files. 92The system time can still be adjusted backwards using the 93.Xr adjtime 2 94system call even when the system is secure. 95.Pp 96The resolution (granularity) of a clock is returned by the 97.Fn clock_getres | 35.\" 36.Dd June 17, 2004 37.Dt CLOCK_GETTIME 2 38.Os 39.Sh NAME 40.Nm clock_gettime , 41.Nm clock_settime , 42.Nm clock_getres --- 47 unchanged lines hidden (view full) --- 90This limitation is imposed to prevent a malicious super-user 91from setting arbitrary time stamps on files. 92The system time can still be adjusted backwards using the 93.Xr adjtime 2 94system call even when the system is secure. 95.Pp 96The resolution (granularity) of a clock is returned by the 97.Fn clock_getres |
98system call. This value is placed in a (non-NULL) | 98system call. 99This value is placed in a (non-NULL) |
99.Fa *tp . 100.Sh RETURN VALUES 101.Rv -std 102.Sh ERRORS 103The following error codes may be set in 104.Va errno : 105.Bl -tag -width Er 106.It Bq Er EINVAL --- 24 unchanged lines hidden --- | 100.Fa *tp . 101.Sh RETURN VALUES 102.Rv -std 103.Sh ERRORS 104The following error codes may be set in 105.Va errno : 106.Bl -tag -width Er 107.It Bq Er EINVAL --- 24 unchanged lines hidden --- |