Skip to contentSkip to conversation

ptrace.2: mention PTRACE_GET_SYSCALL_INFO in RETURN VALUE section

PATCH New Dmitry V. Levin 2 participants 3 messages Feb 22, 2021 – Apr 27, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptrace.2: mention PTRACE_GET_SYSCALL_INFO in RETURN VALUE section

Mirror the wording about PTRACE_GET_SYSCALL_INFO return value semantics from "DESCRIPTION" section to "RETURN VALUE" section.

Complements: fc91449cb "ptrace.2: Document PTRACE_GET_SYSCALL_INFO"

---
 man2/ptrace.2 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
man2/ptrace.2 +5 -2
index 5245338ba..c5e75c274 100644
@@ -2327,8 +2327,11 @@ On success, the
 requests return the requested data (but see NOTES),
 the
 .B PTRACE_SECCOMP_GET_FILTER
-request returns the number of instructions in the BPF program, and
-other requests return zero.
+request returns the number of instructions in the BPF program,
+the
+.B PTRACE_GET_SYSCALL_INFO
+request returns the number of bytes available to be written by the kernel,
+and other requests return zero.
 .PP
 On error, all requests return \-1, and
 .I errno
Signature · 1 line
ldv
#1 lore raw

PATCH 1/1 ptrace.2: mention PTRACE_GET_SYSCALL_INFO in RETURN VALUE section

Ping?

Quoted 30 lines · Dmitry V. Levin

Mirror the wording about PTRACE_GET_SYSCALL_INFO return value semantics from "DESCRIPTION" section to "RETURN VALUE" section.

Complements: fc91449cb "ptrace.2: Document PTRACE_GET_SYSCALL_INFO"

---
 man2/ptrace.2 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
man2/ptrace.2 +5 -2
index 5245338ba..c5e75c274 100644
@@ -2327,8 +2327,11 @@ On success, the
 requests return the requested data (but see NOTES),
 the
 .B PTRACE_SECCOMP_GET_FILTER
-request returns the number of instructions in the BPF program, and
-other requests return zero.
+request returns the number of instructions in the BPF program,
+the
+.B PTRACE_GET_SYSCALL_INFO
+request returns the number of bytes available to be written by the kernel,
+and other requests return zero.
 .PP
 On error, all requests return \-1, and
 .I errno
Signature · 1 line
ldv
Signature · 1 line
ldv
#2 lore raw

Hi Dmitry,

Quoted 1 line · Dmitry V. Levin

Ping?

Sorry, Michael is very busy these days. Please prefer sending the patches to both of us, so I can apply them if Michael doesn't see them.

Quoted 8 lines · Dmitry V. Levin
Quoted 6 lines

Mirror the wording about PTRACE_GET_SYSCALL_INFO return value semantics from "DESCRIPTION" section to "RETURN VALUE" section.

Complements: fc91449cb "ptrace.2: Document PTRACE_GET_SYSCALL_INFO"

Patch applied.

Thanks,

Alex

Quoted 25 lines
Quoted 24 lines
---
  man2/ptrace.2 | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
man2/ptrace.2 +5 -2
index 5245338ba..c5e75c274 100644
@@ -2327,8 +2327,11 @@ On success, the
  requests return the requested data (but see NOTES),
  the
  .B PTRACE_SECCOMP_GET_FILTER
-request returns the number of instructions in the BPF program, and
-other requests return zero.
+request returns the number of instructions in the BPF program,
+the
+.B PTRACE_GET_SYSCALL_INFO
+request returns the number of bytes available to be written by the kernel,
+and other requests return zero.
  .PP
  On error, all requests return \-1, and
  .I errno
Signature · 1 line
ldv
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/