aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2021-11-29 22:03:00 +0000
committerBrooks Davis <brooks@FreeBSD.org>2021-11-29 22:04:58 +0000
commit0e765d9b08dcc2386b799815f2c835c97a93614c (patch)
tree2c38735c65ac8fe1e3b5d721a27b610d3c07c976
parent6d37a1670b090a3224cbba8488b445c3990bf298 (diff)
downloadsrc-0e765d9b08dcc2386b799815f2c835c97a93614c.tar.gz
src-0e765d9b08dcc2386b799815f2c835c97a93614c.zip
syscalls: regen
-rw-r--r--sys/compat/freebsd32/freebsd32_proto.h2
-rw-r--r--sys/compat/freebsd32/freebsd32_systrace_args.c4
-rw-r--r--sys/kern/systrace_args.c4
-rw-r--r--sys/sys/sysproto.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/freebsd32/freebsd32_proto.h b/sys/compat/freebsd32/freebsd32_proto.h
index e7912d2fea0c..ce583e9ac78d 100644
--- a/sys/compat/freebsd32/freebsd32_proto.h
+++ b/sys/compat/freebsd32/freebsd32_proto.h
@@ -74,7 +74,7 @@ struct freebsd32_execve_args {
char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
};
struct freebsd32_mprotect_args {
- char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
+ char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
};
diff --git a/sys/compat/freebsd32/freebsd32_systrace_args.c b/sys/compat/freebsd32/freebsd32_systrace_args.c
index b5035a3868f6..4d075ca7470e 100644
--- a/sys/compat/freebsd32/freebsd32_systrace_args.c
+++ b/sys/compat/freebsd32/freebsd32_systrace_args.c
@@ -447,7 +447,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_mprotect */
case 74: {
struct freebsd32_mprotect_args *p = params;
- uarg[a++] = (intptr_t)p->addr; /* const void * */
+ uarg[a++] = (intptr_t)p->addr; /* void * */
uarg[a++] = p->len; /* size_t */
iarg[a++] = p->prot; /* int */
*n_args = 3;
@@ -3995,7 +3995,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 74:
switch (ndx) {
case 0:
- p = "userland const void *";
+ p = "userland void *";
break;
case 1:
p = "size_t";
diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c
index d39c39050408..cb7b2ee503b9 100644
--- a/sys/kern/systrace_args.c
+++ b/sys/kern/systrace_args.c
@@ -444,7 +444,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mprotect */
case 74: {
struct mprotect_args *p = params;
- uarg[a++] = (intptr_t)p->addr; /* const void * */
+ uarg[a++] = (intptr_t)p->addr; /* void * */
uarg[a++] = p->len; /* size_t */
iarg[a++] = p->prot; /* int */
*n_args = 3;
@@ -4091,7 +4091,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 74:
switch (ndx) {
case 0:
- p = "userland const void *";
+ p = "userland void *";
break;
case 1:
p = "size_t";
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index fc56afba1239..5d8d3321680c 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -266,7 +266,7 @@ struct munmap_args {
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
};
struct mprotect_args {
- char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
+ char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
};