svn commit: r325372 - stable/11/sys/contrib/libnv

2017-11-03 Thread Jilles Tjoelker
Author: jilles Date: Fri Nov 3 22:41:31 2017 New Revision: 325372 URL: https://svnweb.freebsd.org/changeset/base/325372 Log: MFC r325017: libnv: Fix strict-aliasing violation with cookie In r323851 (MFC'ed to stable/11 as r324831), some casts were adjusted in calls to nvlist_next() and n

svn commit: r325017 - head/sys/contrib/libnv

2017-10-26 Thread Jilles Tjoelker
Author: jilles Date: Thu Oct 26 18:32:04 2017 New Revision: 325017 URL: https://svnweb.freebsd.org/changeset/base/325017 Log: libnv: Fix strict-aliasing violation with cookie In rS323851, some casts were adjusted in calls to nvlist_next() and nvlist_get_pararr() in order to make scan-buil

svn commit: r324866 - head/include

2017-10-22 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 22 20:01:07 2017 New Revision: 324866 URL: https://svnweb.freebsd.org/changeset/base/324866 Log: libc: Do not refer to _DefaultRuneLocale in ctype inlines Referring to _DefaultRuneLocale causes this >4KB structure to be copied to all executables that use inli

svn commit: r324625 - head/etc

2017-10-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 15 11:28:41 2017 New Revision: 324625 URL: https://svnweb.freebsd.org/changeset/base/324625 Log: rc.subr: Remove test that is always true. The code above always sets _pidcmd to a non-empty value. Modified: head/etc/rc.subr Modified: head/etc/rc.subr

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

2017-09-15 Thread Jilles Tjoelker
for these changes was performance. Unfortunately, I do not have concrete benchmarks in the CloudABI context. -- Jilles Tjoelker ___ 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: r322455 - head/bin/sh/tests/invocation

2017-08-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 13 14:36:10 2017 New Revision: 322455 URL: https://svnweb.freebsd.org/changeset/base/322455 Log: sh: Add test for sh -c with missing command string. This already works correctly. Added: head/bin/sh/tests/invocation/sh-c-missing1.0 (contents, props changed)

svn commit: r322438 - in head: bin/sh/tests bin/sh/tests/invocation etc/mtree

2017-08-12 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 12 19:17:48 2017 New Revision: 322438 URL: https://svnweb.freebsd.org/changeset/base/322438 Log: sh: Add tests for sh -c that already pass. PR: 220587 Submitted by: Ryan Moeller Added: head/bin/sh/tests/invocation/ head/bin/sh/tests/invocation/M

svn commit: r321171 - head/bin/sh

2017-07-18 Thread Jilles Tjoelker
Author: jilles Date: Tue Jul 18 19:00:15 2017 New Revision: 321171 URL: https://svnweb.freebsd.org/changeset/base/321171 Log: sh: Remove broken #ifdef NOHACK code (related to sh -c). Apart from the fact that subtle syntactic changes make a poor compile-time option, the NOHACK case has bee

svn commit: r320532 - in stable/10/usr.bin/compress: . tests

2017-07-01 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 1 13:03:02 2017 New Revision: 320532 URL: https://svnweb.freebsd.org/changeset/base/320532 Log: MFC r318592: compress: Allow uncompress -c with multiple pathnames, as required by POSIX. Per POSIX, allow passing multiple pathnames to uncompress -c, concatenati

svn commit: r320531 - in stable/10/bin/sh: . tests/builtins

2017-07-01 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 1 12:57:00 2017 New Revision: 320531 URL: https://svnweb.freebsd.org/changeset/base/320531 Log: MFC r317912: sh: Fix INTOFF leak after a builtin with different locale settings. After executing a builtin with different locale settings such as LC_ALL=C true

svn commit: r320518 - in stable/10: etc/mtree usr.bin/compress usr.bin/compress/tests

2017-06-30 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 30 22:16:28 2017 New Revision: 320518 URL: https://svnweb.freebsd.org/changeset/base/320518 Log: MFC r318591: compress: Add basic tests. Added: stable/10/usr.bin/compress/tests/ - copied from r318591, head/usr.bin/compress/tests/ Modified: stable/10/etc/mtr

svn commit: r320510 - in stable/10/bin/sh: . tests/expansion

2017-06-30 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 30 21:32:48 2017 New Revision: 320510 URL: https://svnweb.freebsd.org/changeset/base/320510 Log: MFC r315005: sh: Fix executing wrong command with ${x#$(y)}$(z). The parsed internal representation of words consists of a byte string with a list of nodes (comman

svn commit: r320340 - in head/bin/sh: . tests/builtins

2017-06-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 25 21:53:08 2017 New Revision: 320340 URL: https://svnweb.freebsd.org/changeset/base/320340 Log: sh: Ignore error when cd writes the directory actually switched to. If CDPATH is used non-trivially or the operand is "-", cd writes the directory actually switche

svn commit: r319828 - head/etc

2017-06-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 11 19:06:07 2017 New Revision: 319828 URL: https://svnweb.freebsd.org/changeset/base/319828 Log: rc.subr: Optimize repeated sourcing. When /etc/rc runs all /etc/rc.d scripts, it has already loaded /etc/rc.subr but each /etc/rc.d script sources it again (since

svn commit: r319826 - head/bin/sh

2017-06-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 11 16:54:04 2017 New Revision: 319826 URL: https://svnweb.freebsd.org/changeset/base/319826 Log: sh: Enable interrupts before executing EXIT trap and doing final flush. Modified: head/bin/sh/trap.c Modified: head/bin/sh/trap.c

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

2017-06-07 Thread Jilles Tjoelker
Author: jilles Date: Wed Jun 7 21:21:14 2017 New Revision: 319663 URL: https://svnweb.freebsd.org/changeset/base/319663 Log: libc: Remove futimens() and utimensat() compat stubs. The futimens() and utimensat() compat stubs allowed using these functions on kernels that did not have the sy

svn commit: r319635 - head/bin/sh

2017-06-06 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 6 21:08:05 2017 New Revision: 319635 URL: https://svnweb.freebsd.org/changeset/base/319635 Log: sh: Call fc -e editor with interrupts enabled. Starting the fc -e editor can execute arbitrary script, and executing arbitrary script with INTOFF in effect may cau

svn commit: r319591 - head/bin/sh

2017-06-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 4 21:58:02 2017 New Revision: 319591 URL: https://svnweb.freebsd.org/changeset/base/319591 Log: sh: Make sure to process SIGINT if SETINTON re-enables processing. If INTON re-enables interrupts, it processes any interrupt that occurred while interrupts were d

svn commit: r319590 - head/tests/sys/aio

2017-06-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 4 21:39:37 2017 New Revision: 319590 URL: https://svnweb.freebsd.org/changeset/base/319590 Log: tests/sys/aio: Add missing mode to open() calls with O_CREAT. Modified: head/tests/sys/aio/aio_test.c Modified: head/tests/sys/aio/aio_test.c

svn commit: r319575 - in head/bin/sh: . tests/errors

2017-06-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 4 20:52:55 2017 New Revision: 319575 URL: https://svnweb.freebsd.org/changeset/base/319575 Log: sh: Fix INTOFF leak when a redirection on a compound command fails. Reported by: bdrewery Added: head/bin/sh/tests/errors/redirection-error8.0 (contents, props

svn commit: r319362 - in stable/11/usr.bin/compress: . tests

2017-05-31 Thread Jilles Tjoelker
Author: jilles Date: Wed May 31 21:54:21 2017 New Revision: 319362 URL: https://svnweb.freebsd.org/changeset/base/319362 Log: MFC r318592: compress: Allow uncompress -c with multiple pathnames, as required by POSIX. Per POSIX, allow passing multiple pathnames to uncompress -c, concatenati

svn commit: r319163 - in stable/11: etc/mtree usr.bin/compress usr.bin/compress/tests

2017-05-29 Thread Jilles Tjoelker
Author: jilles Date: Mon May 29 21:48:02 2017 New Revision: 319163 URL: https://svnweb.freebsd.org/changeset/base/319163 Log: MFC r318591: compress: Add basic tests. Added: stable/11/usr.bin/compress/tests/ - copied from r318591, head/usr.bin/compress/tests/ Modified: stable/11/etc/mtr

svn commit: r318592 - in head/usr.bin/compress: . tests

2017-05-21 Thread Jilles Tjoelker
Author: jilles Date: Sun May 21 14:35:16 2017 New Revision: 318592 URL: https://svnweb.freebsd.org/changeset/base/318592 Log: compress: Allow uncompress -c with multiple pathnames, as required by POSIX. Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating the uncomp

svn commit: r318591 - in head: etc/mtree usr.bin/compress usr.bin/compress/tests

2017-05-21 Thread Jilles Tjoelker
ress/tests/compress_test.shSun May 21 14:05:32 2017(r318591) @@ -0,0 +1,174 @@ +# Copyright (c) 2017 Jilles Tjoelker +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are

svn commit: r318502 - head/bin/sh

2017-05-18 Thread Jilles Tjoelker
Author: jilles Date: Thu May 18 22:10:04 2017 New Revision: 318502 URL: https://svnweb.freebsd.org/changeset/base/318502 Log: sh: Keep output buffer across builtins. Allocating and deallocating repeatedly the 1024-byte buffer for stdout from builtins costs CPU time for little or no benefi

svn commit: r318501 - head/bin/sh

2017-05-18 Thread Jilles Tjoelker
Author: jilles Date: Thu May 18 21:44:14 2017 New Revision: 318501 URL: https://svnweb.freebsd.org/changeset/base/318501 Log: sh: Ensure memout.bufsize matches allocated buffer, if it exists. Modified: head/bin/sh/eval.c head/bin/sh/output.c Modified: head/bin/sh/eval.c ===

svn commit: r318385 - head/bin/sh

2017-05-16 Thread Jilles Tjoelker
Author: jilles Date: Tue May 16 21:54:51 2017 New Revision: 318385 URL: https://svnweb.freebsd.org/changeset/base/318385 Log: sh: Simplify output buffering. Similarly to how STPUTC was changed, change struct output to store the pointer just past the end of the available space instead of t

svn commit: r318279 - in stable/11/bin/sh: . tests/builtins

2017-05-14 Thread Jilles Tjoelker
Author: jilles Date: Sun May 14 20:17:50 2017 New Revision: 318279 URL: https://svnweb.freebsd.org/changeset/base/318279 Log: MFC r317912: sh: Fix INTOFF leak after a builtin with different locale settings. After executing a builtin with different locale settings such as LC_ALL=C true

svn commit: r318269 - in head/bin/sh: . tests/builtins

2017-05-14 Thread Jilles Tjoelker
Author: jilles Date: Sun May 14 13:14:19 2017 New Revision: 318269 URL: https://svnweb.freebsd.org/changeset/base/318269 Log: sh: Fix '-' from quoted arithmetic in case/glob pattern range. It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic exp

svn commit: r318258 - head/bin/sh/tests/builtins

2017-05-13 Thread Jilles Tjoelker
Author: jilles Date: Sat May 13 20:28:32 2017 New Revision: 318258 URL: https://svnweb.freebsd.org/changeset/base/318258 Log: sh: Add test for arithmetic expansion in [x-y] pattern range. It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic expa

svn commit: r318238 - stable/11/usr.bin/csplit

2017-05-12 Thread Jilles Tjoelker
Author: jilles Date: Fri May 12 14:38:09 2017 New Revision: 318238 URL: https://svnweb.freebsd.org/changeset/base/318238 Log: MFC r317709: csplit: Fix check of fputs() return value, making csplit work again. As of r295638, fputs() returns the number of bytes written (if not more than IN

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

2017-05-07 Thread Jilles Tjoelker
Author: jilles Date: Sun May 7 19:52:56 2017 New Revision: 317913 URL: https://svnweb.freebsd.org/changeset/base/317913 Log: glob: Fix comment about collapsing asterisks after r317749. After r317749, collapsing adjacent asterisks is still required, but for a different reason. Modified:

svn commit: r317912 - in head/bin/sh: . tests/builtins

2017-05-07 Thread Jilles Tjoelker
Author: jilles Date: Sun May 7 19:49:46 2017 New Revision: 317912 URL: https://svnweb.freebsd.org/changeset/base/317912 Log: sh: Fix INTOFF leak after a builtin with different locale settings. After executing a builtin with different locale settings such as LC_ALL=C true SIGINT handl

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

2017-05-07 Thread Jilles Tjoelker
rror = ioctl(fd, TIOCFLUSH, &what); > This is correctly spelled tcflush(fd, TCIOFLUSH); Alternatively, the above TCSANOW could be changed to TCSAFLUSH. The effect is slightly different in that pending output is drained instead of discarded. In any case, the TIOCFLUSH ioctl is non-s

svn commit: r317882 - head/bin/sh

2017-05-06 Thread Jilles Tjoelker
Author: jilles Date: Sat May 6 13:28:42 2017 New Revision: 317882 URL: https://svnweb.freebsd.org/changeset/base/317882 Log: sh: Update TOUR and comments for some code changes, some of them old. Also, improve some terminology in TOUR and comments. Modified: head/bin/sh/TOUR head/bin/s

svn commit: r317855 - stable/11/usr.sbin/daemon

2017-05-05 Thread Jilles Tjoelker
Author: jilles Date: Fri May 5 21:52:14 2017 New Revision: 317855 URL: https://svnweb.freebsd.org/changeset/base/317855 Log: MFC r307769: daemon: Allow logging daemon stdout/stderr to file or syslog. There are various new options, documented in the man page, to send the daemon's standard

svn commit: r317709 - head/usr.bin/csplit

2017-05-02 Thread Jilles Tjoelker
Author: jilles Date: Tue May 2 21:56:20 2017 New Revision: 317709 URL: https://svnweb.freebsd.org/changeset/base/317709 Log: csplit: Fix check of fputs() return value, making csplit work again. As of r295638, fputs() returns the number of bytes written (if not more than INT_MAX). This br

svn commit: r317598 - head/usr.bin/printf

2017-04-29 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 29 21:48:11 2017 New Revision: 317598 URL: https://svnweb.freebsd.org/changeset/base/317598 Log: printf: Output formatted data directly, instead of via asprintf. Long ago, sh used to have its own optimized and restricted string formatting implementation, which

svn commit: r317559 - head/bin/sh

2017-04-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 28 16:16:22 2017 New Revision: 317559 URL: https://svnweb.freebsd.org/changeset/base/317559 Log: sh: Simplify handling of newlines in command substitution. Unless we need to split on newlines, just append them as normal and remove them at the end. Modified:

svn commit: r317514 - head/bin/sh/tests/expansion

2017-04-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Apr 27 18:52:18 2017 New Revision: 317514 URL: https://svnweb.freebsd.org/changeset/base/317514 Log: sh: Add some tests for command substitution final newline stripping. Added: head/bin/sh/tests/expansion/cmdsubst25.0 (contents, props changed) head/bin/sh/tests/ex

svn commit: r317347 - head/bin/sh/tests/expansion

2017-04-23 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 23 21:58:17 2017 New Revision: 317347 URL: https://svnweb.freebsd.org/changeset/base/317347 Log: sh: Add tests for NUL byte in command substitution output. Added: head/bin/sh/tests/expansion/cmdsubst24.0 (contents, props changed) Modified: head/bin/sh/tests/ex

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

2017-04-23 Thread Jilles Tjoelker
t returns -1 (if sysctl CTL_HW HW_PAGESIZE fails). It probably makes more sense to abort() here to avoid confusing both humans and static analyzers, and allow easier debugging if a bug causes it to fail (instead of calculating bogus sizes from the -1 return value). -- Jilles Tjoelker _

svn commit: r317298 - head/bin/sh

2017-04-22 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 22 21:31:37 2017 New Revision: 317298 URL: https://svnweb.freebsd.org/changeset/base/317298 Log: sh: Simplify setinteractive(). setsignal() does nothing if the signal disposition is already set correctly. Modified: head/bin/sh/options.c head/bin/sh/trap.c

svn commit: r317039 - in head/bin/sh: . tests/parser

2017-04-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 16 22:10:02 2017 New Revision: 317039 URL: https://svnweb.freebsd.org/changeset/base/317039 Log: sh: Fix use after free when resetting an in-use alias. The special case of modifying an existing alias does not work correctly if the alias is currently in use. In

svn commit: r317038 - head/bin/sh/tests/parser

2017-04-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 16 21:57:25 2017 New Revision: 317038 URL: https://svnweb.freebsd.org/changeset/base/317038 Log: sh: Link the new test to the build. Modified: head/bin/sh/tests/parser/Makefile Modified: head/bin/sh/tests/parser/Makefile ==

svn commit: r317037 - in head/bin/sh: . tests/parser

2017-04-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 16 21:42:43 2017 New Revision: 317037 URL: https://svnweb.freebsd.org/changeset/base/317037 Log: sh: Fix unalias -a while an alias is currently in use. It is a rare situation to modify aliases while an alias is currently in use, but this is handled for plain u

svn commit: r316942 - in stable/10/bin/sh: . tests/expansion

2017-04-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 14 21:42:27 2017 New Revision: 316942 URL: https://svnweb.freebsd.org/changeset/base/316942 Log: MFC r314686: sh: Fix crash if a -T trap is taken during command substitution. Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken

svn commit: r316744 - head/bin/sh

2017-04-12 Thread Jilles Tjoelker
Author: jilles Date: Wed Apr 12 21:15:55 2017 New Revision: 316744 URL: https://svnweb.freebsd.org/changeset/base/316744 Log: sh: Reduce size of limits table. Modified: head/bin/sh/miscbltin.c Modified: head/bin/sh/miscbltin.c =

svn commit: r316646 - head/bin/sh/tests/parser

2017-04-08 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 8 21:57:59 2017 New Revision: 316646 URL: https://svnweb.freebsd.org/changeset/base/316646 Log: sh: Add test for unaliasing an alias that is currently in use. This already works correctly. Added: head/bin/sh/tests/parser/alias16.0 (contents, props changed)

svn commit: r316421 - head/bin/sh

2017-04-02 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 2 15:53:11 2017 New Revision: 316421 URL: https://svnweb.freebsd.org/changeset/base/316421 Log: sh: Remove an XXX comment: it is normal for builtins to use argptr. Modified: head/bin/sh/alias.c Modified: head/bin/sh/alias.c ==

svn commit: r316418 - head/bin/sh

2017-04-02 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 2 14:02:10 2017 New Revision: 316418 URL: https://svnweb.freebsd.org/changeset/base/316418 Log: sh: Remove global state from collate_range_cmp(). The global state is not used across invocations of collate_range_cmp(). Modified: head/bin/sh/expand.c Modified

svn commit: r316417 - head/bin/sh

2017-04-02 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 2 13:43:45 2017 New Revision: 316417 URL: https://svnweb.freebsd.org/changeset/base/316417 Log: sh: Don't scan word twice in ${param=word}. Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c

svn commit: r316416 - head/bin/sh

2017-04-02 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 2 13:29:27 2017 New Revision: 316416 URL: https://svnweb.freebsd.org/changeset/base/316416 Log: sh: Don't scan word twice in ${param#%##%%word}. If word is expanded, use the found end instead of iterating over the data again. Modified: head/bin/sh/expand.c

svn commit: r316414 - head/bin/sh

2017-04-02 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 2 12:37:43 2017 New Revision: 316414 URL: https://svnweb.freebsd.org/changeset/base/316414 Log: sh: Don't scan word twice in ${param+-word}. There is no longer a case where argbackq has already been advanced but the string pointer needs to be advanced. Modif

svn commit: r316002 - in head/usr.bin/diff: . tests

2017-03-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 26 19:47:43 2017 New Revision: 316002 URL: https://svnweb.freebsd.org/changeset/base/316002 Log: diff: Show nanoseconds in -u/-c header line. Show nanoseconds in the -u/-c header line. The present portability conditionals cannot handle the POSIX standard

svn commit: r315985 - in head/usr.bin/diff: . tests

2017-03-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 26 14:09:25 2017 New Revision: 315985 URL: https://svnweb.freebsd.org/changeset/base/315985 Log: diff: Fix mtime of file1 in -u/-c header line. PR: 218018 Reviewed by: bapt Differential Revision:https://reviews.freebsd.org/D10140 Added:

svn commit: r315585 - head/bin/sh

2017-03-19 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 19 21:18:53 2017 New Revision: 315585 URL: https://svnweb.freebsd.org/changeset/base/315585 Log: sh: Fix build with -DDEBUG=2. With the new expansion code (word splitting during instead of after other expansion processing), tracing the result of command substi

svn commit: r315511 - head/bin/sh

2017-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 18 20:41:07 2017 New Revision: 315511 URL: https://svnweb.freebsd.org/changeset/base/315511 Log: sh: Remove unused function declaration for arith_lex_reset(). Reported by: Robert Elz Modified: head/bin/sh/arith.h Modified: head/bin/sh/arith.h ==

svn commit: r315487 - head/bin/sh

2017-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 18 16:09:30 2017 New Revision: 315487 URL: https://svnweb.freebsd.org/changeset/base/315487 Log: sh: Remove unused return value of subevalvar_misc(). Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c ===

svn commit: r315486 - in stable/11/bin/sh: . tests/expansion

2017-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 18 16:07:28 2017 New Revision: 315486 URL: https://svnweb.freebsd.org/changeset/base/315486 Log: MFC r315005: sh: Fix executing wrong command with ${x#$(y)}$(z). The parsed internal representation of words consists of a byte string with a list of nodes (comman

svn commit: r315429 - head/libexec/rtld-elf

2017-03-16 Thread Jilles Tjoelker
Author: jilles Date: Thu Mar 16 22:15:43 2017 New Revision: 315429 URL: https://svnweb.freebsd.org/changeset/base/315429 Log: rtld(1): Document that LD_BIND_NOT is unset for setugid processes. MFC after:2 weeks Modified: head/libexec/rtld-elf/rtld.1 Modified: head/libexec/rtld-elf/r

svn commit: r315428 - head/bin/sh

2017-03-16 Thread Jilles Tjoelker
Author: jilles Date: Thu Mar 16 21:53:55 2017 New Revision: 315428 URL: https://svnweb.freebsd.org/changeset/base/315428 Log: sh: Get rid of global variable argbackq. Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c ===

Re: svn commit: r315331 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2017-03-15 Thread Jilles Tjoelker
ts on Linux and Solaris. Since this feature heavily affects timing (possibly making race conditions easier to exploit) and may prevent making parts of the GOT read-only, it seems a good idea to treat this environment variable as dangerous for setuid and se

svn commit: r315179 - stable/10/bin/sh/tests/expansion

2017-03-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 12 19:49:08 2017 New Revision: 315179 URL: https://svnweb.freebsd.org/changeset/base/315179 Log: MFC r314637: sh: Add some already working tests that exercise new code paths Added: stable/10/bin/sh/tests/expansion/cmdsubst18.0 - copied unchanged from r314637,

svn commit: r315169 - in stable/11/bin/sh: . tests/expansion

2017-03-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 12 18:38:03 2017 New Revision: 315169 URL: https://svnweb.freebsd.org/changeset/base/315169 Log: MFC r314686: sh: Fix crash if a -T trap is taken during command substitution Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken w

svn commit: r315168 - stable/11/bin/sh/tests/expansion

2017-03-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 12 18:24:45 2017 New Revision: 315168 URL: https://svnweb.freebsd.org/changeset/base/315168 Log: MFC r314637: sh: Add some already working tests that exercise new code paths Added: stable/11/bin/sh/tests/expansion/cmdsubst18.0 - copied unchanged from r314637,

svn commit: r315005 - in head/bin/sh: . tests/expansion

2017-03-10 Thread Jilles Tjoelker
Author: jilles Date: Fri Mar 10 16:04:00 2017 New Revision: 315005 URL: https://svnweb.freebsd.org/changeset/base/315005 Log: sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst). The parsed internal representation of words consists of a byte string with a list of nodes

Re: svn commit: r314669 - head/sys/i386/conf

2017-03-05 Thread Jilles Tjoelker
X5675 @ 3.07GHz On the other hand, the old method is slower on an old hw.model: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz Apparently, LLVM has decided to trade considerably worse performance on CPUs such as Core2 for better performance on newer and older CPUs. What is somewhat surprising is that there is no way to use the GCC method. Then again, LLVM does not support bypassing the PLT either (loading the address from the GOT directly). Given that the old method is quite commonly used, it does not seem very likely that CPU manufacturers will pessimize it in future. -- Jilles Tjoelker ___ 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: r314686 - in head/bin/sh: . tests/expansion

2017-03-04 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 4 22:58:34 2017 New Revision: 314686 URL: https://svnweb.freebsd.org/changeset/base/314686 Log: sh: Fix crash if a -T trap is taken during command substitution. Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken while the she

svn commit: r314637 - head/bin/sh/tests/expansion

2017-03-03 Thread Jilles Tjoelker
Author: jilles Date: Fri Mar 3 22:46:20 2017 New Revision: 314637 URL: https://svnweb.freebsd.org/changeset/base/314637 Log: sh: Add some already working tests that exercise new code paths. Added: head/bin/sh/tests/expansion/cmdsubst18.0 (contents, props changed) head/bin/sh/tests/expans

svn commit: r313685 - in stable/10: lib/libc/sys share/man/man4

2017-02-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 12 18:52:01 2017 New Revision: 313685 URL: https://svnweb.freebsd.org/changeset/base/313685 Log: MFC r313174: Clean up documentation of AF_UNIX control messages. Document AF_UNIX control messages in unix(4) only, not split between unix(4) and recv(2). Als

svn commit: r313553 - in stable/11: lib/libc/sys share/man/man4

2017-02-10 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 10 15:03:54 2017 New Revision: 313553 URL: https://svnweb.freebsd.org/changeset/base/313553 Log: MFC r313174: Clean up documentation of AF_UNIX control messages. Document AF_UNIX control messages in unix(4) only, not split between unix(4) and recv(2). Als

svn commit: r313303 - in stable/10: sys/kern tests/sys/kern

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 21:31:40 2017 New Revision: 313303 URL: https://svnweb.freebsd.org/changeset/base/313303 Log: MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work. Modified: stable/10/sys/kern/kern_procctl.c stable/10/tests/sys/kern/reaper.c Directory Properties: st

svn commit: r313302 - in stable/11: sys/kern tests/sys/kern

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 20:55:01 2017 New Revision: 313302 URL: https://svnweb.freebsd.org/changeset/base/313302 Log: MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work. Modified: stable/11/sys/kern/kern_procctl.c stable/11/tests/sys/kern/reaper.c Directory Properties: st

svn commit: r313288 - stable/10/share/skel

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 15:46:05 2017 New Revision: 313288 URL: https://svnweb.freebsd.org/changeset/base/313288 Log: MFC r312721: skel: Remove reference to deleted part in previous commit to this file. Modified: stable/10/share/skel/dot.shrc Directory Properties: stable/10/ (pr

svn commit: r313286 - stable/11/share/skel

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 14:25:31 2017 New Revision: 313286 URL: https://svnweb.freebsd.org/changeset/base/313286 Log: MFC r312721: skel: Remove reference to deleted part in previous commit to this file. Modified: stable/11/share/skel/dot.shrc Directory Properties: stable/11/ (pr

svn commit: r313174 - in head: lib/libc/sys share/man/man4

2017-02-03 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 3 20:33:23 2017 New Revision: 313174 URL: https://svnweb.freebsd.org/changeset/base/313174 Log: Clean up documentation of AF_UNIX control messages. Document AF_UNIX control messages in unix(4) only, not split between unix(4) and recv(2). Also, warn about

Re: svn commit: r312653 - stable/11/share/skel

2017-01-24 Thread Jilles Tjoelker
enable the builtin vi(1) command > ^^^ > documentation error please correct that too. Fixed, thanks. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-al

svn commit: r312721 - head/share/skel

2017-01-24 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 24 21:07:13 2017 New Revision: 312721 URL: https://svnweb.freebsd.org/changeset/base/312721 Log: skel: Remove reference to deleted part in previous commit to this file. Reported by: Rodney W. Grimes MFC after:1 week Modified: head/share/skel/dot.shrc

svn commit: r312654 - stable/10/share/skel

2017-01-22 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 22 21:34:26 2017 New Revision: 312654 URL: https://svnweb.freebsd.org/changeset/base/312654 Log: MFC r312230: skel: Do not set -o emacs in .shrc. sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only s

svn commit: r312653 - stable/11/share/skel

2017-01-22 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 22 21:31:32 2017 New Revision: 312653 URL: https://svnweb.freebsd.org/changeset/base/312653 Log: MFC r312230: skel: Do not set -o emacs in .shrc. sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only s

svn commit: r312230 - head/share/skel

2017-01-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 15 13:40:14 2017 New Revision: 312230 URL: https://svnweb.freebsd.org/changeset/base/312230 Log: skel: Do not set -o emacs in .shrc. sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only serves to prev

Re: svn commit: r286649 - in head: contrib/netbsd-tests/lib/libc/locale lib/libc/tests/locale

2017-01-13 Thread Jilles Tjoelker
On Wed, Jan 11, 2017 at 02:14:13AM -0800, Ngie Cooper (yaneurabeya) wrote: > > On Aug 11, 2015, at 6:45 PM, Craig Rodrigues wrote: > > > > On Tue, Aug 11, 2015 at 2:59 PM, Jilles Tjoelker > <mailto:jil...@freebsd.org>> wrote: > > Author: jilles > &

Re: svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs

2017-01-04 Thread Jilles Tjoelker
ong; it should be the length of the whole structure and not just the sun_path part. Fortunately, the field is ignored by bind(), which uses the addrlen parameter instead. On a more general note, refactoring tests without a way to verify they have not been changed to always pass is risky :( --

Re: svn commit: r310974 - head/usr.sbin/syslogd

2017-01-01 Thread Jilles Tjoelker
> - > - WantReapchild = signo; I think setting a volatile sig_atomic_t variable in a signal handler is fine. This would avoid dropping different signal numbers if many signals arrive before the main loop gets around to process them. > - /* Send an wake-up signal to the select() loop. */ &

svn commit: r310610 - stable/10/tests/sys/kern

2016-12-26 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 26 17:26:25 2016 New Revision: 310610 URL: https://svnweb.freebsd.org/changeset/base/310610 Log: MFC r309957: Add tests for reaper receiving SIGCHLD (r309886). PR: 213928 Modified: stable/10/tests/sys/kern/reaper.c Directory Properties: stable/10/

svn commit: r310601 - stable/11/tests/sys/kern

2016-12-26 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 26 14:39:05 2016 New Revision: 310601 URL: https://svnweb.freebsd.org/changeset/base/310601 Log: MFC r309957: Add tests for reaper receiving SIGCHLD (r309886). PR: 213928 Modified: stable/11/tests/sys/kern/reaper.c Directory Properties: stable/11/

svn commit: r310558 - stable/10/tests/sys/kern

2016-12-25 Thread Jilles Tjoelker
ewly added) +++ stable/10/tests/sys/kern/reaper.c Sun Dec 25 22:32:16 2016 (r310558, copy of r309836, head/tests/sys/kern/reaper.c) @@ -0,0 +1,494 @@ +/*- + * Copyright (c) 2016 Jilles Tjoelker + * All rights reserved. + * + * Redistribution and use in source and binary forms, with

Re: svn commit: r310138 - head/lib/libc/stdio

2016-12-21 Thread Jilles Tjoelker
disabled for any serious software development, in my humble opinion. It will build, but not in a way I can call "fine". This indeed makes it very hard to justify extensions to format strings. Special formatting will need to use new functions. -- Jilles Tjoelker _

svn commit: r310231 - stable/11/tests/sys/kern

2016-12-18 Thread Jilles Tjoelker
newly added) +++ stable/11/tests/sys/kern/reaper.c Sun Dec 18 15:10:08 2016 (r310231, copy of r309836, head/tests/sys/kern/reaper.c) @@ -0,0 +1,494 @@ +/*- + * Copyright (c) 2016 Jilles Tjoelker + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or

svn commit: r310096 - in head: sys/kern tests/sys/kern

2016-12-14 Thread Jilles Tjoelker
Author: jilles Date: Wed Dec 14 22:49:20 2016 New Revision: 310096 URL: https://svnweb.freebsd.org/changeset/base/310096 Log: reaper: Make REAPER_KILL_SUBTREE actually work. MFC after:2 weeks Modified: head/sys/kern/kern_procctl.c head/tests/sys/kern/reaper.c Modified: head/sys/ke

Re: svn commit: r309918 - head/usr.sbin/bsdinstall/scripts

2016-12-13 Thread Jilles Tjoelker
( wpa_cli ifname | tail -1 ) > + INPUT=$( ifconfig $WLAN_IFACE list regdomain | head -1 ) > DEF_REGDOMAIN=$( echo $INPUT | cut -w -f 2 ) > DEF_COUNTRY=$( echo $INPUT | cut -w -f 4 ) > [ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN=&qu

svn commit: r309957 - head/tests/sys/kern

2016-12-12 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 12 22:51:29 2016 New Revision: 309957 URL: https://svnweb.freebsd.org/changeset/base/309957 Log: Add tests for reaper receiving SIGCHLD (r309886). PR: 213928 MFC after:2 weeks Modified: head/tests/sys/kern/reaper.c Modified: head/tests/sys/ke

svn commit: r309836 - head/tests/sys/kern

2016-12-10 Thread Jilles Tjoelker
Jilles Tjoelker + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of

svn commit: r309536 - stable/10/lib/libc/sys

2016-12-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 4 16:00:25 2016 New Revision: 309536 URL: https://svnweb.freebsd.org/changeset/base/309536 Log: MFC r309026: open(2): Clarify non-POSIX error when opening a symlink with O_NOFOLLOW. We return [EMLINK] instead of [ELOOP] when trying to open a symlink with O_

svn commit: r309535 - stable/11

2016-12-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 4 15:59:04 2016 New Revision: 309535 URL: https://svnweb.freebsd.org/changeset/base/309535 Log: Add missing mergeinfo for r309533. Modified: Directory Properties: stable/11/ (props changed) ___ svn-src-all@freebsd.org

svn commit: r309533 - stable/11/lib/libc/sys

2016-12-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 4 15:55:59 2016 New Revision: 309533 URL: https://svnweb.freebsd.org/changeset/base/309533 Log: MFC r309026: open(2): Clarify non-POSIX error when opening a symlink with O_NOFOLLOW. We return [EMLINK] instead of [ELOOP] when trying to open a symlink with O_

Re: svn commit: r309035 - in head/lib/libpathconv: . tests

2016-11-27 Thread Jilles Tjoelker
by: Panzura, Tama Communications Corporation Consider making this a static-only library or a part of an existing library such as libc or libutil, since the overhead of a shared object is rather big compared to the amount of code here. Thanks for not linking this to the build right away. --

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

2016-11-22 Thread Jilles Tjoelker
Author: jilles Date: Tue Nov 22 22:30:55 2016 New Revision: 309026 URL: https://svnweb.freebsd.org/changeset/base/309026 Log: open(2): Clarify non-POSIX error when opening a symlink with O_NOFOLLOW. We return [EMLINK] instead of [ELOOP] when trying to open a symlink with O_NOFOLLOW, so th

svn commit: r308896 - head/etc

2016-11-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Nov 20 18:21:05 2016 New Revision: 308896 URL: https://svnweb.freebsd.org/changeset/base/308896 Log: rc.subr: $(ps -p $$ -o jid=) is always 0, so do not fork ps for it. The JID keyword writes 0 for a process also in the host system or in the same jail. Modified:

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