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

2013-05-16 Thread Jilles Tjoelker
Author: jilles Date: Thu May 16 20:34:21 2013 New Revision: 250715 URL: http://svnweb.freebsd.org/changeset/base/250715 Log: MFC r250412: posix_spawn_file_actions_addopen(3): Correct error for bad file descriptor. As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a

Re: svn commit: r250699 - in head: share/mk usr.bin/make

2013-05-17 Thread Jilles Tjoelker
) will not fork for -c external but will fork for -c builtin;external. -- 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: r250825 - head/tools/regression/lib/libc/gen

2013-05-20 Thread Jilles Tjoelker
+1,227 @@ +/*- + * Copyright (c) 2013 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

svn commit: r250827 - in head: lib/libc/gen tools/regression/lib/libc/gen

2013-05-20 Thread Jilles Tjoelker
Author: jilles Date: Mon May 20 17:31:18 2013 New Revision: 250827 URL: http://svnweb.freebsd.org/changeset/base/250827 Log: popen(): Add 'e' mode character to set close-on-exec on the new fd. If 'e' is used, the kernel must support the recently added pipe2() system call. The use of

Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale

2013-05-21 Thread Jilles Tjoelker
and __xlocale_global_locale have a declared type. If ps != NULL, it is OK as long as the object is a separate compilation unit. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send

svn commit: r240247 - head/bin/sh

2012-09-08 Thread Jilles Tjoelker
Author: jilles Date: Sat Sep 8 19:24:03 2012 New Revision: 240247 URL: http://svn.freebsd.org/changeset/base/240247 Log: sh: Remove XXX comment about removing nextopt(). Using nextopt() avoids depending on the BSD-specific optreset feature in getopt() and reduces code size (both source

svn commit: r240505 - head/bin/sh

2012-09-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 14 15:22:15 2012 New Revision: 240505 URL: http://svn.freebsd.org/changeset/base/240505 Log: sh: Reduce code duplication: use setinputfile instead of open/setinputfd combination. MFC after:2 weeks Modified: head/bin/sh/main.c Modified:

svn commit: r240522 - head/share/man/man3

2012-09-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 14 22:05:09 2012 New Revision: 240522 URL: http://svn.freebsd.org/changeset/base/240522 Log: siginfo(3): Document SI_USER and SI_KERNEL signal codes. MFC after:1 week Modified: head/share/man/man3/siginfo.3 Modified: head/share/man/man3/siginfo.3

svn commit: r240523 - head/share/man/man3

2012-09-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 14 22:10:01 2012 New Revision: 240523 URL: http://svn.freebsd.org/changeset/base/240523 Log: siginfo(3): Document SI_LWP signal code. Describe SI_LWP as being generated by pthread_kill() because thr_kill() is a private undocumented function. MFC after:

svn commit: r240524 - head/share/man/man3

2012-09-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 14 22:12:04 2012 New Revision: 240524 URL: http://svn.freebsd.org/changeset/base/240524 Log: siginfo(3): Document TRAP_DTRACE signal code. MFC after:1 week Modified: head/share/man/man3/siginfo.3 Modified: head/share/man/man3/siginfo.3

Re: svn commit: r238563 - head/gnu/usr.bin/groff/tmac

2012-09-14 Thread Jilles Tjoelker
On Wed, Aug 22, 2012 at 05:36:03PM -0700, Simon J. Gerraty wrote: On Thu, 23 Aug 2012 00:30:02 +0200, Jilles Tjoelker writes: I think the most important reason is to reduce special cases. The POSIX developers did not want to create a second subset of utilities that are not available via

svn commit: r240541 - in head: bin/sh usr.bin/printf

2012-09-15 Thread Jilles Tjoelker
Author: jilles Date: Sat Sep 15 21:56:30 2012 New Revision: 240541 URL: http://svn.freebsd.org/changeset/base/240541 Log: sh: Prefer internal nextopt() to libc getopt(). This reduces code duplication and code size. /usr/bin/printf is not affected. Side effect: different error

svn commit: r240704 - head/lib/libc/string

2012-09-19 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 19 19:21:22 2012 New Revision: 240704 URL: http://svn.freebsd.org/changeset/base/240704 Log: strsignal(): Do not append signal numbers to messages for known signals. Messages for known signals looked like Terminated: 15 instead of Terminated. Modified:

svn commit: r240705 - head/lib/libc/string

2012-09-19 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 19 19:22:24 2012 New Revision: 240705 URL: http://svn.freebsd.org/changeset/base/240705 Log: strsignal(): Reindent. Modified: head/lib/libc/string/strsignal.c Modified: head/lib/libc/string/strsignal.c

Re: svn commit: r240770 - in head/usr.sbin/bsdconfig: . console mouse networking networking/share share startup startup/share timezone/share usermgmt/share

2012-09-21 Thread Jilles Tjoelker
. If the reason is that there may be no /dev/null, then you will have to change the environment such that there will be a /dev/null. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all

svn commit: r240775 - stable/9/share/man/man3

2012-09-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 21 12:28:56 2012 New Revision: 240775 URL: http://svn.freebsd.org/changeset/base/240775 Log: MFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes. Modified: stable/9/share/man/man3/siginfo.3 Directory Properties: stable/9/share/man/man3/

svn commit: r240776 - stable/9/share/man/man3

2012-09-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 21 12:31:37 2012 New Revision: 240776 URL: http://svn.freebsd.org/changeset/base/240776 Log: MFC r240523: siginfo(3): Document SI_LWP signal code. Describe SI_LWP as being generated by pthread_kill() because thr_kill() is a private undocumented function.

svn commit: r240777 - stable/9/share/man/man3

2012-09-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 21 12:33:25 2012 New Revision: 240777 URL: http://svn.freebsd.org/changeset/base/240777 Log: MFC r240524: siginfo(3): Document TRAP_DTRACE signal code. Modified: stable/9/share/man/man3/siginfo.3 Directory Properties: stable/9/share/man/man3/ (props changed)

svn commit: r240778 - stable/8/share/man/man3

2012-09-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 21 12:38:52 2012 New Revision: 240778 URL: http://svn.freebsd.org/changeset/base/240778 Log: siginfo(3): Document SI_USER and SI_KERNEL signal codes. Different from stable/9 and head, do not mention pthread_kill(3), which generates a different code (SI_USER)

svn commit: r240779 - stable/8/share/man/man3

2012-09-21 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 21 12:40:31 2012 New Revision: 240779 URL: http://svn.freebsd.org/changeset/base/240779 Log: MFC r240524: siginfo(3): Document TRAP_DTRACE signal code. Modified: stable/8/share/man/man3/siginfo.3 Directory Properties: stable/8/share/man/man3/ (props changed)

svn commit: r240820 - head/usr.bin/kdump

2012-09-22 Thread Jilles Tjoelker
Author: jilles Date: Sat Sep 22 12:40:00 2012 New Revision: 240820 URL: http://svn.freebsd.org/changeset/base/240820 Log: kdump: Pretty-print signal codes. MFC after:1 week Modified: head/usr.bin/kdump/kdump.c head/usr.bin/kdump/mksubr Modified: head/usr.bin/kdump/kdump.c

svn commit: r240825 - head/tools/regression/bin/sh/parser

2012-09-22 Thread Jilles Tjoelker
Author: jilles Date: Sat Sep 22 12:52:41 2012 New Revision: 240825 URL: http://svn.freebsd.org/changeset/base/240825 Log: sh: Add some tests for aliasing a utility to itself. Added: head/tools/regression/bin/sh/parser/alias7.0 (contents, props changed)

svn commit: r240973 - head/usr.bin/find

2012-09-26 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 26 20:16:15 2012 New Revision: 240973 URL: http://svn.freebsd.org/changeset/base/240973 Log: find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears to be from

svn commit: r240974 - head/libexec/atrun

2012-09-26 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 26 20:47:39 2012 New Revision: 240974 URL: http://svn.freebsd.org/changeset/base/240974 Log: atrun: Do not assume that MAXLOGNAME = 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR: bin/171815

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

2012-09-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Sep 27 17:48:04 2012 New Revision: 241001 URL: http://svn.freebsd.org/changeset/base/241001 Log: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error condition. Passing an invalid pointer results in undefined behaviour. The wrappers in libthr access

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

2012-09-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Sep 27 22:05:54 2012 New Revision: 241010 URL: http://svn.freebsd.org/changeset/base/241010 Log: libc/fts: Use O_CLOEXEC for internal file descriptors. Because fts keeps internal file descriptors open across calls, making such descriptors close-on-exec helps not

svn commit: r241030 - stable/9/bin/sh

2012-09-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 28 13:43:42 2012 New Revision: 241030 URL: http://svn.freebsd.org/changeset/base/241030 Log: MFC r240505: sh: Reduce code duplication: use setinputfile instead of open/setinputfd combination. Modified: stable/9/bin/sh/main.c Directory Properties:

svn commit: r241046 - in head/lib/libc: gen locale nls stdlib yp

2012-09-29 Thread Jilles Tjoelker
Author: jilles Date: Sat Sep 29 11:54:34 2012 New Revision: 241046 URL: http://svn.freebsd.org/changeset/base/241046 Log: libc: Use O_CLOEXEC for various internal file descriptors. This fixes a race condition where another thread may fork() before CLOEXEC is set, unintentionally passing

svn commit: r241224 - stable/9/lib/libc/sys

2012-10-05 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 5 14:20:53 2012 New Revision: 241224 URL: http://svn.freebsd.org/changeset/base/241224 Log: MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error condition. Passing an invalid pointer results in undefined behaviour. The wrappers in

svn commit: r241226 - stable/9/libexec/atrun

2012-10-05 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 5 14:43:49 2012 New Revision: 241226 URL: http://svn.freebsd.org/changeset/base/241226 Log: MFC r240974: atrun: Do not assume that MAXLOGNAME = 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR:

svn commit: r241227 - stable/9/usr.bin/find

2012-10-05 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 5 15:36:30 2012 New Revision: 241227 URL: http://svn.freebsd.org/changeset/base/241227 Log: MFC r240973: find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears

svn commit: r241350 - stable/8/libexec/atrun

2012-10-08 Thread Jilles Tjoelker
Author: jilles Date: Mon Oct 8 14:05:00 2012 New Revision: 241350 URL: http://svn.freebsd.org/changeset/base/241350 Log: MFC r240974: atrun: Do not assume that MAXLOGNAME = 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR:

svn commit: r241352 - stable/8/usr.bin/find

2012-10-08 Thread Jilles Tjoelker
Author: jilles Date: Mon Oct 8 16:00:33 2012 New Revision: 241352 URL: http://svn.freebsd.org/changeset/base/241352 Log: MFC r240973: find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Jilles Tjoelker
this, but gcc -Wundef will warn about it. That compiler warning is in CWARNFLAGS in sys/conf/kern.mk so I suggest adding the 'defined(__FreeBSD_version) '. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman

svn commit: r241819 - stable/9/usr.bin/touch

2012-10-21 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 21 21:47:58 2012 New Revision: 241819 URL: http://svn.freebsd.org/changeset/base/241819 Log: MFC r236852: touch: Add the -d option from POSIX.1-2008. This is much like -t but with a different format which is ISO8601-like and allows fractions of a second.

Re: svn commit: r241830 - in head/usr.sbin/pkg_install: add create delete info lib updating version

2012-10-22 Thread Jilles Tjoelker
the environment should be safe in pkg_*, I still don't like it. The easiest fix is to use asprintf(3), which also avoids hard-coding MAXPATHLEN or PATH_MAX. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

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

2012-07-13 Thread Jilles Tjoelker
Author: jilles Date: Fri Jul 13 22:29:02 2012 New Revision: 238430 URL: http://svn.freebsd.org/changeset/base/238430 Log: sh: Add tests where export does not parse differently. It is planned to expand variable assignments as assignments (no word splitting, different tilde expansion) when

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

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 10:19:43 2012 New Revision: 238468 URL: http://svn.freebsd.org/changeset/base/238468 Log: sh: Expand assignment-like words specially for export/readonly/local. Examples: export x=~ now expands the tilde local y=$1 is now safe, even if $1 contains

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

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 10:22:13 2012 New Revision: 238469 URL: http://svn.freebsd.org/changeset/base/238469 Log: sh: Add a simple test for the local builtin. Added: head/tools/regression/bin/sh/builtins/local1.0 (contents, props changed) Added:

svn commit: r238470 - head/bin/sh

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 10:49:16 2012 New Revision: 238470 URL: http://svn.freebsd.org/changeset/base/238470 Log: sh: Remove unused variable in_dowait. Modified: head/bin/sh/jobs.c head/bin/sh/jobs.h Modified: head/bin/sh/jobs.c

svn commit: r238477 - head/bin/sh

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 11:18:52 2012 New Revision: 238477 URL: http://svn.freebsd.org/changeset/base/238477 Log: sh: Reset pendingsigs before checking pending traps, not after. Otherwise, a signal arriving at exactly the right moment might not be processed until another signal

svn commit: r238488 - head/bin/ps

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 15:22:13 2012 New Revision: 238488 URL: http://svn.freebsd.org/changeset/base/238488 Log: ps: Fix memory leak when showing start/lstart for swapped-out process. Spotted by: scan-build (uqs) Modified: head/bin/ps/print.c Modified: head/bin/ps/print.c

svn commit: r238504 - head/lib/libc/net

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 20:39:21 2012 New Revision: 238504 URL: http://svn.freebsd.org/changeset/base/238504 Log: libc: Remove some unused strings from getaddrinfo(). Modified: head/lib/libc/net/getaddrinfo.c Modified: head/lib/libc/net/getaddrinfo.c

svn commit: r238508 - head/bin/stty

2012-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 21:12:22 2012 New Revision: 238508 URL: http://svn.freebsd.org/changeset/base/238508 Log: stty: Mark usage() __dead2. This reduces code size a little and should fix a scan-build warning. Modified: head/bin/stty/extern.h Modified: head/bin/stty/extern.h

svn commit: r238780 - head/usr.bin/find

2012-07-25 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 25 21:59:10 2012 New Revision: 238780 URL: http://svn.freebsd.org/changeset/base/238780 Log: find: Implement real -ignore_readdir_race. If -ignore_readdir_race is present, [ENOENT] errors caused by deleting a file after find has read its name from a directory

svn commit: r238865 - head/bin/sh

2012-07-28 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 28 14:32:55 2012 New Revision: 238865 URL: http://svn.freebsd.org/changeset/base/238865 Log: sh: Track continued jobs (even if not continued by bg or fg). This uses wait3's WCONTINUED flag. There is no message for this. The change is visible in jobs or if

svn commit: r238866 - head/bin/sh

2012-07-28 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 28 14:56:50 2012 New Revision: 238866 URL: http://svn.freebsd.org/changeset/base/238866 Log: sh: Inline waitproc() into its only caller. Modified: head/bin/sh/jobs.c Modified: head/bin/sh/jobs.c

svn commit: r238867 - head/bin/sh

2012-07-28 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 28 15:13:48 2012 New Revision: 238867 URL: http://svn.freebsd.org/changeset/base/238867 Log: sh: Do not ask for stopped/continued processes if we do not need them rather than retrying wait3 if they happen. Modified: head/bin/sh/jobs.c Modified:

svn commit: r238888 - head/bin/sh

2012-07-29 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 29 18:04:38 2012 New Revision: 23 URL: http://svn.freebsd.org/changeset/base/23 Log: sh: Fix EINTR race condition in wait and set -T using sigsuspend(). When waiting for child processes using wait or if set -T is in effect, a signal interrupts the

svn commit: r238906 - stable/9/lib/libc/locale

2012-07-30 Thread Jilles Tjoelker
Author: jilles Date: Mon Jul 30 12:25:20 2012 New Revision: 238906 URL: http://svn.freebsd.org/changeset/base/238906 Log: MFC r237939: ctype_l(3): Note that not all these functions are specified by POSIX.1-2008. The function isascii_l() is not in POSIX even though isascii() is, probably

svn commit: r238948 - head/usr.bin/find

2012-07-31 Thread Jilles Tjoelker
Author: jilles Date: Tue Jul 31 16:55:41 2012 New Revision: 238948 URL: http://svn.freebsd.org/changeset/base/238948 Log: find: Remove unnecessary and inconsistent initialization. Submitted by: jhb Modified: head/usr.bin/find/main.c Modified: head/usr.bin/find/main.c

Re: svn commit: r238622 - head/etc/rc.d

2012-08-05 Thread Jilles Tjoelker
. This avoids breaking DNS round robin but still prefers truly local services. -- 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

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

2012-08-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Aug 9 15:04:06 2012 New Revision: 239150 URL: http://svn.freebsd.org/changeset/base/239150 Log: nftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFILE from

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

2012-08-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Aug 9 15:11:38 2012 New Revision: 239151 URL: http://svn.freebsd.org/changeset/base/239151 Log: ftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFILE from

svn commit: r239160 - in head: lib/libc/gen tools/regression/lib/libc/gen

2012-08-09 Thread Jilles Tjoelker
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/lib/libc/gen/test-ftw.c Thu Aug 9 22:05:40 2012(r239160) @@ -0,0 +1,141 @@ +/*- + * Copyright (c) 2012 Jilles Tjoelker + * All rights reserved. + * + * Redistribution and use in source

Re: svn commit: r238563 - head/gnu/usr.bin/groff/tmac

2012-08-21 Thread Jilles Tjoelker
${DESTDIR}${TMACDIR}) then the cd ${.OBJDIR} isn't needed at all. note use of rather than ; which can be very dangerous This method makes more sense and should hardly cost any performance. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http

Re: svn commit: r238563 - head/gnu/usr.bin/groff/tmac

2012-08-22 Thread Jilles Tjoelker
On Tue, Aug 21, 2012 at 04:25:53PM -0700, Simon J. Gerraty wrote: On Wed, 22 Aug 2012 00:29:44 +0200, Jilles Tjoelker writes: On FreeBSD, the first two statements are partially false. All sh(1) builtins that correspond to utilities specified by POSIX (but not special builtins) have versions

svn commit: r244350 - head/lib/libc/iconv

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 10:38:51 2012 New Revision: 244350 URL: http://svnweb.freebsd.org/changeset/base/244350 Log: libc/iconv: Fix race condition with setting FD_CLOEXEC. A fork/exec could happen between open and fcntl, leaking a file descriptor. Using O_CLOEXEC fixes this and

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

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 12:26:10 2012 New Revision: 244356 URL: http://svnweb.freebsd.org/changeset/base/244356 Log: MFC r239150: nftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to

Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl

2012-12-17 Thread Jilles Tjoelker
it should be removed as well so that can be done without adding quotes. It seems inappropriate for sysctl.conf in particular since that file did not allow the extra whitespace in the first place. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http

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

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 13:03:13 2012 New Revision: 244359 URL: http://svnweb.freebsd.org/changeset/base/244359 Log: MFC r239151: ftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to

Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl

2012-12-19 Thread Jilles Tjoelker
to store the arguments in a variable but that is not possible because all characters are valid in pathnames, except the null character which cannot be used in shell either. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org

svn commit: r244682 - head/bin/sh

2012-12-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Dec 25 14:17:09 2012 New Revision: 244682 URL: http://svnweb.freebsd.org/changeset/base/244682 Log: sh: Prefer strsignal() to accessing sys_siglist directly. Accessing sys_siglist directly requires rtld to copy it from libc to the sh executable's BSS. Also,

svn commit: r244734 - head/bin/test

2012-12-27 Thread Jilles Tjoelker
Author: jilles Date: Thu Dec 27 13:21:37 2012 New Revision: 244734 URL: http://svnweb.freebsd.org/changeset/base/244734 Log: test(1): Document == alias for =. Reviewed by: gjb Requested by: gjb MFC after:1 week Modified: head/bin/test/test.1 Modified: head/bin/test/test.1

Re: svn commit: r244735 - head/lib/libutil

2012-12-27 Thread Jilles Tjoelker
add |O_CLOEXEC to the flopen() flags in both cases. -- 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: r244924 - head/tools/regression/bin/sh/errors

2013-01-01 Thread Jilles Tjoelker
Author: jilles Date: Tue Jan 1 12:48:24 2013 New Revision: 244924 URL: http://svnweb.freebsd.org/changeset/base/244924 Log: sh: Fix a Subversion property. Test scripts should have keywords; only pure output that must match exactly should have keywords disabled. Modified: Directory

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

2013-01-04 Thread Jilles Tjoelker
parameters to strlcpy but strings that fit in the actual buffer. This might threaten the stability of head. If you want this, it makes more sense to create a new function. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org

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

2013-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 19:19:40 2013 New Revision: 245381 URL: http://svnweb.freebsd.org/changeset/base/245381 Log: sh: Don't lose $? when backquoted command ends with semicolon or newline. An empty simple command was added and overwrote the exit status with 0. This affects

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

2013-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 19:26:33 2013 New Revision: 245382 URL: http://svnweb.freebsd.org/changeset/base/245382 Log: sh: Fix crash when parsing '{ } '. MFC after:1 week Added: head/tools/regression/bin/sh/parser/empty-braces1.0 (contents, props changed) Modified:

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

2013-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 19:39:13 2013 New Revision: 245383 URL: http://svnweb.freebsd.org/changeset/base/245383 Log: sh: Add some testcases related to subshells. These failed in earlier attempts to execute more subshells without forking. The patches are uncommitted. Added:

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

2013-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 22:35:51 2013 New Revision: 245392 URL: http://svnweb.freebsd.org/changeset/base/245392 Log: sh: Add testcase that $? is preserved into a simple command substitution. The test builtins/trap6.0 already uses this but having it separate eases diagnosis if

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

2013-01-14 Thread Jilles Tjoelker
Author: jilles Date: Mon Jan 14 12:20:55 2013 New Revision: 245422 URL: http://svnweb.freebsd.org/changeset/base/245422 Log: sh: Pass $? to command substitution containing compound/multiple commands. Example: false; echo $(echo $?; :) Added:

svn commit: r245426 - head/bin/sh

2013-01-14 Thread Jilles Tjoelker
Author: jilles Date: Mon Jan 14 16:40:50 2013 New Revision: 245426 URL: http://svnweb.freebsd.org/changeset/base/245426 Log: sh: Simplify cd-hash interaction. Instead of rechecking relative paths for all hashed utilities after a cd, track if any utility in cmdtable depends on a relative

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

2013-01-14 Thread Jilles Tjoelker
On Mon, Jan 14, 2013 at 01:38:51PM -0500, Eitan Adler wrote: On 14 January 2013 11:40, Jilles Tjoelker jil...@freebsd.org wrote: Author: jilles Date: Mon Jan 14 16:40:50 2013 New Revision: 245426 URL: http://svnweb.freebsd.org/changeset/base/245426 Log: sh: Simplify cd-hash

svn commit: r245630 - head/lib/libthr/thread

2013-01-18 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 18 23:08:40 2013 New Revision: 245630 URL: http://svnweb.freebsd.org/changeset/base/245630 Log: libthr: Always use the threaded rtld lock implementation. The threaded rtld lock implementation is faster even in the single-threaded case because it postpones

svn commit: r245676 - head/bin/sh

2013-01-19 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 19 22:12:08 2013 New Revision: 245676 URL: http://svnweb.freebsd.org/changeset/base/245676 Log: sh: Replace an mkinit use with an initialization. Modified: head/bin/sh/input.c Modified: head/bin/sh/input.c

svn commit: r245689 - head/bin/sh

2013-01-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 20 12:44:50 2013 New Revision: 245689 URL: http://svnweb.freebsd.org/changeset/base/245689 Log: sh: Remove mkinit's initialization routine. Instead, call the only init function left directly from main(). Modified: head/bin/sh/TOUR head/bin/sh/init.h

svn commit: r245690 - in stable/9: bin/sh tools/regression/bin/sh/parser

2013-01-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 20 14:22:21 2013 New Revision: 245690 URL: http://svnweb.freebsd.org/changeset/base/245690 Log: MFC r245382: sh: Fix crash when parsing '{ } '. Added: stable/9/tools/regression/bin/sh/parser/empty-braces1.0 - copied unchanged from r245382,

svn commit: r245698 - head/bin/sh

2013-01-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 20 21:28:05 2013 New Revision: 245698 URL: http://svnweb.freebsd.org/changeset/base/245698 Log: sh: Move some stackmarks to fix high memory usage in some loops. If a loop contained certain commands (such as redirected compound commands), the temporary memory

Re: svn commit: r246120 - in head: include lib/libc/stdio tools/regression/lib/libc/stdio

2013-01-30 Thread Jilles Tjoelker
] -- 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: r246162 - head/bin/sh

2013-01-31 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 31 21:50:44 2013 New Revision: 246162 URL: http://svnweb.freebsd.org/changeset/base/246162 Log: sh: Show negated commands (!) in jobs output. Modified: head/bin/sh/jobs.c Modified: head/bin/sh/jobs.c

svn commit: r246167 - head/bin/sh

2013-01-31 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 31 22:10:57 2013 New Revision: 246167 URL: http://svnweb.freebsd.org/changeset/base/246167 Log: sh: Prefer our character classification functions to ctype.h. Modified: head/bin/sh/miscbltin.c head/bin/sh/mksyntax.c Modified: head/bin/sh/miscbltin.c

svn commit: r246288 - head/bin/sh

2013-02-03 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 3 15:54:57 2013 New Revision: 246288 URL: http://svnweb.freebsd.org/changeset/base/246288 Log: sh: Expand here documents in the current process. Expand here documents at the same point other redirections are expanded but use a non-fork subshell environment

svn commit: r246371 - head/bin/sh

2013-02-05 Thread Jilles Tjoelker
Author: jilles Date: Tue Feb 5 22:54:09 2013 New Revision: 246371 URL: http://svnweb.freebsd.org/changeset/base/246371 Log: sh: Do not test for digit_contig in mksyntax. ISO/IEC 9899:1999 (E) 5.2.1p3 guarantees that the values of the characters 0123456789 are contiguous. The

svn commit: r246507 - head/bin/sh

2013-02-07 Thread Jilles Tjoelker
Author: jilles Date: Thu Feb 7 21:24:10 2013 New Revision: 246507 URL: http://svnweb.freebsd.org/changeset/base/246507 Log: sh: Fix a comment. Modified: head/bin/sh/parser.h Modified: head/bin/sh/parser.h == ---

svn commit: r246522 - head/bin/sh

2013-02-07 Thread Jilles Tjoelker
Author: jilles Date: Thu Feb 7 22:42:33 2013 New Revision: 246522 URL: http://svnweb.freebsd.org/changeset/base/246522 Log: sh: Simplify mksyntax and make it fit for cross-compiling. Now it outputs fixed files, which use constants provided by the C standard library to determine

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

2013-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 13:20:23 2013 New Revision: 246617 URL: http://svnweb.freebsd.org/changeset/base/246617 Log: sigqueue(2): Fix typo (EEPERM - EPERM). MFC after:3 days Modified: head/lib/libc/sys/sigqueue.2 Modified: head/lib/libc/sys/sigqueue.2

svn commit: r246618 - head/usr.bin/find

2013-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 13:28:02 2013 New Revision: 246618 URL: http://svnweb.freebsd.org/changeset/base/246618 Log: find: In -execdir ... {} +, only pass one file per invocation. This is inefficient but ensures that -execdir ... {} + does not mix files from different directories

svn commit: r246628 - head/usr.bin/find

2013-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 18:56:37 2013 New Revision: 246628 URL: http://svnweb.freebsd.org/changeset/base/246628 Log: find: Run when cwd cannot be opened, except with -execdir or -delete. fts(3) can run (albeit more slowly and imposing the {PATH_MAX} limit) when the current

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

2013-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 23:09:15 2013 New Revision: 246641 URL: http://svnweb.freebsd.org/changeset/base/246641 Log: fts: Use O_DIRECTORY when opening name that might be changed by attacker. There are uncommon cases where fts_safe_changedir() may be called with a non-NULL name

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

2012-01-13 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 13 23:32:27 2012 New Revision: 230095 URL: http://svn.freebsd.org/changeset/base/230095 Log: sh: Properly show Not a directory error in cd builtin. The errno message display added in r92 did not take attempting to cd to a non-directory or something that

svn commit: r230117 - head/bin/sh

2012-01-14 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 14 21:54:12 2012 New Revision: 230117 URL: http://svn.freebsd.org/changeset/base/230117 Log: sh: Fix out of bounds array access when trap is used with an invalid signal. MFC after:1 week Modified: head/bin/sh/trap.c Modified: head/bin/sh/trap.c

svn commit: r230118 - head/bin/sh

2012-01-14 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 14 22:46:18 2012 New Revision: 230118 URL: http://svn.freebsd.org/changeset/base/230118 Log: sh: Change input buffer size from 1023 to 1024. PR: bin/161756 Modified: head/bin/sh/input.c Modified: head/bin/sh/input.c

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

2012-01-14 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 14 23:10:18 2012 New Revision: 230121 URL: http://svn.freebsd.org/changeset/base/230121 Log: sh: Add testcases that should not be broken by future optimizations. Added: head/tools/regression/bin/sh/expansion/cmdsubst12.0 (contents, props changed)

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

2012-01-15 Thread Jilles Tjoelker
On Sun, Jan 15, 2012 at 12:58:02AM -0500, Eitan Adler wrote: On Sat, Jan 14, 2012 at 5:46 PM, Jilles Tjoelker jil...@freebsd.org wrote: Author: jilles Date: Sat Jan 14 22:46:18 2012 New Revision: 230118 URL: http://svn.freebsd.org/changeset/base/230118 Log:  sh: Change input buffer

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

2012-01-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 15 20:04:05 2012 New Revision: 230154 URL: http://svn.freebsd.org/changeset/base/230154 Log: sh: Fix two bugs with case and exit status: * If no pattern is matched, POSIX says the exit status shall be 0 (even if there are command substitutions). * If a

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

2012-01-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 15 21:39:38 2012 New Revision: 230161 URL: http://svn.freebsd.org/changeset/base/230161 Log: sh: Fix some bugs with exit status from case containing ;. Also, rework evalcase() to not evaluate any tree. Instead, return the NCLISTFALLTHRU node and handle it in

Re: svn commit: r230174 - stable/8/sys/kern

2012-01-15 Thread Jilles Tjoelker
found the questions asked by 'svn merge' to be usable in many cases. -- 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: r230381 - stable/9/usr.bin/xlint/xlint

2012-01-20 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 20 15:43:08 2012 New Revision: 230381 URL: http://svn.freebsd.org/changeset/base/230381 Log: MFC r227123: 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:

svn commit: r230382 - stable/8/usr.bin/xlint/xlint

2012-01-20 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 20 15:44:39 2012 New Revision: 230382 URL: http://svn.freebsd.org/changeset/base/230382 Log: MFC r227123: 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:

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