]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
trivial doc fix: remove weird phrase "syscall takes zero to five arguments"
authorAskar Safin <safinaskar@zohomail.com>
Mon, 12 Feb 2024 16:48:55 +0000 (19:48 +0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 14 Feb 2024 15:21:03 +0000 (12:21 -0300)
"number of arguments, from zero to five" is wrong, because on Linux maximal number
of arguments is 6, not 5. Also, maximal number of arguments is kernel-dependent,
so let's not include it here at all.

Moreover, "Each kind of system call has a definite number of arguments" is questionable.
Think about SYS_open on Linux, which takes 2 or 3 arguments. Or SYS_clone on Linux x86_64, which
takes 2 to 5 arguments. So I propose to fully remove this sentence.

Signed-off-by: Askar Safin <safinaskar@zohomail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
manual/startup.texi

index 9bf24123f562f75ba27a4770c69147e003b94755..96a7a472bb9b1a284702d2874051869fa96d64aa 100644 (file)
@@ -727,8 +727,7 @@ identified by a number.  Macros for all the possible system call numbers
 are defined in @file{sys/syscall.h}
 
 The remaining arguments are the arguments for the system call, in
-order, and their meanings depend on the kind of system call.  Each kind
-of system call has a definite number of arguments, from zero to five.
+order, and their meanings depend on the kind of system call.
 If you code more arguments than the system call takes, the extra ones to
 the right are ignored.