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

  • From: Denis Papin <ddcrespe@xxxxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 22 Feb 2014 20:30:52 +0100

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 ?

I guess there are some default likings to some kernel subs here because the 
compiler needs to find the _get_next_team_info entry point somewhere. It might 
be related to environment variables but I can't see the whole tricks.

--denis.                                          

Other related posts: