the native plan9 c environment is similar to ansi c but has some differences, mainly to the standard libraries.

plan9 also has an ansi/posix environment which is aimed at making it easier to port foreign code.

to use ape, use the pcc command.

there is a fairly complete command line enviroment which you can run ape/psh. this is a subshell which modifies your search path to pick up some different commands.

there is a paper in /sys/doc which describes ape more throughly.

-Steve


On 6 Oct 2022, at 01:16, _ resun <saif.resun@outlook.com> wrote:



Hi there!

 

Is there any way I can compile a C code that is written for plan9 using a ANSI  C compile? Is there any way to replace the plan9 headers with ANSI standard c headers?

 

Thank you.

 

_resun