git: 3dfd63b58463 - main - ptrace.2: document PT_GET_ABI_NAME

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 28 Aug 2026 12:05:14 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=3dfd63b58463e8982af2e45fc6dc1d5b03a88535

commit 3dfd63b58463e8982af2e45fc6dc1d5b03a88535
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-08-22 23:04:32 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-08-28 11:53:01 +0000

    ptrace.2: document PT_GET_ABI_NAME
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D59113
---
 lib/libsys/ptrace.2 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/libsys/ptrace.2 b/lib/libsys/ptrace.2
index c8513c7ba12d..612de4c5fc31 100644
--- a/lib/libsys/ptrace.2
+++ b/lib/libsys/ptrace.2
@@ -1099,6 +1099,17 @@ The child process is exiting or is a zombie.
 The child process is currently being debugged by a process other
 than its parent process.
 .El
+.It Dv PT_GET_ABI_NAME
+Returns the string designating the Application Binary Interface (ABI)
+of the traced process.
+Among other details, the ABI defines the interpretation of system calls
+numbers and arguments.
+.Pp
+The buffer where the name is returned is pointed to by the
+.Fa addr
+argument, the size of the buffer is passed in the
+.Fa data
+argument.
 .El
 .Sh PT_COREDUMP and PT_SC_REMOTE usage
 The process must be stopped before dumping or initiating a remote system call.