summaryrefslogtreecommitdiff
path: root/lib/libc/gen/ualarm.3
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-06 01:25:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-06 01:25:50 +0000
commit8599f9e108b853b72544216cf749e7fd896e9fa5 (patch)
tree4861c463993de7ec638af0671383605381207fb4 /lib/libc/gen/ualarm.3
parentf65c780eca74851556a757da215891467035e225 (diff)
XPG4.2 compat:
1) usleep() and ualarm() use useconds_t not u_int 2) usleep() returns an int
Diffstat (limited to 'lib/libc/gen/ualarm.3')
-rw-r--r--lib/libc/gen/ualarm.313
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3
index e8d1378df7f..b96e888ad8d 100644
--- a/lib/libc/gen/ualarm.3
+++ b/lib/libc/gen/ualarm.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ualarm.3,v 1.3 1997/09/26 01:25:26 millert Exp $
+.\" $OpenBSD: ualarm.3,v 1.4 1997/11/06 01:25:49 millert Exp $
.\"
.\" Copyright (c) 1986, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd April 19, 1994
+.Dd November 4, 1997
.Dt UALARM 3
.Os BSD 4.3
.Sh NAME
@@ -39,8 +39,8 @@
.Nd schedule signal after specified time
.Sh SYNOPSIS
.Fd #include <unistd.h>
-.Ft u_int
-.Fn ualarm "u_int microseconds" "u_int interval"
+.Ft useconds_t
+.Fn ualarm "useconds_t microseconds" "useconds_t interval"
.Sh DESCRIPTION
.Bf -symbolic
This is a simplified interface to setitimer(2).
@@ -84,6 +84,11 @@ is 2147483647.
.Xr sleep 3 ,
.Xr alarm 3 ,
.Xr usleep 3
+.Sh STANDARDS
+The
+.Fn
+function conforms to
+.St -xpg4.2 .
.Sh HISTORY
The
.Fn ualarm