<< 43/55 >>
First Last

Incompatible functions - open

 int open(const char *pathname, int flags, mode_t mode);

Ordinary parameters and return value

But mode needs translation

For example, O_TRUNC is 0x200 in Linux, but 0x400 in Mac

mmap and pthread_mutexattr_(set|get)type have the same issue