Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2008 18:27:58 -0700
From:      Xin LI <delphij@delphij.net>
To:        Peter Wemm <peter@wemm.org>
Cc:        Craig Rodrigues <rodrigc@FreeBSD.ORG>, cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/gen getosreldate.3
Message-ID:  <48D8461E.3030409@delphij.net>
In-Reply-To: <e7db6d980809212234q45f2ce1fj3d2c70ddf9016316@mail.gmail.com>
References:  <200809202113.m8KLDEmT054706@repoman.freebsd.org>	 <e7db6d980809211223j74600ac1y83496dc631cfa36f@mail.gmail.com> <e7db6d980809212234q45f2ce1fj3d2c70ddf9016316@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Wemm wrote:
> On Sun, Sep 21, 2008 at 12:23 PM, Peter Wemm <peter@wemm.org> wrote:
>> On Sat, Sep 20, 2008 at 2:12 PM, Craig Rodrigues <rodrigc@freebsd.org> 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
>>>
>>>  <osreldate.h> 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 "<osreldate.h> cannot be used in the kernel, use <sys/param.h>"
> #else
> #undef __FreeBSD_version
> #define __FreeBSD_version 800046
> #ifdef __STDC__
> #ifndef _OSRELDATE_H
> #define _OSRELDATE_H
> #include <sys/cdefs.h>
> __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 <delphij@delphij.net>	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-----



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