OSX C/C++ Header Differences with Linux
- Header <mntent.h> does not exist
- Header <linux/rtc.h> does not exist
- Header <sys/sysinfo.h> does not exist
- In <string.h>, function strndup() does not exist
- In <unistd.h>, function ftruncate64() does not exist
- In <netinet/in.h>, struct ip_mreqn does not exist
- Struct statfs requires <sys/param.h> and <sys/mount.h>
- Variable environ doest not exists, but you can "access" it using function _NSGetEnviron() defined in <crt_externs.h>
- To retrieve full path of current executable, use function _NSGetExecutablePath() defined in <mach-o/dyld.h>
No comments:
Post a Comment