[haiku-development] Re: g++ command line

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 22 Feb 2014 20:34:42 +0100

On 22/02/2014 20:30, Denis Papin wrote:
> Hi, 
> 
> I am trying to figure out how Haiku handles the system calls. 
> 
> As an example, I had a look at the ps.c source code. This short program uses 
> system calls like _get_next_team_info(...)
>  from team.cpp which is part of the kernel (AFAIK).
> 
> But, when I compile doing gcc ps.c -o ps2, it works and I get a nice ps2 
> program.
> How it is possible ?

Because programs are linked to libroot by default, which contains the
libc and the syscall entry points.

François.

Other related posts: