svn commit: r344309 - head/sys/teken

2019-02-19 Thread Ed Schouten
Author: ed Date: Tue Feb 19 21:58:23 2019 New Revision: 344309 URL: https://svnweb.freebsd.org/changeset/base/344309 Log: Place an upper bound on the number of iterations for REP. Right now it's possible to invoke the REP escape sequence with a maximum of tens of millions of iterations.

svn commit: r344308 - head/sys/teken

2019-02-19 Thread Ed Schouten
Author: ed Date: Tue Feb 19 21:49:48 2019 New Revision: 344308 URL: https://svnweb.freebsd.org/changeset/base/344308 Log: Add missing __unused attributes to unused function arguments. This fixes the userspace build of libteken. Modified: head/sys/teken/teken_subr.h Modified:

Re: svn commit: r340231 - head/sys/kern

2018-11-07 Thread Ed Schouten
) || defined(__aarch64__) > +(defined(__arm__) && __ARM_ARCH >= 7) || defined(__aarch64__) || \ > +defined(__riscv) > 1; > #else > 0; Are we getting to the point that it might make sense to invert this logic, i.e., just list

Re: svn commit: r339468 - in head/sys: kern sys

2018-10-20 Thread Ed Schouten
s was just the direct, conservative conversion of ttyprintf -> > putchar. The checks can *probably* be removed. If they can, then certain other parts of this change can be reverted as well (e.g., the addition of cnputsn). -- Ed Schouten ___ svn-s

Re: svn commit: r339468 - in head/sys: kern sys

2018-10-20 Thread Ed Schouten
return (-ENXIO); > +} Disclaimer: Long time since I did a lot with the TTY code. Can kdb_active, tp == NULL and panicstr != NULL even occur in this case? tty_info() can only get called in non-degenerate cases, right? -- Ed Schouten ___ svn-src-head

svn commit: r336086 - head/usr.sbin/newsyslog

2018-07-08 Thread Ed Schouten
Author: ed Date: Sun Jul 8 10:08:24 2018 New Revision: 336086 URL: https://svnweb.freebsd.org/changeset/base/336086 Log: Use the FQDN in the newsyslog log message when RFC 5424 is enabled. The RFC 5424 spec mentions that logging FQDNs over short hostnames is preferred. Alter this code,

svn commit: r336060 - head/usr.sbin/syslogd

2018-07-07 Thread Ed Schouten
Author: ed Date: Sat Jul 7 11:53:39 2018 New Revision: 336060 URL: https://svnweb.freebsd.org/changeset/base/336060 Log: Allow the use of slashes in process names of RFC 3164 formatted messages. Tools such as Postfix use slashes in process names for hierarchy (postfix/qmgr). By allowing

svn commit: r335862 - head/usr.sbin/syslogd

2018-07-02 Thread Ed Schouten
Author: ed Date: Mon Jul 2 11:02:27 2018 New Revision: 335862 URL: https://svnweb.freebsd.org/changeset/base/335862 Log: Document that syslogd -v has no effect when RFC 5424 mode is enabled. The variable it sets, LogFacPri, is only used in the RFC 3164 formatting codepath. PR:

svn commit: r335861 - head/usr.sbin/syslogd

2018-07-02 Thread Ed Schouten
Author: ed Date: Mon Jul 2 10:57:22 2018 New Revision: 335861 URL: https://svnweb.freebsd.org/changeset/base/335861 Log: Restore the order in which RFC 3164 messages with fac/pri are formatted. The refactoring of the syslogd code to format messages using iovecs slightly altered the

Re: svn commit: r335765 - head/sys/sys

2018-06-28 Thread Ed Schouten
ound literal: static __inline void EV_SET(struct kevent *kevp, ...) { struct kevent kev = { // initializer goes here. }; *kevp = kev; } This should even work with C89 compilers, assuming provides some smartness for __inline. -- Ed Schouten Nuxi, 's-

Re: svn commit: r335765 - head/sys/sys

2018-06-28 Thread Ed Schouten
def EV_SET. */ #define EV_SET EV_SET This has the advantage that you get pretty neat error messages in case you get the typing of arguments wrong, as if you're just calling a function incorrectly. The EV_SET() macro is never used in contexts that require constant values. -- Ed Schouten Nuxi,

Re: svn commit: r333590 - head/share/man/man9

2018-06-25 Thread Ed Schouten
f +.Re -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r335613 - head/share/man/man9

2018-06-25 Thread Ed Schouten
Author: ed Date: Mon Jun 25 06:57:10 2018 New Revision: 335613 URL: https://svnweb.freebsd.org/changeset/base/335613 Log: Fix spelling of "reclamation". Modified: head/share/man/man9/epoch.9 Modified: head/share/man/man9/epoch.9

Re: svn commit: r333590 - head/share/man/man9

2018-06-24 Thread Ed Schouten
Hi Matt, 2018-05-17 9:06 GMT+02:00 Ed Schouten : > Hi Matt, > > 2018-05-14 1:16 GMT+02:00 Matt Macy : >> +Epochs do not have any lock ordering issues. Entering and leaving > > It looks like the man page is missing some newlines between sentences. > > Quick question

svn commit: r335565 - head/usr.sbin/syslogd

2018-06-22 Thread Ed Schouten
Author: ed Date: Fri Jun 22 20:53:39 2018 New Revision: 335565 URL: https://svnweb.freebsd.org/changeset/base/335565 Log: Still parse messages that don't contain an RFC 3164 timestamp. The changes made in r326573 required that messages always start with an RFC 3164 timestamp. It looks

svn commit: r335314 - head/usr.sbin/syslogd

2018-06-18 Thread Ed Schouten
Author: ed Date: Mon Jun 18 06:01:28 2018 New Revision: 335314 URL: https://svnweb.freebsd.org/changeset/base/335314 Log: Fix bad logic in iovlist_truncate(). To conform to RFC 5426, this function is intended to truncate messages if they exceed the message size limits. Unfortunately, the

Re: svn commit: r333995 - head/sys/teken

2018-05-22 Thread Ed Schouten
t that's simply how it's called: https://vt100.net/docs/vt510-rm/DECSCUSR.html I think the state machine generator doesn't mind if we added an extra tab between all other entries to get it to line up again. Maybe that does push us over 80 columns, though... -- Ed Schouten <e...@nuxi.nl> N

Re: svn commit: r333925 - head/sys/teken

2018-05-20 Thread Ed Schouten
[ > cr > DC Delete character^[ [ P n So far I've been trying to be quite consistent in the naming here, using the exact phrasing that is used elsewhere. Could you please use "DECSCUSR" and "Set Cursor Style" here, just like on this

Re: svn commit: r333590 - head/share/man/man9

2018-05-17 Thread Ed Schouten
Read-copy-update)? If there is any relation, should we mention it in the documentation? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listin

svn commit: r332511 - head/usr.sbin/syslogd

2018-04-15 Thread Ed Schouten
Author: ed Date: Sun Apr 15 08:44:26 2018 New Revision: 332511 URL: https://svnweb.freebsd.org/changeset/base/332511 Log: Use proper alphabetic sorting of options. Modified: head/usr.sbin/syslogd/syslogd.8 Modified: head/usr.sbin/syslogd/syslogd.8

svn commit: r332510 - in head: usr.bin/wall usr.sbin/syslogd

2018-04-15 Thread Ed Schouten
Author: ed Date: Sun Apr 15 08:34:16 2018 New Revision: 332510 URL: https://svnweb.freebsd.org/changeset/base/332510 Log: Add RFC 5424 syslog message output to syslogd. - Move all of the code responsible for transmitting log messages into a separate function, fprintlog_write(). -

svn commit: r332165 - head/usr.sbin/syslogd

2018-04-07 Thread Ed Schouten
Author: ed Date: Sat Apr 7 09:03:51 2018 New Revision: 332165 URL: https://svnweb.freebsd.org/changeset/base/332165 Log: Fix enough warnings that we can build syslogd on all targets at WARNS=6. This also fixes the build on MIPS. Reported by: cy (MIPS build failure) Modified:

svn commit: r332118 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 17:16:50 2018 New Revision: 332118 URL: https://svnweb.freebsd.org/changeset/base/332118 Log: Push RFC 5424 message format from logmsg() into fprintlog(). Now that all of parsemsg() parses both RFC 3164 and 5424 messages and hands them to logmsg(), alter the

svn commit: r332111 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 16:26:46 2018 New Revision: 332111 URL: https://svnweb.freebsd.org/changeset/base/332111 Log: Remove some places where error messages are prefixed with "syslogd". Due to using RFC 5424, the application name is stored in a dedicated field. It can simply be

svn commit: r332110 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 16:24:03 2018 New Revision: 332110 URL: https://svnweb.freebsd.org/changeset/base/332110 Log: Properly respect the passed in hostname for RFC 5424 messages. Only override the hostname in case none is provided or when remote hostnames should be ignored.

svn commit: r332100 - in head: . lib/libc/gen sys/sys

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 13:00:45 2018 New Revision: 332100 URL: https://svnweb.freebsd.org/changeset/base/332100 Log: Let syslog(3) use RFC 5424. With r332099 changing syslogd(8) to parse RFC 5424 formatted syslog messages, go ahead and also change the syslog(3) libc function to

svn commit: r332099 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Prodrive Technologies, https://prodrive-technologies.com/ + * Author: Ed Schouten <e...@freebsd.org> + * + * Redistribution and use in source and binary forms,

Re: svn commit: r329882 - in head/sys: conf kern sys vm

2018-03-02 Thread Ed Schouten
Be sure to give prometheus_sysctl_exporter(8) a try if you ever want to graph the characteristics of the controller! -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Ed Schouten
2018-01-27 23:31 GMT+01:00 Dimitry Andric <d...@freebsd.org>: > On 27 Jan 2018, at 23:20, Ed Schouten <e...@nuxi.nl> wrote: >> >> 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni <p...@freebsd.org>: >>>char host[sizeof(utmp.ut_host) + 1]; >>>

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Ed Schouten
st, utmp.ut_host, sizeof(host)); Wait... This may access utmp.ut_host one byte past the end and no longer guarantees that host is null-terminated, right? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@

Re: svn commit: r328430 - head/sbin/devd

2018-01-25 Thread Ed Schouten
tan: static void usage(void) __dead2; This should be spelled: [[noreturn]] static void usage(); -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/lis

Re: svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-08 Thread Ed Schouten
s that we're allocating a buffer that is accessed as an array, as opposed to single structure. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/lis

svn commit: r327684 - in head/sys/compat: cloudabi32 cloudabi64

2018-01-07 Thread Ed Schouten
Author: ed Date: Sun Jan 7 22:38:45 2018 New Revision: 327684 URL: https://svnweb.freebsd.org/changeset/base/327684 Log: Use mallocarray(9) in CloudABI kernel code where possible. Submitted by: pfg@ Modified: head/sys/compat/cloudabi32/cloudabi32_sock.c

svn commit: r327560 - in head/sys/compat: cloudabi cloudabi32 cloudabi64

2018-01-04 Thread Ed Schouten
Author: ed Date: Thu Jan 4 21:57:37 2018 New Revision: 327560 URL: https://svnweb.freebsd.org/changeset/base/327560 Log: Allow timed waits with relative timeouts on locks and condvars. Even though pthreads doesn't support this, there are various alternative APIs that use this. For

svn commit: r327057 - head/usr.bin/truss

2017-12-21 Thread Ed Schouten
Author: ed Date: Thu Dec 21 09:21:40 2017 New Revision: 327057 URL: https://svnweb.freebsd.org/changeset/base/327057 Log: Make truss work for CloudABI executables on i386. The system call convention is different from i386 binaries running on FreeBSD/amd64, but this is not noticeable by

svn commit: r327022 - head/usr.bin/truss

2017-12-20 Thread Ed Schouten
Author: ed Date: Wed Dec 20 13:13:10 2017 New Revision: 327022 URL: https://svnweb.freebsd.org/changeset/base/327022 Log: Make truss(8) work for 32-bit CloudABI executables on ARM64. This change effectively merges the existing 64-bit support for ARM64 with the 32-on-64-bit support for

svn commit: r326911 - head/usr.bin/truss

2017-12-16 Thread Ed Schouten
Author: ed Date: Sat Dec 16 19:40:28 2017 New Revision: 326911 URL: https://svnweb.freebsd.org/changeset/base/326911 Log: Make truss(8) work for i686-unknown-cloudabi binaries on FreeBSD/amd64. This change copies the existing amd64_cloudabi64.c to amd64_cloudabi32.c and reimplements the

svn commit: r326910 - head/lib/libsysdecode

2017-12-16 Thread Ed Schouten
Author: ed Date: Sat Dec 16 19:37:55 2017 New Revision: 326910 URL: https://svnweb.freebsd.org/changeset/base/326910 Log: libsysdecode: Add a new ABI type, SYSDECODE_ABI_CLOUDABI32. In order to let truss(8) support tracing of 32-bit CloudABI applications, we need to add a new ABI type to

svn commit: r326719 - in head: . include lib/libc/gen

2017-12-08 Thread Ed Schouten
Author: ed Date: Fri Dec 8 22:06:18 2017 New Revision: 326719 URL: https://svnweb.freebsd.org/changeset/base/326719 Log: Remove basename_r(3). Now that the POSIX working group is going to require that basename(3) and dirname(3) are thread-safe in future revisions of the standard,

Re: svn commit: r326558 - in head: . usr.sbin/fdformat

2017-12-05 Thread Ed Schouten
2017-12-05 6:02 GMT+01:00 Cy Schubert <c...@freebsd.org>: > +OLD_FILES+=usr/share/man/man8/fdformat.1.gz s/man8/man1/, right? :-) -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mai

Re: svn commit: r326518 - head/contrib/mdocml

2017-12-04 Thread Ed Schouten
ng "POSIX 7.0" and the 2013 and 2016 editions being 7.1 and 7.2, respectively. In the meantime, the POSIX folks are working on the 8th version of the standard. This is where some of the larger changes/additions may be done. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Herto

Re: svn commit: r326518 - head/contrib/mdocml

2017-12-04 Thread Ed Schouten
p://pubs.opengroup.org/onlinepubs/9699919799.2013edition/ But look at the top of the 2016 edition instead: http://pubs.opengroup.org/onlinepubs/9699919799.2016edition/ -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@fr

svn commit: r326501 - head/sys/arm64/conf

2017-12-03 Thread Ed Schouten
Author: ed Date: Sun Dec 3 19:26:14 2017 New Revision: 326501 URL: https://svnweb.freebsd.org/changeset/base/326501 Log: Make COMPAT_FREEBSD32 part of GENERIC on arm64. The cloudabi32.ko kernel modules can only be loaded on AMD64 and ARM64 by kernels built with COMPAT_FREEBSD32. Even

svn commit: r326423 - head/lib/libproc/tests

2017-12-01 Thread Ed Schouten
Author: ed Date: Fri Dec 1 10:25:52 2017 New Revision: 326423 URL: https://svnweb.freebsd.org/changeset/base/326423 Log: Eliminate the last user of basename_r() in the base system. In this case it's fairly easy to make use of basename(). Modified: head/lib/libproc/tests/proc_test.c

svn commit: r326420 - head/share/man/man4

2017-12-01 Thread Ed Schouten
Author: ed Date: Fri Dec 1 05:57:05 2017 New Revision: 326420 URL: https://svnweb.freebsd.org/changeset/base/326420 Log: Add an mlink for cloudabi32(4). We already provide this for cloudabi64(4), so not adding it for cloudabi32(4) is fairly inconsistent. MFC after:1 week

svn commit: r326406 - in head: share/man/man4 sys/arm64/cloudabi32 sys/conf sys/modules

2017-11-30 Thread Ed Schouten
Author: ed Date: Thu Nov 30 17:58:48 2017 New Revision: 326406 URL: https://svnweb.freebsd.org/changeset/base/326406 Log: Port cloudabi32.ko to FreeBSD/arm64. This change adds an implementation of a sysent for running CloudABI armv6 and armv7 binaries on FreeBSD/arm64. It is a somewhat

Re: svn commit: r326385 - head/usr.bin/pr

2017-11-30 Thread Ed Schouten
sole copyright holder? In this case we should also ask Keith Muller, right...? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To

svn commit: r326230 - in head/sys/arm64: arm64 include

2017-11-26 Thread Ed Schouten
Author: ed Date: Sun Nov 26 14:56:23 2017 New Revision: 326230 URL: https://svnweb.freebsd.org/changeset/base/326230 Log: Add a Saved Process Status Register bit for AArch32 execution mode. The documentation on the Saved Process Status Register (SPSR) is a bit weird; the M[4] bit is

svn commit: r326229 - in head/sys: arm/cloudabi32 arm64/cloudabi64

2017-11-26 Thread Ed Schouten
Author: ed Date: Sun Nov 26 14:53:56 2017 New Revision: 326229 URL: https://svnweb.freebsd.org/changeset/base/326229 Log: Correct some more places where TO_PTR() should be used. These were missed in r326228. MFC after:2 weeks Modified:

svn commit: r326228 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-11-26 Thread Ed Schouten
Author: ed Date: Sun Nov 26 14:45:56 2017 New Revision: 326228 URL: https://svnweb.freebsd.org/changeset/base/326228 Log: Use TO_PTR() to convert integers to pointers. For FreeBSD/arm64's cloudabi32 support, I'm going to need a TO_PTR() in this place. Also use it for all of the other

svn commit: r326227 - in head/sys/arm64: arm64 include

2017-11-26 Thread Ed Schouten
Author: ed Date: Sun Nov 26 14:28:27 2017 New Revision: 326227 URL: https://svnweb.freebsd.org/changeset/base/326227 Log: Make 32-bit system calls end up in svc_handler(). The nice thing about ARM64 is that it's pretty elegant to install separate trap/exception handlers for 32-bit and

svn commit: r326167 - head/sys/modules/cloudabi32

2017-11-24 Thread Ed Schouten
Author: ed Date: Fri Nov 24 14:02:32 2017 New Revision: 326167 URL: https://svnweb.freebsd.org/changeset/base/326167 Log: Pick the right vDSO file/linker flags when building cloudabi32.ko on ARM64. The recently imported cloudabi_vdso_armv6_on_64bit.S should be the vDSO for 32-bit

svn commit: r326166 - head/sys/arm64/arm64

2017-11-24 Thread Ed Schouten
Author: ed Date: Fri Nov 24 13:51:59 2017 New Revision: 326166 URL: https://svnweb.freebsd.org/changeset/base/326166 Log: Set CP15BEN in SCTLR to make memory barriers work in 32-bit mode. Binaries generated by Clang for ARMv6 may contain these instructions: MCR p15, 0, , c7, c10, 5

svn commit: r326165 - in head/sys: arm64/arm64 arm64/include conf sys

2017-11-24 Thread Ed Schouten
Author: ed Date: Fri Nov 24 13:50:53 2017 New Revision: 326165 URL: https://svnweb.freebsd.org/changeset/base/326165 Log: Add rudimentary support for building FreeBSD/arm64 with COMPAT_FREEBSD32. Right now I'm using two Raspberry Pi's (2 and 3) to test CloudABI support for armv6, armv7

svn commit: r326145 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux32 arm/cloudabi32 arm64/arm64 arm64/cloudabi64 compat/linux i386/i386 kern powerpc/powerpc riscv/riscv sparc64/sparc64

2017-11-23 Thread Ed Schouten
Author: ed Date: Fri Nov 24 07:35:08 2017 New Revision: 326145 URL: https://svnweb.freebsd.org/changeset/base/326145 Log: Don't let cpu_set_syscall_retval() clobber exec_setregs(). Upon successful completion, the execve() system call invokes exec_setregs() to initialize the registers of

svn commit: r326075 - head/sys/contrib/cloudabi

2017-11-21 Thread Ed Schouten
Author: ed Date: Tue Nov 21 20:46:21 2017 New Revision: 326075 URL: https://svnweb.freebsd.org/changeset/base/326075 Log: Import the latest CloudABI definitions, v0.18. In addition to some small style fixes to the ARMv6 vDSO, this release includes a new vDSO that can be used for the

svn commit: r325555 - in head/sys: compat/cloudabi32 compat/cloudabi64 contrib/cloudabi

2017-11-08 Thread Ed Schouten
Author: ed Date: Wed Nov 8 14:21:52 2017 New Revision: 32 URL: https://svnweb.freebsd.org/changeset/base/32 Log: Upgrade to CloudABI v0.17. Compared to the previous version, v0.16, there are a couple of minor changes: - CLOUDABI_AT_PID: Process identifiers for CloudABI

svn commit: r324727 - in head: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-10-18 Thread Ed Schouten
Author: ed Date: Wed Oct 18 19:22:53 2017 New Revision: 324727 URL: https://svnweb.freebsd.org/changeset/base/324727 Log: Import the latest CloudABI definitions, version 0.16. The most important change in this release is the removal of the poll_fd() system call; CloudABI's equivalent of

Re: svn commit: r324065 - head/sys/dev/qlxgbe

2017-09-27 Thread Ed Schouten
2017-09-27 19:46 GMT+02:00 David C Somayajulu <davi...@freebsd.org>: > + *(hw_tx_cntxt->tx_cons) = 0; In this case the parentheses are superfluous, right? -> has a higher precedence than *. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenb

Re: svn commit: r323177 - in head: sys/compat/cloudabi sys/contrib/cloudabi usr.bin/truss

2017-09-16 Thread Ed Schouten
y affect us negatively, it should in theory be possible to reimplement our streaming sockets and pipes with something as simple and fast as FreeBSD's pipes, but still support file descriptor passing, etc. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands _

svn commit: r323177 - in head: sys/compat/cloudabi sys/contrib/cloudabi usr.bin/truss

2017-09-05 Thread Ed Schouten
Author: ed Date: Tue Sep 5 07:46:45 2017 New Revision: 323177 URL: https://svnweb.freebsd.org/changeset/base/323177 Log: Merge pipes and socket pairs. Now that CloudABI's sockets API has been changed to be addressless and only connected socket instances are used (e.g., socket pairs),

svn commit: r323015 - in head: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-08-30 Thread Ed Schouten
Author: ed Date: Wed Aug 30 07:30:06 2017 New Revision: 323015 URL: https://svnweb.freebsd.org/changeset/base/323015 Log: Complete the CloudABI networking refactoring. Now that all of the packaged software has been adjusted to either use Flower (https://github.com/NuxiNL/flower) for

Re: svn commit: r322875 - head/sys/dev/nvme

2017-08-28 Thread Ed Schouten
error, no > warning). Perfect! I've committed this change as r322965. Thanks for testing! -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@freebsd.org mailing list https://lists.fr

svn commit: r322965 - head/sys/sys

2017-08-28 Thread Ed Schouten
Author: ed Date: Mon Aug 28 09:35:17 2017 New Revision: 322965 URL: https://svnweb.freebsd.org/changeset/base/322965 Log: Make _Static_assert() work with GCC in older C++ standards. GCC only activates C11 keywords in C mode, not C++ mode. This means that when targeting an older C++

Re: svn commit: r322875 - head/sys/dev/nvme

2017-08-28 Thread Ed Schouten
Mark, 2017-08-25 14:53 GMT+02:00 Ed Schouten <e...@nuxi.nl>: > 2017-08-25 9:46 GMT+02:00 Mark Millard <mar...@dsl-only.net>: >> It appears that at least 11.1-STABLE -r322807 does not handle >> -std=c++98 styles of use of _Static_assert for g++7 in that >> g++7 re

Re: svn commit: r322942 - head/sys/kern

2017-08-27 Thread Ed Schouten
is only removes layers from the top if they only have a single child. Question: is it possible/likely to have CPU topologies where one of the middle layers only has one child? If so, would it make sense to use tree traversal here to do the flattening? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-H

Re: svn commit: r322875 - head/sys/dev/nvme

2017-08-25 Thread Ed Schouten
static_assert(x, y) -#elif __GNUC_PREREQ__(4,6) +#elif __GNUC_PREREQ__(4,6) && !defined(__cplusplus) /* Nothing, gcc 4.6 and higher has _Static_assert built-in */ #elif defined(__COUNTER__) #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) -- Ed Schouten <e...@nuxi.nl>

svn commit: r322888 - head/usr.bin/calendar/calendars

2017-08-25 Thread Ed Schouten
Author: ed Date: Fri Aug 25 12:28:34 2017 New Revision: 322888 URL: https://svnweb.freebsd.org/changeset/base/322888 Log: Make entries for the United States more consistent. MFC after:1 week Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified:

svn commit: r322885 - in head: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-08-25 Thread Ed Schouten
Author: ed Date: Fri Aug 25 11:01:39 2017 New Revision: 322885 URL: https://svnweb.freebsd.org/changeset/base/322885 Log: Sync CloudABI compatibility against the latest upstream version (v0.13). With Flower (CloudABI's network connection daemon) becoming more complete, there is no longer

Re: svn commit: r322875 - head/sys/dev/nvme

2017-08-25 Thread Ed Schouten
ng does get it right, in my opinion. We should just extend to define _Static_assert() when using GCC in C++ mode (if we're not doing so already). -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 _

Re: svn commit: r321969 - in head/sys/boot: arm/at91/libat91 arm/ixp425/boot2 i386/boot2

2017-08-03 Thread Ed Schouten
return (int)(fmt - fmt_orig); > } This makes printf() return the number of characters from the format processed, right? This is different from libc's printf(), which returns the number of characters printed. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Nethe

svn commit: r321924 - head/sys/amd64/cloudabi64

2017-08-02 Thread Ed Schouten
Author: ed Date: Wed Aug 2 13:08:10 2017 New Revision: 321924 URL: https://svnweb.freebsd.org/changeset/base/321924 Log: Keep top page on CloudABI to work around AMD Ryzen stability issues. Similar to r321899, reduce sv_maxuser by one page inside of CloudABI. This ensures that the

svn commit: r321678 - head/usr.sbin/prometheus_sysctl_exporter

2017-07-29 Thread Ed Schouten
Author: ed Date: Sat Jul 29 08:35:07 2017 New Revision: 321678 URL: https://svnweb.freebsd.org/changeset/base/321678 Log: Be a bit more liberal about sysctl naming. On the systems on which I tested this exporter, I never ran into metrics that were named in such a way that they couldn't

svn commit: r321514 - in head: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-07-26 Thread Ed Schouten
Author: ed Date: Wed Jul 26 06:57:15 2017 New Revision: 321514 URL: https://svnweb.freebsd.org/changeset/base/321514 Log: Upgrade to the latest sources generated from the CloudABI specification. The CloudABI specification has had some minor changes over the last half year. No substantial

Re: svn commit: r320595 - in head/sys: amd64/linux amd64/linux32 i386/linux

2017-07-03 Thread Ed Schouten
Hi there, 2017-07-03 12:24 GMT+02:00 Dmitry Chagin <dcha...@freebsd.org>: > + .compat_3_brand = "Linux", I suspect that you can safely remove this line. It's only intended to match a field in ELF headers that is/was BSD specific. -- Ed Schouten <e...@nuxi.nl&g

Re: svn commit: r320240 - head/include

2017-06-27 Thread Ed Schouten
2017-06-27 13:17 GMT+02:00 Jan Beich <jbe...@freebsd.org>: > False alarm. Sorry. No problem. Thanks for bringing it to my attention, regardless! \o/ -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717

Re: svn commit: r320240 - head/include

2017-06-27 Thread Ed Schouten
t; [...] > > https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20170626/493679.html Would there be an easy way for me to extract a list of ports that are affected? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the

Re: svn commit: r320360 - head/usr.bin/resizewin

2017-06-26 Thread Ed Schouten
it(1); Would it make sense to print diagnostics here? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubsc

svn commit: r320240 - head/include

2017-06-22 Thread Ed Schouten
Author: ed Date: Thu Jun 22 18:39:52 2017 New Revision: 320240 URL: https://svnweb.freebsd.org/changeset/base/320240 Log: Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__. FreeBSD's C library uses __STDC_VERSION__ to determine whether the compiler provides language features

Re: svn commit: r319897 - head/usr.bin/yes

2017-06-13 Thread Ed Schouten
2017-06-13 14:35 GMT+02:00 Pietro Cerutti <g...@freebsd.org>: > + while (write(STDOUT_FILENO, exp, explen) > 0) > + ; How does this deal with partial writes? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherla

Re: svn commit: r303033 - head/share/man/man7

2017-05-04 Thread Ed Schouten
ORDER_BIG_ENDIAN__ __ORDER_PDP_ENDIAN__ -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail t

Re: svn commit: r316825 - head/sys/netpfil/ipfw

2017-04-14 Thread Ed Schouten
the code could be abbreviated by simply using assignment, right? tent->k.addr6 = xn->addr6.sin6_addr; -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@freebsd.org mailing list https://

svn commit: r315892 - head/sys/compat/cloudabi

2017-03-24 Thread Ed Schouten
Author: ed Date: Fri Mar 24 07:09:33 2017 New Revision: 315892 URL: https://svnweb.freebsd.org/changeset/base/315892 Log: Include to obtain the memcpy() prototype. I got a report of this source file not building on Raspberry Pi. It's interesting that this only fails for that target and

svn commit: r315861 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-23 Thread Ed Schouten
Author: ed Date: Thu Mar 23 14:12:21 2017 New Revision: 315861 URL: https://svnweb.freebsd.org/changeset/base/315861 Log: Stop providing the compat_3_brand. As of r315860, the ELF image activator works fine for CloudABI without it. Reviewed by: kib MFC after:2 weeks Modified:

svn commit: r315860 - head/sys/kern

2017-03-23 Thread Ed Schouten
Author: ed Date: Thu Mar 23 14:09:45 2017 New Revision: 315860 URL: https://svnweb.freebsd.org/changeset/base/315860 Log: Don't require the presence of the compat_3_brand. The existing ELF image activator requires the brandinfo to provide such a string unconditionally, even if the

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-23 Thread Ed Schouten
Hi Kostik, 2017-03-23 0:00 GMT+01:00 Konstantin Belousov <kostik...@gmail.com>: > On Wed, Mar 22, 2017 at 03:16:24PM +0100, Ed Schouten wrote: >> Similarly, I seem to remember CloudABI's brandinfos set compat_3_brand >> for a similar reason: it seems to be required by imga

svn commit: r315736 - in head/sys/compat: cloudabi cloudabi32 cloudabi64

2017-03-22 Thread Ed Schouten
Author: ed Date: Wed Mar 22 19:20:39 2017 New Revision: 315736 URL: https://svnweb.freebsd.org/changeset/base/315736 Log: Make file descriptor passing for CloudABI's recvmsg() work. Similar to the change for sendmsg(), create a pointer size independent implementation of recvmsg() and let

svn commit: r315732 - head/sys/sys

2017-03-22 Thread Ed Schouten
Author: ed Date: Wed Mar 22 18:45:13 2017 New Revision: 315732 URL: https://svnweb.freebsd.org/changeset/base/315732 Log: Add forward declaration for struct vnode. The coredump() function provided by this header file has struct vnode * as an argument. MFC after:1 week Modified:

Re: svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-22 Thread Ed Schouten
Hi Kostik, 2017-03-22 10:02 GMT+01:00 Konstantin Belousov <kostik...@gmail.com>: > On Wed, Mar 22, 2017 at 07:05:27AM +, Ed Schouten wrote: >> Author: ed >> Date: Wed Mar 22 07:05:27 2017 >> New Revision: 315701 >> URL: https://svnweb.freebsd.org/changese

svn commit: r315701 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-03-22 Thread Ed Schouten
Author: ed Date: Wed Mar 22 07:05:27 2017 New Revision: 315701 URL: https://svnweb.freebsd.org/changeset/base/315701 Log: Set the interpreter path to /nonexistent. CloudABI executables are statically linked and don't have an interpreter. Setting the interpreter path to NULL used to work

svn commit: r315700 - in head/sys/compat: cloudabi cloudabi32 cloudabi64

2017-03-22 Thread Ed Schouten
Author: ed Date: Wed Mar 22 06:43:10 2017 New Revision: 315700 URL: https://svnweb.freebsd.org/changeset/base/315700 Log: Make file descriptor passing work for CloudABI's sendmsg(). Reduce the potential amount of code duplication between cloudabi32 and cloudabi64 by creating a

Re: svn commit: r314685 - head/bin/ps

2017-03-05 Thread Ed Schouten
thing like this: >> >> | if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') >> | termwidth = atoi(cols); >> | else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)) == >> -1 && ws.ws_row == 0) > > Shoul

Re: svn commit: r314685 - head/bin/ps

2017-03-04 Thread Ed Schouten
ENO, TIOCGWINSZ, (char *)) == -1 && ws.ws_row == 0) | termwidth = UNLIMITED; |else |termwidth = ws.ws_col - 1; -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-head@fr

svn commit: r313801 - head/lib/libc/sys

2017-02-15 Thread Ed Schouten
Author: ed Date: Thu Feb 16 06:52:53 2017 New Revision: 313801 URL: https://svnweb.freebsd.org/changeset/base/313801 Log: Remove unnecessary #includes from the kqueue(2) man page. Now that can be included on its own, adjust the manual page accordingly. Remove both unnecessary #include

Re: svn commit: r313704 - head/sys/sys

2017-02-13 Thread Ed Schouten
declared by simply including this header. Maybe it's best to leave it there, so that it's more likely for people to write code that also builds with previous versions of this header? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands Kv

svn commit: r313704 - head/sys/sys

2017-02-13 Thread Ed Schouten
Author: ed Date: Mon Feb 13 19:00:09 2017 New Revision: 313704 URL: https://svnweb.freebsd.org/changeset/base/313704 Log: Make work on its own. Right now this header file doesn't want to build when included on its own, as it depends on some integer types that are only declared

Re: svn commit: r313329 - in head: bin/ed secure/usr.bin secure/usr.bin/bdes usr.bin usr.bin/enigma

2017-02-06 Thread Ed Schouten
her crypt formats, the DES implementation seems fairly large, uses global state, etc. I can send out a change for code review if people {like,don't object to} this. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717

Re: svn commit: r313322 - in head/sys: conf dev/iwm modules/iwm

2017-02-05 Thread Ed Schouten
it.c optional iwm > dev/iwm/if_iwm_pcie_trans.coptional iwm > dev/iwm/if_iwm_phy_ctxt.c optional iwm > dev/iwm/if_iwm_phy_db.coptional iwm What's with the 'netif' part in the source file's name? The actual source file doesn't use it. -- Ed Schouten <e...@nux

svn commit: r312355 - in head/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 compat/cloudabi compat/cloudabi32 compat/cloudabi64 i386/cloudabi32

2017-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 22:05:52 2017 New Revision: 312355 URL: https://svnweb.freebsd.org/changeset/base/312355 Log: Catch up with changes to structure member names. Pointer/length pairs are now always named ${name} and ${name}_len. Modified:

svn commit: r312354 - in head/sys/compat: cloudabi32 cloudabi64

2017-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 22:05:01 2017 New Revision: 312354 URL: https://svnweb.freebsd.org/changeset/base/312354 Log: Regenerate sources based on the system call tables. Modified: head/sys/compat/cloudabi32/cloudabi32_proto.h head/sys/compat/cloudabi32/cloudabi32_syscall.h

  1   2   3   4   5   6   7   8   9   10   >