diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-08-11 08:13:19 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-08-11 08:13:19 +0000 |
commit | f6e2b423861173e62cb09bac69d991caaef7e2ac (patch) | |
tree | 6e681dd112c1c15c043406849a60a5e3fd652145 | |
parent | 6f9dc2d5487e01f694c67292c94c9a23fbbb08ef (diff) |
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> |