diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-07-15 18:33:12 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-07-15 18:33:12 +0000 |
commit | 5132d7b9f385514473fc19b1aa9080b6dc5db819 (patch) | |
tree | 8fd3be2f4339f52744df8c22ee694c844e0b17e9 /sys/sys | |
parent | 4ec3aaddb5d1848253bf9cb9b4dfccc67a058d4d (diff) | |
download | FreeBSD-src-5132d7b9f385514473fc19b1aa9080b6dc5db819.zip FreeBSD-src-5132d7b9f385514473fc19b1aa9080b6dc5db819.tar.gz |
Auto-generated system call code with cap_new(), cap_getrights().
Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/syscall.h | 2 | ||||
-rw-r--r-- | sys/sys/syscall.mk | 2 | ||||
-rw-r--r-- | sys/sys/sysproto.h | 12 |
3 files changed, 16 insertions, 0 deletions
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 8be00de..fa4f46f 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -430,6 +430,8 @@ #define SYS_msgctl 511 #define SYS_shmctl 512 #define SYS_lpathconf 513 +#define SYS_cap_new 514 +#define SYS_cap_getrights 515 #define SYS_cap_enter 516 #define SYS_cap_getmode 517 #define SYS_pselect 522 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index 2f8e7b3..544bbf4 100644 --- a/sys/sys/syscall.mk +++ b/sys/sys/syscall.mk @@ -379,6 +379,8 @@ MIASM = \ msgctl.o \ shmctl.o \ lpathconf.o \ + cap_new.o \ + cap_getrights.o \ cap_enter.o \ cap_getmode.o \ pselect.o \ diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 0965b72..90e0449 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -1657,6 +1657,14 @@ struct lpathconf_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)]; }; +struct cap_new_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char rights_l_[PADL_(u_int64_t)]; u_int64_t rights; char rights_r_[PADR_(u_int64_t)]; +}; +struct cap_getrights_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char rightsp_l_[PADL_(u_int64_t *)]; u_int64_t * rightsp; char rightsp_r_[PADR_(u_int64_t *)]; +}; struct cap_enter_args { register_t dummy; }; @@ -2073,6 +2081,8 @@ int __semctl(struct thread *, struct __semctl_args *); int msgctl(struct thread *, struct msgctl_args *); int shmctl(struct thread *, struct shmctl_args *); int lpathconf(struct thread *, struct lpathconf_args *); +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 pselect(struct thread *, struct pselect_args *); @@ -2758,6 +2768,8 @@ int freebsd7_shmctl(struct thread *, struct freebsd7_shmctl_args *); #define SYS_AUE_msgctl AUE_MSGCTL #define SYS_AUE_shmctl AUE_SHMCTL #define SYS_AUE_lpathconf AUE_LPATHCONF +#define SYS_AUE_cap_new AUE_CAP_NEW +#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_pselect AUE_SELECT |