svn commit: r217485 - stable/8/bin/sh

2011-01-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 16 22:10:18 2011 New Revision: 217485 URL: http://svn.freebsd.org/changeset/base/217485 Log: MFC r216806: sh: Properly restore exception handler in fc. If SIGINT arrived at exactly the right moment (unlikely), an exception handler in a no longer active stack

svn commit: r217489 - in stable/8/tools/regression/bin/sh: builtins expansion

2011-01-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 16 23:41:40 2011 New Revision: 217489 URL: http://svn.freebsd.org/changeset/base/217489 Log: MFC r215547,r216763,r216819,r216871,r217172: sh testcases. Added: stable/8/tools/regression/bin/sh/builtins/exit1.0 - copied unchanged from r216871,

svn commit: r217557 - in head: bin/sh tools/regression/bin/sh/execution

2011-01-18 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 18 21:18:31 2011 New Revision: 217557 URL: http://svn.freebsd.org/changeset/base/217557 Log: sh: Fix signal messages being sent to the wrong file sometimes. When a foreground job exits on a signal, a message is printed to stdout about this. The buffer was not

Re: svn commit: r217557 - in head: bin/sh tools/regression/bin/sh/execution

2011-01-21 Thread Jilles Tjoelker
. A somewhat related message is one that shows the job id and process ids of background jobs started in interactive mode. I cannot find a requirement for this in POSIX but most shells other than ash variants print it and it seems useful. -- Jilles Tjoelker

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

2011-01-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 21 22:15:17 2011 New Revision: 217704 URL: http://svn.freebsd.org/changeset/base/217704 Log: getgroups(2): Remove mention of sys/param.h and refer to sysconf(3). Because {NGROUPS_MAX} may become variable, its value should be obtained using sysconf(3). If a

svn commit: r217750 - head/sbin/init

2011-01-23 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 23 14:22:26 2011 New Revision: 217750 URL: http://svn.freebsd.org/changeset/base/217750 Log: init: Only run /etc/rc.shutdown if /etc/rc was run. It does not make sense to shut down daemons that were not started. In particular, this fixes loss of mixer

svn commit: r217753 - head/sbin/init

2011-01-23 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 23 14:54:45 2011 New Revision: 217753 URL: http://svn.freebsd.org/changeset/base/217753 Log: init(8): Document that login(1) is now responsible for recording logouts. init(8) only uses utmpx for recording reboots and shutdowns. Modified:

Re: svn commit: r217755 - head/etc/periodic/daily

2011-01-23 Thread Jilles Tjoelker
pool to scrub rc=0 -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

svn commit: r217847 - head/bin/sh

2011-01-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 25 20:56:18 2011 New Revision: 217847 URL: http://svn.freebsd.org/changeset/base/217847 Log: sh: Clean up some old comments: * There is no plan for an alternative to the command set. * Attempting to unset a readonly variable has not raised an error for quite

svn commit: r217853 - stable/8/lib/libc/sys

2011-01-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 25 21:45:00 2011 New Revision: 217853 URL: http://svn.freebsd.org/changeset/base/217853 Log: MFC r217484: mknod(2): The required include is sys/stat.h, not unistd.h. This is what SUSv4 requires, and also the only thing that works if strict standards

svn commit: r217854 - stable/7/lib/libc/sys

2011-01-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 25 21:51:32 2011 New Revision: 217854 URL: http://svn.freebsd.org/changeset/base/217854 Log: MFC r217484: mknod(2): The required include is sys/stat.h, not unistd.h. This is what SUSv4 requires, and also the only thing that works if strict standards

svn commit: r217863 - stable/8/usr.bin/sed

2011-01-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 25 23:02:25 2011 New Revision: 217863 URL: http://svn.freebsd.org/changeset/base/217863 Log: MFC r217133: sed: Try hard links to make -i target available continually. When creating a backup file, sed renamed the original before renaming the changed copy

svn commit: r217864 - stable/8/tools/regression/usr.bin/sed

2011-01-25 Thread Jilles Tjoelker
@@ +#!/bin/sh + +#- +# Copyright (c) 2011 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

svn commit: r217996 - head/tools/regression/bin/sh/builtins

2011-01-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 27 23:08:20 2011 New Revision: 217996 URL: http://svn.freebsd.org/changeset/base/217996 Log: sh: Add test for EXIT trap in command substitution. This is not really realistic but is an opposition to $(trap). Added:

svn commit: r218019 - head/sys/kern

2011-01-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 28 15:29:35 2011 New Revision: 218019 URL: http://svn.freebsd.org/changeset/base/218019 Log: Do not trip a KASSERT if /dev/null cannot be opened for a setuid program. The fdcheckstd() function makes sure fds 0, 1 and 2 are open by opening /dev/null. If this

svn commit: r218102 - stable/8/lib/libc/sys

2011-01-30 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 30 20:37:42 2011 New Revision: 218102 URL: http://svn.freebsd.org/changeset/base/218102 Log: MFC r217704: getgroups(2): Remove sys/types.h and refer to sysconf(3). Because {NGROUPS_MAX} may become variable, its value should be obtained using sysconf(3).

svn commit: r218104 - stable/7/lib/libc/sys

2011-01-30 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 30 21:00:57 2011 New Revision: 218104 URL: http://svn.freebsd.org/changeset/base/218104 Log: MFC r217704: getgroups(2): Remove sys/types.h and refer to sysconf(3). Because {NGROUPS_MAX} may become variable, its value should be obtained using sysconf(3).

svn commit: r218105 - in head: bin/sh tools/regression/bin/sh/execution

2011-01-30 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 30 22:57:52 2011 New Revision: 218105 URL: http://svn.freebsd.org/changeset/base/218105 Log: sh: Send messages about signals to stderr. This is required by POSIX and seems to make more sense. See also r217557. Added:

svn commit: r218203 - head/bin/sh

2011-02-02 Thread Jilles Tjoelker
Author: jilles Date: Wed Feb 2 21:48:53 2011 New Revision: 218203 URL: http://svn.freebsd.org/changeset/base/218203 Log: sh: Remove comment mentioning herefd, which is gone. Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c

svn commit: r218205 - head/tools/regression/bin/sh/execution

2011-02-02 Thread Jilles Tjoelker
Author: jilles Date: Wed Feb 2 22:03:18 2011 New Revision: 218205 URL: http://svn.freebsd.org/changeset/base/218205 Log: sh: Add test for shell script without '#!'. Added: head/tools/regression/bin/sh/execution/shellproc1.0 (contents, props changed) Added:

svn commit: r218242 - head/bin/sh

2011-02-03 Thread Jilles Tjoelker
Author: jilles Date: Thu Feb 3 23:38:11 2011 New Revision: 218242 URL: http://svn.freebsd.org/changeset/base/218242 Log: sh: Return only 126 or 127 for execve() failures. Do not return 2 for errors other than [EACCES] or [ENOENT]. Modified: head/bin/sh/exec.c Modified:

svn commit: r218285 - in head: bin/kill bin/pkill bin/sh lib/libc/gen usr.bin/killall usr.bin/truss

2011-02-04 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 4 16:40:50 2011 New Revision: 218285 URL: http://svn.freebsd.org/changeset/base/218285 Log: Make sys_signame upper case. This matches the constants from signal.h with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write.

svn commit: r218306 - head/bin/sh

2011-02-04 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 4 22:47:55 2011 New Revision: 218306 URL: http://svn.freebsd.org/changeset/base/218306 Log: sh: Remove special code for shell scripts without magic number. These are called shell procedures in the source. If execve() failed with [ENOEXEC], the shell would

svn commit: r218320 - in head: bin/sh tools/regression/bin/sh/errors

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 12:54:59 2011 New Revision: 218320 URL: http://svn.freebsd.org/changeset/base/218320 Log: sh: Do not try to execute binary files as scripts. If execve() returns an [ENOEXEC] error, check if the file is binary before trying to execute it using sh. A file is

svn commit: r218323 - in head: bin/sh tools/regression/bin/sh/execution

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 14:01:46 2011 New Revision: 218323 URL: http://svn.freebsd.org/changeset/base/218323 Log: sh: Forget all cached command locations on any PATH change. POSIX requires this and it is simpler than the previous code that remembered command locations when

svn commit: r218324 - head/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 14:08:51 2011 New Revision: 218324 URL: http://svn.freebsd.org/changeset/base/218324 Log: sh: Remove clearcmdentry()'s now unused argument. Modified: head/bin/sh/eval.c head/bin/sh/exec.c head/bin/sh/exec.h Modified: head/bin/sh/eval.c

svn commit: r218325 - in head: bin/sh tools/regression/bin/sh/execution

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 15:02:19 2011 New Revision: 218325 URL: http://svn.freebsd.org/changeset/base/218325 Log: sh: Fix two things about {(...)} redir: * In {(...) redir1;} redir2, do not drop redir1. * Maintain the difference between (...) redir and {(...)} redir: In (...)

svn commit: r218326 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 15:09:55 2011 New Revision: 218326 URL: http://svn.freebsd.org/changeset/base/218326 Log: MFC r217847: sh: Clean up some old comments: * There is no plan for an alternative to the command set. * Attempting to unset a readonly variable has not raised an error

svn commit: r218328 - stable/7/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 15:13:18 2011 New Revision: 218328 URL: http://svn.freebsd.org/changeset/base/218328 Log: MFC r217847: sh: Clean up some old comments: * There is no plan for an alternative to the command set. * Attempting to unset a readonly variable has not raised an error

svn commit: r218337 - in stable/8: bin/sh tools/regression/bin/sh/execution

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 20:25:17 2011 New Revision: 218337 URL: http://svn.freebsd.org/changeset/base/218337 Log: MFC r217557: sh: Fix signal messages being sent to the wrong file sometimes. When a foreground job exits on a signal, a message is printed to stdout about this. The

svn commit: r218338 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 20:37:33 2011 New Revision: 218338 URL: http://svn.freebsd.org/changeset/base/218338 Log: MFC r208501: sh(1): Improve wording of 'Special Parameters' section. Modified: stable/8/bin/sh/sh.1 Directory Properties: stable/8/bin/sh/ (props changed) Modified:

svn commit: r218339 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 20:48:45 2011 New Revision: 218339 URL: http://svn.freebsd.org/changeset/base/218339 Log: MFC r208505: sh(1): Rework documentation of shell variables. * Move the environment variables that do not need exporting to be effective or that are set by the

svn commit: r218343 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:00:35 2011 New Revision: 218343 URL: http://svn.freebsd.org/changeset/base/218343 Log: MFC r216168: sh(1): Clean up documentation of built-in commands. Make sure all built-in commands are in the subsection named such, except exp, let and wordexp which

svn commit: r218344 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:02:13 2011 New Revision: 218344 URL: http://svn.freebsd.org/changeset/base/218344 Log: MFC r216630: Explain why it is a bad idea to use aliases in scripts. Modified: stable/8/bin/sh/sh.1 Directory Properties: stable/8/bin/sh/ (props changed) Modified:

svn commit: r218346 - in stable/8: bin/sh tools/regression/bin/sh/expansion

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:24:37 2011 New Revision: 218346 URL: http://svn.freebsd.org/changeset/base/218346 Log: MFC r216496: sh: Fix corruption of command substitutions with special chars after newline. The CTLESC byte to protect a special character was output before instead of

svn commit: r218348 - stable/8/tools/regression/bin/sh/expansion

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:39:14 2011 New Revision: 218348 URL: http://svn.freebsd.org/changeset/base/218348 Log: MFC r215550: sh: Add a test that manipulates various long strings. It is quite effective at detecting mistakes in memalloc.c and code using it. It is somewhat

svn commit: r218349 - stable/8/bin/sh

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:40:57 2011 New Revision: 218349 URL: http://svn.freebsd.org/changeset/base/218349 Log: MFC r215766: sh: Pass multiple bytes at a time to lex. This speeds up the expansion/arith6.0 test considerably. Modified: stable/8/bin/sh/arith_lex.l Directory

svn commit: r218351 - stable/8/tools/regression/bin/sh/builtins

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 21:47:04 2011 New Revision: 218351 URL: http://svn.freebsd.org/changeset/base/218351 Log: MFC r216019: sh: Make the test for cd/pwd with long pathnames more useful: * Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part * Delete our test

svn commit: r218356 - head/tools/regression/bin/sh/builtins

2011-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 5 23:00:24 2011 New Revision: 218356 URL: http://svn.freebsd.org/changeset/base/218356 Log: sh: Weaken some tests to allow /rescue/sh to pass everything. /rescue/sh has a different _PATH_STDPATH which affects command -p. Modified:

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

2011-02-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 6 23:26:14 2011 New Revision: 218385 URL: http://svn.freebsd.org/changeset/base/218385 Log: rfork_thread(3): Mark deprecated in favor of pthread_create(3). Modified: head/lib/libc/gen/rfork_thread.3 Modified: head/lib/libc/gen/rfork_thread.3

svn commit: r218466 - head/bin/sh

2011-02-08 Thread Jilles Tjoelker
Author: jilles Date: Tue Feb 8 23:18:06 2011 New Revision: 218466 URL: http://svn.freebsd.org/changeset/base/218466 Log: sh: Import arithmetic expression code from dash. New features: * proper lazy evaluation of || and * ?: ternary operator * executable is considerably smaller (8K

svn commit: r218467 - head/bin/sh

2011-02-08 Thread Jilles Tjoelker
Author: jilles Date: Tue Feb 8 23:19:40 2011 New Revision: 218467 URL: http://svn.freebsd.org/changeset/base/218467 Log: sh(1): Update description of arithmetic. Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r218626 - in head: bin/sh tools/regression/bin/sh/expansion

2011-02-12 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 12 23:44:05 2011 New Revision: 218626 URL: http://svn.freebsd.org/changeset/base/218626 Log: sh: Detect dividing the smallest integer by -1. This overflows and on some architectures such as amd64 it generates SIGFPE. Generate an error on all architectures.

svn commit: r218724 - head/bin/test

2011-02-15 Thread Jilles Tjoelker
Author: jilles Date: Tue Feb 15 22:17:47 2011 New Revision: 218724 URL: http://svn.freebsd.org/changeset/base/218724 Log: test: Note that this is used both as a normal program and a shell builtin. MFC after:1 week Modified: head/bin/test/test.c Modified: head/bin/test/test.c

svn commit: r218819 - in head/tools/regression/bin/sh: builtins expansion

2011-02-18 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 18 20:37:09 2011 New Revision: 218819 URL: http://svn.freebsd.org/changeset/base/218819 Log: sh: Unset some more locale vars in two tests that may cause them to break. Modified: head/tools/regression/bin/sh/builtins/locale1.0

svn commit: r218821 - head/tools/regression/bin/sh/builtins

2011-02-18 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 18 20:51:13 2011 New Revision: 218821 URL: http://svn.freebsd.org/changeset/base/218821 Log: sh: Test that the read builtin passes through all byte values except NUL, newline and backslash. This also passes on stable/8. Added:

svn commit: r218850 - head/tools/regression/bin/sh/execution

2011-02-19 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 19 13:22:18 2011 New Revision: 218850 URL: http://svn.freebsd.org/changeset/base/218850 Log: sh: Make execution/fork1.0 work even if the basename of ${SH} is not sh. Modified: head/tools/regression/bin/sh/execution/fork1.0 Modified:

svn commit: r218851 - head/tools/regression/bin/sh

2011-02-19 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 19 13:23:13 2011 New Revision: 218851 URL: http://svn.freebsd.org/changeset/base/218851 Log: sh: Do not use local in the test runner as POSIX and ksh93 do not have it. Modified: head/tools/regression/bin/sh/regress.sh Modified:

svn commit: r218889 - in head/tools/regression/bin/sh: builtins parser

2011-02-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 20 14:18:58 2011 New Revision: 218889 URL: http://svn.freebsd.org/changeset/base/218889 Log: sh: Split off some special behaviour into separate tests. This allows some other shells to pass the tests for basic behaviour. Added:

svn commit: r219032 - stable/8/bin/test

2011-02-25 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 25 14:54:57 2011 New Revision: 219032 URL: http://svn.freebsd.org/changeset/base/219032 Log: MFC r218724: test: Note that this is used both as a normal program and a shell builtin. Modified: stable/8/bin/test/test.c Directory Properties: stable/8/bin/test/

svn commit: r219033 - stable/7/bin/test

2011-02-25 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 25 14:56:06 2011 New Revision: 219033 URL: http://svn.freebsd.org/changeset/base/219033 Log: MFC r218724: test: Note that this is used both as a normal program and a shell builtin. Modified: stable/7/bin/test/test.c Directory Properties: stable/7/bin/test/

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

2011-03-01 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 1 21:47:06 2011 New Revision: 219153 URL: http://svn.freebsd.org/changeset/base/219153 Log: printf: Note that this is used both as a normal program and a shell builtin. Modified: head/usr.bin/printf/printf.c Modified: head/usr.bin/printf/printf.c

svn commit: r219154 - head/bin/kill

2011-03-01 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 1 21:48:22 2011 New Revision: 219154 URL: http://svn.freebsd.org/changeset/base/219154 Log: kill: Note that this is used both as a normal program and a shell builtin. Modified: head/bin/kill/kill.c Modified: head/bin/kill/kill.c

svn commit: r219256 - head/include

2011-03-03 Thread Jilles Tjoelker
Author: jilles Date: Thu Mar 3 22:34:13 2011 New Revision: 219256 URL: http://svn.freebsd.org/changeset/base/219256 Log: Fix some _POSIX minimum/maximum values in limits.h: * Some values changed in POSIX.1-2001; provide the former value if a program requests compliance to an earlier

svn commit: r219271 - in head: include sys/sys

2011-03-04 Thread Jilles Tjoelker
Author: jilles Date: Fri Mar 4 19:28:27 2011 New Revision: 219271 URL: http://svn.freebsd.org/changeset/base/219271 Log: POSIX.1-2008 moved some constants from the XSI option to the Base. MFC after:2 weeks Modified: head/include/limits.h head/sys/sys/limits.h Modified:

svn commit: r219306 - head/bin/sh

2011-03-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 5 13:27:13 2011 New Revision: 219306 URL: http://svn.freebsd.org/changeset/base/219306 Log: sh: Fix some warnings in code for arithmetic expressions. Submitted by: eadler Modified: head/bin/sh/arith_yacc.c head/bin/sh/arith_yylex.c Modified:

svn commit: r219347 - in head/usr.bin: killall truss

2011-03-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 6 19:50:47 2011 New Revision: 219347 URL: http://svn.freebsd.org/changeset/base/219347 Log: Simplify various code that allowed for sys_signame being lower case. This was changed in r218285. Modified: head/usr.bin/killall/killall.c

svn commit: r219350 - head/bin/sh

2011-03-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 6 21:20:53 2011 New Revision: 219350 URL: http://svn.freebsd.org/changeset/base/219350 Log: sh(1): Reduce excessive semicolon-separated sentences. Reported by: Benjamin Kaduk Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r219390 - head/tools/regression/bin/sh/builtins

2011-03-07 Thread Jilles Tjoelker
Author: jilles Date: Mon Mar 7 23:52:23 2011 New Revision: 219390 URL: http://svn.freebsd.org/changeset/base/219390 Log: sh: Test that . /dev/null returns exit status 0 and does not preserve $?. Preserving $? may cause problems particularly if set -e is in effect. It may be useful to

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

2011-10-01 Thread Jilles Tjoelker
-terminals but even then two characters suffice. The TTY keyword shows the full pathname relative to /dev. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail

svn commit: r226027 - head/share/mk

2011-10-04 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 4 22:23:00 2011 New Revision: 226027 URL: http://svn.freebsd.org/changeset/base/226027 Log: Work around the autotools problem with the 10.0 version. With this, I can build various ports on a 10.0-CURRENT system without hacking or hiding the version number.

svn commit: r226028 - head/usr.sbin/portsnap/portsnap

2011-10-04 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 4 22:28:06 2011 New Revision: 226028 URL: http://svn.freebsd.org/changeset/base/226028 Log: portsnap: Detect error immediately if we can't fetch the snapshot metadata. Also add some quotes around command substitution where useful and possible. Reviewed

svn commit: r226312 - stable/9/usr.sbin/portsnap/portsnap

2011-10-12 Thread Jilles Tjoelker
Author: jilles Date: Wed Oct 12 17:57:57 2011 New Revision: 226312 URL: http://svn.freebsd.org/changeset/base/226312 Log: MFC r226028: portsnap: Detect error immediately if we can't fetch the snapshot metadata. Also add some quotes around command substitution where useful and possible.

svn commit: r226352 - stable/8/usr.sbin/portsnap/portsnap

2011-10-13 Thread Jilles Tjoelker
Author: jilles Date: Thu Oct 13 21:41:54 2011 New Revision: 226352 URL: http://svn.freebsd.org/changeset/base/226352 Log: MFC r226028: portsnap: Detect error immediately if we can't fetch the snapshot metadata. Also add some quotes around command substitution where useful and possible.

Re: svn commit: r226360 - head/usr.bin/tr

2011-10-14 Thread Jilles Tjoelker
^ false); } These two changes are wrong. Contrary to what one might expect, the != and == operators bind more strongly than the ^ operator, and the original code depends on that. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http

svn commit: r226523 - head/tools/regression/doat

2011-10-18 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 18 22:51:40 2011 New Revision: 226523 URL: http://svn.freebsd.org/changeset/base/226523 Log: Fix some memory errors in *at() regression tests. Modified: head/tools/regression/doat/doat.c Modified: head/tools/regression/doat/doat.c

svn commit: r226892 - head/tools/regression/bin/sh/builtins

2011-10-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 28 23:02:21 2011 New Revision: 226892 URL: http://svn.freebsd.org/changeset/base/226892 Log: sh: Add test for exit status of for loop without items. POSIX says the exit status of a for loop without any items shall be 0. There are no exceptions if the exit

svn commit: r227121 - head/usr.bin/make

2011-11-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 5 21:32:17 2011 New Revision: 227121 URL: http://svn.freebsd.org/changeset/base/227121 Log: make(1): obj dirs are physical paths so write `pwd -P` rather than `pwd`. Regular pwd may return a pathname containing symlinks, but make does not use such pathnames.

svn commit: r227122 - head/bin/sh

2011-11-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 5 21:56:45 2011 New Revision: 227122 URL: http://svn.freebsd.org/changeset/base/227122 Log: sh(1): Improve documentation of field splitting. Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r227123 - head/usr.bin/xlint/xlint

2011-11-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 5 22:25:15 2011 New Revision: 227123 URL: http://svn.freebsd.org/changeset/base/227123 Log: lint: Fix lseek() argument order. Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning

svn commit: r227124 - head/tools/regression/fifo/fifo_misc

2011-11-05 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 5 22:33:19 2011 New Revision: 227124 URL: http://svn.freebsd.org/changeset/base/227124 Log: fifo_misc test: Fix swapped lseek arguments. It worked regardless because SEEK_CUR happens to be 1. Modified: head/tools/regression/fifo/fifo_misc/fifo_misc.c

svn commit: r227366 - in head/etc: . rc.d

2011-11-08 Thread Jilles Tjoelker
Author: jilles Date: Tue Nov 8 23:02:32 2011 New Revision: 227366 URL: http://svn.freebsd.org/changeset/base/227366 Log: rc.d: Eliminate some unnecessary non-POSIX constructs: * set - ... * empty braces * ^ in character class Modified: head/etc/rc.d/routing

svn commit: r227369 - head/bin/sh

2011-11-08 Thread Jilles Tjoelker
Author: jilles Date: Tue Nov 8 23:54:39 2011 New Revision: 227369 URL: http://svn.freebsd.org/changeset/base/227369 Log: sh: Remove undefined behaviour due to overflow in +/-/* in arithmetic. With i386 base gcc and i386 base clang, arith_yacc.o remains unchanged. Modified:

Re: svn commit: r227369 - head/bin/sh

2011-11-09 Thread Jilles Tjoelker
On Wed, Nov 09, 2011 at 09:35:51AM +0100, Stefan Farfeleder wrote: On Tue, Nov 08, 2011 at 11:54:39PM +, Jilles Tjoelker wrote: Author: jilles Date: Tue Nov 8 23:54:39 2011 New Revision: 227369 URL: http://svn.freebsd.org/changeset/base/227369 Log: sh: Remove undefined

Re: svn commit: r227366 - in head/etc: . rc.d

2011-11-09 Thread Jilles Tjoelker
On Wed, Nov 09, 2011 at 01:49:16AM +, Alexey Dokuchaev wrote: On Tue, Nov 08, 2011 at 11:02:32PM +, Jilles Tjoelker wrote: Author: jilles Date: Tue Nov 8 23:02:32 2011 New Revision: 227366 URL: http://svn.freebsd.org/changeset/base/227366 Log: rc.d: Eliminate some

Re: svn commit: r227483 - head/usr.sbin/portsnap/portsnap

2011-11-13 Thread Jilles Tjoelker
functions to do this. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

svn commit: r227773 - in head: bin/sh tools/regression/bin/sh/parameters

2011-11-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Nov 20 21:48:50 2011 New Revision: 227773 URL: http://svn.freebsd.org/changeset/base/227773 Log: sh: Allow unsetting OPTIND. Note that only assigning the decimal value 1 resets getopts, as before. Added: head/tools/regression/bin/sh/parameters/optind1.0

Re: svn commit: r227369 - head/bin/sh

2011-11-21 Thread Jilles Tjoelker
On Mon, Nov 21, 2011 at 06:29:06PM +1100, Bruce Evans wrote: On Wed, 9 Nov 2011, Jilles Tjoelker wrote: On Wed, Nov 09, 2011 at 09:35:51AM +0100, Stefan Farfeleder wrote: Isn't the behaviour undefined too when you convert an out-of-range uintmax_t value back into an intmax_t value

Re: svn commit: r227798 - in head: . lib/libpam lib/libpam/modules

2011-11-22 Thread Jilles Tjoelker
as an additional protection against version mismatches and symbol versioning (if you ever add it) requires ld(1) to have access to the .so containing the definition so it knows the version name to store in the output file. -- Jilles Tjoelker ___ svn-src

svn commit: r227984 - head/bin/test

2011-11-25 Thread Jilles Tjoelker
Author: jilles Date: Fri Nov 25 23:45:29 2011 New Revision: 227984 URL: http://svn.freebsd.org/changeset/base/227984 Log: test: Reduce code size of ops table. Modified: head/bin/test/test.c Modified: head/bin/test/test.c

svn commit: r228007 - head/tools/regression/bin/sh/builtins

2011-11-26 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 26 22:28:25 2011 New Revision: 228007 URL: http://svn.freebsd.org/changeset/base/228007 Log: sh: Add tests for some corner cases of 'case' exit status. These already work properly. Added: head/tools/regression/bin/sh/builtins/case11.0 (contents, props

svn commit: r228013 - head/bin/sh

2011-11-26 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 26 23:28:31 2011 New Revision: 228013 URL: http://svn.freebsd.org/changeset/base/228013 Log: sh: Reduce one level of evaltree() recursion when executing 'case'. Free expanded case text before executing commands. Remove impossible evalskip checks (expanding an

svn commit: r228015 - head/bin/sh

2011-11-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Nov 27 00:09:59 2011 New Revision: 228015 URL: http://svn.freebsd.org/changeset/base/228015 Log: sh: Remove impossible evalskip check in 'for'. Modified: head/bin/sh/eval.c Modified: head/bin/sh/eval.c

svn commit: r228109 - head/tools/regression/bin/test

2011-11-28 Thread Jilles Tjoelker
Author: jilles Date: Mon Nov 28 23:10:53 2011 New Revision: 228109 URL: http://svn.freebsd.org/changeset/base/228109 Log: test: Add more testcases. The new testcases pass even on old stable/7, but some other implementations manage to get them wrong. Also remove a few duplicate

svn commit: r231984 - head/tools/regression/lib/libc/gen

2012-02-21 Thread Jilles Tjoelker
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/lib/libc/gen/test-fmtmsg.cTue Feb 21 23:46:41 2012(r231984) @@ -0,0 +1,251 @@ +/*- + * Copyright (c) 2012 Jilles

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

2012-02-22 Thread Jilles Tjoelker
Author: jilles Date: Wed Feb 22 21:47:50 2012 New Revision: 232007 URL: http://svn.freebsd.org/changeset/base/232007 Log: libc: Eliminate some relative relocations in fmtmsg(). Modified: head/lib/libc/gen/fmtmsg.c Modified: head/lib/libc/gen/fmtmsg.c

Re: svn commit: r231989 - in head: lib/libthr/thread sys/kern sys/sys

2012-02-22 Thread Jilles Tjoelker
*)(uintptr_t)((clockid 16) | UMTX_WAIT_ABSTIME) : 0, Please check that this shift does not lose any information (i.e., clockid = 0 clockid = 0x) before doing it. Implementing clock_getcpuclockid() will require clockids greater than 65535 because such clockids contain a process id. -- Jilles

Re: svn commit: r231989 - in head: lib/libthr/thread sys/kern sys/sys

2012-02-23 Thread Jilles Tjoelker
On Thu, Feb 23, 2012 at 08:07:49AM +0800, David Xu wrote: On 2012/2/23 7:42, Jilles Tjoelker wrote: On Wed, Feb 22, 2012 at 03:22:50AM +, David Xu wrote: Author: davidxu Date: Wed Feb 22 03:22:49 2012 New Revision: 231989 URL: http://svn.freebsd.org/changeset/base/231989 Log

svn commit: r232108 - head/usr.bin/xargs

2012-02-24 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 24 12:35:17 2012 New Revision: 232108 URL: http://svn.freebsd.org/changeset/base/232108 Log: xargs: If a utility exits with 255 or a signal, write an error message. If a utility called by xargs exits with status 255 or because of a signal, POSIX requires

Re: svn commit: r232108 - head/usr.bin/xargs

2012-02-24 Thread Jilles Tjoelker
On Sat, Feb 25, 2012 at 04:27:35AM +1100, Bruce Evans wrote: On Fri, 24 Feb 2012, Jilles Tjoelker wrote: Log: xargs: If a utility exits with 255 or a signal, write an error message. If a utility called by xargs exits with status 255 or because of a signal, POSIX requires writing

svn commit: r232183 - head/sys/kern

2012-02-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 26 15:14:29 2012 New Revision: 232183 URL: http://svn.freebsd.org/changeset/base/232183 Log: Fix fchmod() and fchown() on fifos. The new fifo implementation in r232055 broke fchmod() and fchown() on fifos. Postfix needs this. Submitted by: gianni

svn commit: r232184 - head/tools/regression/fifo/fifo_misc

2012-02-26 Thread Jilles Tjoelker
@@ /*- * Copyright (c) 2005 Robert N. M. Watson + * Copyright (c) 2012 Jilles Tjoelker * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -223,6 +224,97 @@ test_ioctl(void) cleanfifo(testfifo, reader_fd, writer_fd); } +/* + * fchmod(2)/fchown(2

svn commit: r232187 - head/usr.bin/xargs

2012-02-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 26 17:39:46 2012 New Revision: 232187 URL: http://svn.freebsd.org/changeset/base/232187 Log: xargs: Fix comma splice in error message. Reported by: bde Modified: head/usr.bin/xargs/xargs.c Modified: head/usr.bin/xargs/xargs.c

svn commit: r232201 - head/usr.bin/xargs

2012-02-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 26 23:06:30 2012 New Revision: 232201 URL: http://svn.freebsd.org/changeset/base/232201 Log: xargs: Remove an unclear comment that only tried to repeat what the code did Reported by: bde Modified: head/usr.bin/xargs/xargs.c Modified:

Re: svn commit: r232108 - head/usr.bin/xargs

2012-02-26 Thread Jilles Tjoelker
On Sat, Feb 25, 2012 at 09:10:04AM +1100, Bruce Evans wrote: On Fri, 24 Feb 2012, Jilles Tjoelker wrote: On Sat, Feb 25, 2012 at 04:27:35AM +1100, Bruce Evans wrote: ... Utilities are quite broken near here too: - under -current: - utilities still don't support signals = 32

Re: svn commit: r232266 - in head/sys: amd64/include i386/include pc98/include x86/include

2012-03-02 Thread Jilles Tjoelker
that documentation like Instruction Set Reference is intended to describe how the instructions work, not how to use them to obtain the very best performance on a particular chip. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http

svn commit: r232839 - head/tools/regression/bin/sh/expansion

2012-03-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 11 22:12:05 2012 New Revision: 232839 URL: http://svn.freebsd.org/changeset/base/232839 Log: sh: Add a test for variables with underscores in arithmetic. Things like $((_x+1)) are broken in stable/8 sh but work in stable/9 and head. Added:

svn commit: r233038 - head/usr.bin/xargs

2012-03-16 Thread Jilles Tjoelker
Author: jilles Date: Fri Mar 16 16:41:28 2012 New Revision: 233038 URL: http://svn.freebsd.org/changeset/base/233038 Log: xargs: Before exiting, wait for all invocations of the utility. This only has an effect with -P, otherwise errors are only detected when the utility is not running.

svn commit: r233116 - in stable/9/tools/regression/bin/sh: builtins expansion parameters

2012-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 18 13:02:56 2012 New Revision: 233116 URL: http://svn.freebsd.org/changeset/base/233116 Log: MFC r226892,r228007,r228873,r230121,r232839: sh: Various testcases that already work. Added: stable/9/tools/regression/bin/sh/builtins/case11.0 - copied unchanged

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

2012-03-18 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 18 20:34:01 2012 New Revision: 233130 URL: http://svn.freebsd.org/changeset/base/233130 Log: fts(3): Document cases where FTS_NOCHDIR is set implicitly. PR: docs/166091 Submitted by: Matthew Story MFC after:1 week Modified:

<    5   6   7   8   9   10   11   12   13   14   >