Author: pjd
Date: Thu Sep  5 00:11:59 2013
New Revision: 255220
URL: http://svnweb.freebsd.org/changeset/base/255220

Log:
  Regenerate after r255219.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/compat/freebsd32/freebsd32_proto.h
  head/sys/compat/freebsd32/freebsd32_syscall.h
  head/sys/compat/freebsd32/freebsd32_syscalls.c
  head/sys/compat/freebsd32/freebsd32_sysent.c
  head/sys/compat/freebsd32/freebsd32_systrace_args.c
  head/sys/kern/init_sysent.c
  head/sys/kern/syscalls.c
  head/sys/kern/systrace_args.c
  head/sys/sys/syscall.h
  head/sys/sys/syscall.mk
  head/sys/sys/sysproto.h

Modified: head/sys/compat/freebsd32/freebsd32_proto.h
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_proto.h Thu Sep  5 00:09:56 2013        
(r255219)
+++ head/sys/compat/freebsd32/freebsd32_proto.h Thu Sep  5 00:11:59 2013        
(r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 254491 
2013-08-18 13:37:54Z pjd 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 255219 
2013-09-05 00:09:56Z pjd 
  */
 
 #ifndef _FREEBSD32_SYSPROTO_H_
@@ -627,12 +627,6 @@ struct freebsd32_wait6_args {
        char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; 
char wrusage_r_[PADR_(struct wrusage32 *)];
        char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char 
info_r_[PADR_(siginfo_t *)];
 };
-struct freebsd32_cap_rights_limit_args {
-       char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
-       char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
-       char rights1_l_[PADL_(uint32_t)]; uint32_t rights1; char 
rights1_r_[PADR_(uint32_t)];
-       char rights2_l_[PADL_(uint32_t)]; uint32_t rights2; char 
rights2_r_[PADR_(uint32_t)];
-};
 #else
 struct freebsd32_posix_fallocate_args {
        char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
@@ -658,11 +652,6 @@ struct freebsd32_wait6_args {
        char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; 
char wrusage_r_[PADR_(struct wrusage32 *)];
        char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char 
info_r_[PADR_(siginfo_t *)];
 };
-struct freebsd32_cap_rights_limit_args {
-       char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
-       char rights1_l_[PADL_(uint32_t)]; uint32_t rights1; char 
rights1_r_[PADR_(uint32_t)];
-       char rights2_l_[PADL_(uint32_t)]; uint32_t rights2; char 
rights2_r_[PADR_(uint32_t)];
-};
 #endif
 struct freebsd32_cap_ioctls_limit_args {
        char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
@@ -795,12 +784,10 @@ int       freebsd32_pselect(struct thread *, s
 int    freebsd32_posix_fallocate(struct thread *, struct 
freebsd32_posix_fallocate_args *);
 int    freebsd32_posix_fadvise(struct thread *, struct 
freebsd32_posix_fadvise_args *);
 int    freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
-int    freebsd32_cap_rights_limit(struct thread *, struct 
freebsd32_cap_rights_limit_args *);
 #else
 int    freebsd32_posix_fallocate(struct thread *, struct 
freebsd32_posix_fallocate_args *);
 int    freebsd32_posix_fadvise(struct thread *, struct 
freebsd32_posix_fadvise_args *);
 int    freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
-int    freebsd32_cap_rights_limit(struct thread *, struct 
freebsd32_cap_rights_limit_args *);
 #endif
 int    freebsd32_cap_ioctls_limit(struct thread *, struct 
freebsd32_cap_ioctls_limit_args *);
 int    freebsd32_cap_ioctls_get(struct thread *, struct 
freebsd32_cap_ioctls_get_args *);
@@ -1199,11 +1186,9 @@ int      freebsd7_freebsd32_shmctl(struct thr
 #define        FREEBSD32_SYS_AUE_freebsd32_posix_fallocate     AUE_NULL
 #define        FREEBSD32_SYS_AUE_freebsd32_posix_fadvise       AUE_NULL
 #define        FREEBSD32_SYS_AUE_freebsd32_wait6       AUE_WAIT6
-#define        FREEBSD32_SYS_AUE_freebsd32_cap_rights_limit    
AUE_CAP_RIGHTS_LIMIT
 #define        FREEBSD32_SYS_AUE_freebsd32_posix_fallocate     AUE_NULL
 #define        FREEBSD32_SYS_AUE_freebsd32_posix_fadvise       AUE_NULL
 #define        FREEBSD32_SYS_AUE_freebsd32_wait6       AUE_WAIT6
-#define        FREEBSD32_SYS_AUE_freebsd32_cap_rights_limit    
AUE_CAP_RIGHTS_LIMIT
 #define        FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit    
AUE_CAP_IOCTLS_LIMIT
 #define        FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get      
AUE_CAP_IOCTLS_GET
 #define        FREEBSD32_SYS_AUE_freebsd32_aio_mlock   AUE_NULL

Modified: head/sys/compat/freebsd32/freebsd32_syscall.h
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_syscall.h       Thu Sep  5 00:09:56 
2013        (r255219)
+++ head/sys/compat/freebsd32/freebsd32_syscall.h       Thu Sep  5 00:11:59 
2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 254491 
2013-08-18 13:37:54Z pjd 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 255219 
2013-09-05 00:09:56Z pjd 
  */
 
 #define        FREEBSD32_SYS_syscall   0
@@ -420,8 +420,8 @@
 #define        FREEBSD32_SYS_freebsd32_msgctl  511
 #define        FREEBSD32_SYS_freebsd32_shmctl  512
 #define        FREEBSD32_SYS_lpathconf 513
-#define        FREEBSD32_SYS_cap_new   514
-#define        FREEBSD32_SYS_cap_rights_get    515
+                               /* 514 is obsolete cap_new */
+#define        FREEBSD32_SYS___cap_rights_get  515
 #define        FREEBSD32_SYS_cap_enter 516
 #define        FREEBSD32_SYS_cap_getmode       517
 #define        FREEBSD32_SYS_pdfork    518
@@ -438,11 +438,10 @@
 #define        FREEBSD32_SYS_freebsd32_posix_fallocate 530
 #define        FREEBSD32_SYS_freebsd32_posix_fadvise   531
 #define        FREEBSD32_SYS_freebsd32_wait6   532
-#define        FREEBSD32_SYS_freebsd32_cap_rights_limit        533
 #define        FREEBSD32_SYS_freebsd32_posix_fallocate 530
 #define        FREEBSD32_SYS_freebsd32_posix_fadvise   531
 #define        FREEBSD32_SYS_freebsd32_wait6   532
-#define        FREEBSD32_SYS_freebsd32_cap_rights_limit        533
+#define        FREEBSD32_SYS_cap_rights_limit  533
 #define        FREEBSD32_SYS_freebsd32_cap_ioctls_limit        534
 #define        FREEBSD32_SYS_freebsd32_cap_ioctls_get  535
 #define        FREEBSD32_SYS_cap_fcntls_limit  536

Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_syscalls.c      Thu Sep  5 00:09:56 
2013        (r255219)
+++ head/sys/compat/freebsd32/freebsd32_syscalls.c      Thu Sep  5 00:11:59 
2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 254491 
2013-08-18 13:37:54Z pjd 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 255219 
2013-09-05 00:09:56Z pjd 
  */
 
 const char *freebsd32_syscallnames[] = {
@@ -537,8 +537,8 @@ const char *freebsd32_syscallnames[] = {
        "freebsd32_msgctl",                     /* 511 = freebsd32_msgctl */
        "freebsd32_shmctl",                     /* 512 = freebsd32_shmctl */
        "lpathconf",                    /* 513 = lpathconf */
-       "cap_new",                      /* 514 = cap_new */
-       "cap_rights_get",                       /* 515 = cap_rights_get */
+       "obs_cap_new",                  /* 514 = obsolete cap_new */
+       "__cap_rights_get",                     /* 515 = __cap_rights_get */
        "cap_enter",                    /* 516 = cap_enter */
        "cap_getmode",                  /* 517 = cap_getmode */
        "pdfork",                       /* 518 = pdfork */
@@ -557,13 +557,12 @@ const char *freebsd32_syscallnames[] = {
        "freebsd32_posix_fallocate",                    /* 530 = 
freebsd32_posix_fallocate */
        "freebsd32_posix_fadvise",                      /* 531 = 
freebsd32_posix_fadvise */
        "freebsd32_wait6",                      /* 532 = freebsd32_wait6 */
-       "freebsd32_cap_rights_limit",                   /* 533 = 
freebsd32_cap_rights_limit */
 #else
        "freebsd32_posix_fallocate",                    /* 530 = 
freebsd32_posix_fallocate */
        "freebsd32_posix_fadvise",                      /* 531 = 
freebsd32_posix_fadvise */
        "freebsd32_wait6",                      /* 532 = freebsd32_wait6 */
-       "freebsd32_cap_rights_limit",                   /* 533 = 
freebsd32_cap_rights_limit */
 #endif
+       "cap_rights_limit",                     /* 533 = cap_rights_limit */
        "freebsd32_cap_ioctls_limit",                   /* 534 = 
freebsd32_cap_ioctls_limit */
        "freebsd32_cap_ioctls_get",                     /* 535 = 
freebsd32_cap_ioctls_get */
        "cap_fcntls_limit",                     /* 536 = cap_fcntls_limit */

Modified: head/sys/compat/freebsd32/freebsd32_sysent.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_sysent.c        Thu Sep  5 00:09:56 
2013        (r255219)
+++ head/sys/compat/freebsd32/freebsd32_sysent.c        Thu Sep  5 00:11:59 
2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 254491 
2013-08-18 13:37:54Z pjd 
+ * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 255219 
2013-09-05 00:09:56Z pjd 
  */
 
 #include "opt_compat.h"
@@ -574,8 +574,8 @@ struct sysent freebsd32_sysent[] = {
        { AS(freebsd32_msgctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 
0, 0, SY_THR_ABSENT },  /* 511 = freebsd32_msgctl */
        { AS(freebsd32_shmctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 
0, 0, SY_THR_ABSENT },  /* 512 = freebsd32_shmctl */
        { AS(lpathconf_args), (sy_call_t *)sys_lpathconf, AUE_LPATHCONF, NULL, 
0, 0, 0, SY_THR_STATIC },        /* 513 = lpathconf */
-       { AS(cap_new_args), (sy_call_t *)sys_cap_new, AUE_CAP_NEW, NULL, 0, 0, 
0, SY_THR_STATIC },      /* 514 = cap_new */
-       { AS(cap_rights_get_args), (sy_call_t *)sys_cap_rights_get, 
AUE_CAP_RIGHTS_GET, NULL, 0, 0, 0, SY_THR_STATIC }, /* 515 = cap_rights_get */
+       { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT },      
                /* 514 = obsolete cap_new */
+       { AS(__cap_rights_get_args), (sy_call_t *)sys___cap_rights_get, 
AUE_CAP_RIGHTS_GET, NULL, 0, 0, 0, SY_THR_STATIC },     /* 515 = 
__cap_rights_get */
        { 0, (sy_call_t *)sys_cap_enter, AUE_CAP_ENTER, NULL, 0, 0, 0, 
SY_THR_STATIC }, /* 516 = cap_enter */
        { AS(cap_getmode_args), (sy_call_t *)sys_cap_getmode, AUE_CAP_GETMODE, 
NULL, 0, 0, 0, SY_THR_STATIC },  /* 517 = cap_getmode */
        { AS(pdfork_args), (sy_call_t *)sys_pdfork, AUE_PDFORK, NULL, 0, 0, 0, 
SY_THR_STATIC }, /* 518 = pdfork */
@@ -594,13 +594,12 @@ struct sysent freebsd32_sysent[] = {
        { AS(freebsd32_posix_fallocate_args), (sy_call_t 
*)freebsd32_posix_fallocate, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 530 = 
freebsd32_posix_fallocate */
        { AS(freebsd32_posix_fadvise_args), (sy_call_t 
*)freebsd32_posix_fadvise, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },     /* 531 
= freebsd32_posix_fadvise */
        { AS(freebsd32_wait6_args), (sy_call_t *)freebsd32_wait6, AUE_WAIT6, 
NULL, 0, 0, 0, SY_THR_STATIC },    /* 532 = freebsd32_wait6 */
-       { AS(freebsd32_cap_rights_limit_args), (sy_call_t 
*)freebsd32_cap_rights_limit, AUE_CAP_RIGHTS_LIMIT, NULL, 0, 0, 0, 
SY_THR_STATIC },   /* 533 = freebsd32_cap_rights_limit */
 #else
        { AS(freebsd32_posix_fallocate_args), (sy_call_t 
*)freebsd32_posix_fallocate, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 530 = 
freebsd32_posix_fallocate */
        { AS(freebsd32_posix_fadvise_args), (sy_call_t 
*)freebsd32_posix_fadvise, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },     /* 531 
= freebsd32_posix_fadvise */
        { AS(freebsd32_wait6_args), (sy_call_t *)freebsd32_wait6, AUE_WAIT6, 
NULL, 0, 0, 0, SY_THR_STATIC },    /* 532 = freebsd32_wait6 */
-       { AS(freebsd32_cap_rights_limit_args), (sy_call_t 
*)freebsd32_cap_rights_limit, AUE_CAP_RIGHTS_LIMIT, NULL, 0, 0, 0, 
SY_THR_STATIC },   /* 533 = freebsd32_cap_rights_limit */
 #endif
+       { AS(cap_rights_limit_args), (sy_call_t *)sys_cap_rights_limit, 
AUE_CAP_RIGHTS_LIMIT, NULL, 0, 0, 0, SY_THR_STATIC },   /* 533 = 
cap_rights_limit */
        { AS(freebsd32_cap_ioctls_limit_args), (sy_call_t 
*)freebsd32_cap_ioctls_limit, AUE_CAP_IOCTLS_LIMIT, NULL, 0, 0, 0, 
SY_THR_STATIC },   /* 534 = freebsd32_cap_ioctls_limit */
        { AS(freebsd32_cap_ioctls_get_args), (sy_call_t 
*)freebsd32_cap_ioctls_get, AUE_CAP_IOCTLS_GET, NULL, 0, 0, 0, SY_THR_STATIC }, 
/* 535 = freebsd32_cap_ioctls_get */
        { AS(cap_fcntls_limit_args), (sy_call_t *)sys_cap_fcntls_limit, 
AUE_CAP_FCNTLS_LIMIT, NULL, 0, 0, 0, SY_THR_STATIC },   /* 536 = 
cap_fcntls_limit */

Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_systrace_args.c Thu Sep  5 00:09:56 
2013        (r255219)
+++ head/sys/compat/freebsd32/freebsd32_systrace_args.c Thu Sep  5 00:11:59 
2013        (r255220)
@@ -2990,20 +2990,13 @@ systrace_args(int sysnum, void *params, 
                *n_args = 2;
                break;
        }
-       /* cap_new */
-       case 514: {
-               struct cap_new_args *p = params;
-               iarg[0] = p->fd; /* int */
-               uarg[1] = p->rights; /* uint64_t */
-               *n_args = 2;
-               break;
-       }
-       /* cap_rights_get */
+       /* __cap_rights_get */
        case 515: {
-               struct cap_rights_get_args *p = params;
-               iarg[0] = p->fd; /* int */
-               uarg[1] = (intptr_t) p->rightsp; /* uint64_t * */
-               *n_args = 2;
+               struct __cap_rights_get_args *p = params;
+               iarg[0] = p->version; /* int */
+               iarg[1] = p->fd; /* int */
+               uarg[2] = (intptr_t) p->rightsp; /* cap_rights_t * */
+               *n_args = 3;
                break;
        }
        /* cap_enter */
@@ -3159,16 +3152,6 @@ systrace_args(int sysnum, void *params, 
                *n_args = 8;
                break;
        }
-       /* freebsd32_cap_rights_limit */
-       case 533: {
-               struct freebsd32_cap_rights_limit_args *p = params;
-               iarg[0] = p->fd; /* int */
-               iarg[1] = p->pad; /* int */
-               uarg[2] = p->rights1; /* uint32_t */
-               uarg[3] = p->rights2; /* uint32_t */
-               *n_args = 4;
-               break;
-       }
 #else
        /* freebsd32_posix_fallocate */
        case 530: {
@@ -3206,16 +3189,15 @@ systrace_args(int sysnum, void *params, 
                *n_args = 7;
                break;
        }
-       /* freebsd32_cap_rights_limit */
+#endif
+       /* cap_rights_limit */
        case 533: {
-               struct freebsd32_cap_rights_limit_args *p = params;
+               struct cap_rights_limit_args *p = params;
                iarg[0] = p->fd; /* int */
-               uarg[1] = p->rights1; /* uint32_t */
-               uarg[2] = p->rights2; /* uint32_t */
-               *n_args = 3;
+               uarg[1] = (intptr_t) p->rightsp; /* cap_rights_t * */
+               *n_args = 2;
                break;
        }
-#endif
        /* freebsd32_cap_ioctls_limit */
        case 534: {
                struct freebsd32_cap_ioctls_limit_args *p = params;
@@ -8277,27 +8259,17 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
-       /* cap_new */
-       case 514:
+       /* __cap_rights_get */
+       case 515:
                switch(ndx) {
                case 0:
                        p = "int";
                        break;
                case 1:
-                       p = "uint64_t";
-                       break;
-               default:
-                       break;
-               };
-               break;
-       /* cap_rights_get */
-       case 515:
-               switch(ndx) {
-               case 0:
                        p = "int";
                        break;
-               case 1:
-                       p = "uint64_t *";
+               case 2:
+                       p = "cap_rights_t *";
                        break;
                default:
                        break;
@@ -8583,25 +8555,6 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
-       /* freebsd32_cap_rights_limit */
-       case 533:
-               switch(ndx) {
-               case 0:
-                       p = "int";
-                       break;
-               case 1:
-                       p = "int";
-                       break;
-               case 2:
-                       p = "uint32_t";
-                       break;
-               case 3:
-                       p = "uint32_t";
-                       break;
-               default:
-                       break;
-               };
-               break;
 #else
        /* freebsd32_posix_fallocate */
        case 530:
@@ -8678,23 +8631,20 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
-       /* freebsd32_cap_rights_limit */
+#endif
+       /* cap_rights_limit */
        case 533:
                switch(ndx) {
                case 0:
                        p = "int";
                        break;
                case 1:
-                       p = "uint32_t";
-                       break;
-               case 2:
-                       p = "uint32_t";
+                       p = "cap_rights_t *";
                        break;
                default:
                        break;
                };
                break;
-#endif
        /* freebsd32_cap_ioctls_limit */
        case 534:
                switch(ndx) {
@@ -10567,12 +10517,7 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
-       /* cap_new */
-       case 514:
-               if (ndx == 0 || ndx == 1)
-                       p = "int";
-               break;
-       /* cap_rights_get */
+       /* __cap_rights_get */
        case 515:
                if (ndx == 0 || ndx == 1)
                        p = "int";
@@ -10655,11 +10600,6 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
-       /* freebsd32_cap_rights_limit */
-       case 533:
-               if (ndx == 0 || ndx == 1)
-                       p = "int";
-               break;
 #else
        /* freebsd32_posix_fallocate */
        case 530:
@@ -10676,12 +10616,12 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
-       /* freebsd32_cap_rights_limit */
+#endif
+       /* cap_rights_limit */
        case 533:
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
-#endif
        /* freebsd32_cap_ioctls_limit */
        case 534:
                if (ndx == 0 || ndx == 1)

Modified: head/sys/kern/init_sysent.c
==============================================================================
--- head/sys/kern/init_sysent.c Thu Sep  5 00:09:56 2013        (r255219)
+++ head/sys/kern/init_sysent.c Thu Sep  5 00:11:59 2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 251526 2013-06-08 
13:27:57Z glebius 
+ * created from FreeBSD: head/sys/kern/syscalls.master 255219 2013-09-05 
00:09:56Z pjd 
  */
 
 #include "opt_compat.h"
@@ -548,8 +548,8 @@ struct sysent sysent[] = {
        { AS(msgctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0, 
SY_THR_ABSENT },    /* 511 = msgctl */
        { AS(shmctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0, 
SY_THR_ABSENT },    /* 512 = shmctl */
        { AS(lpathconf_args), (sy_call_t *)sys_lpathconf, AUE_LPATHCONF, NULL, 
0, 0, 0, SY_THR_STATIC },        /* 513 = lpathconf */
-       { AS(cap_new_args), (sy_call_t *)sys_cap_new, AUE_CAP_NEW, NULL, 0, 0, 
SYF_CAPENABLED, SY_THR_STATIC }, /* 514 = cap_new */
-       { AS(cap_rights_get_args), (sy_call_t *)sys_cap_rights_get, 
AUE_CAP_RIGHTS_GET, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },    /* 515 = 
cap_rights_get */
+       { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT },      
                /* 514 = obsolete cap_new */
+       { AS(__cap_rights_get_args), (sy_call_t *)sys___cap_rights_get, 
AUE_CAP_RIGHTS_GET, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },        /* 515 
= __cap_rights_get */
        { 0, (sy_call_t *)sys_cap_enter, AUE_CAP_ENTER, NULL, 0, 0, 
SYF_CAPENABLED, SY_THR_STATIC },    /* 516 = cap_enter */
        { AS(cap_getmode_args), (sy_call_t *)sys_cap_getmode, AUE_CAP_GETMODE, 
NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC },     /* 517 = cap_getmode */
        { AS(pdfork_args), (sy_call_t *)sys_pdfork, AUE_PDFORK, NULL, 0, 0, 
SYF_CAPENABLED, SY_THR_STATIC },    /* 518 = pdfork */

Modified: head/sys/kern/syscalls.c
==============================================================================
--- head/sys/kern/syscalls.c    Thu Sep  5 00:09:56 2013        (r255219)
+++ head/sys/kern/syscalls.c    Thu Sep  5 00:11:59 2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 251526 2013-06-08 
13:27:57Z glebius 
+ * created from FreeBSD: head/sys/kern/syscalls.master 255219 2013-09-05 
00:09:56Z pjd 
  */
 
 const char *syscallnames[] = {
@@ -521,8 +521,8 @@ const char *syscallnames[] = {
        "msgctl",                       /* 511 = msgctl */
        "shmctl",                       /* 512 = shmctl */
        "lpathconf",                    /* 513 = lpathconf */
-       "cap_new",                      /* 514 = cap_new */
-       "cap_rights_get",                       /* 515 = cap_rights_get */
+       "obs_cap_new",                  /* 514 = obsolete cap_new */
+       "__cap_rights_get",                     /* 515 = __cap_rights_get */
        "cap_enter",                    /* 516 = cap_enter */
        "cap_getmode",                  /* 517 = cap_getmode */
        "pdfork",                       /* 518 = pdfork */

Modified: head/sys/kern/systrace_args.c
==============================================================================
--- head/sys/kern/systrace_args.c       Thu Sep  5 00:09:56 2013        
(r255219)
+++ head/sys/kern/systrace_args.c       Thu Sep  5 00:11:59 2013        
(r255220)
@@ -3126,20 +3126,13 @@ systrace_args(int sysnum, void *params, 
                *n_args = 2;
                break;
        }
-       /* cap_new */
-       case 514: {
-               struct cap_new_args *p = params;
-               iarg[0] = p->fd; /* int */
-               uarg[1] = p->rights; /* uint64_t */
-               *n_args = 2;
-               break;
-       }
-       /* cap_rights_get */
+       /* __cap_rights_get */
        case 515: {
-               struct cap_rights_get_args *p = params;
-               iarg[0] = p->fd; /* int */
-               uarg[1] = (intptr_t) p->rightsp; /* uint64_t * */
-               *n_args = 2;
+               struct __cap_rights_get_args *p = params;
+               iarg[0] = p->version; /* int */
+               iarg[1] = p->fd; /* int */
+               uarg[2] = (intptr_t) p->rightsp; /* cap_rights_t * */
+               *n_args = 3;
                break;
        }
        /* cap_enter */
@@ -3290,7 +3283,7 @@ systrace_args(int sysnum, void *params, 
        case 533: {
                struct cap_rights_limit_args *p = params;
                iarg[0] = p->fd; /* int */
-               uarg[1] = p->rights; /* uint64_t */
+               uarg[1] = (intptr_t) p->rightsp; /* cap_rights_t * */
                *n_args = 2;
                break;
        }
@@ -8561,27 +8554,17 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
-       /* cap_new */
-       case 514:
+       /* __cap_rights_get */
+       case 515:
                switch(ndx) {
                case 0:
                        p = "int";
                        break;
                case 1:
-                       p = "uint64_t";
-                       break;
-               default:
-                       break;
-               };
-               break;
-       /* cap_rights_get */
-       case 515:
-               switch(ndx) {
-               case 0:
                        p = "int";
                        break;
-               case 1:
-                       p = "uint64_t *";
+               case 2:
+                       p = "cap_rights_t *";
                        break;
                default:
                        break;
@@ -8849,7 +8832,7 @@ systrace_entry_setargdesc(int sysnum, in
                        p = "int";
                        break;
                case 1:
-                       p = "uint64_t";
+                       p = "cap_rights_t *";
                        break;
                default:
                        break;
@@ -10818,12 +10801,7 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
-       /* cap_new */
-       case 514:
-               if (ndx == 0 || ndx == 1)
-                       p = "int";
-               break;
-       /* cap_rights_get */
+       /* __cap_rights_get */
        case 515:
                if (ndx == 0 || ndx == 1)
                        p = "int";

Modified: head/sys/sys/syscall.h
==============================================================================
--- head/sys/sys/syscall.h      Thu Sep  5 00:09:56 2013        (r255219)
+++ head/sys/sys/syscall.h      Thu Sep  5 00:11:59 2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 251526 2013-06-08 
13:27:57Z glebius 
+ * created from FreeBSD: head/sys/kern/syscalls.master 255219 2013-09-05 
00:09:56Z pjd 
  */
 
 #define        SYS_syscall     0
@@ -434,8 +434,8 @@
 #define        SYS_msgctl      511
 #define        SYS_shmctl      512
 #define        SYS_lpathconf   513
-#define        SYS_cap_new     514
-#define        SYS_cap_rights_get      515
+                               /* 514 is obsolete cap_new */
+#define        SYS___cap_rights_get    515
 #define        SYS_cap_enter   516
 #define        SYS_cap_getmode 517
 #define        SYS_pdfork      518

Modified: head/sys/sys/syscall.mk
==============================================================================
--- head/sys/sys/syscall.mk     Thu Sep  5 00:09:56 2013        (r255219)
+++ head/sys/sys/syscall.mk     Thu Sep  5 00:11:59 2013        (r255220)
@@ -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 251526 2013-06-08 
13:27:57Z glebius 
+# created from FreeBSD: head/sys/kern/syscalls.master 255219 2013-09-05 
00:09:56Z pjd 
 MIASM =  \
        syscall.o \
        exit.o \
@@ -383,8 +383,7 @@ MIASM =  \
        msgctl.o \
        shmctl.o \
        lpathconf.o \
-       cap_new.o \
-       cap_rights_get.o \
+       __cap_rights_get.o \
        cap_enter.o \
        cap_getmode.o \
        pdfork.o \

Modified: head/sys/sys/sysproto.h
==============================================================================
--- head/sys/sys/sysproto.h     Thu Sep  5 00:09:56 2013        (r255219)
+++ head/sys/sys/sysproto.h     Thu Sep  5 00:11:59 2013        (r255220)
@@ -3,7 +3,7 @@
  *
  * DO NOT EDIT-- this file is automatically generated.
  * $FreeBSD$
- * created from FreeBSD: head/sys/kern/syscalls.master 251526 2013-06-08 
13:27:57Z glebius 
+ * created from FreeBSD: head/sys/kern/syscalls.master 255219 2013-09-05 
00:09:56Z pjd 
  */
 
 #ifndef _SYS_SYSPROTO_H_
@@ -1672,13 +1672,10 @@ 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 {
+struct __cap_rights_get_args {
+       char version_l_[PADL_(int)]; int version; char version_r_[PADR_(int)];
        char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
-       char rights_l_[PADL_(uint64_t)]; uint64_t rights; char 
rights_r_[PADR_(uint64_t)];
-};
-struct cap_rights_get_args {
-       char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
-       char rightsp_l_[PADL_(uint64_t *)]; uint64_t * rightsp; char 
rightsp_r_[PADR_(uint64_t *)];
+       char rightsp_l_[PADL_(cap_rights_t *)]; cap_rights_t * rightsp; char 
rightsp_r_[PADR_(cap_rights_t *)];
 };
 struct cap_enter_args {
        register_t dummy;
@@ -1764,7 +1761,7 @@ struct wait6_args {
 };
 struct cap_rights_limit_args {
        char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
-       char rights_l_[PADL_(uint64_t)]; uint64_t rights; char 
rights_r_[PADR_(uint64_t)];
+       char rightsp_l_[PADL_(cap_rights_t *)]; cap_rights_t * rightsp; char 
rightsp_r_[PADR_(cap_rights_t *)];
 };
 struct cap_ioctls_limit_args {
        char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
@@ -2179,8 +2176,7 @@ int       sys___semctl(struct thread *, struct
 int    sys_msgctl(struct thread *, struct msgctl_args *);
 int    sys_shmctl(struct thread *, struct shmctl_args *);
 int    sys_lpathconf(struct thread *, struct lpathconf_args *);
-int    sys_cap_new(struct thread *, struct cap_new_args *);
-int    sys_cap_rights_get(struct thread *, struct cap_rights_get_args *);
+int    sys___cap_rights_get(struct thread *, struct __cap_rights_get_args *);
 int    sys_cap_enter(struct thread *, struct cap_enter_args *);
 int    sys_cap_getmode(struct thread *, struct cap_getmode_args *);
 int    sys_pdfork(struct thread *, struct pdfork_args *);
@@ -2886,8 +2882,7 @@ int       freebsd7_shmctl(struct thread *, str
 #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_rights_get  AUE_CAP_RIGHTS_GET
+#define        SYS_AUE___cap_rights_get        AUE_CAP_RIGHTS_GET
 #define        SYS_AUE_cap_enter       AUE_CAP_ENTER
 #define        SYS_AUE_cap_getmode     AUE_CAP_GETMODE
 #define        SYS_AUE_pdfork  AUE_PDFORK
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to