]> granicus.if.org Git - strace/commitdiff
Make description of discrepancies between libc and kernel APIs more relevant
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 13 Aug 2017 17:33:58 +0000 (19:33 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 13 Aug 2017 22:29:15 +0000 (00:29 +0200)
Looks like this part was untouched since the days strace supported OSes
other than Linux. Well, it's time to make it more contemporary.

* strace.1.in (.SH NOTES): Use faccessat(2) and setrlimit(2)/prlimit(2)
instead of time(2) and stat(2)/xstat(2) as examples of libc/kernel API
discrepancies.

strace.1.in

index 1cea01e575618c7ecf642303f56ad41d955ea75d..dc8300865e730a923b1cc0ccd10e1fecc8e483f7 100644 (file)
@@ -859,14 +859,15 @@ sometimes possible to make deductive inferences about process
 behavior using inputs and outputs as propositions.
 .LP
 In some cases, a system call will differ from the documented behavior
-or have a different name.  For example, on System V-derived systems
-the true
-.BR time (2)
-system call does not take an argument and the
-.B stat
-function is called
-.B xstat
-and takes an extra leading argument.  These
+or have a different name.  For example, the
+.BR faccessat (2)
+system call does not have
+.I flags
+argument, and the
+.BR setrlimit (2)
+library function uses
+.BR prlimit (2)
+system call on modern (2.6.38+) kernels.  These
 discrepancies are normal but idiosyncratic characteristics of the
 system call interface and are accounted for by C library wrapper
 functions.