On OSX 10.9 (a 64 bit OS) I run the command
sudo dtruss pwd
to get the list of system calls performed by the pwd command. I see that the system call stat64 is executed several times like this:
stat64("/usr/lib/system/libsystem_kernel.dylib\0", 0x7FFF5F7B4E28, 0x7FFF5F7B5CC0) = 0 0
Now, in both the online POSIX standard documentation and Apple documentation, I see that stat64 takes 2 parameters. Why does it take 3 parameters in my case?