stat()
, предоставленный библиотекой C в Linux сегодня, обычно реализуется поверх sys_stat64()
ядра.
Это один из многих случаев, когда man page должен быть вашей первой ссылкой:
Underlying kernel interface
Over time, increases in the size of the stat structure have led to
three successive versions of stat(): sys_stat() (slot __NR_oldstat),
sys_newstat() (slot __NR_stat), and sys_stat64() (new in kernel 2.4;
slot __NR_stat64). The glibc stat() wrapper function hides these
details from applications, invoking the most recent version of the
system call provided by the kernel, and repacking the returned
information if required for old binaries. Similar remarks apply for
fstat() and lstat().
Вы также можете получить исходный пакет для установленной библиотеки C и смотреть через него для фактической реализации обертка.
Какие отличия конкретно? – tangrs