From 6c545ee600112fda8e8139b56221065e0c751859 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Thu, 4 Mar 1999 13:35:29 +0000 Subject: add .Nd and a DESCRIPTION section; karls@inet.no --- lib/libc/sys/nanosleep.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2 index 5a1e175c9cc..15b66afbe80 100644 --- a/lib/libc/sys/nanosleep.2 +++ b/lib/libc/sys/nanosleep.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nanosleep.2,v 1.1 1997/04/20 20:56:20 tholo Exp $ +.\" $OpenBSD: nanosleep.2,v 1.2 1999/03/04 13:35:28 aaron Exp $ .\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $ .\" .\" Copyright (c) 1986, 1991, 1993 @@ -39,11 +39,17 @@ .Os .Sh NAME .Nm nanosleep +.Nd high resolution sleep .Sh SYNOPSIS .Fd #include .Ft int .Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp" -.\" .Sh DESCRIPTION +.Sh DESCRIPTION +.Fn nanosleep +suspends execution of the calling process for the time specified. An unmasked +signal will cause it to terminate the sleep early, regardless of the +.Dv SA_RESTART +value on the interrupting signal. .Sh RETURN VALUE If the .Fn nanosleep -- cgit v1.2.3