]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
syscalls.2: Change example of a thin syscall wrapper to chdir()
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 19 Sep 2018 17:12:39 +0000 (19:12 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Oct 2018 14:49:42 +0000 (16:49 +0200)
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>
man2/syscalls.2

index fbc61ac7a1da4cd169ed0fa4cef4bb0f4dcf8249..1a4256c9b878e8ed136a176365fac6caad2dc3aa 100644 (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