[haiku-gsoc] Re: Licensing questions

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-gsoc@xxxxxxxxxxxxx" <haiku-gsoc@xxxxxxxxxxxxx>
  • Date: Mon, 12 Jun 2017 04:44:34 +1200

On 12 June 2017 at 04:25, Vivek Roy <vivekroyandroid@xxxxxxxxx> wrote:


A bunch of those are C standard library functions (vsnprintf, strtol, etc)
that I imagine Haiku might already implement in the kernel. ppsratecheck
I've never heard of - you might have to implement this one yourself or
figure out what it's being used for and see if we have an equivalent.

vsnprintf is resolved by including stdio.h
strtol and strtoul resolved by including stdlib.h

But strtoq is implemented in /src/system/libroot/posix/stdlib/strtoq.c
I shouldn't need to include files from /src right? Does that mean I have to
get the implementation from FreeBSD?

In Haiku, it's called strtoll. It may be sufficient to use something like:

#define strtoq(x) strtoll(x)

Other related posts: