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

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

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

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:

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

Re: svn commit: r314335 - stable/10/sys/crypto/sha2

2017-02-27 Thread Ed Schouten
this regardless! -- 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 to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r314335 - stable/10/sys/crypto/sha2

2017-02-27 Thread Ed Schouten
> 16]) Then it will compute the next chunk of the extended message in-place. RNDr() must then be adjusted to use W[i] instead of W[i + ii], of course. W then only needs to hold 16 elements instead of 64 or 80. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 6

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: r313632 - in stable/10/contrib/netbsd-tests/lib/libc/gen: . posix_spawn

2017-02-13 Thread Ed Schouten
hat's simply how BSD header files work. Take a look at the declaration of kill() in our copy of : int kill(__pid_t, int); This is simply the construct that the BSDs use to depend on a type without exposing it. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands

Re: svn commit: r313632 - in stable/10/contrib/netbsd-tests/lib/libc/gen: . posix_spawn

2017-02-11 Thread Ed Schouten
r_t ident; /* identifier for this event */ + __uintptr_t ident; /* identifier for this event */ short filter; /* filter for event */ - u_short flags; - u_int fflags; - intptr_t data; + unsigned short flags; + unsigned int fflags; + __intptr_t data; void *udata; /* opaque user data identifier */ };

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

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

2017-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 22:03:08 2017 New Revision: 312353 URL: https://svnweb.freebsd.org/changeset/base/312353 Log: Sync in the latest CloudABI generated source files. Languages like C++17 and Go provide direct support for slice types: pointer/length pairs. The CloudABI generator

Re: svn commit: r310425 - in head/sys/dev/mlx4: mlx4_core mlx4_ib

2016-12-22 Thread Ed Schouten
2016-12-22 19:26 GMT+01:00 Ed Maste <ema...@freebsd.org>: > Log: > mlx: avoid use of __DATE__ to make build reproducible Out of curiosity, are we planning on adding -Wdate-time or -Werror=date-time to our default CFLAGS? If so, awesome! -- Ed Schouten <e...@nuxi.nl> Nuxi

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-22 Thread Ed Schouten
ame is that it's > easily googlable, and it clearly indicates the "protocol" (in the wide > meaning) one is supposed to use to talk to it. Agreed. Let's leave it the way it is right now, as I don't feel like upsetting Warner. ;-) -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-H

Re: svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Ed Schouten
ng to add exporters for other things as well? E.g., for Sendmail, sshd, ftpd, HAST, etc. In that case it would be nicer if those exporters shared a common prefix. That said, if people truly think it's a good idea to call this sysctl_exporter instead, then I wouldn't mind renaming it. Thoughts? Opinions?

svn commit: r310355 - head/etc

2016-12-21 Thread Ed Schouten
Author: ed Date: Wed Dec 21 08:32:20 2016 New Revision: 310355 URL: https://svnweb.freebsd.org/changeset/base/310355 Log: Add an example inetd(8) entry for the Prometheus sysctl exporter. I went through the process of allocating a default port number for this exporter, TCP 9124. This

svn commit: r310354 - in head/usr.sbin: . prometheus_sysctl_exporter

2016-12-21 Thread Ed Schouten
Author: ed Date: Wed Dec 21 08:29:44 2016 New Revision: 310354 URL: https://svnweb.freebsd.org/changeset/base/310354 Log: Add a Prometheus exporter for sysctl values. Now that we have our sysctl tree annotated with aggregation labels, let's go ahead and provide a very simple utility for

svn commit: r310321 - stable/9/lib/libc/gen

2016-12-20 Thread Ed Schouten
Author: ed Date: Tue Dec 20 08:01:17 2016 New Revision: 310321 URL: https://svnweb.freebsd.org/changeset/base/310321 Log: MFC r309650: Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [-2^31, 2^31). This doesn't

svn commit: r310320 - stable/10/lib/libc/gen

2016-12-19 Thread Ed Schouten
Author: ed Date: Tue Dec 20 07:50:49 2016 New Revision: 310320 URL: https://svnweb.freebsd.org/changeset/base/310320 Log: MFC r309650: Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [-2^31, 2^31). This doesn't

svn commit: r310319 - stable/11/lib/libc/gen

2016-12-19 Thread Ed Schouten
Author: ed Date: Tue Dec 20 07:42:15 2016 New Revision: 310319 URL: https://svnweb.freebsd.org/changeset/base/310319 Log: MFC r309650: Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [-2^31, 2^31). This doesn't

Re: svn commit: r310232 - head/sys/dev/mlx4/mlx4_ib

2016-12-18 Thread Ed Schouten
_num % 8; Looking at the code, the intent is that an actual 64-bit integer is parsed; not an unsigned long long. What's wrong with using inttypes.h's SCNx64? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 _

Re: svn commit: r310051 - in head: share/man/man9 sys/kern sys/sys

2016-12-17 Thread Ed Schouten
if you simply rebuild all kernel modules, this shouldn't cause any regressions, or are you saying those persist? If so, this is definitely not an intended side-effect of this change and we should look into it. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Ne

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

2016-12-15 Thread Ed Schouten
that should be renamed to something like CTL_INTERNAL or something. -- 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

svn commit: r310116 - head/sys/kern

2016-12-15 Thread Ed Schouten
Author: ed Date: Thu Dec 15 15:45:11 2016 New Revision: 310116 URL: https://svnweb.freebsd.org/changeset/base/310116 Log: Document the existence of the {0, 6, ...} sysctl. Modified: head/sys/kern/kern_sysctl.c Modified: head/sys/kern/kern_sysctl.c

svn commit: r310057 - head/sys/sys

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 13:35:33 2016 New Revision: 310057 URL: https://svnweb.freebsd.org/changeset/base/310057 Log: Revert accidental change made in r310056. Because I had to cherry-pick some of my changes in r310051, I accidentally made a typo when manually applying the rest in

svn commit: r310056 - head/sys/sys

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 13:05:04 2016 New Revision: 310056 URL: https://svnweb.freebsd.org/changeset/base/310056 Log: Let all FEATURE()s use the same Prometheus metric. Without this change, every individual FEATURE() declaration would have an individual metric in Prometheus. Though

svn commit: r310055 - head/sys/kern

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 13:03:01 2016 New Revision: 310055 URL: https://svnweb.freebsd.org/changeset/base/310055 Log: Add a "device_index" label to all sysctls under dev.$driver.$index. This way it becomes possible to graph a property for all instances of a single driver. For

svn commit: r310054 - head/sys/dev/acpica

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 13:00:27 2016 New Revision: 310054 URL: https://svnweb.freebsd.org/changeset/base/310054 Log: Attach a "thermal_zone" label to the ACPI thermal zone sysctls. In order to make Prometheus do graphing/alerting on thermal sensors in a generic fashion, we should

svn commit: r310053 - head/sys/kern

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 12:56:58 2016 New Revision: 310053 URL: https://svnweb.freebsd.org/changeset/base/310053 Log: Add labels to sysctls related to clocks. Sysctls like kern.eventtimer.et.*.quality currently embed the name of the clock device. This is problematic for the

svn commit: r310052 - in head/sys/cam: ata nvme scsi

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 12:53:33 2016 New Revision: 310052 URL: https://svnweb.freebsd.org/changeset/base/310052 Log: Add label annotations to CAM sysctls. Under kern.cam we have certain sysctls that are per-device, such as the ones under kern.cam.ada.[0-9]+.*. Add a "device_index"

svn commit: r310051 - in head: share/man/man9 sys/kern sys/sys

2016-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 12:47:34 2016 New Revision: 310051 URL: https://svnweb.freebsd.org/changeset/base/310051 Log: Add support for attaching aggregation labels to sysctl objects. I'm currently working on writing a metrics exporter for the Prometheus monitoring system to provide

svn commit: r310014 - head/sys/compat/linuxkpi/common/include/linux

2016-12-12 Thread Ed Schouten
Author: ed Date: Tue Dec 13 07:58:30 2016 New Revision: 310014 URL: https://svnweb.freebsd.org/changeset/base/310014 Log: Remove the only user of sysctl_add_oid(). My plan is to change this function's prototype at some point in the future to add a new label argument, which can be used to

svn commit: r309650 - head/lib/libc/gen

2016-12-06 Thread Ed Schouten
Author: ed Date: Tue Dec 6 19:08:29 2016 New Revision: 309650 URL: https://svnweb.freebsd.org/changeset/base/309650 Log: Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [_2^31, 2^31). This doesn't seem to work on 64-bit

Re: svn commit: r309198 - head/usr.bin/nfsstat

2016-11-26 Thread Ed Schouten
2016-11-26 21:53 GMT+01:00 Rick Macklem <rmack...@freebsd.org>: > -.Dd August 13, 2016 > +.Dd Nov 23, 2016 Shouldn't this use 'November' instead of 'Nov'? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 _

svn commit: r308264 - in head: include lib/libc/gen

2016-11-03 Thread Ed Schouten
Author: ed Date: Thu Nov 3 20:21:34 2016 New Revision: 308264 URL: https://svnweb.freebsd.org/changeset/base/308264 Log: Replace basename(3) by a thread-safe implementation. Now that the changes to the dirname(3) function had some time to settle, let's go ahead and use the same approach

svn commit: r308091 - stable/10/include

2016-10-29 Thread Ed Schouten
Author: ed Date: Sat Oct 29 15:04:24 2016 New Revision: 308091 URL: https://svnweb.freebsd.org/changeset/base/308091 Log: Add posix_tnode to . In r307227 I've refactored the binary search tree functions to use the posix_tnode type. As this change does not apply cleanly to this version

svn commit: r308092 - stable/9/include

2016-10-29 Thread Ed Schouten
Author: ed Date: Sat Oct 29 15:04:33 2016 New Revision: 308092 URL: https://svnweb.freebsd.org/changeset/base/308092 Log: Add posix_tnode to . In r307227 I've refactored the binary search tree functions to use the posix_tnode type. As this change does not apply cleanly to this version

svn commit: r308090 - in stable/11: include lib/libc/stdlib lib/libc/tests/stdlib

2016-10-29 Thread Ed Schouten
Author: ed Date: Sat Oct 29 14:41:22 2016 New Revision: 308090 URL: https://svnweb.freebsd.org/changeset/base/308090 Log: MFC r307227 and r307343: Improve typing of POSIX search tree functions. Back in 2015 when I reimplemented these functions to use an AVL tree, I was annoyed

Re: svn commit: r307791 - stable/11/usr.sbin/bhyve

2016-10-22 Thread Ed Schouten
Hi Baptiste, 2016-10-22 22:49 GMT+02:00 Baptiste Daroussin <b...@freebsd.org>: > Use accept4 with O_NONBLOCK rather than accept + fcntl Keep in mind that changes like these do reduce the portability of the code. accept4(), SOCK_NONBLOCK, etc. are not part of POSIX. -- Ed Sc

svn commit: r307343 - head/lib/libc/stdlib

2016-10-15 Thread Ed Schouten
Author: ed Date: Sat Oct 15 08:09:55 2016 New Revision: 307343 URL: https://svnweb.freebsd.org/changeset/base/307343 Log: Improve phrasing of the STANDARDS section. Reported by: wblock MFC after:1 month Differential Revision:https://reviews.freebsd.org/D8205 Modified:

svn commit: r307227 - in head: include lib/libc/stdlib lib/libc/tests/stdlib

2016-10-13 Thread Ed Schouten
Author: ed Date: Thu Oct 13 18:25:40 2016 New Revision: 307227 URL: https://svnweb.freebsd.org/changeset/base/307227 Log: Improve typing of POSIX search tree functions. Back in 2015 when I reimplemented these functions to use an AVL tree, I was annoyed by the weakness of the typing of

svn commit: r307144 - in stable/11: share/man/man4 sys/amd64/cloudabi32 sys/amd64/cloudabi64 sys/amd64/conf sys/arm/cloudabi32 sys/arm64/cloudabi64 sys/compat/cloudabi sys/compat/cloudabi32 sys/com...

2016-10-12 Thread Ed Schouten
Author: ed Date: Wed Oct 12 12:17:41 2016 New Revision: 307144 URL: https://svnweb.freebsd.org/changeset/base/307144 Log: MFC r303818, r303833, r303941, r304478, r304481, r304483, r304484, r304554, r304555, r304556, r304557, r304558, r304559, r304561, r304563, r304564, r304565,

svn commit: r307136 - in stable/11/sys/arm: arm include

2016-10-12 Thread Ed Schouten
Author: ed Date: Wed Oct 12 09:17:41 2016 New Revision: 307136 URL: https://svnweb.freebsd.org/changeset/base/307136 Log: MFC r306162: Make it possible to safely use TPIDRURW from userspace. On amd64, arm64 and i386, we have the possibility to switch between TLS areas in

svn commit: r307135 - stable/11/sys/compat/ia32

2016-10-12 Thread Ed Schouten
Author: ed Date: Wed Oct 12 09:16:16 2016 New Revision: 307135 URL: https://svnweb.freebsd.org/changeset/base/307135 Log: MFC r304740: Add missing header dependency. This header depends on sigaltstack32 being declared. Modified: stable/11/sys/compat/ia32/ia32_signal.h Directory

Re: svn commit: r306651 - in head: include lib/libc/gen

2016-10-03 Thread Ed Schouten
2016-10-03 20:47 GMT+02:00 Konstantin Belousov <kostik...@gmail.com>: > Sorry, I did not noticed this. Yes, sym_compat is enough there. Ah, no problem. Thanks for taking your time regardless! -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands Kv

Re: svn commit: r306651 - in head: include lib/libc/gen

2016-10-03 Thread Ed Schouten
2016-10-03 20:34 GMT+02:00 Ed Schouten <e...@nuxi.nl>: > But I've added __sym_compat()s for those. That still causes them to be > available for linking, right? readelf -s gives: Sorry if I was unclear. In this context, 'linking' should say 'run-time linking'. -- Ed Schouten <e..

Re: svn commit: r306651 - in head: include lib/libc/gen

2016-10-03 Thread Ed Schouten
@FBSD_1.0 If this is incorrect, what should I have done instead? -- 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 un

svn commit: r306651 - in head: include lib/libc/gen

2016-10-03 Thread Ed Schouten
Author: ed Date: Mon Oct 3 18:20:58 2016 New Revision: 306651 URL: https://svnweb.freebsd.org/changeset/base/306651 Log: Remove setkey(), encrypt(), des_setkey() and des_cipher(). The setkey() and encrypt() functions are part of XSI, not the POSIX base definitions. There is no strict

Re: svn commit: r306622 - head/usr.bin/mkimg

2016-10-03 Thread Ed Schouten
2016-10-03 6:00 GMT+02:00 Marcel Moolenaar <mar...@freebsd.org>: > Log: > Replace OFF_MAX with INT64_MAX. The former is defined on Linux. Blargh. If only C had std::numeric_limits::{min,max}. :-( -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands

Re: svn commit: r306282 - head/sys/compat/cloudabi

2016-09-24 Thread Ed Schouten
2016-09-24 1:08 GMT+02:00 Mateusz Guzik <m...@freebsd.org>: > Log: > cloudabi: use fget_cap instead of hand-rolling capability read Thank you! -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 _

Re: svn commit: r306162 - in head/sys/arm: arm include

2016-09-22 Thread Ed Schouten
r thing this could be useful for is that it allows us to implement something like a simple truss(1) that doesn't depend on kernel-level tracing facilities, but merely captures system call invocations inside the process itself. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Nethe

svn commit: r306185 - in head: share/man/man4 sys/modules sys/modules/cloudabi32

2016-09-22 Thread Ed Schouten
Author: ed Date: Thu Sep 22 12:08:26 2016 New Revision: 306185 URL: https://svnweb.freebsd.org/changeset/base/306185 Log: Make the cloudabi32 kernel module available on ARMv6. Now that all of the necessary bits for ARMv6 support for CloudABI have been checked in, let's hook the kernel

svn commit: r306162 - in head/sys/arm: arm include

2016-09-22 Thread Ed Schouten
Author: ed Date: Thu Sep 22 08:14:59 2016 New Revision: 306162 URL: https://svnweb.freebsd.org/changeset/base/306162 Log: Make it possible to safely use TPIDRURW from userspace. On amd64, arm64 and i386, we have the possibility to switch between TLS areas in userspace. The nice thing

svn commit: r306100 - head/include

2016-09-21 Thread Ed Schouten
Author: ed Date: Wed Sep 21 13:03:55 2016 New Revision: 306100 URL: https://svnweb.freebsd.org/changeset/base/306100 Log: Refine the dirname(3) compatibility workaround a bit more. Right now our workaround is so good that it doesn't throw any warnings on misuse. This means that people

svn commit: r306099 - head/usr.sbin/bhyve

2016-09-21 Thread Ed Schouten
Author: ed Date: Wed Sep 21 13:02:43 2016 New Revision: 306099 URL: https://svnweb.freebsd.org/changeset/base/306099 Log: Fix misuse of the basename() and dirname() functions. These functions are allowed to overwrite their input. Pull a copy of the input parameter and call dirname() and

Re: svn commit: r305971 - stable/11/lib/msun/src

2016-09-19 Thread Ed Schouten
right? Wouldn't it make more sense to use strong references here, so that they are consistent with other architectures? -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-all@freebsd.o

Re: svn commit: r305952 - head/lib/libc/gen

2016-09-19 Thread Ed Schouten
e subject, anyone willing to review this change? :-) https://reviews.freebsd.org/D7844 -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailm

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

2016-09-19 Thread Ed Schouten
Author: ed Date: Mon Sep 19 17:31:05 2016 New Revision: 305987 URL: https://svnweb.freebsd.org/changeset/base/305987 Log: Sync in latest vDSOs from upstream. - Use conditional instruction to simplify the ARMv6 vDSO. This means that we no longer perform any branching. In the failure

svn commit: r305952 - head/lib/libc/gen

2016-09-18 Thread Ed Schouten
Author: ed Date: Sun Sep 18 20:47:55 2016 New Revision: 305952 URL: https://svnweb.freebsd.org/changeset/base/305952 Log: Replace dirname(3) by a copy that complies to POSIX. It turns out that the path normalization that our brand new copy of dirname(3) does is actually not allowed by

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

2016-09-18 Thread Ed Schouten
Author: ed Date: Sun Sep 18 17:23:53 2016 New Revision: 305938 URL: https://svnweb.freebsd.org/changeset/base/305938 Log: Fix badly computed register/stack offset of system call output arguments. Bugs in the Python code used to generate this vDSO caused us to miscompute the register

svn commit: r305928 - in head/sys: arm/cloudabi32 conf contrib/cloudabi

2016-09-18 Thread Ed Schouten
Author: ed Date: Sun Sep 18 11:36:54 2016 New Revision: 305928 URL: https://svnweb.freebsd.org/changeset/base/305928 Log: Add very preliminary support for CloudABI for ARMv6. In order to make CloudABI work on ARMv6, start off by copying over the sysvec for ARM64 and adjust it to use

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

2016-09-09 Thread Ed Schouten
Author: ed Date: Fri Sep 9 07:10:50 2016 New Revision: 305651 URL: https://svnweb.freebsd.org/changeset/base/305651 Log: Properly patch up dirname()/basename() calls to not clobber ent->log. It turns out that we had a couple of more calls to dirname()/basename() in newsyslog(8) that

Re: svn commit: r305607 - head/sys/arm64/arm64

2016-09-08 Thread Ed Schouten
2016-09-08 17:05 GMT+02:00 Andrew Turner <and...@fubar.geek.nz>: > On Thu, 8 Sep 2016 16:48:45 +0200 > Ed Schouten <e...@nuxi.nl> wrote: >> It depends on which system register is being used, right? System >> registers like TPIDR_EL0 are accessed by userspace all t

Re: svn commit: r305607 - head/sys/arm64/arm64

2016-09-08 Thread Ed Schouten
by userspace all the time. -- 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 to &qu

svn commit: r304991 - in head/sys/modules: cloudabi32 cloudabi64

2016-08-29 Thread Ed Schouten
Author: ed Date: Mon Aug 29 07:48:35 2016 New Revision: 304991 URL: https://svnweb.freebsd.org/changeset/base/304991 Log: Use both the MACHINE and MACHINE_CPUARCH directories for finding sources. When fixing this module to build on PC98, I actually broke the build on ARM64. On PC98 we

svn commit: r304886 - in head/sys/modules: cloudabi32 cloudabi64

2016-08-27 Thread Ed Schouten
Author: ed Date: Sat Aug 27 09:50:11 2016 New Revision: 304886 URL: https://svnweb.freebsd.org/changeset/base/304886 Log: Properly use MACHINE_CPUARCH for finding cloudabi*_sysvec.c. The build of the cloudabi32 kernel module currently fails for PC98. In the case of PC98, we just want to

svn commit: r304860 - in head: include lib/libc/gen

2016-08-26 Thread Ed Schouten
Author: ed Date: Fri Aug 26 20:23:10 2016 New Revision: 304860 URL: https://svnweb.freebsd.org/changeset/base/304860 Log: Improve compatibility of calls to dirname() on constant strings. As the xinstall(8) utility had to be patched up to work with the POSIXly correct basename()/dirname()

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-26 Thread Ed Schouten
ootstrap build > it is built with MK_WARNS=no so the error is ignored. That's good to know. I'll land this change in a couple of minutes from now, reverting any of the changes related to basename(). Guido, Bryan, thanks for testing! -- Ed Schouten <e...@nuxi.nl>

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-26 Thread Ed Schouten
well? I'm planning on replacing it anyway to be in sync with the new basename() anyway. Attached is a new patch. Be sure to let me know whether that works for you. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717 Index: i

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-25 Thread Ed Schouten
ens if you s/__sym_compat/__sym_default the basename() line? -- 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

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-24 Thread Ed Schouten
deprecated__)): https://gcc.gnu.org/onlinedocs/gcc-3.3.4/gcc/Type-Attributes.html But I'm actually too afraid to use it. In the worst case it may cause the compiler to generate a warning even when basename()/dirname() is used correctly, as __old_* will still be part of the compiled expression. -- Ed

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-24 Thread Ed Schouten
_old_basename() and __old_dirname(). Using __sym_compat(), these will cause the compiler to generate calls to basename@FBSD_1.0 and dirname@FBSD_1.0. According to Bryan, this fixes the problems he was experiencing. -- Ed Schouten <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Nethe

Re: svn commit: r303988 - head/lib/libc/gen

2016-08-24 Thread Ed Schouten
Hi Bryan, We could solve this by simple mfcing the change I made for xinstall, right? Ed On 24 Aug 2016 20:15, "Bryan Drewery" <bdrew...@freebsd.org> wrote: > On 8/24/16 11:06 AM, Bryan Drewery wrote: > > On 8/12/16 12:03 AM, Ed Schouten wrote: > >> Author:

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

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 12:53:54 2016 New Revision: 304748 URL: https://svnweb.freebsd.org/changeset/base/304748 Log: Document the existence of the cloudabi32 kernel module. Modified: head/share/man/man4/cloudabi.4 Modified: head/share/man/man4/cloudabi.4

svn commit: r304745 - in head/sys/modules: . cloudabi32

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 11:35:49 2016 New Revision: 304745 URL: https://svnweb.freebsd.org/changeset/base/304745 Log: Add a Makefile for building the cloudabi32 kernel module. Where the cloudabi64 kernel can be used to execute 64-bit CloudABI binaries, this one should be used for

svn commit: r304744 - in head/sys: amd64/cloudabi32 amd64/conf conf contrib/cloudabi

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 10:51:33 2016 New Revision: 304744 URL: https://svnweb.freebsd.org/changeset/base/304744 Log: Make execution of 32-bit CloudABI executables work on amd64. A nice thing about requiring a vDSO is that it makes it incredibly easy to provide full support for

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

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 10:36:52 2016 New Revision: 304743 URL: https://svnweb.freebsd.org/changeset/base/304743 Log: Remove an unused header file. The native CloudABI data types header file used to be pulled in by the vDSOs when they were still written in C. Since they are now all

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

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 10:13:18 2016 New Revision: 304742 URL: https://svnweb.freebsd.org/changeset/base/304742 Log: Convert pointers obtained from the threadattr_t structure with TO_PTR(). In all of these source files, the userspace pointer size corresponds with the kernelspace

svn commit: r304740 - head/sys/compat/ia32

2016-08-24 Thread Ed Schouten
Author: ed Date: Wed Aug 24 09:57:19 2016 New Revision: 304740 URL: https://svnweb.freebsd.org/changeset/base/304740 Log: Add missing header dependency. This header depends on sigaltstack32 being declared. Modified: head/sys/compat/ia32/ia32_signal.h Modified:

svn commit: r304615 - in head/sys: conf contrib/cloudabi i386/cloudabi32 i386/conf

2016-08-22 Thread Ed Schouten
Author: ed Date: Mon Aug 22 17:37:31 2016 New Revision: 304615 URL: https://svnweb.freebsd.org/changeset/base/304615 Log: Make CloudABI work on i386. Copy over amd64's cloudabi64_sysvec.c into i386 and tailor it to work. Again, we use a system call convention similar to FreeBSD, except

svn commit: r304565 - head/sys/compat/cloudabi32

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 16:02:25 2016 New Revision: 304565 URL: https://svnweb.freebsd.org/changeset/base/304565 Log: Add source files generated from the 32-bit system call table. Added: head/sys/compat/cloudabi32/cloudabi32_proto.h (contents, props changed)

svn commit: r304564 - in head/sys: compat/cloudabi32 conf

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 16:01:30 2016 New Revision: 304564 URL: https://svnweb.freebsd.org/changeset/base/304564 Log: Add CPU independent code for running 32-bits CloudABI executables. Essentially, this is a literal copy of the code in sys/compat/cloudabi64, except that it now makes

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

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 15:56:19 2016 New Revision: 304563 URL: https://svnweb.freebsd.org/changeset/base/304563 Log: Fix s/64/32/ conversion errors in the system call table. We should pull in the 32 bit headers when using this system call table. Modified:

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

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 15:41:19 2016 New Revision: 304561 URL: https://svnweb.freebsd.org/changeset/base/304561 Log: Import the 32-bit system call table and data types into the tree. Obtained from:https://github.com/NuxiNL/cloudabi Added:

svn commit: r304559 - head/sys/compat/cloudabi64

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 15:37:49 2016 New Revision: 304559 URL: https://svnweb.freebsd.org/changeset/base/304559 Log: Don't forget to define __ELF_WORD_SIZE. Without it, we only obtain the ELF types native to the system. In this we explicitly want the 64-bit versions. Modified:

svn commit: r304558 - head/sys/compat/cloudabi64

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 15:36:18 2016 New Revision: 304558 URL: https://svnweb.freebsd.org/changeset/base/304558 Log: Add a utility macro for converting 64-bit pointers to native pointers. Right now we're casting uint64_t's to native pointers. This isn't causing any problems right

svn commit: r304557 - in head/sys: compat/cloudabi compat/cloudabi64 conf modules/cloudabi64

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 15:14:06 2016 New Revision: 304557 URL: https://svnweb.freebsd.org/changeset/base/304557 Log: Move the linker script from cloudabi64/ to cloudabi/. It turns out that it works perfectly fine for generating 32-bits vDSOs as well. While there, get rid of the

svn commit: r304556 - head/sys/compat/cloudabi64

2016-08-21 Thread Ed Schouten
Author: ed Date: Sun Aug 21 09:32:20 2016 New Revision: 304556 URL: https://svnweb.freebsd.org/changeset/base/304556 Log: Use the right _MAX constant. Though uio_resid is of type ssize_t, we need to take into account that this source file contains an implementation specific to a certain

<    1   2   3   4   5   6   7   8   9   10   >