From owner-cvs-src@FreeBSD.ORG Tue Sep 23 01:28:13 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 766981065676; Tue, 23 Sep 2008 01:28:13 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 18A4E8FC22; Tue, 23 Sep 2008 01:28:13 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 3EA3428454; Tue, 23 Sep 2008 09:28:12 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 8FB7EF66C13; Tue, 23 Sep 2008 09:28:11 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id C+CYsd0s9DI0; Tue, 23 Sep 2008 09:28:06 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 37A72F66C50; Tue, 23 Sep 2008 09:28:01 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=Xy9dv8Kjkxv1HI5JpPrcZWylWo+aN02NEq2f0OmLzNhltGmaxFgITDFmq2yYQostP mJuFzRf6CbYPYiKliXW2Q== Message-ID: <48D8461E.3030409@delphij.net> Date: Mon, 22 Sep 2008 18:27:58 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080725) MIME-Version: 1.0 To: Peter Wemm References: <200809202113.m8KLDEmT054706@repoman.freebsd.org> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Craig Rodrigues , cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen getosreldate.3 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2008 01:28:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Wemm wrote: > On Sun, Sep 21, 2008 at 12:23 PM, Peter Wemm wrote: >> On Sat, Sep 20, 2008 at 2:12 PM, Craig Rodrigues wrote: >>> rodrigc 2008-09-20 21:12:54 UTC >>> >>> FreeBSD src repository >>> >>> Modified files: >>> lib/libc/gen getosreldate.3 >>> Log: >>> SVN rev 183217 on 2008-09-20 21:12:54Z by rodrigc >>> >>> does not have a forward declration of getosreldate(), so >>> remove it from this man page. >> I fixed this ages ago but forgot to commit that part. I'll try and do >> that today. > > FWIW, I've run with /usr/include/osreldate.h looking like this for years: > > #ifdef _KERNEL > #error " cannot be used in the kernel, use " > #else > #undef __FreeBSD_version > #define __FreeBSD_version 800046 > #ifdef __STDC__ > #ifndef _OSRELDATE_H > #define _OSRELDATE_H > #include > __BEGIN_DECLS > extern int getosreldate(void); > __END_DECLS > #endif /* _OSRELDATE_H */ > #endif /* __STDC__ */ > #endif /* _KERNEL */ > > .. including desktops/Xorg/etc. I don't know about ia64 though. I think we really need to have getosreldate() prototype somewhere in the system headers? Dunno where would be the best fit for it though. Should we just declare it in osreldate.h? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjYRh4ACgkQi+vbBBjt66AlCQCfdGmJ8L7ElcQYIqEKOfRpNz8a cRUAn3rMQWj5evN6aI5I4zLvCKrlcuSk =thmI -----END PGP SIGNATURE-----