Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2017 06:52:54 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313801 - head/lib/libc/sys
Message-ID:  <201702160652.v1G6qsvQ074922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Thu Feb 16 06:52:53 2017
New Revision: 313801
URL: https://svnweb.freebsd.org/changeset/base/313801

Log:
  Remove unnecessary #includes from the kqueue(2) man page.
  
  Now that <sys/event.h> can be included on its own, adjust the manual
  page accordingly. Remove both unnecessary #include statements from the
  synopsis and the example code.
  
  While there, also add a note to the BUGS section to mention that
  previous versions of this header file still depend on <sys/types.h>.
  
  Reviewed by:	ngie, vangyzen
  Differential Revision:	https://reviews.freebsd.org/D9605

Modified:
  head/lib/libc/sys/kqueue.2

Modified: head/lib/libc/sys/kqueue.2
==============================================================================
--- head/lib/libc/sys/kqueue.2	Thu Feb 16 06:36:16 2017	(r313800)
+++ head/lib/libc/sys/kqueue.2	Thu Feb 16 06:52:53 2017	(r313801)
@@ -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 @@ If the time limit expires, then
 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 @@ The
 .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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702160652.v1G6qsvQ074922>