Page MenuHomeFreeBSD

D9605.diff
No OneTemporary

D9605.diff

Index: head/lib/libc/sys/kqueue.2
===================================================================
--- head/lib/libc/sys/kqueue.2
+++ head/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 3, 2016
+.Dd February 15, 2017
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -34,9 +34,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In sys/types.h
.In sys/event.h
-.In sys/time.h
.Ft int
.Fn kqueue "void"
.Ft int
@@ -633,15 +631,12 @@
returns 0.
.Sh EXAMPLES
.Bd -literal -compact
-#include <sys/types.h>
#include <sys/event.h>
-#include <sys/time.h>
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
int
main(int argc, char **argv)
@@ -769,3 +764,9 @@
.Fa timeout
value is limited to 24 hours; longer timeouts will be silently
reinterpreted as 24 hours.
+.Pp
+Previous versions of
+.In sys/event.h
+fail to parse without including
+.In sys/types.h
+manually.

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 12:19 AM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15599850
Default Alt Text
D9605.diff (947 B)

Event Timeline