From owner-svn-src-all@freebsd.org Wed Mar 21 01:17:03 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 225CFF5D1C3; Wed, 21 Mar 2018 01:17:03 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7B9573E96; Wed, 21 Mar 2018 01:17:02 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C29E724406; Wed, 21 Mar 2018 01:17:02 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2L1H2ws084824; Wed, 21 Mar 2018 01:17:02 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2L1H1C7084812; Wed, 21 Mar 2018 01:17:01 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201803210117.w2L1H1C7084812@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Wed, 21 Mar 2018 01:17:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331280 - in head/sys: compat/freebsd32 kern sys X-SVN-Group: head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: in head/sys: compat/freebsd32 kern sys X-SVN-Commit-Revision: 331280 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 01:17:03 -0000 Author: cem Date: Wed Mar 21 01:17:01 2018 New Revision: 331280 URL: https://svnweb.freebsd.org/changeset/base/331280 Log: Regenerate sysent files after r331279. Modified: 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_syscall.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscall.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_syscall.h Wed Mar 21 01:17:01 2018 (r331280) @@ -468,4 +468,5 @@ #define FREEBSD32_SYS_freebsd32_kevent 560 #define FREEBSD32_SYS_freebsd32_cpuset_getdomain 561 #define FREEBSD32_SYS_freebsd32_cpuset_setdomain 562 -#define FREEBSD32_SYS_MAXSYSCALL 563 +#define FREEBSD32_SYS_getrandom 563 +#define FREEBSD32_SYS_MAXSYSCALL 564 Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscalls.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_syscalls.c Wed Mar 21 01:17:01 2018 (r331280) @@ -595,4 +595,5 @@ const char *freebsd32_syscallnames[] = { "freebsd32_kevent", /* 560 = freebsd32_kevent */ "freebsd32_cpuset_getdomain", /* 561 = freebsd32_cpuset_getdomain */ "freebsd32_cpuset_setdomain", /* 562 = freebsd32_cpuset_setdomain */ + "getrandom", /* 563 = getrandom */ }; Modified: head/sys/compat/freebsd32/freebsd32_sysent.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_sysent.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_sysent.c Wed Mar 21 01:17:01 2018 (r331280) @@ -644,4 +644,5 @@ struct sysent freebsd32_sysent[] = { { AS(freebsd32_kevent_args), (sy_call_t *)freebsd32_kevent, AUE_KEVENT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 560 = freebsd32_kevent */ { AS(freebsd32_cpuset_getdomain_args), (sy_call_t *)freebsd32_cpuset_getdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 561 = freebsd32_cpuset_getdomain */ { AS(freebsd32_cpuset_setdomain_args), (sy_call_t *)freebsd32_cpuset_setdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 562 = freebsd32_cpuset_setdomain */ + { AS(getrandom_args), (sy_call_t *)sys_getrandom, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 563 = getrandom */ }; Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_systrace_args.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_systrace_args.c Wed Mar 21 01:17:01 2018 (r331280) @@ -3274,6 +3274,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 7; break; } + /* getrandom */ + case 563: { + struct getrandom_args *p = params; + uarg[0] = (intptr_t) p->buf; /* void * */ + uarg[1] = p->buflen; /* size_t */ + uarg[2] = p->flags; /* unsigned int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8800,6 +8809,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* getrandom */ + case 563: + switch(ndx) { + case 0: + p = "userland void *"; + break; + case 1: + p = "size_t"; + break; + case 2: + p = "unsigned int"; + break; + default: + break; + }; + break; default: break; }; @@ -10648,6 +10673,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* freebsd32_cpuset_setdomain */ case 562: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* getrandom */ + case 563: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/kern/init_sysent.c ============================================================================== --- head/sys/kern/init_sysent.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/init_sysent.c Wed Mar 21 01:17:01 2018 (r331280) @@ -614,4 +614,5 @@ struct sysent sysent[] = { { AS(kevent_args), (sy_call_t *)sys_kevent, AUE_KEVENT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 560 = kevent */ { AS(cpuset_getdomain_args), (sy_call_t *)sys_cpuset_getdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 561 = cpuset_getdomain */ { AS(cpuset_setdomain_args), (sy_call_t *)sys_cpuset_setdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 562 = cpuset_setdomain */ + { AS(getrandom_args), (sy_call_t *)sys_getrandom, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 563 = getrandom */ }; Modified: head/sys/kern/syscalls.c ============================================================================== --- head/sys/kern/syscalls.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/syscalls.c Wed Mar 21 01:17:01 2018 (r331280) @@ -569,4 +569,5 @@ const char *syscallnames[] = { "kevent", /* 560 = kevent */ "cpuset_getdomain", /* 561 = cpuset_getdomain */ "cpuset_setdomain", /* 562 = cpuset_setdomain */ + "getrandom", /* 563 = getrandom */ }; Modified: head/sys/kern/systrace_args.c ============================================================================== --- head/sys/kern/systrace_args.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/systrace_args.c Wed Mar 21 01:17:01 2018 (r331280) @@ -3282,6 +3282,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 6; break; } + /* getrandom */ + case 563: { + struct getrandom_args *p = params; + uarg[0] = (intptr_t) p->buf; /* void * */ + uarg[1] = p->buflen; /* size_t */ + uarg[2] = p->flags; /* unsigned int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8752,6 +8761,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* getrandom */ + case 563: + switch(ndx) { + case 0: + p = "userland void *"; + break; + case 1: + p = "size_t"; + break; + case 2: + p = "unsigned int"; + break; + default: + break; + }; + break; default: break; }; @@ -10635,6 +10660,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* cpuset_setdomain */ case 562: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* getrandom */ + case 563: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/sys/syscall.h ============================================================================== --- head/sys/sys/syscall.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/syscall.h Wed Mar 21 01:17:01 2018 (r331280) @@ -478,4 +478,5 @@ #define SYS_kevent 560 #define SYS_cpuset_getdomain 561 #define SYS_cpuset_setdomain 562 -#define SYS_MAXSYSCALL 563 +#define SYS_getrandom 563 +#define SYS_MAXSYSCALL 564 Modified: head/sys/sys/syscall.mk ============================================================================== --- head/sys/sys/syscall.mk Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/syscall.mk Wed Mar 21 01:17:01 2018 (r331280) @@ -405,4 +405,5 @@ MIASM = \ mknodat.o \ kevent.o \ cpuset_getdomain.o \ - cpuset_setdomain.o + cpuset_setdomain.o \ + getrandom.o Modified: head/sys/sys/sysproto.h ============================================================================== --- head/sys/sys/sysproto.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/sysproto.h Wed Mar 21 01:17:01 2018 (r331280) @@ -1768,6 +1768,11 @@ struct cpuset_setdomain_args { char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)]; }; +struct getrandom_args { + char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; + char buflen_l_[PADL_(size_t)]; size_t buflen; char buflen_r_[PADR_(size_t)]; + char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned 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 *); @@ -2148,6 +2153,7 @@ int sys_mknodat(struct thread *, struct mknodat_args * int sys_kevent(struct thread *, struct kevent_args *); int sys_cpuset_getdomain(struct thread *, struct cpuset_getdomain_args *); int sys_cpuset_setdomain(struct thread *, struct cpuset_setdomain_args *); +int sys_getrandom(struct thread *, struct getrandom_args *); #ifdef COMPAT_43 @@ -3040,6 +3046,7 @@ int freebsd11_mknodat(struct thread *, struct freebsd1 #define SYS_AUE_kevent AUE_KEVENT #define SYS_AUE_cpuset_getdomain AUE_NULL #define SYS_AUE_cpuset_setdomain AUE_NULL +#define SYS_AUE_getrandom AUE_NULL #undef PAD_ #undef PADL_