freebsd32: [gs]etitimer's which arg is an int

Reviewed by:	kevans
This commit is contained in:
Brooks Davis 2021-11-17 20:12:22 +00:00
parent a944d28d0e
commit 8ba369ed74
3 changed files with 8 additions and 8 deletions

View File

@ -93,12 +93,12 @@ struct freebsd32_mprotect_args {
char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
};
struct freebsd32_setitimer_args {
char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
char itv_l_[PADL_(const struct itimerval32 *)]; const struct itimerval32 * itv; char itv_r_[PADR_(const struct itimerval32 *)];
char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
};
struct freebsd32_getitimer_args {
char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
};
struct freebsd32_fcntl_args {

View File

@ -502,7 +502,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_setitimer */
case 83: {
struct freebsd32_setitimer_args *p = params;
uarg[0] = p->which; /* u_int */
iarg[0] = p->which; /* int */
uarg[1] = (intptr_t)p->itv; /* const struct itimerval32 * */
uarg[2] = (intptr_t)p->oitv; /* struct itimerval32 * */
*n_args = 3;
@ -518,7 +518,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
/* freebsd32_getitimer */
case 86: {
struct freebsd32_getitimer_args *p = params;
uarg[0] = p->which; /* u_int */
iarg[0] = p->which; /* int */
uarg[1] = (intptr_t)p->itv; /* struct itimerval32 * */
*n_args = 2;
break;
@ -4198,7 +4198,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 83:
switch (ndx) {
case 0:
p = "u_int";
p = "int";
break;
case 1:
p = "userland const struct itimerval32 *";
@ -4224,7 +4224,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 86:
switch (ndx) {
case 0:
p = "u_int";
p = "int";
break;
case 1:
p = "userland struct itimerval32 *";

View File

@ -194,13 +194,13 @@
const gid_t *gidset); }
81 AUE_GETPGRP NOPROTO { int getpgrp(void); }
82 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); }
83 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \
83 AUE_SETITIMER STD { int freebsd32_setitimer(int which, \
const struct itimerval32 *itv, \
struct itimerval32 *oitv); }
84 AUE_NULL OBSOL owait
; XXX implement
85 AUE_SWAPON NOPROTO { int swapon(const char *name); }
86 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \
86 AUE_GETITIMER STD { int freebsd32_getitimer(int which, \
struct itimerval32 *itv); }
87 AUE_O_GETHOSTNAME OBSOL ogethostname
88 AUE_O_SETHOSTNAME OBSOL osethostname