Document error return.
This commit is contained in:
parent
0d5518db3b
commit
24e45d4bc3
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: alarm.3,v 1.13 1998/04/28 04:07:05 fair Exp $
|
||||
.\" $NetBSD: alarm.3,v 1.14 1998/11/12 15:36:05 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -77,6 +77,9 @@ The return value of
|
||||
is the amount of time left on the timer from a previous call to
|
||||
.Fn alarm .
|
||||
If no alarm is currently set, the return value is 0.
|
||||
If there is an error setting the timer,
|
||||
.Fn alarm
|
||||
returns ((unsigned int) -1).
|
||||
.Sh SEE ALSO
|
||||
.Xr sigaction 2 ,
|
||||
.Xr setitimer 2 ,
|
||||
|
Loading…
Reference in New Issue
Block a user