aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-11-02 20:56:19 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-11-02 20:56:19 +0000
commit4e8c73eb20d192be2bcf9f264a53183af3f95fdb (patch)
tree5657db9089a173f36f1e24761ec3c20dfea5cb5a
parent12e69f96a2a352f64e7854efcc4152c4c990f045 (diff)
downloadsrc-4e8c73eb20d192be2bcf9f264a53183af3f95fdb.tar.gz
src-4e8c73eb20d192be2bcf9f264a53183af3f95fdb.zip
Regen after r340080: Add const to input-only char * arguments.
Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17812
Notes
Notes: svn path=/head/; revision=340081
-rw-r--r--sys/compat/freebsd32/freebsd32_proto.h34
-rw-r--r--sys/compat/freebsd32/freebsd32_systrace_args.c220
-rw-r--r--sys/kern/systrace_args.c236
-rw-r--r--sys/sys/sysproto.h146
4 files changed, 318 insertions, 318 deletions
diff --git a/sys/compat/freebsd32/freebsd32_proto.h b/sys/compat/freebsd32/freebsd32_proto.h
index b7c0cdddc321..ed48baf7295f 100644
--- a/sys/compat/freebsd32/freebsd32_proto.h
+++ b/sys/compat/freebsd32/freebsd32_proto.h
@@ -77,7 +77,7 @@ struct freebsd32_ioctl_args {
char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)];
};
struct freebsd32_execve_args {
- char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
+ char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
};
@@ -130,7 +130,7 @@ struct freebsd32_settimeofday_args {
char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
};
struct freebsd32_utimes_args {
- 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 tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
};
struct freebsd32_adjtime_args {
@@ -243,7 +243,7 @@ struct freebsd32_lio_listio_args {
char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
};
struct freebsd32_lutimes_args {
- 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 tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
};
struct freebsd32_preadv_args {
@@ -434,7 +434,7 @@ struct freebsd32_lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct freebsd32_truncate_args {
- 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 pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
@@ -476,7 +476,7 @@ struct freebsd32_lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct freebsd32_truncate_args {
- 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 length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
};
@@ -532,7 +532,7 @@ struct freebsd32_fexecve_args {
};
struct freebsd32_futimesat_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 times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
};
struct freebsd32_jail_get_args {
@@ -666,7 +666,7 @@ struct freebsd32_futimens_args {
};
struct freebsd32_utimensat_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 times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
@@ -676,7 +676,7 @@ struct freebsd32_fstat_args {
};
struct freebsd32_fstatat_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 buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
@@ -854,11 +854,11 @@ struct ofreebsd32_lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct ofreebsd32_stat_args {
- 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 ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
};
struct ofreebsd32_lstat_args {
- 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 ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
};
struct ofreebsd32_sigaction_args {
@@ -946,7 +946,7 @@ struct freebsd4_freebsd32_getfsstat_args {
char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
};
struct freebsd4_freebsd32_statfs_args {
- 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 buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
};
struct freebsd4_freebsd32_fstatfs_args {
@@ -1037,7 +1037,7 @@ struct freebsd6_freebsd32_lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct freebsd6_freebsd32_truncate_args {
- 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 pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
@@ -1153,12 +1153,12 @@ int freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_ar
#define PAD64_REQUIRED
#endif
struct freebsd11_freebsd32_mknod_args {
- 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 mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
};
struct freebsd11_freebsd32_stat_args {
- 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 ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
};
struct freebsd11_freebsd32_fstat_args {
@@ -1166,7 +1166,7 @@ struct freebsd11_freebsd32_fstat_args {
char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
};
struct freebsd11_freebsd32_lstat_args {
- 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 ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
};
struct freebsd11_freebsd32_getdirentries_args {
@@ -1200,13 +1200,13 @@ struct freebsd11_freebsd32_kevent_args {
#endif
struct freebsd11_freebsd32_fstatat_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 buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct freebsd11_freebsd32_mknodat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
char dev_l_[PADL_(uint32_t)]; uint32_t dev; char dev_r_[PADR_(uint32_t)];
};
diff --git a/sys/compat/freebsd32/freebsd32_systrace_args.c b/sys/compat/freebsd32/freebsd32_systrace_args.c
index 9561e60753c1..59d97c7a74ce 100644
--- a/sys/compat/freebsd32/freebsd32_systrace_args.c
+++ b/sys/compat/freebsd32/freebsd32_systrace_args.c
@@ -52,7 +52,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* open */
case 5: {
struct open_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->flags; /* int */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
@@ -78,22 +78,22 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* link */
case 9: {
struct link_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
- uarg[1] = (intptr_t) p->link; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
+ uarg[1] = (intptr_t) p->link; /* const char * */
*n_args = 2;
break;
}
/* unlink */
case 10: {
struct unlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* chdir */
case 12: {
struct chdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -107,7 +107,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chmod */
case 15: {
struct chmod_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -115,7 +115,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chown */
case 16: {
struct chown_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->uid; /* int */
iarg[2] = p->gid; /* int */
*n_args = 3;
@@ -136,8 +136,8 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mount */
case 21: {
struct mount_args *p = params;
- uarg[0] = (intptr_t) p->type; /* char * */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->type; /* const char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flags; /* int */
uarg[3] = (intptr_t) p->data; /* caddr_t */
*n_args = 4;
@@ -146,7 +146,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* unmount */
case 22: {
struct unmount_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->flags; /* int */
*n_args = 2;
break;
@@ -238,7 +238,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* access */
case 33: {
struct access_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->amode; /* int */
*n_args = 2;
break;
@@ -325,14 +325,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* setlogin */
case 50: {
struct setlogin_args *p = params;
- uarg[0] = (intptr_t) p->namebuf; /* char * */
+ uarg[0] = (intptr_t) p->namebuf; /* const char * */
*n_args = 1;
break;
}
/* acct */
case 51: {
struct acct_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -363,22 +363,22 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* revoke */
case 56: {
struct revoke_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* symlink */
case 57: {
struct symlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
- uarg[1] = (intptr_t) p->link; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
+ uarg[1] = (intptr_t) p->link; /* const char * */
*n_args = 2;
break;
}
/* readlink */
case 58: {
struct readlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->buf; /* char * */
uarg[2] = p->count; /* size_t */
*n_args = 3;
@@ -387,7 +387,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_execve */
case 59: {
struct freebsd32_execve_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->argv; /* uint32_t * */
uarg[2] = (intptr_t) p->envv; /* uint32_t * */
*n_args = 3;
@@ -403,7 +403,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chroot */
case 61: {
struct chroot_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -511,7 +511,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* swapon */
case 85: {
struct swapon_args *p = params;
- uarg[0] = (intptr_t) p->name; /* char * */
+ uarg[0] = (intptr_t) p->name; /* const char * */
*n_args = 1;
break;
}
@@ -715,8 +715,8 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* rename */
case 128: {
struct rename_args *p = params;
- uarg[0] = (intptr_t) p->from; /* char * */
- uarg[1] = (intptr_t) p->to; /* char * */
+ uarg[0] = (intptr_t) p->from; /* const char * */
+ uarg[1] = (intptr_t) p->to; /* const char * */
*n_args = 2;
break;
}
@@ -731,7 +731,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mkfifo */
case 132: {
struct mkfifo_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -769,7 +769,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mkdir */
case 136: {
struct mkdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -777,14 +777,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* rmdir */
case 137: {
struct rmdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* freebsd32_utimes */
case 138: {
struct freebsd32_utimes_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->tptr; /* struct timeval32 * */
*n_args = 2;
break;
@@ -805,7 +805,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* quotactl */
case 148: {
struct quotactl_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->cmd; /* int */
iarg[2] = p->uid; /* int */
uarg[3] = (intptr_t) p->arg; /* caddr_t */
@@ -815,7 +815,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* getfh */
case 161: {
struct getfh_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->fhp; /* struct fhandle * */
*n_args = 2;
break;
@@ -901,7 +901,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* pathconf */
case 191: {
struct pathconf_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->name; /* int */
*n_args = 2;
break;
@@ -966,7 +966,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* undelete */
case 205: {
struct undelete_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -1254,7 +1254,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lchown */
case 254: {
struct lchown_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->uid; /* int */
iarg[2] = p->gid; /* int */
*n_args = 3;
@@ -1287,7 +1287,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lchmod */
case 274: {
struct lchmod_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -1295,7 +1295,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_lutimes */
case 276: {
struct freebsd32_lutimes_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->tptr; /* struct timeval32 * */
*n_args = 2;
break;
@@ -1790,7 +1790,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* eaccess */
case 376: {
struct eaccess_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->amode; /* int */
*n_args = 2;
break;
@@ -2178,7 +2178,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* auditctl */
case 453: {
struct auditctl_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -2400,7 +2400,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_truncate */
case 479: {
struct freebsd32_truncate_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->pad; /* int */
uarg[2] = p->length1; /* uint32_t */
uarg[3] = p->length2; /* uint32_t */
@@ -2466,7 +2466,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_truncate */
case 479: {
struct freebsd32_truncate_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = p->length1; /* uint32_t */
uarg[2] = p->length2; /* uint32_t */
*n_args = 3;
@@ -2577,7 +2577,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 489: {
struct faccessat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->amode; /* int */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -2597,7 +2597,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 491: {
struct fchownat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = p->uid; /* uid_t */
iarg[3] = p->gid; /* gid_t */
iarg[4] = p->flag; /* int */
@@ -2617,7 +2617,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 494: {
struct freebsd32_futimesat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->times; /* struct timeval * */
*n_args = 3;
break;
@@ -2626,9 +2626,9 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 495: {
struct linkat_args *p = params;
iarg[0] = p->fd1; /* int */
- uarg[1] = (intptr_t) p->path1; /* char * */
+ uarg[1] = (intptr_t) p->path1; /* const char * */
iarg[2] = p->fd2; /* int */
- uarg[3] = (intptr_t) p->path2; /* char * */
+ uarg[3] = (intptr_t) p->path2; /* const char * */
iarg[4] = p->flag; /* int */
*n_args = 5;
break;
@@ -2637,7 +2637,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 496: {
struct mkdirat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
break;
@@ -2646,7 +2646,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 497: {
struct mkfifoat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
break;
@@ -2655,7 +2655,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 499: {
struct openat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flag; /* int */
iarg[3] = p->mode; /* mode_t */
*n_args = 4;
@@ -2665,7 +2665,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 500: {
struct readlinkat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->buf; /* char * */
uarg[3] = p->bufsize; /* size_t */
*n_args = 4;
@@ -2675,7 +2675,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 501: {
struct renameat_args *p = params;
iarg[0] = p->oldfd; /* int */
- uarg[1] = (intptr_t) p->old; /* char * */
+ uarg[1] = (intptr_t) p->old; /* const char * */
iarg[2] = p->newfd; /* int */
uarg[3] = (intptr_t) p->new; /* const char * */
*n_args = 4;
@@ -2684,9 +2684,9 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* symlinkat */
case 502: {
struct symlinkat_args *p = params;
- uarg[0] = (intptr_t) p->path1; /* char * */
+ uarg[0] = (intptr_t) p->path1; /* const char * */
iarg[1] = p->fd; /* int */
- uarg[2] = (intptr_t) p->path2; /* char * */
+ uarg[2] = (intptr_t) p->path2; /* const char * */
*n_args = 3;
break;
}
@@ -2694,7 +2694,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 503: {
struct unlinkat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flag; /* int */
*n_args = 3;
break;
@@ -2769,7 +2769,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lpathconf */
case 513: {
struct lpathconf_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->name; /* int */
*n_args = 2;
break;
@@ -3119,7 +3119,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 547: {
struct freebsd32_utimensat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->times; /* struct timespec * */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -3144,7 +3144,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 552: {
struct freebsd32_fstatat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->buf; /* struct stat32 * */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -3171,7 +3171,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* statfs */
case 555: {
struct statfs_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->buf; /* struct statfs32 * */
*n_args = 2;
break;
@@ -3205,7 +3205,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 559: {
struct mknodat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
iarg[3] = p->dev; /* dev_t */
*n_args = 4;
@@ -3323,7 +3323,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 5:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3368,10 +3368,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 9:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3381,7 +3381,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 10:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3391,7 +3391,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 12:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3411,7 +3411,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 15:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -3424,7 +3424,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 16:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3453,10 +3453,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 21:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
case 2:
p = "int";
@@ -3472,7 +3472,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 22:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3625,7 +3625,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 33:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3750,7 +3750,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 50:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3760,7 +3760,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 51:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3809,7 +3809,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 56:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3819,10 +3819,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 57:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3832,7 +3832,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 58:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland char *";
@@ -3848,7 +3848,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 59:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland uint32_t *";
@@ -3874,7 +3874,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 61:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4042,7 +4042,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 85:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4389,10 +4389,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 128:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4415,7 +4415,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 132:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -4485,7 +4485,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 136:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -4498,7 +4498,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 137:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4508,7 +4508,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 138:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct timeval32 *";
@@ -4537,7 +4537,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 148:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -4556,7 +4556,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 161:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct fhandle *";
@@ -4704,7 +4704,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 191:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -4810,7 +4810,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 205:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -5234,7 +5234,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 254:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -5289,7 +5289,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 274:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -5302,7 +5302,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 276:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct timeval32 *";
@@ -6112,7 +6112,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 376:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -6759,7 +6759,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 453:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7181,7 +7181,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 479:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -7311,7 +7311,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 479:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "uint32_t";
@@ -7515,7 +7515,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 = "int";
@@ -7553,7 +7553,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 = "uid_t";
@@ -7591,7 +7591,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 timeval *";
@@ -7607,13 +7607,13 @@ 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 = "int";
break;
case 3:
- p = "userland char *";
+ p = "userland const char *";
break;
case 4:
p = "int";
@@ -7629,7 +7629,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 = "mode_t";
@@ -7645,7 +7645,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 = "mode_t";
@@ -7661,7 +7661,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 = "int";
@@ -7680,7 +7680,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 char *";
@@ -7699,7 +7699,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 = "int";
@@ -7715,13 +7715,13 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 502:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
break;
case 2:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7734,7 +7734,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 = "int";
@@ -7860,7 +7860,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 513:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -8501,7 +8501,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 timespec *";
@@ -8543,7 +8543,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 stat32 *";
@@ -8591,7 +8591,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 555:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct statfs32 *";
@@ -8649,7 +8649,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 = "mode_t";
diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c
index e5dde39aa3d5..31283b9df1f0 100644
--- a/sys/kern/systrace_args.c
+++ b/sys/kern/systrace_args.c
@@ -49,7 +49,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* open */
case 5: {
struct open_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->flags; /* int */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
@@ -75,22 +75,22 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* link */
case 9: {
struct link_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
- uarg[1] = (intptr_t) p->link; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
+ uarg[1] = (intptr_t) p->link; /* const char * */
*n_args = 2;
break;
}
/* unlink */
case 10: {
struct unlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* chdir */
case 12: {
struct chdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -104,7 +104,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chmod */
case 15: {
struct chmod_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -112,7 +112,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chown */
case 16: {
struct chown_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->uid; /* int */
iarg[2] = p->gid; /* int */
*n_args = 3;
@@ -133,8 +133,8 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mount */
case 21: {
struct mount_args *p = params;
- uarg[0] = (intptr_t) p->type; /* char * */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->type; /* const char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flags; /* int */
uarg[3] = (intptr_t) p->data; /* caddr_t */
*n_args = 4;
@@ -143,7 +143,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* unmount */
case 22: {
struct unmount_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->flags; /* int */
*n_args = 2;
break;
@@ -235,7 +235,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* access */
case 33: {
struct access_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->amode; /* int */
*n_args = 2;
break;
@@ -322,14 +322,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* setlogin */
case 50: {
struct setlogin_args *p = params;
- uarg[0] = (intptr_t) p->namebuf; /* char * */
+ uarg[0] = (intptr_t) p->namebuf; /* const char * */
*n_args = 1;
break;
}
/* acct */
case 51: {
struct acct_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -360,22 +360,22 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* revoke */
case 56: {
struct revoke_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* symlink */
case 57: {
struct symlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
- uarg[1] = (intptr_t) p->link; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
+ uarg[1] = (intptr_t) p->link; /* const char * */
*n_args = 2;
break;
}
/* readlink */
case 58: {
struct readlink_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->buf; /* char * */
uarg[2] = p->count; /* size_t */
*n_args = 3;
@@ -384,7 +384,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* execve */
case 59: {
struct execve_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->argv; /* char ** */
uarg[2] = (intptr_t) p->envv; /* char ** */
*n_args = 3;
@@ -400,7 +400,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* chroot */
case 61: {
struct chroot_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -508,7 +508,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* swapon */
case 85: {
struct swapon_args *p = params;
- uarg[0] = (intptr_t) p->name; /* char * */
+ uarg[0] = (intptr_t) p->name; /* const char * */
*n_args = 1;
break;
}
@@ -712,8 +712,8 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* rename */
case 128: {
struct rename_args *p = params;
- uarg[0] = (intptr_t) p->from; /* char * */
- uarg[1] = (intptr_t) p->to; /* char * */
+ uarg[0] = (intptr_t) p->from; /* const char * */
+ uarg[1] = (intptr_t) p->to; /* const char * */
*n_args = 2;
break;
}
@@ -728,7 +728,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mkfifo */
case 132: {
struct mkfifo_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -766,7 +766,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* mkdir */
case 136: {
struct mkdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -774,14 +774,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* rmdir */
case 137: {
struct rmdir_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
/* utimes */
case 138: {
struct utimes_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->tptr; /* struct timeval * */
*n_args = 2;
break;
@@ -802,7 +802,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* quotactl */
case 148: {
struct quotactl_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->cmd; /* int */
iarg[2] = p->uid; /* int */
uarg[3] = (intptr_t) p->arg; /* caddr_t */
@@ -830,7 +830,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lgetfh */
case 160: {
struct lgetfh_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->fhp; /* struct fhandle * */
*n_args = 2;
break;
@@ -838,7 +838,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* getfh */
case 161: {
struct getfh_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->fhp; /* struct fhandle * */
*n_args = 2;
break;
@@ -931,7 +931,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* pathconf */
case 191: {
struct pathconf_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->name; /* int */
*n_args = 2;
break;
@@ -996,7 +996,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* undelete */
case 205: {
struct undelete_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -1290,7 +1290,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lchown */
case 254: {
struct lchown_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->uid; /* int */
iarg[2] = p->gid; /* int */
*n_args = 3;
@@ -1323,7 +1323,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lchmod */
case 274: {
struct lchmod_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->mode; /* mode_t */
*n_args = 2;
break;
@@ -1331,7 +1331,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lutimes */
case 276: {
struct lutimes_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->tptr; /* struct timeval * */
*n_args = 2;
break;
@@ -1835,7 +1835,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* eaccess */
case 376: {
struct eaccess_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->amode; /* int */
*n_args = 2;
break;
@@ -2083,7 +2083,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* __mac_execve */
case 415: {
struct __mac_execve_args *p = params;
- uarg[0] = (intptr_t) p->fname; /* char * */
+ uarg[0] = (intptr_t) p->fname; /* const char * */
uarg[1] = (intptr_t) p->argv; /* char ** */
uarg[2] = (intptr_t) p->envv; /* char ** */
uarg[3] = (intptr_t) p->mac_p; /* struct mac * */
@@ -2340,7 +2340,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* auditctl */
case 453: {
struct auditctl_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -2553,7 +2553,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* truncate */
case 479: {
struct truncate_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->length; /* off_t */
*n_args = 2;
break;
@@ -2643,7 +2643,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 489: {
struct faccessat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->amode; /* int */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -2653,7 +2653,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 490: {
struct fchmodat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -2663,7 +2663,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 491: {
struct fchownat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = p->uid; /* uid_t */
iarg[3] = p->gid; /* gid_t */
iarg[4] = p->flag; /* int */
@@ -2683,7 +2683,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 494: {
struct futimesat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->times; /* struct timeval * */
*n_args = 3;
break;
@@ -2692,9 +2692,9 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 495: {
struct linkat_args *p = params;
iarg[0] = p->fd1; /* int */
- uarg[1] = (intptr_t) p->path1; /* char * */
+ uarg[1] = (intptr_t) p->path1; /* const char * */
iarg[2] = p->fd2; /* int */
- uarg[3] = (intptr_t) p->path2; /* char * */
+ uarg[3] = (intptr_t) p->path2; /* const char * */
iarg[4] = p->flag; /* int */
*n_args = 5;
break;
@@ -2703,7 +2703,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 496: {
struct mkdirat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
break;
@@ -2712,7 +2712,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 497: {
struct mkfifoat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
*n_args = 3;
break;
@@ -2721,7 +2721,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 499: {
struct openat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flag; /* int */
iarg[3] = p->mode; /* mode_t */
*n_args = 4;
@@ -2731,7 +2731,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 500: {
struct readlinkat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->buf; /* char * */
uarg[3] = p->bufsize; /* size_t */
*n_args = 4;
@@ -2741,18 +2741,18 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 501: {
struct renameat_args *p = params;
iarg[0] = p->oldfd; /* int */
- uarg[1] = (intptr_t) p->old; /* char * */
+ uarg[1] = (intptr_t) p->old; /* const char * */
iarg[2] = p->newfd; /* int */
- uarg[3] = (intptr_t) p->new; /* char * */
+ uarg[3] = (intptr_t) p->new; /* const char * */
*n_args = 4;
break;
}
/* symlinkat */
case 502: {
struct symlinkat_args *p = params;
- uarg[0] = (intptr_t) p->path1; /* char * */
+ uarg[0] = (intptr_t) p->path1; /* const char * */
iarg[1] = p->fd; /* int */
- uarg[2] = (intptr_t) p->path2; /* char * */
+ uarg[2] = (intptr_t) p->path2; /* const char * */
*n_args = 3;
break;
}
@@ -2760,7 +2760,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 503: {
struct unlinkat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->flag; /* int */
*n_args = 3;
break;
@@ -2775,7 +2775,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* gssd_syscall */
case 505: {
struct gssd_syscall_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
*n_args = 1;
break;
}
@@ -2842,7 +2842,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* lpathconf */
case 513: {
struct lpathconf_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
iarg[1] = p->name; /* int */
*n_args = 2;
break;
@@ -3129,7 +3129,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 547: {
struct utimensat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->times; /* struct timespec * */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -3154,7 +3154,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 552: {
struct fstatat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
uarg[2] = (intptr_t) p->buf; /* struct stat * */
iarg[3] = p->flag; /* int */
*n_args = 4;
@@ -3181,7 +3181,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* statfs */
case 555: {
struct statfs_args *p = params;
- uarg[0] = (intptr_t) p->path; /* char * */
+ uarg[0] = (intptr_t) p->path; /* const char * */
uarg[1] = (intptr_t) p->buf; /* struct statfs * */
*n_args = 2;
break;
@@ -3215,7 +3215,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
case 559: {
struct mknodat_args *p = params;
iarg[0] = p->fd; /* int */
- uarg[1] = (intptr_t) p->path; /* char * */
+ uarg[1] = (intptr_t) p->path; /* const char * */
iarg[2] = p->mode; /* mode_t */
iarg[3] = p->dev; /* dev_t */
*n_args = 4;
@@ -3328,7 +3328,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 5:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3373,10 +3373,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 9:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3386,7 +3386,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 10:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3396,7 +3396,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 12:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3416,7 +3416,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 15:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -3429,7 +3429,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 16:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3458,10 +3458,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 21:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
case 2:
p = "int";
@@ -3477,7 +3477,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 22:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3630,7 +3630,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 33:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -3755,7 +3755,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 50:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3765,7 +3765,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 51:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3814,7 +3814,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 56:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3824,10 +3824,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 57:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -3837,7 +3837,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 58:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland char *";
@@ -3853,7 +3853,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 59:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland char **";
@@ -3879,7 +3879,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 61:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4047,7 +4047,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 85:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4394,10 +4394,10 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 128:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4420,7 +4420,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 132:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -4490,7 +4490,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 136:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -4503,7 +4503,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 137:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -4513,7 +4513,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 138:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct timeval *";
@@ -4542,7 +4542,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 148:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -4593,7 +4593,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 160:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct fhandle *";
@@ -4606,7 +4606,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 161:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct fhandle *";
@@ -4764,7 +4764,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 191:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -4870,7 +4870,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 205:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -5301,7 +5301,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 254:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -5356,7 +5356,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 274:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "mode_t";
@@ -5369,7 +5369,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 276:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct timeval *";
@@ -6195,7 +6195,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 376:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -6620,7 +6620,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 415:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland char **";
@@ -7039,7 +7039,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 453:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7436,7 +7436,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 479:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "off_t";
@@ -7596,7 +7596,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 = "int";
@@ -7615,7 +7615,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 = "mode_t";
@@ -7634,7 +7634,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 = "uid_t";
@@ -7672,7 +7672,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 timeval *";
@@ -7688,13 +7688,13 @@ 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 = "int";
break;
case 3:
- p = "userland char *";
+ p = "userland const char *";
break;
case 4:
p = "int";
@@ -7710,7 +7710,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 = "mode_t";
@@ -7726,7 +7726,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 = "mode_t";
@@ -7742,7 +7742,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 = "int";
@@ -7761,7 +7761,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 char *";
@@ -7780,13 +7780,13 @@ 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 = "int";
break;
case 3:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7796,13 +7796,13 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 502:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
break;
case 2:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7815,7 +7815,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 = "int";
@@ -7838,7 +7838,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 505:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
default:
break;
@@ -7951,7 +7951,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 513:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "int";
@@ -8459,7 +8459,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 timespec *";
@@ -8501,7 +8501,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 stat *";
@@ -8549,7 +8549,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 555:
switch(ndx) {
case 0:
- p = "userland char *";
+ p = "userland const char *";
break;
case 1:
p = "userland struct statfs *";
@@ -8607,7 +8607,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 = "mode_t";
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index 914c91fce856..fa54d1234201 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -54,7 +54,7 @@ struct write_args {
char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
};
struct open_args {
- 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 flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
@@ -68,24 +68,24 @@ struct wait4_args {
char rusage_l_[PADL_(struct rusage *)]; struct rusage * rusage; char rusage_r_[PADR_(struct rusage *)];
};
struct link_args {
- char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
- char link_l_[PADL_(char *)]; char * link; char link_r_[PADR_(char *)];
+ char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
+ char link_l_[PADL_(const char *)]; const char * link; char link_r_[PADR_(const char *)];
};
struct unlink_args {
- 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 *)];
};
struct chdir_args {
- 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 *)];
};
struct fchdir_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
};
struct chmod_args {
- 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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct chown_args {
- 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 uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
};
@@ -96,13 +96,13 @@ struct getpid_args {
register_t dummy;
};
struct mount_args {
- char type_l_[PADL_(char *)]; char * type; char type_r_[PADR_(char *)];
- char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
+ char type_l_[PADL_(const char *)]; const char * type; char type_r_[PADR_(const char *)];
+ char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)];
};
struct unmount_args {
- 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 flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};
struct setuid_args {
@@ -154,7 +154,7 @@ struct getsockname_args {
char alen_l_[PADL_(__socklen_t *)]; __socklen_t * alen; char alen_r_[PADR_(__socklen_t *)];
};
struct access_args {
- 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 amode_l_[PADL_(int)]; int amode; char amode_r_[PADR_(int)];
};
struct chflags_args {
@@ -204,10 +204,10 @@ struct getlogin_args {
char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
};
struct setlogin_args {
- char namebuf_l_[PADL_(char *)]; char * namebuf; char namebuf_r_[PADR_(char *)];
+ char namebuf_l_[PADL_(const char *)]; const char * namebuf; char namebuf_r_[PADR_(const char *)];
};
struct acct_args {
- 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 *)];
};
struct osigpending_args {
register_t dummy;
@@ -225,19 +225,19 @@ struct reboot_args {
char opt_l_[PADL_(int)]; int opt; char opt_r_[PADR_(int)];
};
struct revoke_args {
- 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 *)];
};
struct symlink_args {
- char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
- char link_l_[PADL_(char *)]; char * link; char link_r_[PADR_(char *)];
+ char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
+ char link_l_[PADL_(const char *)]; const char * link; char link_r_[PADR_(const char *)];
};
struct readlink_args {
- 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 buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char count_l_[PADL_(size_t)]; size_t count; char count_r_[PADR_(size_t)];
};
struct execve_args {
- char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
+ char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
char argv_l_[PADL_(char **)]; char ** argv; char argv_r_[PADR_(char **)];
char envv_l_[PADL_(char **)]; char ** envv; char envv_r_[PADR_(char **)];
};
@@ -245,7 +245,7 @@ struct umask_args {
char newmask_l_[PADL_(mode_t)]; mode_t newmask; char newmask_r_[PADR_(mode_t)];
};
struct chroot_args {
- 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 *)];
};
struct getpagesize_args {
register_t dummy;
@@ -307,7 +307,7 @@ struct owait_args {
register_t dummy;
};
struct swapon_args {
- char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)];
+ char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
};
struct getitimer_args {
char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
@@ -417,15 +417,15 @@ struct setregid_args {
char egid_l_[PADL_(int)]; int egid; char egid_r_[PADR_(int)];
};
struct rename_args {
- char from_l_[PADL_(char *)]; char * from; char from_r_[PADR_(char *)];
- char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)];
+ char from_l_[PADL_(const char *)]; const char * from; char from_r_[PADR_(const char *)];
+ char to_l_[PADL_(const char *)]; const char * to; char to_r_[PADR_(const char *)];
};
struct flock_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
};
struct mkfifo_args {
- 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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct sendto_args {
@@ -447,14 +447,14 @@ struct socketpair_args {
char rsv_l_[PADL_(int *)]; int * rsv; char rsv_r_[PADR_(int *)];
};
struct mkdir_args {
- 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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct rmdir_args {
- 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 *)];
};
struct utimes_args {
- 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 tptr_l_[PADL_(struct timeval *)]; struct timeval * tptr; char tptr_r_[PADR_(struct timeval *)];
};
struct adjtime_args {
@@ -468,7 +468,7 @@ struct setsid_args {
register_t dummy;
};
struct quotactl_args {
- 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 cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
char arg_l_[PADL_(caddr_t)]; caddr_t arg; char arg_r_[PADR_(caddr_t)];
@@ -487,11 +487,11 @@ struct nfssvc_args {
char argp_l_[PADL_(caddr_t)]; caddr_t argp; char argp_r_[PADR_(caddr_t)];
};
struct lgetfh_args {
- char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
+ char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
char fhp_l_[PADL_(struct fhandle *)]; struct fhandle * fhp; char fhp_r_[PADR_(struct fhandle *)];
};
struct getfh_args {
- char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
+ char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
char fhp_l_[PADL_(struct fhandle *)]; struct fhandle * fhp; char fhp_r_[PADR_(struct fhandle *)];
};
struct sysarch_args {
@@ -540,7 +540,7 @@ struct seteuid_args {
char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
};
struct pathconf_args {
- 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 name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
};
struct fpathconf_args {
@@ -572,7 +572,7 @@ struct munlock_args {
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
};
struct undelete_args {
- 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 *)];
};
struct futimes_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
@@ -698,7 +698,7 @@ struct issetugid_args {
register_t dummy;
};
struct lchown_args {
- 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 uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
};
@@ -715,11 +715,11 @@ struct lio_listio_args {
char sig_l_[PADL_(struct sigevent *)]; struct sigevent * sig; char sig_r_[PADR_(struct sigevent *)];
};
struct lchmod_args {
- 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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct lutimes_args {
- 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 tptr_l_[PADL_(struct timeval *)]; struct timeval * tptr; char tptr_r_[PADR_(struct timeval *)];
};
struct preadv_args {
@@ -983,7 +983,7 @@ struct __setugid_args {
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct eaccess_args {
- 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 amode_l_[PADL_(int)]; int amode; char amode_r_[PADR_(int)];
};
struct afs3_syscall_args {
@@ -1115,7 +1115,7 @@ struct extattr_delete_link_args {
char attrname_l_[PADL_(const char *)]; const char * attrname; char attrname_r_[PADR_(const char *)];
};
struct __mac_execve_args {
- char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
+ char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
char argv_l_[PADL_(char **)]; char ** argv; char argv_r_[PADR_(char **)];
char envv_l_[PADL_(char **)]; char ** envv; char envv_r_[PADR_(char **)];
char mac_p_l_[PADL_(struct mac *)]; struct mac * mac_p; char mac_p_r_[PADR_(struct mac *)];
@@ -1244,7 +1244,7 @@ struct setaudit_addr_args {
char length_l_[PADL_(u_int)]; u_int length; char length_r_[PADR_(u_int)];
};
struct auditctl_args {
- 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 *)];
};
struct _umtx_op_args {
char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
@@ -1369,7 +1369,7 @@ struct lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct truncate_args {
- 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 length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
};
struct ftruncate_args {
@@ -1419,19 +1419,19 @@ struct cpuset_setaffinity_args {
};
struct faccessat_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 amode_l_[PADL_(int)]; int amode; char amode_r_[PADR_(int)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct fchmodat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct fchownat_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 uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
@@ -1443,59 +1443,59 @@ struct fexecve_args {
};
struct futimesat_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 times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
};
struct linkat_args {
char fd1_l_[PADL_(int)]; int fd1; char fd1_r_[PADR_(int)];
- char path1_l_[PADL_(char *)]; char * path1; char path1_r_[PADR_(char *)];
+ char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)];
char fd2_l_[PADL_(int)]; int fd2; char fd2_r_[PADR_(int)];
- char path2_l_[PADL_(char *)]; char * path2; char path2_r_[PADR_(char *)];
+ char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct mkdirat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct mkfifoat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct openat_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 flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
};
struct readlinkat_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 buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
};
struct renameat_args {
char oldfd_l_[PADL_(int)]; int oldfd; char oldfd_r_[PADR_(int)];
- char old_l_[PADL_(char *)]; char * old; char old_r_[PADR_(char *)];
+ char old_l_[PADL_(const char *)]; const char * old; char old_r_[PADR_(const char *)];
char newfd_l_[PADL_(int)]; int newfd; char newfd_r_[PADR_(int)];
- char new_l_[PADL_(char *)]; char * new; char new_r_[PADR_(char *)];
+ char new_l_[PADL_(const char *)]; const char * new; char new_r_[PADR_(const char *)];
};
struct symlinkat_args {
- char path1_l_[PADL_(char *)]; char * path1; char path1_r_[PADR_(char *)];
+ char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)];
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
- char path2_l_[PADL_(char *)]; char * path2; char path2_r_[PADR_(char *)];
+ char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)];
};
struct unlinkat_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 flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct posix_openpt_args {
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};
struct gssd_syscall_args {
- 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 *)];
};
struct jail_get_args {
char iovp_l_[PADL_(struct iovec *)]; struct iovec * iovp; char iovp_r_[PADR_(struct iovec *)];
@@ -1530,7 +1530,7 @@ struct shmctl_args {
char buf_l_[PADL_(struct shmid_ds *)]; struct shmid_ds * buf; char buf_r_[PADR_(struct shmid_ds *)];
};
struct lpathconf_args {
- 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 name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
};
struct __cap_rights_get_args {
@@ -1691,7 +1691,7 @@ struct futimens_args {
};
struct utimensat_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 times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
@@ -1704,7 +1704,7 @@ struct fstat_args {
};
struct fstatat_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 buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
@@ -1719,7 +1719,7 @@ struct getdirentries_args {
char basep_l_[PADL_(off_t *)]; off_t * basep; char basep_r_[PADR_(off_t *)];
};
struct statfs_args {
- 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 buf_l_[PADL_(struct statfs *)]; struct statfs * buf; char buf_r_[PADR_(struct statfs *)];
};
struct fstatfs_args {
@@ -1737,7 +1737,7 @@ struct fhstatfs_args {
};
struct mknodat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
char dev_l_[PADL_(dev_t)]; dev_t dev; char dev_r_[PADR_(dev_t)];
};
@@ -2154,7 +2154,7 @@ int sys_getrandom(struct thread *, struct getrandom_args *);
#ifdef COMPAT_43
struct ocreat_args {
- 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 mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
};
struct olseek_args {
@@ -2163,11 +2163,11 @@ struct olseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct ostat_args {
- 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 ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
};
struct olstat_args {
- 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 ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
};
struct osigaction_args {
@@ -2249,7 +2249,7 @@ struct osendmsg_args {
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};
struct otruncate_args {
- 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 length_l_[PADL_(long)]; long length; char length_r_[PADR_(long)];
};
struct oftruncate_args {
@@ -2331,7 +2331,7 @@ struct freebsd4_getfsstat_args {
char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
};
struct freebsd4_statfs_args {
- 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 buf_l_[PADL_(struct ostatfs *)]; struct ostatfs * buf; char buf_r_[PADR_(struct ostatfs *)];
};
struct freebsd4_fstatfs_args {
@@ -2416,7 +2416,7 @@ struct freebsd6_lseek_args {
char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
};
struct freebsd6_truncate_args {
- 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 pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
char length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
};
@@ -2485,7 +2485,7 @@ int freebsd10_pipe(struct thread *, struct freebsd10_pipe_args *);
#ifdef COMPAT_FREEBSD11
struct freebsd11_mknod_args {
- 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 mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
};
@@ -2493,7 +2493,7 @@ struct freebsd11_vadvise_args {
char anom_l_[PADL_(int)]; int anom; char anom_r_[PADR_(int)];
};
struct freebsd11_stat_args {
- 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 ub_l_[PADL_(struct freebsd11_stat *)]; struct freebsd11_stat * ub; char ub_r_[PADR_(struct freebsd11_stat *)];
};
struct freebsd11_fstat_args {
@@ -2501,7 +2501,7 @@ struct freebsd11_fstat_args {
char sb_l_[PADL_(struct freebsd11_stat *)]; struct freebsd11_stat * sb; char sb_r_[PADR_(struct freebsd11_stat *)];
};
struct freebsd11_lstat_args {
- 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 ub_l_[PADL_(struct freebsd11_stat *)]; struct freebsd11_stat * ub; char ub_r_[PADR_(struct freebsd11_stat *)];
};
struct freebsd11_getdirentries_args {
@@ -2516,7 +2516,7 @@ struct freebsd11_getdents_args {
char count_l_[PADL_(size_t)]; size_t count; char count_r_[PADR_(size_t)];
};
struct freebsd11_nstat_args {
- 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 ub_l_[PADL_(struct nstat *)]; struct nstat * ub; char ub_r_[PADR_(struct nstat *)];
};
struct freebsd11_nfstat_args {
@@ -2524,7 +2524,7 @@ struct freebsd11_nfstat_args {
char sb_l_[PADL_(struct nstat *)]; struct nstat * sb; char sb_r_[PADR_(struct nstat *)];
};
struct freebsd11_nlstat_args {
- 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 ub_l_[PADL_(struct nstat *)]; struct nstat * ub; char ub_r_[PADR_(struct nstat *)];
};
struct freebsd11_fhstat_args {
@@ -2545,7 +2545,7 @@ struct freebsd11_getfsstat_args {
char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
};
struct freebsd11_statfs_args {
- 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 buf_l_[PADL_(struct freebsd11_statfs *)]; struct freebsd11_statfs * buf; char buf_r_[PADR_(struct freebsd11_statfs *)];
};
struct freebsd11_fstatfs_args {
@@ -2558,13 +2558,13 @@ struct freebsd11_fhstatfs_args {
};
struct freebsd11_fstatat_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 buf_l_[PADL_(struct freebsd11_stat *)]; struct freebsd11_stat * buf; char buf_r_[PADR_(struct freebsd11_stat *)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct freebsd11_mknodat_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 mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
char dev_l_[PADL_(uint32_t)]; uint32_t dev; char dev_r_[PADR_(uint32_t)];
};