The branch main has been updated by markj:

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

commit ee609560ad2a5fa7cacf06a3879987e118588625
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2025-06-16 01:53:57 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2025-06-16 13:22:15 +0000

    ptrace: Rename the internal command range constants
    
    No functional change intended.
    
    Reviewed by:    kib
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D50866
---
 sys/compat/freebsd32/freebsd32_misc.c | 2 +-
 sys/kern/sys_process.c                | 2 +-
 sys/sys/ptrace.h                      | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys/compat/freebsd32/freebsd32_misc.c 
b/sys/compat/freebsd32/freebsd32_misc.c
index 75fdb1f544ca..e62c76924d22 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1177,7 +1177,7 @@ freebsd32_ptrace(struct thread *td, struct 
freebsd32_ptrace_args *uap)
                        pscr_args[i] = pscr_args32[i];
                r.sr.pscr_args = pscr_args;
                break;
-       case PTLINUX_FIRST ... PTLINUX_LAST:
+       case PTINTERNAL_FIRST ... PTINTERNAL_LAST:
                error = EINVAL;
                break;
        default:
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 821c537065b3..70f48adc2be8 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -690,7 +690,7 @@ sys_ptrace(struct thread *td, struct ptrace_args *uap)
                        break;
                r.sr.pscr_args = pscr_args;
                break;
-       case PTLINUX_FIRST ... PTLINUX_LAST:
+       case PTINTERNAL_FIRST ... PTINTERNAL_LAST:
                error = EINVAL;
                break;
        default:
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index 13291cd31cf5..cdde142d0487 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -91,10 +91,10 @@
 #include <machine/ptrace.h>    /* machine-specific requests, if any */
 
 #ifdef _KERNEL
-/* Space for Linux ptrace emulation. */
-#define        PTLINUX_FIRST   128
-#define        PTLINUX_LAST    191
-#define        PTLINUX_GET_SC_ARGS     (PTLINUX_FIRST + 0)
+/* Space for ptrace commands not exposed directly to userspace. */
+#define        PTINTERNAL_FIRST        128
+#define        PTINTERNAL_LAST         191
+#define        PTLINUX_GET_SC_ARGS     (PTINTERNAL_FIRST + 0)
 #endif
 
 /* Events used with PT_GET_EVENT_MASK and PT_SET_EVENT_MASK */

Reply via email to