Improve text describing underlying system calls.

This commit is contained in:
Michael Kerrisk 2007-07-10 20:44:07 +00:00
parent 64ceb6880e
commit 0c8dd25470
1 changed files with 3 additions and 6 deletions

View File

@ -428,7 +428,7 @@ field; instead the field is returned with the value 0.
.SS Underlying kernel interface .SS Underlying kernel interface
Over time, increases in the size of the Over time, increases in the size of the
.I stat .I stat
structure have led to three successive implementations of structure have led to three successive versions of
.BR stat (): .BR stat ():
.IR sys_stat () .IR sys_stat ()
(slot (slot
@ -441,14 +441,11 @@ and
(new in kernel 2.4; slot (new in kernel 2.4; slot
.IR __NR_stat64 ). .IR __NR_stat64 ).
The last of these is the most current, The last of these is the most current,
but the other interfaces must be maintained so that the but the other interfaces must be maintained for the benefit of old binaries.
behavior of old binaries does not change.
The glibc The glibc
.BR stat () .BR stat ()
wrapper function hides these details from applications, wrapper function hides these details from applications,
ensuring that new applications linked against invoking the most recent version of the system call provided by the kernel.
the current library automatically use the current implementation,
and that binary compatibility is not broken for older binaries.
Similar remarks apply for Similar remarks apply for
.BR fstat (2) .BR fstat (2)
and and