From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 5 23:42:32 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F9F81065672 for ; Sat, 5 Feb 2011 23:42:32 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 594768FC16 for ; Sat, 5 Feb 2011 23:42:32 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Plrlu-0004aA-Nx for freebsd-hackers@freebsd.org; Sun, 06 Feb 2011 00:42:30 +0100 Received: from 189.61.208.111 ([189.61.208.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Feb 2011 00:42:30 +0100 Received: from kubito by 189.61.208.111 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Feb 2011 00:42:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Raphael Kubo da Costa Date: Sat, 05 Feb 2011 21:42:13 -0200 Lines: 27 Message-ID: <87fws2rqui.fsf@gmail.com> References: <87vd0ys2no.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 189.61.208.111 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (berkeley-unix) Cancel-Lock: sha1:L/ycv+q1n0HSamkRgMKYkiNxG4g= Subject: Re: Missing stdint.h includes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 23:42:32 -0000 Garrett Cooper writes: > On Sat, Feb 5, 2011 at 11:27 AM, Raphael Kubo da Costa wrote: >> Hey there, >> >> I was working on some code that used devinfo(3). According to devinfo's >> man page, #including devinfo.h should be enough to use it. However, a >> program which only #includes devinfo.h fails due to stdint.h (or >> sys/types.h) not being included, thus giving me some errors about >> uint32_t and other types not being defined. >> >> A few headers in sys/, such as sys/rman.h, have the same problem. >> >> Is it a bug in the headers themselves or are the man pages just >> incorrect? > > I'd say it's the manpages probably because a lot of the types were > changed to POSIX integral types, and the manpages weren't updated. > Thanks! Hmm. In the case of sys/rman.h, I see that commits using uint32_t and other such types are almost 10 years old. As for devinfo.h, shouldn't it just include stdint.h, sys/types.h or sys/param.h? What's the best way for me to help with this, PR-wise?