syscalls.2: Change example of a thin syscall wrapper to chdir()

As truncate(3) should dispatch between truncate/truncate64,
as noted later in the page.

Signed-off-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Eugene Syromyatnikov 2018-09-19 19:12:39 +02:00 committed by Michael Kerrisk
parent 674cc31493
commit d82f931137
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ For details of direct invocation of a system call, see
Often, but not always, the name of the wrapper function is the same
as the name of the system call that it invokes.
For example, glibc contains a function
.BR truncate ()
which invokes the underlying "truncate" system call.
.BR chdir ()
which invokes the underlying "chdir" system call.
.PP
Often the glibc wrapper function is quite thin, doing little work
other than copying arguments to the right registers