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-

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-all

svn commit: r338334 - stable/11/usr.sbin/newsyslog

2018-08-27 Thread Ed Schouten
Author: ed Date: Mon Aug 27 07:32:41 2018 New Revision: 338334 URL: https://svnweb.freebsd.org/changeset/base/338334 Log: MFC r336086: 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

svn commit: r336304 - stable/11/usr.sbin/syslogd

2018-07-15 Thread Ed Schouten
Author: ed Date: Sun Jul 15 13:50:01 2018 New Revision: 336304 URL: https://svnweb.freebsd.org/changeset/base/336304 Log: MFC r336060: Allow the use of slashes in process names of RFC 3164 formatted messages. Tools such as Postfix use slashes in process names for hierarchy

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: r336059 - stable/11/usr.sbin/syslogd

2018-07-07 Thread Ed Schouten
Author: ed Date: Sat Jul 7 11:39:20 2018 New Revision: 336059 URL: https://svnweb.freebsd.org/changeset/base/336059 Log: MFC r335862: 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

svn commit: r336058 - stable/11/usr.sbin/syslogd

2018-07-07 Thread Ed Schouten
Author: ed Date: Sat Jul 7 11:38:44 2018 New Revision: 336058 URL: https://svnweb.freebsd.org/changeset/base/336058 Log: MFC r335861: Restore the order in which RFC 3164 messages with fac/pri are formatted. The refactoring of the syslogd code to format messages using iovecs

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,

svn commit: r335761 - stable/11/usr.sbin/syslogd

2018-06-28 Thread Ed Schouten
Author: ed Date: Thu Jun 28 12:55:05 2018 New Revision: 335761 URL: https://svnweb.freebsd.org/changeset/base/335761 Log: MFC r335565: Still parse messages that don't contain an RFC 3164 timestamp. The changes made in r326573 required that messages always start with an RFC

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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-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: r335492 - stable/11/usr.sbin/syslogd

2018-06-21 Thread Ed Schouten
Author: ed Date: Thu Jun 21 16:12:30 2018 New Revision: 335492 URL: https://svnweb.freebsd.org/changeset/base/335492 Log: MFC r335314: Fix bad logic in iovlist_truncate(). To conform to RFC 5426, this function is intended to truncate messages if they exceed the message size

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: r335059 - in stable/11: usr.bin/wall usr.sbin/syslogd

2018-06-13 Thread Ed Schouten
the syslogd(8) changes, I also had to merge them back in one go. In other words, this is intentional. :-) -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-sr

svn commit: r335059 - in stable/11: usr.bin/wall usr.sbin/syslogd

2018-06-13 Thread Ed Schouten
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Prodrive Technologies, https://prodrive-technologies.com/ + * Author: Ed Schouten + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following c

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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listi

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-all@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-all@

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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/li

svn commit: r328127 - in stable/11/sys/compat: cloudabi cloudabi32 cloudabi64

2018-01-18 Thread Ed Schouten
Author: ed Date: Thu Jan 18 13:43:09 2018 New Revision: 328127 URL: https://svnweb.freebsd.org/changeset/base/328127 Log: MFC r327560: Allow timed waits with relative timeouts on locks and condvars. Even though pthreads doesn't support this, there are various alternative APIs

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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/li

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: r326743 - in stable/11/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-12-10 Thread Ed Schouten
Author: ed Date: Sun Dec 10 12:25:32 2017 New Revision: 326743 URL: https://svnweb.freebsd.org/changeset/base/326743 Log: MFC r326228 and r326229: 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.

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,

svn commit: r326681 - stable/11/share/man/man4

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

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-all@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-all@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-11-30 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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsub

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: r325858 - in stable/11: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-11-15 Thread Ed Schouten
Author: ed Date: Wed Nov 15 15:56:08 2017 New Revision: 325858 URL: https://svnweb.freebsd.org/changeset/base/325858 Log: MFC r324727 and r32: Import the latest CloudABI definitions, version 0.16. The most important change in this release is the removal of the poll_fd()

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

svn commit: r324250 - in stable/11: sys/compat/cloudabi sys/compat/cloudabi32 sys/compat/cloudabi64 sys/contrib/cloudabi usr.bin/truss

2017-10-04 Thread Ed Schouten
Author: ed Date: Wed Oct 4 07:35:01 2017 New Revision: 324250 URL: https://svnweb.freebsd.org/changeset/base/324250 Log: MFC r321514, r322885, r323015, r323177 This brings the CloudABI code more or less in sync with HEAD. r321514: Upgrade to the latest sources generated from the

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

svn commit: r324055 - stable/11/sys/sys

2017-09-27 Thread Ed Schouten
Author: ed Date: Wed Sep 27 11:31:11 2017 New Revision: 324055 URL: https://svnweb.freebsd.org/changeset/base/324055 Log: MFC r322965: 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

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: r323083 - stable/11/usr.bin/calendar/calendars

2017-09-01 Thread Ed Schouten
Author: ed Date: Fri Sep 1 07:10:01 2017 New Revision: 323083 URL: https://svnweb.freebsd.org/changeset/base/323083 Log: MFC r322888: Make entries for the United States more consistent. As sbruno@'s entry wasn't merged back, also MFC r322336. Modified:

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

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: 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

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

svn commit: r322394 - stable/11/sys/amd64/cloudabi64

2017-08-11 Thread Ed Schouten
Author: ed Date: Fri Aug 11 07:29:50 2017 New Revision: 322394 URL: https://svnweb.freebsd.org/changeset/base/322394 Log: MFC r321924: Keep top page on CloudABI to work around AMD Ryzen stability issues. Similar to r321899, reduce sv_maxuser by one page inside of CloudABI.

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 Neth

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

svn commit: r321372 - stable/11/include

2017-07-22 Thread Ed Schouten
Author: ed Date: Sat Jul 22 14:03:20 2017 New Revision: 321372 URL: https://svnweb.freebsd.org/changeset/base/321372 Log: MFC r320240: Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__. FreeBSD's C library uses __STDC_VERSION__ to determine whether the compiler

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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all 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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail

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-all@freebsd.org mailing list https://

svn commit: r316574 - in stable/11/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 compat/cloudabi compat/cloudabi32 compat/cloudabi64 contrib/cloudabi i386/cloudabi32

2017-04-06 Thread Ed Schouten
Author: ed Date: Thu Apr 6 15:10:36 2017 New Revision: 316574 URL: https://svnweb.freebsd.org/changeset/base/316574 Log: Bring kernel space CloudABI code in sync with HEAD. MFC r312353, r312354 and r312355: Sync in the latest CloudABI generated source files. Languages like

svn commit: r316570 - in stable/11/sys: amd64/cloudabi32 amd64/cloudabi64 arm/cloudabi32 arm64/cloudabi64 i386/cloudabi32

2017-04-06 Thread Ed Schouten
Author: ed Date: Thu Apr 6 13:51:54 2017 New Revision: 316570 URL: https://svnweb.freebsd.org/changeset/base/316570 Log: MFC r315861: Stop providing the compat_3_brand. As of r315860, the ELF image activator works fine for CloudABI without it. Modified:

svn commit: r316569 - stable/11/sys/kern

2017-04-06 Thread Ed Schouten
Author: ed Date: Thu Apr 6 13:50:23 2017 New Revision: 316569 URL: https://svnweb.freebsd.org/changeset/base/316569 Log: MFC r315860: Don't require the presence of the compat_3_brand. The existing ELF image activator requires the brandinfo to provide such a string

svn commit: r316327 - stable/11/sys/compat/cloudabi

2017-03-31 Thread Ed Schouten
Author: ed Date: Fri Mar 31 08:43:07 2017 New Revision: 316327 URL: https://svnweb.freebsd.org/changeset/base/316327 Log: MFC r315892: 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

svn commit: r316277 - stable/10/sys/sys

2017-03-30 Thread Ed Schouten
Author: ed Date: Thu Mar 30 15:05:58 2017 New Revision: 316277 URL: https://svnweb.freebsd.org/changeset/base/316277 Log: MFC r315732: Add forward declaration for struct vnode. The coredump() function provided by this header file has struct vnode * as an argument. Modified:

  1   2   3   4   5   6   7   8   9   10   >