diff options
author | 2001-08-11 08:13:18 +0000 | |
---|---|---|
committer | 2001-08-11 08:13:18 +0000 | |
commit | c280dd9668d75cb5c44d19897d435c3945a2dad2 (patch) | |
tree | 2b6a9617622f006a42155584bc95ad2f4448f633 | |
parent | move hifn_stats definition to header (diff) | |
download | wireguard-openbsd-c280dd9668d75cb5c44d19897d435c3945a2dad2.tar.xz wireguard-openbsd-c280dd9668d75cb5c44d19897d435c3945a2dad2.zip |
Define INFTIM to -1, as appears everywhere. Talk about it in the
manpage; millert@ ok.
-rw-r--r-- | lib/libc/sys/poll.2 | 4 | ||||
-rw-r--r-- | sys/sys/poll.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 30a65ba9889..ca9ffbbe2b8 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: poll.2,v 1.10 2000/10/18 05:12:11 aaron Exp $ +.\" $OpenBSD: poll.2,v 1.11 2001/08/11 08:13:18 fgsch Exp $ .\" .\" Copyright (c) 1994 Jason R. Thorpe .\" All rights reserved. @@ -75,7 +75,7 @@ Maximum interval to wait for the poll to complete, in milliseconds. If this value is 0, then .Fn poll will return immediately. -If this value is less than 0, +If this value is INFTIM (-1), .Fn poll will block indefinitely until a condition is found. .El diff --git a/sys/sys/poll.h b/sys/sys/poll.h index 3e7765bbaad..7401f885cb5 100644 --- a/sys/sys/poll.h +++ b/sys/sys/poll.h @@ -1,4 +1,4 @@ -/* $OpenBSD: poll.h,v 1.5 2001/03/01 01:32:50 deraadt Exp $ */ +/* $OpenBSD: poll.h,v 1.6 2001/08/11 08:13:18 fgsch Exp $ */ /* * Copyright (c) 1996 Theo de Raadt @@ -47,6 +47,8 @@ struct pollfd { #define POLLRDBAND 0x0080 #define POLLWRBAND 0x0100 +#define INFTIM (-1) + #ifndef _KERNEL #include <ctype.h> |