Deleted Added
full compact
nanosleep.2 (108105) nanosleep.2 (131504)
1.\" $OpenBSD: nanosleep.2,v 1.1 1997/04/20 20:56:20 tholo Exp $
2.\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $
3.\"
4.\" Copyright (c) 1986, 1991, 1993
5.\" The Regents of the University of California. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
1.\" $OpenBSD: nanosleep.2,v 1.1 1997/04/20 20:56:20 tholo Exp $
2.\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $
3.\"
4.\" Copyright (c) 1986, 1991, 1993
5.\" The Regents of the University of California. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
36.\" $FreeBSD: head/lib/libc/sys/nanosleep.2 108105 2002-12-19 21:48:43Z ceri $
36.\" $FreeBSD: head/lib/libc/sys/nanosleep.2 131504 2004-07-02 23:52:20Z ru $
37.\"
38.Dd April 17, 1997
39.Dt NANOSLEEP 2
40.Os
41.Sh NAME
42.Nm nanosleep
43.Nd suspend process execution for an interval measured in nanoseconds
44.Sh LIBRARY
45.Lb libc
46.Sh SYNOPSIS
47.In time.h
48.Ft int
49.Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp"
50.Sh DESCRIPTION
51The
52.Fn nanosleep
53system call
37.\"
38.Dd April 17, 1997
39.Dt NANOSLEEP 2
40.Os
41.Sh NAME
42.Nm nanosleep
43.Nd suspend process execution for an interval measured in nanoseconds
44.Sh LIBRARY
45.Lb libc
46.Sh SYNOPSIS
47.In time.h
48.Ft int
49.Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp"
50.Sh DESCRIPTION
51The
52.Fn nanosleep
53system call
54causes the process to sleep for the specified time. An unmasked signal will
54causes the process to sleep for the specified time.
55An unmasked signal will
55cause it to terminate the sleep early, regardless of the
56.Dv SA_RESTART
57value on the interrupting signal.
58.Sh RETURN VALUES
59If the
60.Fn nanosleep
61system call returns because the requested time has elapsed, the value
62returned will be zero.

--- 50 unchanged lines hidden ---
56cause it to terminate the sleep early, regardless of the
57.Dv SA_RESTART
58value on the interrupting signal.
59.Sh RETURN VALUES
60If the
61.Fn nanosleep
62system call returns because the requested time has elapsed, the value
63returned will be zero.

--- 50 unchanged lines hidden ---