Auto-generated system call code based on r224987.

Approved by:	re (implicit)
This commit is contained in:
Jonathan Anderson 2011-08-18 23:08:52 +00:00
parent cfb5f76865
commit f8ca0a757a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224988
6 changed files with 100 additions and 13 deletions

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/kern/syscalls.master 224066 2011-07-15 18:26:19Z jonathan
* created from FreeBSD: head/sys/kern/syscalls.master 224987 2011-08-18 22:51:30Z jonathan
*/
#include "opt_compat.h"
@ -552,10 +552,10 @@ struct sysent sysent[] = {
{ AS(cap_getrights_args), (sy_call_t *)cap_getrights, AUE_CAP_GETRIGHTS, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 515 = cap_getrights */
{ 0, (sy_call_t *)cap_enter, AUE_CAP_ENTER, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 516 = cap_enter */
{ AS(cap_getmode_args), (sy_call_t *)cap_getmode, AUE_CAP_GETMODE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 517 = cap_getmode */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 518 = pdfork */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 519 = pdkill */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 520 = pdgetpid */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 521 = pdwait */
{ AS(pdfork_args), (sy_call_t *)pdfork, AUE_PDFORK, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 518 = pdfork */
{ AS(pdkill_args), (sy_call_t *)pdkill, AUE_PDKILL, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 519 = pdkill */
{ AS(pdgetpid_args), (sy_call_t *)pdgetpid, AUE_PDGETPID, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 520 = pdgetpid */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 521 = pdwait4 */
{ AS(pselect_args), (sy_call_t *)pselect, AUE_SELECT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 522 = pselect */
{ AS(getloginclass_args), (sy_call_t *)getloginclass, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 523 = getloginclass */
{ AS(setloginclass_args), (sy_call_t *)setloginclass, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 524 = setloginclass */

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/kern/syscalls.master 224066 2011-07-15 18:26:19Z jonathan
* created from FreeBSD: head/sys/kern/syscalls.master 224987 2011-08-18 22:51:30Z jonathan
*/
const char *syscallnames[] = {
@ -525,10 +525,10 @@ const char *syscallnames[] = {
"cap_getrights", /* 515 = cap_getrights */
"cap_enter", /* 516 = cap_enter */
"cap_getmode", /* 517 = cap_getmode */
"#518", /* 518 = pdfork */
"#519", /* 519 = pdkill */
"#520", /* 520 = pdgetpid */
"#521", /* 521 = pdwait */
"pdfork", /* 518 = pdfork */
"pdkill", /* 519 = pdkill */
"pdgetpid", /* 520 = pdgetpid */
"#521", /* 521 = pdwait4 */
"pselect", /* 522 = pselect */
"getloginclass", /* 523 = getloginclass */
"setloginclass", /* 524 = setloginclass */

View File

@ -3124,6 +3124,30 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 1;
break;
}
/* pdfork */
case 518: {
struct pdfork_args *p = params;
uarg[0] = (intptr_t) p->fdp; /* int * */
iarg[1] = p->flags; /* int */
*n_args = 2;
break;
}
/* pdkill */
case 519: {
struct pdkill_args *p = params;
iarg[0] = p->fd; /* int */
iarg[1] = p->signum; /* int */
*n_args = 2;
break;
}
/* pdgetpid */
case 520: {
struct pdgetpid_args *p = params;
iarg[0] = p->fd; /* int */
uarg[1] = (intptr_t) p->pidp; /* pid_t * */
*n_args = 2;
break;
}
/* pselect */
case 522: {
struct pselect_args *p = params;
@ -8381,6 +8405,45 @@ systrace_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* pdfork */
case 518:
switch(ndx) {
case 0:
p = "int *";
break;
case 1:
p = "int";
break;
default:
break;
};
break;
/* pdkill */
case 519:
switch(ndx) {
case 0:
p = "int";
break;
case 1:
p = "int";
break;
default:
break;
};
break;
/* pdgetpid */
case 520:
switch(ndx) {
case 0:
p = "int";
break;
case 1:
p = "pid_t *";
break;
default:
break;
};
break;
/* pselect */
case 522:
switch(ndx) {

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/kern/syscalls.master 224066 2011-07-15 18:26:19Z jonathan
* created from FreeBSD: head/sys/kern/syscalls.master 224987 2011-08-18 22:51:30Z jonathan
*/
#define SYS_syscall 0
@ -434,6 +434,9 @@
#define SYS_cap_getrights 515
#define SYS_cap_enter 516
#define SYS_cap_getmode 517
#define SYS_pdfork 518
#define SYS_pdkill 519
#define SYS_pdgetpid 520
#define SYS_pselect 522
#define SYS_getloginclass 523
#define SYS_setloginclass 524

View File

@ -1,7 +1,7 @@
# FreeBSD system call names.
# DO NOT EDIT-- this file is automatically generated.
# $FreeBSD$
# created from FreeBSD: head/sys/kern/syscalls.master 224066 2011-07-15 18:26:19Z jonathan
# created from FreeBSD: head/sys/kern/syscalls.master 224987 2011-08-18 22:51:30Z jonathan
MIASM = \
syscall.o \
exit.o \
@ -383,6 +383,9 @@ MIASM = \
cap_getrights.o \
cap_enter.o \
cap_getmode.o \
pdfork.o \
pdkill.o \
pdgetpid.o \
pselect.o \
getloginclass.o \
setloginclass.o \

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/kern/syscalls.master 224066 2011-07-15 18:26:19Z jonathan
* created from FreeBSD: head/sys/kern/syscalls.master 224987 2011-08-18 22:51:30Z jonathan
*/
#ifndef _SYS_SYSPROTO_H_
@ -1671,6 +1671,18 @@ struct cap_enter_args {
struct cap_getmode_args {
char modep_l_[PADL_(u_int *)]; u_int * modep; char modep_r_[PADR_(u_int *)];
};
struct pdfork_args {
char fdp_l_[PADL_(int *)]; int * fdp; char fdp_r_[PADR_(int *)];
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
};
struct pdkill_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
};
struct pdgetpid_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char pidp_l_[PADL_(pid_t *)]; pid_t * pidp; char pidp_r_[PADR_(pid_t *)];
};
struct pselect_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 *)];
@ -2085,6 +2097,9 @@ int cap_new(struct thread *, struct cap_new_args *);
int cap_getrights(struct thread *, struct cap_getrights_args *);
int cap_enter(struct thread *, struct cap_enter_args *);
int cap_getmode(struct thread *, struct cap_getmode_args *);
int pdfork(struct thread *, struct pdfork_args *);
int pdkill(struct thread *, struct pdkill_args *);
int pdgetpid(struct thread *, struct pdgetpid_args *);
int pselect(struct thread *, struct pselect_args *);
int getloginclass(struct thread *, struct getloginclass_args *);
int setloginclass(struct thread *, struct setloginclass_args *);
@ -2772,6 +2787,9 @@ int freebsd7_shmctl(struct thread *, struct freebsd7_shmctl_args *);
#define SYS_AUE_cap_getrights AUE_CAP_GETRIGHTS
#define SYS_AUE_cap_enter AUE_CAP_ENTER
#define SYS_AUE_cap_getmode AUE_CAP_GETMODE
#define SYS_AUE_pdfork AUE_PDFORK
#define SYS_AUE_pdkill AUE_PDKILL
#define SYS_AUE_pdgetpid AUE_PDGETPID
#define SYS_AUE_pselect AUE_SELECT
#define SYS_AUE_getloginclass AUE_NULL
#define SYS_AUE_setloginclass AUE_NULL