Regenerate files for accept4().

This commit is contained in:
Jilles Tjoelker 2013-05-01 20:12:58 +00:00
parent da7d2afb6d
commit 1bf6b724f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250155
11 changed files with 95 additions and 12 deletions

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#ifndef _FREEBSD32_SYSPROTO_H_

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#define FREEBSD32_SYS_syscall 0
@ -438,4 +438,5 @@
#define FREEBSD32_SYS_bindat 538
#define FREEBSD32_SYS_connectat 539
#define FREEBSD32_SYS_chflagsat 540
#define FREEBSD32_SYS_MAXSYSCALL 541
#define FREEBSD32_SYS_accept4 541
#define FREEBSD32_SYS_MAXSYSCALL 542

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
const char *freebsd32_syscallnames[] = {
@ -564,4 +564,5 @@ const char *freebsd32_syscallnames[] = {
"bindat", /* 538 = bindat */
"connectat", /* 539 = connectat */
"chflagsat", /* 540 = chflagsat */
"accept4", /* 541 = accept4 */
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#include "opt_compat.h"
@ -601,4 +601,5 @@ struct sysent freebsd32_sysent[] = {
{ AS(bindat_args), (sy_call_t *)sys_bindat, AUE_BINDAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 538 = bindat */
{ AS(connectat_args), (sy_call_t *)sys_connectat, AUE_CONNECTAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 539 = connectat */
{ AS(chflagsat_args), (sy_call_t *)sys_chflagsat, AUE_CHFLAGSAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 540 = chflagsat */
{ AS(accept4_args), (sy_call_t *)sys_accept4, AUE_ACCEPT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 541 = accept4 */
};

View File

@ -3160,6 +3160,16 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 4;
break;
}
/* accept4 */
case 541: {
struct accept4_args *p = params;
iarg[0] = p->s; /* int */
uarg[1] = (intptr_t) p->name; /* struct sockaddr *__restrict */
uarg[2] = (intptr_t) p->anamelen; /* __socklen_t *__restrict */
iarg[3] = p->flags; /* int */
*n_args = 4;
break;
}
default:
*n_args = 0;
break;
@ -8443,6 +8453,25 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* accept4 */
case 541:
switch(ndx) {
case 0:
p = "int";
break;
case 1:
p = "struct sockaddr *__restrict";
break;
case 2:
p = "__socklen_t *__restrict";
break;
case 3:
p = "int";
break;
default:
break;
};
break;
default:
break;
};
@ -10245,6 +10274,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* accept4 */
case 541:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#include "opt_compat.h"
@ -575,4 +575,5 @@ struct sysent sysent[] = {
{ AS(bindat_args), (sy_call_t *)sys_bindat, AUE_BINDAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 538 = bindat */
{ AS(connectat_args), (sy_call_t *)sys_connectat, AUE_CONNECTAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 539 = connectat */
{ AS(chflagsat_args), (sy_call_t *)sys_chflagsat, AUE_CHFLAGSAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 540 = chflagsat */
{ AS(accept4_args), (sy_call_t *)sys_accept4, AUE_ACCEPT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 541 = accept4 */
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
const char *syscallnames[] = {
@ -548,4 +548,5 @@ const char *syscallnames[] = {
"bindat", /* 538 = bindat */
"connectat", /* 539 = connectat */
"chflagsat", /* 540 = chflagsat */
"accept4", /* 541 = accept4 */
};

View File

@ -3358,6 +3358,16 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 4;
break;
}
/* accept4 */
case 541: {
struct accept4_args *p = params;
iarg[0] = p->s; /* int */
uarg[1] = (intptr_t) p->name; /* struct sockaddr *__restrict */
uarg[2] = (intptr_t) p->anamelen; /* __socklen_t *__restrict */
iarg[3] = p->flags; /* int */
*n_args = 4;
break;
}
default:
*n_args = 0;
break;
@ -8945,6 +8955,25 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* accept4 */
case 541:
switch(ndx) {
case 0:
p = "int";
break;
case 1:
p = "struct sockaddr *__restrict";
break;
case 2:
p = "__socklen_t *__restrict";
break;
case 3:
p = "int";
break;
default:
break;
};
break;
default:
break;
};
@ -10878,6 +10907,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* accept4 */
case 541:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#define SYS_syscall 0
@ -460,4 +460,5 @@
#define SYS_bindat 538
#define SYS_connectat 539
#define SYS_chflagsat 540
#define SYS_MAXSYSCALL 541
#define SYS_accept4 541
#define SYS_MAXSYSCALL 542

View File

@ -1,7 +1,7 @@
# FreeBSD system call names.
# DO NOT EDIT-- this file is automatically generated.
# $FreeBSD$
# created from FreeBSD
# created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles
MIASM = \
syscall.o \
exit.o \
@ -408,4 +408,5 @@ MIASM = \
cap_fcntls_get.o \
bindat.o \
connectat.o \
chflagsat.o
chflagsat.o \
accept4.o

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
* created from FreeBSD: head/sys/kern/syscalls.master 250154 2013-05-01 20:10:21Z jilles
*/
#ifndef _SYS_SYSPROTO_H_
@ -1802,6 +1802,12 @@ struct chflagsat_args {
char flags_l_[PADL_(u_long)]; u_long flags; char flags_r_[PADR_(u_long)];
char atflag_l_[PADL_(int)]; int atflag; char atflag_r_[PADR_(int)];
};
struct accept4_args {
char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
char name_l_[PADL_(struct sockaddr *__restrict)]; struct sockaddr *__restrict name; char name_r_[PADR_(struct sockaddr *__restrict)];
char anamelen_l_[PADL_(__socklen_t *__restrict)]; __socklen_t *__restrict anamelen; char anamelen_r_[PADR_(__socklen_t *__restrict)];
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};
int nosys(struct thread *, struct nosys_args *);
void sys_sys_exit(struct thread *, struct sys_exit_args *);
int sys_fork(struct thread *, struct fork_args *);
@ -2192,6 +2198,7 @@ int sys_cap_fcntls_get(struct thread *, struct cap_fcntls_get_args *);
int sys_bindat(struct thread *, struct bindat_args *);
int sys_connectat(struct thread *, struct connectat_args *);
int sys_chflagsat(struct thread *, struct chflagsat_args *);
int sys_accept4(struct thread *, struct accept4_args *);
#ifdef COMPAT_43
@ -2896,6 +2903,7 @@ int freebsd7_shmctl(struct thread *, struct freebsd7_shmctl_args *);
#define SYS_AUE_bindat AUE_BINDAT
#define SYS_AUE_connectat AUE_CONNECTAT
#define SYS_AUE_chflagsat AUE_CHFLAGSAT
#define SYS_AUE_accept4 AUE_ACCEPT
#undef PAD_
#undef PADL_