[haiku-development] Re: tempnam() function declaration

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 28 Jun 2010 21:57:05 +0200

On 2010-06-28 at 18:48:38 [+0200], Andreas Färber <andreas.faerber@xxxxxx> 
wrote:
> Am 28.06.2010 um 12:15 schrieb Ingo Weinhold:
> 
> > On 2010-06-28 at 04:59:16 [+0200], Wim van der Meer
> > <wpjvandermeer@xxxxxxxxx> wrote:
> >> 3. Why are there six stdio.h files present? Two of these have tempnam
> >> declarations, the above mentioned and
> >> src/system/libroot/posix/glibc/libio/stdio.h. This last one uses the
> >> const char declaration, BTW.
> >
> > There are:
> >
> > headers/posix/stdio.h:
> > The real one.
> [...]
> > headers/private/kernel/boot:
> > Used by the boot loader. The boot loader can't use libroot, so it
> > implements its own stdio functionality. I'm not sure the header is
> > really
> > needed, though.
> 
> +1 for keeping it. It should better reflect which functions are
> actually available though.
> While the POSIX one would do the same job compilation-wise it doesn't
> give the developer any clues which subset she can choose from.

The same would apply for the kernel (which doesn't have its own header). 
The simple rule is: If it links the function is available. :-)

CU, Ingo

Other related posts: