Does MAC OSX follow POSIX?

i mean if i coded an application for Linux using System Calls and no libs, and compiled it on MAC, will it work?

thanks

Yes. for the 10.6.2 system calls that are POSIX. That means you will have to read each man page and look for the word POSIX at the bottom.

Every unix flavor has systems calls that are not POSIX.

For the most part, yes, if you stick to POSIX system calls. There are a few corners of course. poll() on OSX doesn't work on terminals, for example.

o, ok, thanks, so all unix derivatives follow POSIX 90%?

For the most part, yes, if you stick to POSIX system calls. There are a few corners of course. poll() on OSX doesn't work on terminals, for example.

ok, thanks for ur answer

Note that POSIX standardize APIs. It doesn't mandates any of them to be system system calls vs library functions.