CVS commit: src/libexec/httpd/libbozohttpd
Module Name:src Committed By: mrg Date: Sat Feb 4 01:32:54 UTC 2017 Modified Files: src/libexec/httpd/libbozohttpd: libbozohttpd.3 Log Message: fix the prototype for bozo_set_pref(). from cfkoch To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/libexec/httpd/libbozohttpd/libbozohttpd.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/libexec/httpd/libbozohttpd/libbozohttpd.3 diff -u src/libexec/httpd/libbozohttpd/libbozohttpd.3:1.3 src/libexec/httpd/libbozohttpd/libbozohttpd.3:1.4 --- src/libexec/httpd/libbozohttpd/libbozohttpd.3:1.3 Tue Mar 18 18:20:38 2014 +++ src/libexec/httpd/libbozohttpd/libbozohttpd.3 Sat Feb 4 01:32:54 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: libbozohttpd.3,v 1.3 2014/03/18 18:20:38 riastradh Exp $ +.\" $NetBSD: libbozohttpd.3,v 1.4 2017/02/04 01:32:54 mrg Exp $ .\" .\" $eterna: libbozohttpd.3,v 1.2 2010/05/10 02:48:23 mrg Exp $ .\" @@ -29,7 +29,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 5, 2009 +.Dd February 2, 2017 .Dt LIBBOZOHTTPD 3 .Os .Sh NAME @@ -41,7 +41,7 @@ .In bozohttpd.h .Ft int .Fo bozo_set_pref -.Fa "bozoprefs_t *prefs" "char *name" "char *value" +.Fa "bozohttpd_t *httpd" "bozoprefs_t *prefs" "char *name" "char *value" .Fc .Ft char * .Fo bozo_get_pref
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Fri Feb 3 23:16:38 UTC 2017 Modified Files: src/bin/sh: redir.c Log Message: Fiddle the (new) fdflags implementation: Remove some unnecessary cuteness that limited error reporting. Permit just one -s arg to fdflags Be deterministic in the case of fdflags -s +cloexec,-cloexec 0 (and similar) - use the last specified, always. Allow: FD_0_FLAGS=$( fdflags -v 0 ) # do stuff, manipulating the flags fdflags -s "FD_0_FLAGS" 0 to save/restore flags for a fd. Correctly mask result of fcntl(fd, F_GETFD) with FD_CLOEXEC as the specs require before deciding close on exec is set. Improve portability as a tool, don't assume strtoi(), nor __arraycount() and avoid needlessly requiring recent C versions (ie: there's no need to sprinkle declarations in the middle of the code, it just makes them hard to find, and benefits nothing.) Still to do: As currently implemented, both user, and shell internal fds are reported, and can be manipulated. Allowing users to touch the shell's internal fds is bogus, and providing this easy way to allow users to discover which values they have is poor. Fixing this means getting rid of the use of fcntl(F_MAXFD) and replacing it with a shell maintained memory of what fds the user (script) has allocated. The shell's fd manipulation really still needs major work (including properly fixing bin/48875) To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/bin/sh/redir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/sh/redir.c diff -u src/bin/sh/redir.c:1.50 src/bin/sh/redir.c:1.51 --- src/bin/sh/redir.c:1.50 Thu Feb 2 20:00:40 2017 +++ src/bin/sh/redir.c Fri Feb 3 23:16:38 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: redir.c,v 1.50 2017/02/02 20:00:40 christos Exp $ */ +/* $NetBSD: redir.c,v 1.51 2017/02/03 23:16:38 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)redir.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: redir.c,v 1.50 2017/02/02 20:00:40 christos Exp $"); +__RCSID("$NetBSD: redir.c,v 1.51 2017/02/03 23:16:38 kre Exp $"); #endif #endif /* not lint */ @@ -65,6 +65,7 @@ __RCSID("$NetBSD: redir.c,v 1.50 2017/02 #include "redir.h" #include "output.h" #include "memalloc.h" +#include "mystring.h" #include "error.h" @@ -554,7 +555,7 @@ to_upper_fd(int fd) return fd; } -static const struct { +static const struct flgnames { const char *name; uint32_t value; } nv[] = { @@ -591,6 +592,7 @@ static const struct { #ifdef O_CLOEXEC { "cloexec", O_CLOEXEC }, #endif + { 0, 0 } }; #define ALLFLAGS (O_APPEND|O_ASYNC|O_SYNC|O_NONBLOCK|O_DSYNC|O_RSYNC|\ O_ALT_IO|O_DIRECT|O_NOSIGPIPE|O_CLOEXEC) @@ -610,76 +612,81 @@ getflags(int fd, int p) return -1; error("Can't get flags for fd=%d (%s)", fd, strerror(errno)); } - if (c) + if (c & FD_CLOEXEC) f |= O_CLOEXEC; return f & ALLFLAGS; } static void -printone(int fd, int p, int verbose) +printone(int fd, int p, int verbose, int pfd) { int f = getflags(fd, p); + const struct flgnames *fn; if (f == -1) return; - outfmt(out1, "%d:", fd); - for (size_t i = 0; i < __arraycount(nv); i++) { - if (f & nv[i].value) { - outfmt(out1, "%s%s", verbose ? "+" : "", nv[i].name); - f &= ~nv[i].value; + if (pfd) + outfmt(out1, "%d: ", fd); + for (fn = nv; fn->name; fn++) { + if (f & fn->value) { + outfmt(out1, "%s%s", verbose ? "+" : "", fn->name); + f &= ~fn->value; } else if (verbose) - outfmt(out1, "-%s", nv[i].name); + outfmt(out1, "-%s", fn->name); else continue; - if (f || (verbose && i != __arraycount(nv) - 1)) + if (f || (verbose && fn[1].name)) outfmt(out1, ","); } + if (verbose && f) /* f should be normally be 0 */ + outfmt(out1, " +%#x", f); outfmt(out1, "\n"); } -static int +static void parseflags(char *s, int *p, int *n) { - int f = 0, *v; + int *v, *w; + const struct flgnames *fn; *p = 0; *n = 0; for (s = strtok(s, ","); s; s = strtok(NULL, ",")) { - size_t i; - switch (*s) { + switch (*s++) { case '+': v = p; - s++; + w = n; break; case '-': v = n; - s++; + w = p; break; default: - v = - break; + error("Missing +/- indicator before flag %s", s-1); } - for (i = 0; i < __arraycount(nv); i++) - if (strcmp(s, nv[i].name) == 0) { -*v |= nv[i].value; + for (fn = nv; fn->name; fn++) + if (strcmp(s, fn->name) == 0) { +*v |= fn->value; +*w &=~ fn->value; break; } - if (i == __arraycount(nv)) + if (fn->name == 0) error("Bad flag `%s'", s); } - return f; } static void setone(int fd, int pos, int neg, int verbose) { int f = getflags(fd, 1); + int n, cloexec; + if (f == -1) return; - int cloexec = -1; + cloexec = -1; if ((pos & O_CLOEXEC) && !(f & O_CLOEXEC)) cloexec = FD_CLOEXEC; if ((neg &
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Fri Feb 3 22:29:51 UTC 2017 Modified Files: src/sys/compat/linux/common: linux_socketcall.h Log Message: New versions of linux on arm and others have both socketcall and separate syscalls... To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/compat/linux/common/linux_socketcall.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/common/linux_socketcall.h diff -u src/sys/compat/linux/common/linux_socketcall.h:1.19 src/sys/compat/linux/common/linux_socketcall.h:1.20 --- src/sys/compat/linux/common/linux_socketcall.h:1.19 Fri Feb 3 11:57:39 2017 +++ src/sys/compat/linux/common/linux_socketcall.h Fri Feb 3 17:29:51 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.h,v 1.19 2017/02/03 16:57:39 christos Exp $ */ +/* $NetBSD: linux_socketcall.h,v 1.20 2017/02/03 22:29:51 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -68,6 +68,8 @@ /* Used on: arm, i386, m68k, mips, ppc, sparc, sparc64 */ /* Used for COMPAT_LINUX32 on amd64 */ /* Not used on: alpha */ +#include +#include /* * Values passed to the Linux socketcall() syscall, determining the actual @@ -109,19 +111,24 @@ struct linux_socketcall_dummy_args { void *dummy_ptrs[3]; /* Max 3 pointers */ }; +#ifndef LINUX_SYS_socket struct linux_sys_socket_args { syscallarg(int) domain; syscallarg(int) type; syscallarg(int) protocol; }; +#endif +#ifndef LINUX_SYS_socketpair struct linux_sys_socketpair_args { syscallarg(int) domain; syscallarg(int) type; syscallarg(int) protocol; syscallarg(int *) rsv; }; +#endif +#ifndef LINUX_SYS_sendto struct linux_sys_sendto_args { syscallarg(int) s; syscallarg(void *) msg; @@ -130,7 +137,9 @@ struct linux_sys_sendto_args { syscallarg(struct osockaddr *) to; syscallarg(int) tolen; }; +#endif +#ifndef LINUX_SYS_recvfrom struct linux_sys_recvfrom_args { syscallarg(int) s; syscallarg(void *) buf; @@ -139,7 +148,9 @@ struct linux_sys_recvfrom_args { syscallarg(struct osockaddr *) from; syscallarg(int *) fromlenaddr; }; +#endif +#ifndef LINUX_SYS_setsockopt struct linux_sys_setsockopt_args { syscallarg(int) s; syscallarg(int) level; @@ -147,7 +158,9 @@ struct linux_sys_setsockopt_args { syscallarg(void *) optval; syscallarg(int) optlen; }; +#endif +#ifndef LINUX_SYS_getsockopt struct linux_sys_getsockopt_args { syscallarg(int) s; syscallarg(int) level; @@ -155,82 +168,108 @@ struct linux_sys_getsockopt_args { syscallarg(void *) optval; syscallarg(int *) optlen; }; +#endif +#ifndef LINUX_SYS_bind struct linux_sys_bind_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; syscallarg(int) namelen; }; +#endif +#ifndef LINUX_SYS_connect struct linux_sys_connect_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; syscallarg(int) namelen; }; +#endif +#ifndef LINUX_SYS_accept struct linux_sys_accept_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; syscallarg(int *) anamelen; }; +#endif +#ifndef LINUX_SYS_getsockname struct linux_sys_getsockname_args { syscallarg(int) fdes; syscallarg(struct osockaddr *) asa; syscallarg(int *) alen; }; +#endif +#ifndef LINUX_SYS_getpeername struct linux_sys_getpeername_args { syscallarg(int) fdes; syscallarg(struct osockaddr *) asa; syscallarg(int *) alen; }; +#endif +#ifndef LINUX_SYS_sendmsg struct linux_sys_sendmsg_args { syscallarg(int) s; syscallarg(struct linux_msghdr *) msg; syscallarg(u_int) flags; }; +#endif +#ifndef LINUX_SYS_recvmsg struct linux_sys_recvmsg_args { syscallarg(int) s; syscallarg(struct linux_msghdr *) msg; syscallarg(u_int) flags; }; +#endif +#ifndef LINUX_SYS_send struct linux_sys_send_args { syscallarg(int) s; syscallarg(void *) buf; syscallarg(int) len; syscallarg(int) flags; }; +#endif +#ifndef LINUX_SYS_recv struct linux_sys_recv_args { syscallarg(int) s; syscallarg(void *) buf; syscallarg(int) len; syscallarg(int) flags; }; +#endif /* These are only used for their size: */ +#ifndef LINUX_SYS_listen struct linux_sys_listen_args { syscallarg(int) s; syscallarg(int) backlog; }; +#endif +#ifndef LINUX_SYS_shutdown struct linux_sys_shutdown_args { syscallarg(int) s; syscallarg(int) how; }; +#endif +#ifndef LINUX_SYS_accept4 struct linux_sys_accept4_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; syscallarg(int *) anamelen; syscallarg(int) flags; }; +#endif +#ifndef LINUX_SYS_recvmmsg struct linux_sys_recvmmsg_args { syscallarg(int) s; syscallarg(struct linux_mmsghdr *) msgvec; @@ -238,13 +277,16 @@ struct linux_sys_recvmmsg_args { syscallarg(unsigned int) flags; syscallarg(struct linux_timespec *) timeout; }; +#endif +#ifndef LINUX_SYS_sendmmsg struct linux_sys_sendmmsg_args {
CVS commit: src/sbin/mount_nfs
Module Name:src Committed By: christos Date: Fri Feb 3 21:56:01 UTC 2017 Modified Files: src/sbin/mount_nfs: getnfsargs.c Log Message: use the netid value because it could be udp6... To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sbin/mount_nfs/getnfsargs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/mount_nfs/getnfsargs.c diff -u src/sbin/mount_nfs/getnfsargs.c:1.16 src/sbin/mount_nfs/getnfsargs.c:1.17 --- src/sbin/mount_nfs/getnfsargs.c:1.16 Sat Jun 29 18:56:26 2013 +++ src/sbin/mount_nfs/getnfsargs.c Fri Feb 3 16:56:01 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: getnfsargs.c,v 1.16 2013/06/29 22:56:26 christos Exp $ */ +/* $NetBSD: getnfsargs.c,v 1.17 2017/02/03 21:56:01 christos Exp $ */ /* * Copyright (c) 1992, 1993, 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 19 #if 0 static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: getnfsargs.c,v 1.16 2013/06/29 22:56:26 christos Exp $"); +__RCSID("$NetBSD: getnfsargs.c,v 1.17 2017/02/03 21:56:01 christos Exp $"); #endif #endif /* not lint */ @@ -201,8 +201,9 @@ tryagain: * XXX relies on clnt_tcp_create to bind to a reserved * socket. */ + printf("netid=%s\n", netid); clp = clnt_tp_create(hostp, RPCPROG_MNT, mntvers, - mnttcp_ok ? nconf : getnetconfigent("udp")); + mnttcp_ok ? nconf : getnetconfigent(netid)); if (clp == NULL) { if ((opflags & ISBGRND) == 0) { clnt_pcreateerror(
CVS commit: src/lib/libc/sys
Module Name:src Committed By: abhinav Date: Fri Feb 3 21:10:22 UTC 2017 Modified Files: src/lib/libc/sys: madvise.2 Log Message: Add posix_madvise(2) in the NAME section. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/libc/sys/madvise.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/sys/madvise.2 diff -u src/lib/libc/sys/madvise.2:1.28 src/lib/libc/sys/madvise.2:1.29 --- src/lib/libc/sys/madvise.2:1.28 Sat Jul 19 19:26:47 2014 +++ src/lib/libc/sys/madvise.2 Fri Feb 3 21:10:22 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: madvise.2,v 1.28 2014/07/19 19:26:47 dholland Exp $ +.\" $NetBSD: madvise.2,v 1.29 2017/02/03 21:10:22 abhinav Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,8 @@ .Dt MADVISE 2 .Os .Sh NAME -.Nm madvise +.Nm madvise , +.Nm posix_madvise .Nd give advice about use of memory .Sh LIBRARY .Lb libc
CVS commit: src/lib/libc/yp
Module Name:src Committed By: abhinav Date: Fri Feb 3 21:03:05 UTC 2017 Modified Files: src/lib/libc/yp: ypclnt.3 Log Message: Insert comma between two Nm entries. Remove Pp before Bd To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libc/yp/ypclnt.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/yp/ypclnt.3 diff -u src/lib/libc/yp/ypclnt.3:1.26 src/lib/libc/yp/ypclnt.3:1.27 --- src/lib/libc/yp/ypclnt.3:1.26 Sun Mar 4 11:52:32 2012 +++ src/lib/libc/yp/ypclnt.3 Fri Feb 3 21:03:05 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ypclnt.3,v 1.26 2012/03/04 11:52:32 wiz Exp $ +.\" $NetBSD: ypclnt.3,v 1.27 2017/02/03 21:03:05 abhinav Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -41,7 +41,7 @@ .Nm yp_order , .Nm yp_unbind , .Nm yperr_string , -.Nm ypprot_err +.Nm ypprot_err , .Nm yp_setbindtries .Nd Interface to the YP subsystem .Sh LIBRARY @@ -277,7 +277,6 @@ function should return non-zero when it key-value pairs, at which time .Fn yp_all returns a value of 0, and is called with the following arguments: -.Pp .Bd -literal -offset indent int foreach ( int instatus,
CVS commit: src/sys/dev
Module Name:src Committed By: nat Date: Fri Feb 3 20:13:52 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Don't check hardware precision in autoconfig as some drivers e.g vs(4) the hardware precision is 4 bits. Addresses PR/kern 51879: vs(4) audio attach failed. To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300 src/sys/dev/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/audio.c diff -u src/sys/dev/audio.c:1.299 src/sys/dev/audio.c:1.300 --- src/sys/dev/audio.c:1.299 Fri Feb 3 20:07:55 2017 +++ src/sys/dev/audio.c Fri Feb 3 20:13:52 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.299 2017/02/03 20:07:55 nat Exp $ */ +/* $NetBSD: audio.c,v 1.300 2017/02/03 20:13:52 nat Exp $ */ /*- * Copyright (c) 2016 Nathanial Sloss@@ -148,7 +148,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.299 2017/02/03 20:07:55 nat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.300 2017/02/03 20:13:52 nat Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -5966,8 +5966,6 @@ vchan_autoconfig(struct audio_softc *sc) (vc->sc_mpr.s.param. sample_rate != sc->sc_iffreq || vc->sc_mpr.s.param. - precision != sc->sc_precision || -vc->sc_mpr.s.param. channels != sc->sc_channels)) error = EINVAL;
CVS commit: src/sys/dev/ic
Module Name:src Committed By: macallan Date: Fri Feb 3 20:09:49 UTC 2017 Modified Files: src/sys/dev/ic: ct65550.c Log Message: some bugs in chipsfb_putchar_aa(): - fix 64bit padding for scanlines - clean out latch for every scanline now fonts with odd widths look right To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/ct65550.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/ic/ct65550.c diff -u src/sys/dev/ic/ct65550.c:1.12 src/sys/dev/ic/ct65550.c:1.13 --- src/sys/dev/ic/ct65550.c:1.12 Thu Feb 2 19:55:05 2017 +++ src/sys/dev/ic/ct65550.c Fri Feb 3 20:09:49 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ct65550.c,v 1.12 2017/02/02 19:55:05 macallan Exp $ */ +/* $NetBSD: ct65550.c,v 1.13 2017/02/03 20:09:49 macallan Exp $ */ /* * Copyright (c) 2006 Michael Lorenz @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ct65550.c,v 1.12 2017/02/02 19:55:05 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ct65550.c,v 1.13 2017/02/03 20:09:49 macallan Exp $"); #include #include @@ -601,7 +601,7 @@ chipsfb_putchar_aa(void *cookie, int row struct chipsfb_softc *sc = scr->scr_cookie; uint32_t bg, latch = 0, bg8, fg8, pixel, dst, stride, size; int i, l, x, y, wi, he, r, g, b, aval; - int r1, g1, b1, r0, g0, b0, fgo, bgo, off; + int r1, g1, b1, r0, g0, b0, fgo, bgo, off, pad; uint8_t *data8; int rv; @@ -664,8 +664,11 @@ chipsfb_putchar_aa(void *cookie, int row bg8 = R3G3B2(r0, g0, b0); fg8 = R3G3B2(r1, g1, b1); + /* see if we need to pad lines to 64bit */ + pad = (wi + 3) & 4; for (l = 0; l < he; l++) { off = 0; + latch = 0; for (i = 0; i < wi; i++) { aval = *data8; if (aval == 0) { @@ -684,7 +687,8 @@ chipsfb_putchar_aa(void *cookie, int row off += 8; /* write in 32bit chunks */ if ((i & 3) == 3) { -chipsfb_write32(sc, CT_OFF_DATA - CT_OFF_BITBLT, latch); +chipsfb_write32(sc, +CT_OFF_DATA - CT_OFF_BITBLT, latch); latch = 0; off = 0; } @@ -695,7 +699,7 @@ chipsfb_putchar_aa(void *cookie, int row chipsfb_write32(sc, CT_OFF_DATA - CT_OFF_BITBLT, latch); } /* this chip needs scanlines 64bit aligned */ - if (wi & 7) chipsfb_write32(sc, CT_OFF_DATA - CT_OFF_BITBLT, 0); + if (pad) chipsfb_write32(sc, CT_OFF_DATA - CT_OFF_BITBLT, 0); } if (rv == GC_ADD) {
CVS commit: src/sys/dev
Module Name:src Committed By: nat Date: Fri Feb 3 20:07:55 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Improved drain function for vc[0]. No need to drain vc[0] for drivers written with start_output. To generate a diff of this commit: cvs rdiff -u -r1.298 -r1.299 src/sys/dev/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/audio.c diff -u src/sys/dev/audio.c:1.298 src/sys/dev/audio.c:1.299 --- src/sys/dev/audio.c:1.298 Fri Jan 27 05:05:51 2017 +++ src/sys/dev/audio.c Fri Feb 3 20:07:55 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.298 2017/01/27 05:05:51 nat Exp $ */ +/* $NetBSD: audio.c,v 1.299 2017/02/03 20:07:55 nat Exp $ */ /*- * Copyright (c) 2016 Nathanial Sloss@@ -148,7 +148,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.298 2017/01/27 05:05:51 nat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.299 2017/02/03 20:07:55 nat Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -1761,7 +1761,7 @@ audio_init_ringbuffer(struct audio_softc rp->copying = false; rp->needfill = false; rp->mmapped = false; - memset(rp->s.start, 0, AU_RING_SIZE); + memset(rp->s.start, 0, blksize * 2); } int @@ -2084,9 +2084,11 @@ audio_drain(struct audio_softc *sc, int return 0; used = audio_stream_get_used(>s); + if (n == 0) + used += audio_stream_get_used(>sc_pr.s); for (i = 0; i < sc->sc_vchan[n]->sc_npfilters; i++) used += audio_stream_get_used(>sc_vchan[n]->sc_pstreams[i]); - if (used <= 0) + if (used <= 0 || (n == 0 && sc->hw_if->trigger_output == NULL)) return 0; if (n != 0 && !sc->sc_vchan[n]->sc_pbus) { @@ -2101,8 +2103,19 @@ audio_drain(struct audio_softc *sc, int error = audiostartp(sc, n); if (error) return error; - } else if (n == 0) - goto silence_buffer; + } else if (n == 0) { + used = cb->blksize * 2; + while (used > 0) { + cc = sc->sc_pr.s.end - sc->sc_pr.s.inp; + if (cc > used) +cc = used; + audio_fill_silence(>s.param, sc->sc_pr.s.inp, cc); + sc->sc_pr.s.inp = audio_stream_add_inp(>sc_pr.s, + sc->sc_pr.s.inp, cc); + used -= cc; + } + mix_write(sc); + } /* * Play until a silence block has been played, then we * know all has been drained. @@ -2116,6 +2129,9 @@ audio_drain(struct audio_softc *sc, int } #endif sc->sc_vchan[n]->sc_draining = true; + + i = 0; +drain_again: drops = cb->drops; error = 0; while (cb->drops == drops && !error) { @@ -2128,21 +2144,12 @@ audio_drain(struct audio_softc *sc, int if (sc->sc_dying) error = EIO; } + i++; + if (n == 0 && i < 2) + goto drain_again; -silence_buffer: - - used = 0; - if (sc->sc_opens == 1) { - cb = >sc_pr; - cc = cb->blksize; - - while (used < cb->s.bufsize) { - memset(sc->sc_pr.s.start, 0, cc); - mix_write(sc); - used += cc; - } - } sc->sc_vchan[n]->sc_draining = false; + return error; } @@ -3368,18 +3375,30 @@ audio_pint(void *v) { struct audio_softc *sc; struct virtual_channel *vc; + int blksize, i, used; sc = v; vc = sc->sc_vchan[0]; + blksize = vc->sc_mpr.blksize; if (sc->sc_dying == true) return; - if (audio_stream_get_used(>sc_pr.s) < vc->sc_mpr.blksize) + used = audio_stream_get_used(>sc_mpr.s); + for (i = 0; i < vc->sc_npfilters; i++) + used += audio_stream_get_used(>sc_pstreams[i]); + + if (audio_stream_get_used(>sc_pr.s) sc_draining == true && used <= 0) { + vc->sc_mpr.drops += blksize; + cv_broadcast(>sc_wchan); + } + vc->sc_mpr.s.outp = audio_stream_add_outp(>sc_mpr.s, - vc->sc_mpr.s.outp, vc->sc_mpr.blksize); + vc->sc_mpr.s.outp, blksize); + mix_write(sc); wake_mix: @@ -5767,7 +5786,6 @@ audio_play_thread(void *v) audio_mix(sc); } - } void
CVS commit: src/sys/lib/libgnuefi
Module Name:src Committed By: roy Date: Fri Feb 3 17:28:58 UTC 2017 Modified Files: src/sys/lib/libgnuefi: Makefile Log Message: Fix build with clang. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/lib/libgnuefi/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/lib/libgnuefi/Makefile diff -u src/sys/lib/libgnuefi/Makefile:1.5 src/sys/lib/libgnuefi/Makefile:1.6 --- src/sys/lib/libgnuefi/Makefile:1.5 Tue Jan 24 11:09:14 2017 +++ src/sys/lib/libgnuefi/Makefile Fri Feb 3 17:28:58 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2017/01/24 11:09:14 nonaka Exp $ +# $NetBSD: Makefile,v 1.6 2017/02/03 17:28:58 roy Exp $ LIB= gnuefi LIBISPRIVATE?= yes @@ -56,14 +56,13 @@ SRCS+= boxdraw.c smbios.c console.c crc. rtlock.c efirtlib.c rtstr.c vm.c rtdata.c \ initplat.c math.c +CWARNFLAGS.gcc+= -Wno-unused-but-set-variable COPTS.boxdraw.c= -Wno-missing-field-initializers COPTS.guid.c= -Wno-missing-field-initializers COPTS.smbios.c= -Wno-int-to-pointer-cast -COPTS.dpath.c= -Wno-missing-prototypes -Wno-unused-but-set-variable +COPTS.dpath.c= -Wno-missing-prototypes COPTS.print.c= -Wno-missing-prototypes -COPTS.hw.c= -Wno-shadow -Wno-unused-but-set-variable -COPTS.event.c= -Wno-unused-but-set-variable -COPTS.hand.c= -Wno-unused-but-set-variable +COPTS.hw.c= -Wno-shadow .include
CVS commit: src/sys/arch/i386/stand/efiboot
Module Name:src Committed By: roy Date: Fri Feb 3 17:24:43 UTC 2017 Modified Files: src/sys/arch/i386/stand/efiboot: Makefile.efiboot Log Message: Fix build with clang. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/stand/efiboot/Makefile.efiboot Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/i386/stand/efiboot/Makefile.efiboot diff -u src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.1 src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.2 --- src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.1 Tue Jan 24 11:09:14 2017 +++ src/sys/arch/i386/stand/efiboot/Makefile.efiboot Fri Feb 3 17:24:43 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.efiboot,v 1.1 2017/01/24 11:09:14 nonaka Exp $ +# $NetBSD: Makefile.efiboot,v 1.2 2017/02/03 17:24:43 roy Exp $ S= ${.CURDIR}/../../../../.. @@ -46,8 +46,10 @@ CPPFLAGS+= -I$S -I${.CURDIR} -I${.CURDIR CPPFLAGS+= -I${.OBJDIR} CPPFLAGS+= -I${.CURDIR}/../../lib +CWARNFLAGS.clang+= -Wno-invalid-noreturn #panic.c COPTS+= -ffreestanding -fPIC -fshort-wchar -fno-strict-aliasing -fno-builtin -COPTS+= -fno-stack-protector -falign-functions=16 +COPTS+= -fno-stack-protector +COPTS+= ${${ACTIVE_CC} == "gcc":? -falign-functions=16 :} CPPFLAGS+= -nostdinc -D_STANDALONE CPPFLAGS+= -DEFIBOOT
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Fri Feb 3 16:57:39 UTC 2017 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socket.h linux_socketcall.c linux_socketcall.h Log Message: add sendmmsg and recvmmsg To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/sys/compat/linux/common/linux_socket.c cvs rdiff -u -r1.22 -r1.23 src/sys/compat/linux/common/linux_socket.h cvs rdiff -u -r1.46 -r1.47 src/sys/compat/linux/common/linux_socketcall.c cvs rdiff -u -r1.18 -r1.19 src/sys/compat/linux/common/linux_socketcall.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/common/linux_socket.c diff -u src/sys/compat/linux/common/linux_socket.c:1.136 src/sys/compat/linux/common/linux_socket.c:1.137 --- src/sys/compat/linux/common/linux_socket.c:1.136 Fri Feb 3 08:08:08 2017 +++ src/sys/compat/linux/common/linux_socket.c Fri Feb 3 11:57:39 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.136 2017/02/03 13:08:08 christos Exp $ */ +/* $NetBSD: linux_socket.c,v 1.137 2017/02/03 16:57:39 christos Exp $ */ /*- * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.136 2017/02/03 13:08:08 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.137 2017/02/03 16:57:39 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -82,6 +82,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_socket #include #include #include +#include #include #include #if !defined(__alpha__) && !defined(__amd64__) @@ -124,8 +125,8 @@ static int linux_get_sa(struct lwp *, in static int linux_sa_put(struct osockaddr *osa); static int linux_to_bsd_msg_flags(int); static int bsd_to_linux_msg_flags(int); -static void linux_to_bsd_msghdr(struct linux_msghdr *, struct msghdr *); -static void bsd_to_linux_msghdr(struct msghdr *, struct linux_msghdr *); +static void linux_to_bsd_msghdr(const struct linux_msghdr *, struct msghdr *); +static void bsd_to_linux_msghdr(const struct msghdr *, struct linux_msghdr *); static const int linux_to_bsd_domain_[LINUX_AF_MAX] = { AF_UNSPEC, @@ -433,7 +434,7 @@ linux_sys_sendto(struct lwp *l, const st } static void -linux_to_bsd_msghdr(struct linux_msghdr *lmsg, struct msghdr *bmsg) +linux_to_bsd_msghdr(const struct linux_msghdr *lmsg, struct msghdr *bmsg) { bmsg->msg_name = lmsg->msg_name; bmsg->msg_namelen = lmsg->msg_namelen; @@ -445,7 +446,7 @@ linux_to_bsd_msghdr(struct linux_msghdr } static void -bsd_to_linux_msghdr(struct msghdr *bmsg, struct linux_msghdr *lmsg) +bsd_to_linux_msghdr(const struct msghdr *bmsg, struct linux_msghdr *lmsg) { lmsg->msg_name = bmsg->msg_name; lmsg->msg_namelen = bmsg->msg_namelen; @@ -1742,3 +1743,190 @@ linux_sys_accept4(struct lwp *l, const s return 0; } + +int +linux_sys_sendmmsg(struct lwp *l, const struct linux_sys_sendmmsg_args *uap, +register_t *retval) +{ + /* { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + } */ + struct linux_mmsghdr lmsg; + struct mmsghdr bmsg; + struct socket *so; + file_t *fp; + struct msghdr *msg = _hdr; + int error, s; + unsigned int vlen, flags, dg; + + if ((flags = linux_to_bsd_msg_flags(SCARG(uap, flags))) == -1) + return EINVAL; + + flags = (flags & MSG_USERFLAGS) | MSG_IOVUSRSPACE; + + s = SCARG(uap, s); + if ((error = fd_getsock1(s, , )) != 0) + return error; + + vlen = SCARG(uap, vlen); + if (vlen > 1024) + vlen = 1024; + + for (dg = 0; dg < vlen;) { + error = copyin(SCARG(uap, msgvec) + dg, , sizeof(lmsg)); + if (error) + break; + linux_to_bsd_msghdr(_hdr, _hdr); + + msg->msg_flags = flags; + + error = do_sys_sendmsg_so(l, s, so, fp, msg, flags, + , sizeof(msg), retval); + if (error) + break; + + ktrkuser("msghdr", msg, sizeof *msg); + lmsg.msg_len = *retval; + error = copyout(, SCARG(uap, msgvec) + dg, sizeof(lmsg)); + if (error) + break; + dg++; + + } + + *retval = dg; + if (error) + so->so_error = error; + + fd_putfile(s); + + /* + * If we succeeded at least once, return 0, hopefully so->so_error + * will catch it next time. + */ + if (dg) + return 0; + return error; +} + +int +linux_sys_recvmmsg(struct lwp *l, const struct linux_sys_recvmmsg_args *uap, +register_t *retval) +{ + /* { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct linux_timespec *) timeout; + } */ + struct linux_mmsghdr lmsg; + struct mmsghdr bmsg; + struct socket *so; + struct msghdr *msg = _hdr; + int error, s; + struct mbuf *from, *control; + struct timespec ts, now; + struct linux_timespec lts; + unsigned int vlen, flags, dg; + + if (SCARG(uap, timeout)) { + error = copyin(SCARG(uap, timeout), ,
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Fri Feb 3 16:56:55 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.80 -r1.81 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.81 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.82 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.81 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Fri Feb 3 11:56:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.81 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.82 2017/02/03 16:56:55 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -657,9 +657,15 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 317 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 343 + /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 344 -#define LINUX_SYS_MAXSYSCALL 345 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 349 + +#define LINUX_SYS_MAXSYSCALL 383 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.81 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.82 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.81 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Fri Feb 3 11:56:55 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.82 2017/02/03 16:56:55 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.82 2017/02/03 16:56:55 christos Exp $"); #include #include @@ -1408,8 +1408,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 342 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 343 = filler */ + ns(struct linux_sys_recvmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_recvmmsg + }, /* 343 = recvmmsg */ { ns(struct linux_sys_accept4_args), .sy_flags = SYCALL_ARG_PTR, @@ -1428,8 +1430,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 348 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 349 = filler */ + ns(struct linux_sys_sendmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_sendmmsg + }, /* 349 = sendmmsg */ { .sy_call = linux_sys_nosys, }, /* 350 = filler */ Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.80 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.81 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.80 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Fri Feb 3 11:56:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.80 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.81 2017/02/03 16:56:55 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1024,6 +1024,15 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Fri Feb 3 16:56:46 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: add unimple sendmmsg secvmmsg To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.71 src/sys/compat/linux/arch/powerpc/syscalls.master:1.72 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.71 Fri Feb 3 02:57:11 2017 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Fri Feb 3 11:56:46 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp $ + $NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -542,28 +542,69 @@ 320 UNIMPL preadv 321 UNIMPL pwritev 322 UNIMPL rt_tgsigqueueinfo -323 UNIMPL -324 UNIMPL -325 UNIMPL -326 UNIMPL -327 UNIMPL -328 UNIMPL -329 UNIMPL -330 UNIMPL -331 UNIMPL -332 UNIMPL -333 UNIMPL -334 UNIMPL -335 UNIMPL -336 UNIMPL -337 UNIMPL -338 UNIMPL -339 UNIMPL -340 UNIMPL -341 UNIMPL -342 UNIMPL -343 UNIMPL +323 UNIMPL fanotify_init +324 UNIMPL fanotify_mark +325 UNIMPL prlimit64 +326 UNIMPL socket +327 UNIMPL bind +328 UNIMPL connect +329 UNIMPL listen +330 UNIMPL accept +331 UNIMPL getsockname +332 UNIMPL getpeername +333 UNIMPL socketpair +334 UNIMPL send +335 UNIMPL sendto +336 UNIMPL recv +337 UNIMPL recvfrom +338 UNIMPL shutdown +339 UNIMPL setsockopt +340 UNIMPL getsockopt +341 UNIMPL sendmsg +342 UNIMPL recvmsg +343 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 344 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +345 UNIMPL name_to_handle_at +346 UNIMPL open_by_handle_at +347 UNIMPL clock_adjtime +348 UNIMPL syncfs +349 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +350 UNIMPL setns +351 UNIMPL process_vm_readv +352 UNIMPL process_vm_writev +353 UNIMPL finit_module +354 UNIMPL kcmp +355 UNIMPL sched_setattr +356 UNIMPL sched_getattr +357 UNIMPL renameat2 +358 UNIMPL seccomp +359 UNIMPL getrandom +360 UNIMPL memfd_create +361 UNIMPL bpf +362 UNIMPL execveat +363 UNIMPL switch_endian +364 UNIMPL userfaultfd +365 UNIMPL membarrier +366 UNIMPL +367 UNIMPL +368 UNIMPL +369 UNIMPL +370 UNIMPL +371 UNIMPL +372 UNIMPL +373 UNIMPL +374 UNIMPL +375 UNIMPL +376 UNIMPL +377 UNIMPL +378 UNIMPL mlock2 +379 UNIMPL copy_file_range +380 UNIMPL preadv2 +381 UNIMPL pwritev2 +382 UNIMPL kexec_file_load
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Fri Feb 3 16:49:19 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.72 src/sys/compat/linux/arch/mips/linux_syscall.h:1.73 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.72 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Fri Feb 3 11:49:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.72 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.73 2017/02/03 16:49:19 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -691,6 +691,12 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 334 -#define LINUX_SYS_MAXSYSCALL 336 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 335 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 344 + +#define LINUX_SYS_MAXSYSCALL 367 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.71 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.72 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.71 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Fri Feb 3 11:49:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1057,6 +1057,23 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + /* * System call prototypes. */ @@ -1511,4 +1528,8 @@ int linux_sys_pipe2(struct lwp *, const int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.71 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.72 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.71 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Fri Feb 3 11:49:19 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $"); #if defined(_KERNEL_OPT) #include @@ -365,38 +365,38 @@ const char *const linux_syscallnames[] = /* 332 */ "#332 (unimplemented rt_tgsigqueueinfo)", /* 333 */ "#333 (unimplemented
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Fri Feb 3 16:49:08 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master Log Message: add missing unimpl and sendmmsg and recvmmsg To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.62 src/sys/compat/linux/arch/mips/syscalls.master:1.63 --- src/sys/compat/linux/arch/mips/syscalls.master:1.62 Thu Feb 2 10:35:46 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Fri Feb 3 11:49:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp $ + $NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -546,4 +546,40 @@ 334 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } -335 UNIMPL recvmmsg +335 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } +336 UNIMPL getdents64 +337 UNIMPL fanotify_init +338 UNIMPL fanotify_mark +339 UNIMPL prlimit64 +340 UNIMPL name_to_handle_at +341 UNIMPL open_by_handle_at +342 UNIMPL clock_adjtime +343 UNIMPL syncfs +344 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +345 UNIMPL setns +346 UNIMPL process_vm_readv +347 UNIMPL process_vm_writev +348 UNIMPL kcmp +349 UNIMPL finit_module +350 UNIMPL sched_setattr +351 UNIMPL sched_getattr +352 UNIMPL renameat2 +353 UNIMPL seccomp +354 UNIMPL getrandom +355 UNIMPL memfd_create +356 UNIMPL bpf +357 UNIMPL execveat +358 UNIMPL userfaultfd +359 UNIMPL membarrier +360 UNIMPL mlock2 +361 UNIMPL copy_file_range +362 UNIMPL preadv2 +363 UNIMPL pwritev2 +364 UNIMPL pkey_mprotect +365 UNIMPL pkey_alloc +366 UNIMPL pkey_free +
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: christos Date: Fri Feb 3 16:44:21 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.102 -r1.103 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.103 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.104 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.103 Fri Feb 3 02:54:39 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Fri Feb 3 11:44:21 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.103 2017/02/03 07:54:39 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 16:44:21 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -723,6 +723,12 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 361 -#define LINUX_SYS_MAXSYSCALL 362 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 371 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 372 + +#define LINUX_SYS_MAXSYSCALL 379 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.103 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.104 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.103 Fri Feb 3 02:54:39 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Fri Feb 3 11:44:21 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -391,48 +391,48 @@ const char *const linux_syscallnames[] = /* 334 */ "#334 (unimplemented get_thread_area)", /* 335 */ "#335 (unimplemented atomic_cmpxchg_32)", /* 336 */ "#336 (unimplemented atomic_barrier)", - /* 337 */ "#337 (unimplemented)", - /* 338 */ "#338 (unimplemented)", - /* 339 */ "#339 (unimplemented)", - /* 340 */ "#340 (unimplemented)", - /* 341 */ "#341 (unimplemented)", - /* 342 */ "#342 (unimplemented)", - /* 343 */ "#343 (unimplemented)", - /* 344 */ "#344 (unimplemented)", - /* 345 */ "#345 (unimplemented)", - /* 346 */ "#346 (unimplemented)", - /* 347 */ "#347 (unimplemented)", - /* 348 */ "#348 (unimplemented)", - /* 349 */ "#349 (unimplemented)", - /* 350 */ "#350 (unimplemented)", - /* 351 */ "#351 (unimplemented)", - /* 352 */ "#352 (unimplemented)", - /* 353 */ "#353 (unimplemented)", - /* 354 */ "#354 (unimplemented)", - /* 355 */ "#355 (unimplemented)", - /* 356 */ "#356 (unimplemented)", - /* 357 */ "#357 (unimplemented)", - /* 358 */ "#358 (unimplemented)", - /* 359 */ "#359 (unimplemented)", - /* 360 */ "#360 (unimplemented)", + /* 337 */ "#337 (unimplemented fanotify_init)", + /* 338 */ "#338 (unimplemented fanotify_mark)", + /* 339 */ "#339 (unimplemented prlimit64)", + /* 340 */ "#340 (unimplemented name_to_handle_at)", + /* 341 */ "#341 (unimplemented open_by_handle_at)", + /* 342 */ "#342 (unimplemented clock_adjtime)", + /* 343 */ "#343 (unimplemented syncfs)", + /* 344 */ "#344 (unimplemented setns)", + /* 345 */ "#345 (unimplemented process_vm_readv)", + /* 346 */ "#346 (unimplemented process_vm_writev)", + /* 347 */ "#347 (unimplemented kcmp)", + /* 348 */ "#348 (unimplemented finit_module)", + /* 349 */ "#349 (unimplemented sched_setattr)", + /* 350 */ "#350 (unimplemented sched_getattr)", + /* 351 */ "#351 (unimplemented renameat2)", + /* 352 */ "#352 (unimplemented getrandom)", + /* 353 */ "#353 (unimplemented memfd_create)", + /* 354 */ "#354 (unimplemented bpf)", + /* 355 */
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: christos Date: Fri Feb 3 16:44:12 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: syscalls.master Log Message: and send and recv mmsg and unimpl To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/m68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.92 src/sys/compat/linux/arch/m68k/syscalls.master:1.93 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.92 Fri Feb 3 02:54:26 2017 +++ src/sys/compat/linux/arch/m68k/syscalls.master Fri Feb 3 11:44:12 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp $ + $NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -558,31 +558,51 @@ 334 UNIMPL get_thread_area 335 UNIMPL atomic_cmpxchg_32 336 UNIMPL atomic_barrier -337 UNIMPL -338 UNIMPL -339 UNIMPL -340 UNIMPL -341 UNIMPL -342 UNIMPL -343 UNIMPL -344 UNIMPL -345 UNIMPL -346 UNIMPL -347 UNIMPL -348 UNIMPL -349 UNIMPL -350 UNIMPL -351 UNIMPL -352 UNIMPL -353 UNIMPL -354 UNIMPL -355 UNIMPL -356 UNIMPL -357 UNIMPL -358 UNIMPL -359 UNIMPL -360 UNIMPL +337 UNIMPL fanotify_init +338 UNIMPL fanotify_mark +339 UNIMPL prlimit64 +340 UNIMPL name_to_handle_at +341 UNIMPL open_by_handle_at +342 UNIMPL clock_adjtime +343 UNIMPL syncfs +344 UNIMPL setns +345 UNIMPL process_vm_readv +346 UNIMPL process_vm_writev +347 UNIMPL kcmp +348 UNIMPL finit_module +349 UNIMPL sched_setattr +350 UNIMPL sched_getattr +351 UNIMPL renameat2 +352 UNIMPL getrandom +353 UNIMPL memfd_create +354 UNIMPL bpf +355 UNIMPL execveat +356 UNIMPL socket +357 UNIMPL socketpair +358 UNIMPL bind +359 UNIMPL connect +360 UNIMPL listen 361 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +362 UNIMPL getsockopt +363 UNIMPL setsockopt +364 UNIMPL getsockname +365 UNIMPL getpeername +366 UNIMPL sendto +367 UNIMPL sendmsg +368 UNIMPL recvfrom +369 UNIMPL recvmsg +370 UNIMPL shutdown +371 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } +372 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +373 UNIMPL userfaultfd +374 UNIMPL membarrier +375 UNIMPL mlock2 +376 UNIMPL copy_file_range +377 UNIMPL preadv2 +378 UNIMPL pwritev2
CVS commit: src/sys/arch/i386/stand/efiboot
Module Name:src Committed By: roy Date: Fri Feb 3 16:42:26 UTC 2017 Modified Files: src/sys/arch/i386/stand/efiboot: boot.c efimemory.c Log Message: rows is a uint ... it will always be greater than or equal to 0. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/stand/efiboot/boot.c \ src/sys/arch/i386/stand/efiboot/efimemory.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/i386/stand/efiboot/boot.c diff -u src/sys/arch/i386/stand/efiboot/boot.c:1.1 src/sys/arch/i386/stand/efiboot/boot.c:1.2 --- src/sys/arch/i386/stand/efiboot/boot.c:1.1 Tue Jan 24 11:09:14 2017 +++ src/sys/arch/i386/stand/efiboot/boot.c Fri Feb 3 16:42:26 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.1 2017/01/24 11:09:14 nonaka Exp $ */ +/* $NetBSD: boot.c,v 1.2 2017/02/03 16:42:26 roy Exp $ */ /*- * Copyright (c) 2016 Kimihiro Nonaka@@ -540,7 +540,7 @@ command_devpath(char *arg) Print(L"%d:%d:%s\n", DevicePathType(dp), DevicePathSubType(dp), path); FreePool(path); - if (rows >= 0 && ++row >= rows) { + if (++row >= rows) { row = 0; Print(L"Press Any Key to continue :"); (void) awaitkey(-1, 0); @@ -607,7 +607,7 @@ command_efivar(char *arg) val ? val : L"(null)"); FreePool(val); - if (rows >= 0 && ++row >= rows) { + if (++row >= rows) { row = 0; Print(L"Press Any Key to continue :"); (void) awaitkey(-1, 0); Index: src/sys/arch/i386/stand/efiboot/efimemory.c diff -u src/sys/arch/i386/stand/efiboot/efimemory.c:1.1 src/sys/arch/i386/stand/efiboot/efimemory.c:1.2 --- src/sys/arch/i386/stand/efiboot/efimemory.c:1.1 Tue Jan 24 11:09:14 2017 +++ src/sys/arch/i386/stand/efiboot/efimemory.c Fri Feb 3 16:42:26 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: efimemory.c,v 1.1 2017/01/24 11:09:14 nonaka Exp $ */ +/* $NetBSD: efimemory.c,v 1.2 2017/02/03 16:42:26 roy Exp $ */ /*- * Copyright (c) 2016 Kimihiro Nonaka @@ -288,7 +288,7 @@ efi_memory_show_map(bool sorted) md->Type >= __arraycount(efimemtypes) ? efimemstr : efimemtypes[md->Type]); - if (rows >= 0 && ++row >= rows) { + if (++row >= rows) { row = 0; Print(L"Press Any Key to continue :"); (void) awaitkey(-1, 0);
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Fri Feb 3 16:28:34 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: syscalls.master Log Message: add send recv mmsg and unimpl XXX: fix base? To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/arm/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.66 src/sys/compat/linux/arch/arm/syscalls.master:1.67 --- src/sys/compat/linux/arch/arm/syscalls.master:1.66 Fri Feb 3 01:06:09 2017 +++ src/sys/compat/linux/arch/arm/syscalls.master Fri Feb 3 11:28:34 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp $ + $NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -569,27 +569,34 @@ 362 UNIMPL pwritev 363 UNIMPL rt_tgsigqueueinfo 364 UNIMPL perf_counter_open -365 UNIMPL recvmmsg +365 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 366 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } -367 UNIMPL -368 UNIMPL -369 UNIMPL -370 UNIMPL -371 UNIMPL -372 UNIMPL -373 UNIMPL -374 UNIMPL -375 UNIMPL -376 UNIMPL -377 UNIMPL -378 UNIMPL -379 UNIMPL -380 UNIMPL -381 UNIMPL -382 UNIMPL -383 UNIMPL +367 UNIMPL fanotify_init +368 UNIMPL fanotify_mark +369 UNIMPL prlimit64 +370 UNIMPL name_to_handle_at +371 UNIMPL open_by_handle_at +372 UNIMPL clock_adjtime +373 UNIMPL syncfs +374 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +375 UNIMPL setns +376 UNIMPL process_vm_readv +377 UNIMPL process_vm_writev +378 UNIMPL kcmp +379 UNIMPL finit_module +380 UNIMPL sched_setattr +381 UNIMPL sched_getattr +382 UNIMPL renameat2 +383 UNIMPL seccomp +; XXX FIX-me? +; 384 UNIMPL getrandom +; 385 UNIMPL memfd_create ; ARMLinux actually has two ranges of syscalls. Normal syscalls use ; SWI numbers starting at 0x90 (__NR_SYSCALL_BASE). Special
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Fri Feb 3 16:28:42 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.77 src/sys/compat/linux/arch/arm/linux_syscall.h:1.78 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Fri Feb 3 11:28:42 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp + * created from NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -709,9 +709,15 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 359 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 365 + /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 366 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 374 + /* syscall: "breakpoint" ret: "int" args: */ #define LINUX_SYS_breakpoint 385 Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.77 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.78 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Fri Feb 3 11:28:42 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp + * created from NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1091,6 +1091,15 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + struct linux_sys_accept4_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; @@ -1099,6 +1108,14 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + struct linux_sys_cacheflush_args { syscallarg(uintptr_t) from; syscallarg(intptr_t) to; @@ -1557,8 +1574,12 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + int linux_sys_breakpoint(struct lwp *, const void *, register_t *); int linux_sys_cacheflush(struct lwp *, const struct linux_sys_cacheflush_args *, register_t *); Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.77 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.78 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Fri Feb 3 11:28:42 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD:
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: christos Date: Fri Feb 3 16:18:39 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Fri Feb 3 11:18:38 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Fri Feb 3 11:18:38 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Fri Feb 3 11:18:38 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.67 2017/02/03 16:18:38 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.66 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.67 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Fri Feb 3 11:18:39 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.67 2017/02/03 16:18:39 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.67 2017/02/03 16:18:39 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" Index: src/sys/compat/linux/arch/amd64/linux_systrace_args.c diff -u src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.10 src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.11 --- src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.10 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Fri Feb 3 11:18:39 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.10 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.11 2017/02/03 16:18:39 christos Exp $ */ /* * System call argument to DTrace register array converstion.
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: christos Date: Fri Feb 3 16:18:19 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c syscalls.master Log Message: add sendmmsg and recvmmsg To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.9 -r1.10 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/amd64/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.65 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call numbers. @@ -654,6 +654,12 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 293 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 299 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 307 + /* syscall: "nosys" ret: "int" args: */ #define LINUX_SYS_nosys 314 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.65 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call argument lists. @@ -1025,6 +1025,23 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + /* * System call prototypes. */ @@ -1462,6 +1479,10 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + int linux_sys_nosys(struct lwp *, const void *, register_t *); #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.65 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -365,7 +365,7 @@ const char *const linux_syscallnames[] = /* 296 */ "#296 (unimplemented pwritev)", /* 297 */ "#297 (unimplemented rt_tgsigqueueinfo)", /* 298 */ "#298 (unimplemented perf_counter_open)", - /* 299 */ "#299 (unimplemented recvmmsg)", + /* 299 */ "recvmmsg", /* 300 */ "#300 (unimplemented fanotify_init)", /* 301 */ "#301 (unimplemented fanotify_mark)", /* 302 */ "#302 (unimplemented prlimit64)", @@ -373,7 +373,7 @@ const char *const linux_syscallnames[] = /* 304 */ "#304 (unimplemented open_by_handle_at)", /* 305 */ "#305 (unimplemented clock_adjtime)", /* 306 */ "#306 (unimplemented syncfs)", - /* 307 */ "#307 (unimplemented sendmmsg)", + /* 307 */ "sendmmsg",
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Fri Feb 3 16:17:17 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.103 -r1.104 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.105 -r1.106 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.105 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Fri Feb 3 11:17:17 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.105 2017/02/03 16:17:17 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -654,6 +654,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 475 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 479 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 487 @@ -663,6 +666,9 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 502 -#define LINUX_SYS_MAXSYSCALL 503 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 503 + +#define LINUX_SYS_MAXSYSCALL 511 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.105 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Fri Feb 3 11:17:17 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1897,8 +1897,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 478 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 479 = filler */ + ns(struct linux_sys_recvmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_recvmmsg + }, /* 479 = recvmmsg */ { .sy_call = linux_sys_nosys, }, /* 480 = filler */ @@ -1974,8 +1976,10 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_accept4 }, /* 502 = accept4 */ { - .sy_call = linux_sys_nosys, - }, /* 503 = filler */ + ns(struct linux_sys_sendmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_sendmmsg + }, /* 503 = sendmmsg */ { .sy_call = linux_sys_nosys, }, /* 504 = filler */ Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.104 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Fri Feb 3 11:17:17 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.103 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.104 2017/02/03 16:17:17 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1114,6 +1114,15 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat)
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Fri Feb 3 16:17:08 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master Log Message: add send/recv mmsg and comment on the unimpl ones. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/alpha/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.93 src/sys/compat/linux/arch/alpha/syscalls.master:1.94 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.93 Fri Feb 3 01:06:08 2017 +++ src/sys/compat/linux/arch/alpha/syscalls.master Fri Feb 3 11:17:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp $ + $NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -756,7 +756,9 @@ 476 UNIMPL signalfd 477 UNIMPL timerfd 478 UNIMPL eventfd -479 UNIMPL recvmmsg +479 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 480 UNIMPL fallocate 481 UNIMPL timerfd_create 482 UNIMPL timerfd_settime @@ -771,15 +773,24 @@ 491 UNIMPL pwritev 492 UNIMPL rt_tgsigqueueinfo 493 UNIMPL perf_counter_open -494 UNIMPL -495 UNIMPL -496 UNIMPL -497 UNIMPL -498 UNIMPL -499 UNIMPL -500 UNIMPL -501 UNIMPL +494 UNIMPL fanotify_init +495 UNIMPL fanotify_mark +496 UNIMPL prlimit64 +497 UNIMPL name_to_handle_at +498 UNIMPL open_by_handle_at +499 UNIMPL clock_adjtime +500 UNIMPL syncfs +501 UNIMPL setns 502 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +503 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +504 UNIMPL process_vm_readv +505 UNIMPL process_vm_writev +506 UNIMPL kcmp +507 UNIMPL finit_module +508 UNIMPL sched_setattr +509 UNIMPL sched_getattr +510 UNIMPL renameat2
CVS commit: src/sys
Module Name:src Committed By: christos Date: Fri Feb 3 16:06:45 UTC 2017 Modified Files: src/sys/kern: uipc_syscalls.c src/sys/sys: socketvar.h Log Message: expose sendmsg_so and recvmsg_so. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186 src/sys/kern/uipc_syscalls.c cvs rdiff -u -r1.143 -r1.144 src/sys/sys/socketvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/uipc_syscalls.c diff -u src/sys/kern/uipc_syscalls.c:1.185 src/sys/kern/uipc_syscalls.c:1.186 --- src/sys/kern/uipc_syscalls.c:1.185 Thu Feb 2 10:37:42 2017 +++ src/sys/kern/uipc_syscalls.c Fri Feb 3 11:06:45 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_syscalls.c,v 1.185 2017/02/02 15:37:42 christos Exp $ */ +/* $NetBSD: uipc_syscalls.c,v 1.186 2017/02/03 16:06:45 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.185 2017/02/02 15:37:42 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.186 2017/02/03 16:06:45 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_pipe.h" @@ -528,7 +528,7 @@ sys_sendmsg(struct lwp *l, const struct NULL, 0, retval); } -static int +int do_sys_sendmsg_so(struct lwp *l, int s, struct socket *so, file_t *fp, struct msghdr *mp, int flags, const void *kthdr, size_t ktsize, register_t *retsize) @@ -920,7 +920,7 @@ copyout_msg_control(struct lwp *l, struc return error; } -static int +int do_sys_recvmsg_so(struct lwp *l, int s, struct socket *so, struct msghdr *mp, const void *ktrhdr, size_t ktsize, struct mbuf **from, struct mbuf **control, register_t *retsize) Index: src/sys/sys/socketvar.h diff -u src/sys/sys/socketvar.h:1.143 src/sys/sys/socketvar.h:1.144 --- src/sys/sys/socketvar.h:1.143 Thu Feb 2 13:01:16 2017 +++ src/sys/sys/socketvar.h Fri Feb 3 11:06:45 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: socketvar.h,v 1.143 2017/02/02 18:01:16 christos Exp $ */ +/* $NetBSD: socketvar.h,v 1.144 2017/02/03 16:06:45 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -354,11 +354,17 @@ void free_control_mbuf(struct lwp *, str int do_sys_getpeername(int, struct sockaddr *); int do_sys_getsockname(int, struct sockaddr *); + int do_sys_sendmsg(struct lwp *, int, struct msghdr *, int, const void *, size_t, register_t *); +int do_sys_sendmsg_so(struct lwp *, int, struct socket *, file_t *, + struct msghdr *, int, const void *, size_t, register_t *); + int do_sys_recvmsg(struct lwp *, int, struct msghdr *, - const void *, size_t, - struct mbuf **, struct mbuf **, register_t *); + const void *, size_t, struct mbuf **, struct mbuf **, register_t *); +int do_sys_recvmsg_so(struct lwp *, int, struct socket *, + struct msghdr *mp, const void *, size_t, struct mbuf **, + struct mbuf **, register_t *); int do_sys_bind(struct lwp *, int, struct sockaddr *); int do_sys_connect(struct lwp *, int, struct sockaddr *);
CVS commit: src/share/man/man4
Module Name:src Committed By: plunky Date: Fri Feb 3 13:23:37 UTC 2017 Modified Files: src/share/man/man4: bluetooth.4 Log Message: update for addition (a while ago) of features2 page To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/share/man/man4/bluetooth.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/bluetooth.4 diff -u src/share/man/man4/bluetooth.4:1.18 src/share/man/man4/bluetooth.4:1.19 --- src/share/man/man4/bluetooth.4:1.18 Mon Nov 22 19:59:43 2010 +++ src/share/man/man4/bluetooth.4 Fri Feb 3 13:23:37 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: bluetooth.4,v 1.18 2010/11/22 19:59:43 plunky Exp $ +.\" $NetBSD: bluetooth.4,v 1.19 2017/02/03 13:23:37 plunky Exp $ .\" .\" Copyright (c) 2006 Itronix Inc. .\" All rights reserved. @@ -324,7 +324,8 @@ struct btreq { } btri; struct { uint8_t btrf_page0[HCI_FEATURES_SIZE]; /* basic */ - uint8_t btrf_page1[HCI_FEATURES_SIZE]; /* extended */ + uint8_t btrf_page1[HCI_FEATURES_SIZE]; /* extended page 1 */ + uint8_t btrf_page2[HCI_FEATURES_SIZE]; /* extended page 2 */ } btrf; struct bt_stats btrs; /* unit stats */ } btru; @@ -343,6 +344,7 @@ struct btreq { #define btr_max_sco btru.btri.btri_max_sco #define btr_features0 btru.btrf.btrf_page0 #define btr_features1 btru.btrf.btrf_page1 +#define btr_features2 btru.btrf.btrf_page2 #define btr_stats btru.btrs /* btr_flags */ @@ -385,14 +387,16 @@ btreq structure including the name field .It Dv SIOCNBTINFO Next Bluetooth device Info. If name field is empty, the first device will be returned. -Otherwise, the next device will be returned. +Otherwise, the next device will be returned until no more devices are found +when the call will fail, with error +.Er ENXIO . Thus, you can cycle through all devices in the system. .It Dv SIOCSBTFLAGS Set Bluetooth device Flags. Not all flags are settable. .It Dv SIOCGBTFEAT Get Bluetooth device Features. -This returns the cached basic (page 0) and extended (page 1) features. +This returns the cached basic (page 0) and extended (page 1 & 2) features. .It Dv SIOCSBTPOLICY Set Bluetooth device Link Policy. Link Policy bits are defined in
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: christos Date: Fri Feb 3 13:08:08 UTC 2017 Modified Files: src/sys/compat/linux/common: linux_socket.c linux_socketcall.c linux_socketcall.h Log Message: handle accept4 for i386 To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/compat/linux/common/linux_socket.c cvs rdiff -u -r1.45 -r1.46 src/sys/compat/linux/common/linux_socketcall.c cvs rdiff -u -r1.17 -r1.18 src/sys/compat/linux/common/linux_socketcall.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/common/linux_socket.c diff -u src/sys/compat/linux/common/linux_socket.c:1.135 src/sys/compat/linux/common/linux_socket.c:1.136 --- src/sys/compat/linux/common/linux_socket.c:1.135 Fri Feb 3 03:43:02 2017 +++ src/sys/compat/linux/common/linux_socket.c Fri Feb 3 08:08:08 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $ */ +/* $NetBSD: linux_socket.c,v 1.136 2017/02/03 13:08:08 christos Exp $ */ /*- * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.136 2017/02/03 13:08:08 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -1708,7 +1708,6 @@ linux_sys_accept(struct lwp *l, const st return (0); } -#ifndef __i386__ /* Linux/i386 does not have this syscall */ int linux_sys_accept4(struct lwp *l, const struct linux_sys_accept4_args *uap, register_t *retval) { @@ -1743,5 +1742,3 @@ linux_sys_accept4(struct lwp *l, const s return 0; } -#endif - Index: src/sys/compat/linux/common/linux_socketcall.c diff -u src/sys/compat/linux/common/linux_socketcall.c:1.45 src/sys/compat/linux/common/linux_socketcall.c:1.46 --- src/sys/compat/linux/common/linux_socketcall.c:1.45 Sun Nov 9 12:48:08 2014 +++ src/sys/compat/linux/common/linux_socketcall.c Fri Feb 3 08:08:08 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.c,v 1.45 2014/11/09 17:48:08 maxv Exp $ */ +/* $NetBSD: linux_socketcall.c,v 1.46 2017/02/03 13:08:08 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.45 2014/11/09 17:48:08 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.46 2017/02/03 13:08:08 christos Exp $"); #include #include @@ -107,6 +107,7 @@ static const struct { {L("getsockopt"),sizeof(struct linux_sys_getsockopt_args)}, /* 15 */ {L("sendmsg"), sizeof(struct linux_sys_sendmsg_args)}, /* 16 */ {L("recvmsg"), sizeof(struct linux_sys_recvmsg_args)}, /* 17 */ + {L("accept4"), sizeof(struct linux_sys_accept4_args)}, /* 18 */ #undef L }; @@ -215,6 +216,9 @@ linux_sys_socketcall(struct lwp *l, cons case LINUX_SYS_RECVMSG: error = linux_sys_recvmsg(l, (void *), retval); break; + case LINUX_SYS_ACCEPT4: + error = linux_sys_accept4(l, (void *), retval); + break; default: error = ENOSYS; break; Index: src/sys/compat/linux/common/linux_socketcall.h diff -u src/sys/compat/linux/common/linux_socketcall.h:1.17 src/sys/compat/linux/common/linux_socketcall.h:1.18 --- src/sys/compat/linux/common/linux_socketcall.h:1.17 Fri Dec 27 10:10:53 2013 +++ src/sys/compat/linux/common/linux_socketcall.h Fri Feb 3 08:08:08 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.h,v 1.17 2013/12/27 15:10:53 njoly Exp $ */ +/* $NetBSD: linux_socketcall.h,v 1.18 2017/02/03 13:08:08 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -91,8 +91,11 @@ #define LINUX_SYS_GETSOCKOPT 15 #define LINUX_SYS_SENDMSG 16 #define LINUX_SYS_RECVMSG 17 +#define LINUX_SYS_ACCEPT4 18 +#define LINUX_SYS_RECVMMSG 19 +#define LINUX_SYS_SENDMMSG 20 -#define LINUX_MAX_SOCKETCALL 17 +#define LINUX_MAX_SOCKETCALL 18 /* no send/recv mmsg yet */ /* @@ -221,6 +224,13 @@ struct linux_sys_shutdown_args { syscallarg(int) how; }; +struct linux_sys_accept4_args { + syscallarg(int) s; + syscallarg(struct osockaddr *) name; + syscallarg(int *) anamelen; + syscallarg(int) flags; +}; + # ifdef _KERNEL __BEGIN_DECLS #define SYS_DEF(foo) int foo(struct lwp *, const struct foo##_args *, register_t *); @@ -239,6 +249,7 @@ SYS_DEF(linux_sys_recvmsg) SYS_DEF(linux_sys_recv) SYS_DEF(linux_sys_send) SYS_DEF(linux_sys_accept) +SYS_DEF(linux_sys_accept4) #undef SYS_DEF __END_DECLS # endif /* !_KERNEL */
CVS commit: src/sys/compat/linux/common
Module Name:src Committed By: martin Date: Fri Feb 3 08:43:02 UTC 2017 Modified Files: src/sys/compat/linux/common: linux_socket.c Log Message: Do not compile accept4 on i386, there is no such syscall in Linux. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/sys/compat/linux/common/linux_socket.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/common/linux_socket.c diff -u src/sys/compat/linux/common/linux_socket.c:1.134 src/sys/compat/linux/common/linux_socket.c:1.135 --- src/sys/compat/linux/common/linux_socket.c:1.134 Thu Feb 2 15:36:55 2017 +++ src/sys/compat/linux/common/linux_socket.c Fri Feb 3 08:43:02 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.134 2017/02/02 15:36:55 christos Exp $ */ +/* $NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $ */ /*- * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.134 2017/02/02 15:36:55 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.135 2017/02/03 08:43:02 martin Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -1708,6 +1708,7 @@ linux_sys_accept(struct lwp *l, const st return (0); } +#ifndef __i386__ /* Linux/i386 does not have this syscall */ int linux_sys_accept4(struct lwp *l, const struct linux_sys_accept4_args *uap, register_t *retval) { @@ -1742,3 +1743,5 @@ linux_sys_accept4(struct lwp *l, const s return 0; } +#endif +
CVS commit: [nick-nhusb] src/sys/dev/usb
Module Name:src Committed By: skrll Date: Fri Feb 3 08:39:30 UTC 2017 Modified Files: src/sys/dev/usb [nick-nhusb]: if_smsc.c Log Message: Wrap a long line To generate a diff of this commit: cvs rdiff -u -r1.22.2.30 -r1.22.2.31 src/sys/dev/usb/if_smsc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/if_smsc.c diff -u src/sys/dev/usb/if_smsc.c:1.22.2.30 src/sys/dev/usb/if_smsc.c:1.22.2.31 --- src/sys/dev/usb/if_smsc.c:1.22.2.30 Fri Feb 3 07:48:05 2017 +++ src/sys/dev/usb/if_smsc.c Fri Feb 3 08:39:30 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: if_smsc.c,v 1.22.2.30 2017/02/03 07:48:05 skrll Exp $ */ +/* $NetBSD: if_smsc.c,v 1.22.2.31 2017/02/03 08:39:30 skrll Exp $ */ /* $OpenBSD: if_smsc.c,v 1.4 2012/09/27 12:38:11 jsg Exp $ */ /* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */ @@ -1122,7 +1122,8 @@ smsc_attach(device_t parent, device_t se } } - aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(sc->sc_enaddr)); + aprint_normal_dev(self, "Ethernet address %s\n", + ether_sprintf(sc->sc_enaddr)); IFQ_SET_READY(>if_snd);
CVS commit: src/lib/libc/sys
Module Name:src Committed By: abhinav Date: Fri Feb 3 08:14:58 UTC 2017 Modified Files: src/lib/libc/sys: stat.2 Log Message: Remove comma after the last Nm entry. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/lib/libc/sys/stat.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/sys/stat.2 diff -u src/lib/libc/sys/stat.2:1.57 src/lib/libc/sys/stat.2:1.58 --- src/lib/libc/sys/stat.2:1.57 Thu Apr 10 17:11:15 2014 +++ src/lib/libc/sys/stat.2 Fri Feb 3 08:14:58 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: stat.2,v 1.57 2014/04/10 17:11:15 wiz Exp $ +.\" $NetBSD: stat.2,v 1.58 2017/02/03 08:14:58 abhinav Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -36,7 +36,7 @@ .Nm stat , .Nm lstat , .Nm fstat , -.Nm fstatat , +.Nm fstatat .Nd get file status .Sh LIBRARY .Lb libc