This commit is contained in:
Konstantin Belousov 2014-08-27 01:02:19 +00:00
parent 8fbeebf590
commit 5aec07c73d
5 changed files with 20 additions and 13 deletions

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 263318 2014-03-18 21:32:03Z attilio
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 270691 2014-08-27 01:02:02Z kib
*/
#ifndef _FREEBSD32_SYSPROTO_H_
@ -92,6 +92,11 @@ struct freebsd32_getitimer_args {
char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
};
struct freebsd32_fcntl_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)];
};
struct freebsd32_select_args {
char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
@ -695,6 +700,7 @@ int freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
int freebsd32_select(struct thread *, struct freebsd32_select_args *);
int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
@ -1098,6 +1104,7 @@ int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_
#define FREEBSD32_SYS_AUE_freebsd32_mprotect AUE_MPROTECT
#define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER
#define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER
#define FREEBSD32_SYS_AUE_freebsd32_fcntl AUE_FCNTL
#define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT
#define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_NULL
#define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 263318 2014-03-18 21:32:03Z attilio
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 270691 2014-08-27 01:02:02Z kib
*/
#define FREEBSD32_SYS_syscall 0
@ -97,7 +97,7 @@
/* 88 is obsolete osethostname */
#define FREEBSD32_SYS_getdtablesize 89
#define FREEBSD32_SYS_dup2 90
#define FREEBSD32_SYS_fcntl 92
#define FREEBSD32_SYS_freebsd32_fcntl 92
#define FREEBSD32_SYS_freebsd32_select 93
#define FREEBSD32_SYS_fsync 95
#define FREEBSD32_SYS_setpriority 96

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 263318 2014-03-18 21:32:03Z attilio
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 270691 2014-08-27 01:02:02Z kib
*/
const char *freebsd32_syscallnames[] = {
@ -102,7 +102,7 @@ const char *freebsd32_syscallnames[] = {
"getdtablesize", /* 89 = getdtablesize */
"dup2", /* 90 = dup2 */
"#91", /* 91 = getdopt */
"fcntl", /* 92 = fcntl */
"freebsd32_fcntl", /* 92 = freebsd32_fcntl */
"freebsd32_select", /* 93 = freebsd32_select */
"#94", /* 94 = setdopt */
"fsync", /* 95 = fsync */

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 263318 2014-03-18 21:32:03Z attilio
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 270691 2014-08-27 01:02:02Z kib
*/
#include "opt_compat.h"
@ -139,7 +139,7 @@ struct sysent freebsd32_sysent[] = {
{ 0, (sy_call_t *)sys_getdtablesize, AUE_GETDTABLESIZE, NULL, 0, 0, 0, SY_THR_STATIC }, /* 89 = getdtablesize */
{ AS(dup2_args), (sy_call_t *)sys_dup2, AUE_DUP2, NULL, 0, 0, 0, SY_THR_STATIC }, /* 90 = dup2 */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 91 = getdopt */
{ AS(fcntl_args), (sy_call_t *)sys_fcntl, AUE_FCNTL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 92 = fcntl */
{ AS(freebsd32_fcntl_args), (sy_call_t *)freebsd32_fcntl, AUE_FCNTL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 92 = freebsd32_fcntl */
{ AS(freebsd32_select_args), (sy_call_t *)freebsd32_select, AUE_SELECT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 93 = freebsd32_select */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 94 = setdopt */
{ AS(fsync_args), (sy_call_t *)sys_fsync, AUE_FSYNC, NULL, 0, 0, 0, SY_THR_STATIC }, /* 95 = fsync */

View File

@ -557,12 +557,12 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 2;
break;
}
/* fcntl */
/* freebsd32_fcntl */
case 92: {
struct fcntl_args *p = params;
struct freebsd32_fcntl_args *p = params;
iarg[0] = p->fd; /* int */
iarg[1] = p->cmd; /* int */
iarg[2] = p->arg; /* long */
iarg[2] = p->arg; /* int */
*n_args = 3;
break;
}
@ -4147,7 +4147,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* fcntl */
/* freebsd32_fcntl */
case 92:
switch(ndx) {
case 0:
@ -4157,7 +4157,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
p = "int";
break;
case 2:
p = "long";
p = "int";
break;
default:
break;
@ -9174,7 +9174,7 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* fcntl */
/* freebsd32_fcntl */
case 92:
if (ndx == 0 || ndx == 1)
p = "int";