From d82f931137bc7858eaf039b962fad472db327082 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Wed, 19 Sep 2018 19:12:39 +0200 Subject: [PATCH] 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 Signed-off-by: Michael Kerrisk --- man2/syscalls.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/syscalls.2 b/man2/syscalls.2 index fbc61ac7a..1a4256c9b 100644 --- a/man2/syscalls.2 +++ b/man2/syscalls.2 @@ -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