From owner-svn-src-head@freebsd.org Thu Feb 16 06:52:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AEF5CE136C; Thu, 16 Feb 2017 06:52:55 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 18181304; Thu, 16 Feb 2017 06:52:55 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1G6qsna074923; Thu, 16 Feb 2017 06:52:54 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1G6qsvQ074922; Thu, 16 Feb 2017 06:52:54 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201702160652.v1G6qsvQ074922@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Thu, 16 Feb 2017 06:52:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313801 - head/lib/libc/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 06:52:55 -0000 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 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 . 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 #include -#include #include #include #include #include #include -#include 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.