git: c49debc1e750 - stable/14 - Regenerate after fixing getfhat(2) prototype
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Oct 2026 00:20:41 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=c49debc1e7509a246f494687db840beb2211dcda
commit c49debc1e7509a246f494687db840beb2211dcda
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-07-27 18:09:03 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-10-08 18:35:12 +0000
Regenerate after fixing getfhat(2) prototype
(cherry picked from commit 9bf1bcf7491de99e4b0a8dd2ba8c61d5603ab407)
---
sys/compat/freebsd32/freebsd32_systrace_args.c | 4 ++--
sys/kern/systrace_args.c | 4 ++--
sys/sys/sysproto.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys/compat/freebsd32/freebsd32_systrace_args.c b/sys/compat/freebsd32/freebsd32_systrace_args.c
index ffc5621b6b7c..aa4305cdf356 100644
--- a/sys/compat/freebsd32/freebsd32_systrace_args.c
+++ b/sys/compat/freebsd32/freebsd32_systrace_args.c
@@ -3160,7 +3160,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 564: {
struct getfhat_args *p = params;
iarg[a++] = p->fd; /* int */
- uarg[a++] = (intptr_t)p->path; /* char * */
+ uarg[a++] = (intptr_t)p->path; /* const char * */
uarg[a++] = (intptr_t)p->fhp; /* struct fhandle * */
iarg[a++] = p->flags; /* int */
*n_args = 4;
@@ -8775,7 +8775,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
p = "int";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
case 2:
p = "userland struct fhandle *";
diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c
index f67eb9c21d90..d31b9b519a7a 100644
--- a/sys/kern/systrace_args.c
+++ b/sys/kern/systrace_args.c
@@ -3247,7 +3247,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 564: {
struct getfhat_args *p = params;
iarg[a++] = p->fd; /* int */
- uarg[a++] = (intptr_t)p->path; /* char * */
+ uarg[a++] = (intptr_t)p->path; /* const char * */
uarg[a++] = (intptr_t)p->fhp; /* struct fhandle * */
iarg[a++] = p->flags; /* int */
*n_args = 4;
@@ -8920,7 +8920,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
p = "int";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
case 2:
p = "userland struct fhandle *";
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index 4c9780cb4054..6b9220ff1425 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -1757,7 +1757,7 @@ struct getrandom_args {
};
struct getfhat_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
- char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
+ char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
char fhp_l_[PADL_(struct fhandle *)]; struct fhandle * fhp; char fhp_r_[PADR_(struct fhandle *)];
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};