svn commit: r194587 - stable/7/bin/cp

2009-06-21 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 21 15:36:10 2009 New Revision: 194587 URL: http://svn.freebsd.org/changeset/base/194587 Log: MFC r193086: Preserve file flags on symlinks in cp -Rp. This reported ENOSYS before. PR: bin/111226 (part of) Submitted by: Martin Kammerhofer Approved

svn commit: r194765 - head/bin/sh

2009-06-23 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 23 20:45:12 2009 New Revision: 194765 URL: http://svn.freebsd.org/changeset/base/194765 Log: sh: Improve handling of setjmp/longjmp volatile: - remove ineffective and unnecessary (void) var; [1] - remove some unnecessary volatile keywords - add a necessary

svn commit: r194774 - head/bin/sh

2009-06-23 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 23 21:50:06 2009 New Revision: 194774 URL: http://svn.freebsd.org/changeset/base/194774 Log: Do not fork for a subshell if it is the last thing this shell is doing (EV_EXIT). The fork is still done as normal if any traps are active. In many cases, the fork

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

2009-06-23 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 23 22:03:56 2009 New Revision: 194775 URL: http://svn.freebsd.org/changeset/base/194775 Log: Add tests for r194774. Approved by: ed (mentor) (implicit) Added: head/tools/regression/bin/sh/execution/fork2.0 (contents, props changed) Added:

svn commit: r194786 - head/bin/sh

2009-06-23 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 23 22:53:34 2009 New Revision: 194786 URL: http://svn.freebsd.org/changeset/base/194786 Log: Quote -x tracing output so it is unambiguous. It is usually but not always suitable for re-input to the shell. Approved by: ed (mentor) (implicit) Modified:

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

2009-06-24 Thread Jilles Tjoelker
Author: jilles Date: Wed Jun 24 22:04:04 2009 New Revision: 194922 URL: http://svn.freebsd.org/changeset/base/194922 Log: Designate special builtins as such in command -V and type. Also document various properties of special builtins that we implement. Approved by: ed (mentor)

svn commit: r194975 - head/bin/sh

2009-06-25 Thread Jilles Tjoelker
Author: jilles Date: Thu Jun 25 17:10:51 2009 New Revision: 194975 URL: http://svn.freebsd.org/changeset/base/194975 Log: Improve IFS expansion using code from NetBSD. We now pass the ifs.sh testsuite. PR: standards/79067 Approved by: ed (mentor) (implicit) Obtained

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

2009-06-25 Thread Jilles Tjoelker
Author: jilles Date: Thu Jun 25 17:36:08 2009 New Revision: 194981 URL: http://svn.freebsd.org/changeset/base/194981 Log: Add some tests for r194975 and r194977. Approved by: ed (mentor) (implicit) Added: head/tools/regression/bin/sh/expansion/

Re: svn commit: r195243 - head/bin/chmod

2009-07-03 Thread Jilles Tjoelker
On Wed, Jul 01, 2009 at 03:52:19PM +, Edward Tomasz Napierala wrote: + ret = pathconf(ent-fts_accpath, _PC_ACL_NFS4); There doesn't seem to be anything like lpathconf() or fpathconfat(AT_SYMLINK_NOFOLLOW), so this may not work properly for symlinks (chmod -h). -- Jilles

Re: svn commit: r195458 - in head: include lib/libc/sys sys/bsm sys/compat/freebsd32 sys/compat/svr4 sys/i386/ibcs2 sys/kern sys/sys

2009-07-17 Thread Jilles Tjoelker
with AT_SYMLINK_NOFOLLOW option would be useful here. * link() * symlink() linkat() and symlinkat() exist. In addition to providing the at functionality, linkat() allows creating hard links to symlinks. -- Jilles Tjoelker ___ svn-src-all@freebsd.org

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

2009-07-19 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 19 16:48:25 2009 New Revision: 195763 URL: http://svn.freebsd.org/changeset/base/195763 Log: Correct AT_SYMLINK_FOLLOW flag name in linkat(2) man page. Approved by: re (kib), ed (mentor) Modified: head/lib/libc/sys/link.2 Modified: head/lib/libc/sys/link.2

svn commit: r195768 - head/bin/ln

2009-07-19 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 19 17:35:23 2009 New Revision: 195768 URL: http://svn.freebsd.org/changeset/base/195768 Log: Allow creating hard links to symlinks using ln(1). This implements the POSIX.1-2008 -L and -P flags. The default remains to create hard links to the target of

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

2009-08-23 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 23 21:09:46 2009 New Revision: 196483 URL: http://svn.freebsd.org/changeset/base/196483 Log: sh: Fix crash when undefining or redefining a currently executing function. Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive

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

2009-08-23 Thread Jilles Tjoelker
by our distinction between new and old readers. tools/regression/poll does not test shutdown(2) interaction, so it does not find this problem. -- Jilles Tjoelker Index: sys/kern/uipc_socket.c === --- sys/kern/uipc_socket.c (revision

svn commit: r196554 - head/tools/regression/poll

2009-08-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Aug 25 20:33:37 2009 New Revision: 196554 URL: http://svn.freebsd.org/changeset/base/196554 Log: Add some tests for poll(2)/shutdown(2) interaction. Added: head/tools/regression/poll/sockpoll.c (contents, props changed) Modified:

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

2009-08-25 Thread Jilles Tjoelker
On Tue, Aug 25, 2009 at 04:07:11AM +1000, Bruce Evans wrote: On Sun, 23 Aug 2009, Jilles Tjoelker wrote: I think poll on fifos should instead be fixed by closing the half-connection corresponding to writing from fi_readsock to fi_writesock. I have tried this out, see attached patch

svn commit: r196556 - in head/sys: fs/fifofs kern

2009-08-25 Thread Jilles Tjoelker
Author: jilles Date: Tue Aug 25 21:44:14 2009 New Revision: 196556 URL: http://svn.freebsd.org/changeset/base/196556 Log: Fix poll() on half-closed sockets, while retaining POLLHUP for fifos. This reverts part of r196460, so that sockets only return POLLHUP if both directions are

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

2009-08-26 Thread Jilles Tjoelker
On Wed, Aug 26, 2009 at 05:08:57PM +1000, Bruce Evans wrote: On Tue, 25 Aug 2009, Jilles Tjoelker wrote: On Tue, Aug 25, 2009 at 04:07:11AM +1000, Bruce Evans wrote: On Sun, 23 Aug 2009, Jilles Tjoelker wrote: % Index: sys/fs/fifofs/fifo_vnops.c

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

2009-08-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Aug 28 22:41:25 2009 New Revision: 196634 URL: http://svn.freebsd.org/changeset/base/196634 Log: sh: Fix crash with empty functions (f() { }) introduced in r196483 Empty pairs of braces are represented by a NULL node pointer, just like empty lines at the top

svn commit: r196741 - in stable/8: sys sys/amd64/include/xen sys/cddl/contrib/opensolaris sys/contrib/dev/acpica sys/contrib/pf sys/dev/xen/xenpci sys/fs/fifofs sys/kern tools/regression/poll

2009-09-01 Thread Jilles Tjoelker
Author: jilles Date: Tue Sep 1 20:58:41 2009 New Revision: 196741 URL: http://svn.freebsd.org/changeset/base/196741 Log: MFC r196460 Fix the conformance of poll(2) for sockets after r195423 by returning POLLHUP instead of POLLIN for several cases. Now, the tools/regression/poll

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

2009-09-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 20 16:47:56 2009 New Revision: 197363 URL: http://svn.freebsd.org/changeset/base/197363 Log: Update find(1) man page for -L/-delete interaction. It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this with -delete

svn commit: r197371 - head/bin/sh

2009-09-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 20 21:42:38 2009 New Revision: 197371 URL: http://svn.freebsd.org/changeset/base/197371 Log: Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment variables

svn commit: r197625 - head/usr.sbin/lpr/lp

2009-09-29 Thread Jilles Tjoelker
Author: jilles Date: Tue Sep 29 21:28:32 2009 New Revision: 197625 URL: http://svn.freebsd.org/changeset/base/197625 Log: Fix using lp(1) without the new -t option after r194171. PR: standards/129554 Tested by:Steve Kargl MFC after:1 week Modified:

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

2009-10-01 Thread Jilles Tjoelker
Author: jilles Date: Thu Oct 1 21:40:08 2009 New Revision: 197691 URL: http://svn.freebsd.org/changeset/base/197691 Log: sh: Disallow mismatched quotes in backticks (`...`). Due to the amount of code removed by this, it seems that allowing unmatched quotes was a deliberate imitation of

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

2009-10-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 4 17:16:11 2009 New Revision: 197748 URL: http://svn.freebsd.org/changeset/base/197748 Log: MFC r197371: Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment

svn commit: r197749 - stable/7/usr.bin/find

2009-10-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 4 17:22:51 2009 New Revision: 197749 URL: http://svn.freebsd.org/changeset/base/197749 Log: MFC r197363: Update find(1) man page for -L/-delete interaction. It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this

svn commit: r197815 - in stable/8/usr.sbin/lpr: . lp

2009-10-06 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 6 21:23:49 2009 New Revision: 197815 URL: http://svn.freebsd.org/changeset/base/197815 Log: MFC r197625: Fix using lp(1) without the new -t option after r194171. Approved by: re (kib) Modified: stable/8/usr.sbin/lpr/ (props changed)

svn commit: r197819 - in stable/7/usr.sbin/lpr: . lp

2009-10-06 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 6 21:49:13 2009 New Revision: 197819 URL: http://svn.freebsd.org/changeset/base/197819 Log: MFC r197625: Fix using lp(1) without the new -t option after r195349. Modified: stable/7/usr.sbin/lpr/ (props changed) stable/7/usr.sbin/lpr/lp/lp.sh Modified:

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

2009-10-06 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 6 22:00:14 2009 New Revision: 197820 URL: http://svn.freebsd.org/changeset/base/197820 Log: sh: Send the xyz: not found message to redirected fd 2. This also fixes that trying to execute a non-regular file with a command name without '/' returns 127 instead of

svn commit: r197848 - head/bin/sh

2009-10-07 Thread Jilles Tjoelker
Author: jilles Date: Wed Oct 7 22:21:53 2009 New Revision: 197848 URL: http://svn.freebsd.org/changeset/base/197848 Log: Clarify quoting of word in ${v=word} in sh(1). Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

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

2009-10-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 11 16:35:12 2009 New Revision: 197959 URL: http://svn.freebsd.org/changeset/base/197959 Log: MFC r196483,r196634: sh: Fix crash when undefining or redefining a currently executing function Add a reference count to function definitions. Memory may leak if a

svn commit: r197968 - in head/lib: libc/include libc/sys libthr libthr/thread

2009-10-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 11 20:19:45 2009 New Revision: 197968 URL: http://svn.freebsd.org/changeset/base/197968 Log: Make openat(2) a cancellation point. This is required by POSIX and matches open(2). Reviewed by: kib, jhb MFC after:1 month Modified:

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

2009-10-13 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 13 20:58:22 2009 New Revision: 198053 URL: http://svn.freebsd.org/changeset/base/198053 Log: Make getcwd(3) faster, simpler and more compliant using *at syscalls. It is no longer necessary to construct long paths consisting of repeated ../ which may be slow

svn commit: r198056 - head/bin/ls

2009-10-13 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 13 21:51:50 2009 New Revision: 198056 URL: http://svn.freebsd.org/changeset/base/198056 Log: ls: Make -p not inhibit following symlinks. According to the man page, when neither -H/-L nor -F/-d/-l are given, -H is implied. This agrees with POSIX, GNU ls and

svn commit: r198173 - head/bin/sh

2009-10-16 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 16 16:17:57 2009 New Revision: 198173 URL: http://svn.freebsd.org/changeset/base/198173 Log: sh: Show more information about syntax errors in command substitution: the line number where the command substitution started. This applies to both the $() and `` forms

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

2009-10-23 Thread Jilles Tjoelker
Author: jilles Date: Fri Oct 23 14:50:11 2009 New Revision: 198406 URL: http://svn.freebsd.org/changeset/base/198406 Log: wordexp(3): fix some bugs with signals and long outputs * retry various system calls on EINTR * retry the rest after a short read (common if there is more than about 1K

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

2009-10-24 Thread Jilles Tjoelker
Author: jilles Date: Sat Oct 24 20:57:11 2009 New Revision: 198453 URL: http://svn.freebsd.org/changeset/base/198453 Log: Add some tests for ${var?} and set -u. Added: head/tools/regression/bin/sh/expansion/question1.0 (contents, props changed)

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

2009-10-24 Thread Jilles Tjoelker
Author: jilles Date: Sat Oct 24 21:20:04 2009 New Revision: 198454 URL: http://svn.freebsd.org/changeset/base/198454 Log: sh: Exempt $@ and $* from set -u This seems more useful and will likely be in the next POSIX standard. Also document more precisely in the man page what set -u

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

2009-10-29 Thread Jilles Tjoelker
Author: jilles Date: Thu Oct 29 21:13:57 2009 New Revision: 198624 URL: http://svn.freebsd.org/changeset/base/198624 Log: MFC r197371: Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment

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

2009-10-29 Thread Jilles Tjoelker
Author: jilles Date: Thu Oct 29 21:25:16 2009 New Revision: 198628 URL: http://svn.freebsd.org/changeset/base/198628 Log: MFC r197363: Update find(1) man page for -L/-delete interaction. It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this

svn commit: r198963 - head/bin/sh

2009-11-05 Thread Jilles Tjoelker
Author: jilles Date: Thu Nov 5 20:44:39 2009 New Revision: 198963 URL: http://svn.freebsd.org/changeset/base/198963 Log: sh: Fix memory leak when using a variable in arithmetic like $((x)). MFC after:3 weeks Modified: head/bin/sh/arith_lex.l Modified: head/bin/sh/arith_lex.l

svn commit: r199205 - head/bin/sh

2009-11-11 Thread Jilles Tjoelker
Author: jilles Date: Wed Nov 11 23:13:24 2009 New Revision: 199205 URL: http://svn.freebsd.org/changeset/base/199205 Log: sh: Use sigaction instead of signal/siginterrupt combination. Modified: head/bin/sh/trap.c Modified: head/bin/sh/trap.c

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

2009-11-14 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 14 22:08:32 2009 New Revision: 199282 URL: http://svn.freebsd.org/changeset/base/199282 Log: sh: Allow a newline before in in a for command, as required by POSIX. Added: head/tools/regression/bin/sh/parser/for1.0 (contents, props changed) Modified:

Re: svn commit: r194783 - head/lib/libc/stdtime

2009-11-17 Thread Jilles Tjoelker
to) becoming visible. -- 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: r199458 - in head/bin: . pwait

2009-11-17 Thread Jilles Tjoelker
1970 (empty, because file is newly added) +++ head/bin/pwait/pwait.1 Tue Nov 17 22:47:20 2009(r199458) @@ -0,0 +1,78 @@ +.\ +.\ Copyright (c) 2004-2009, Jilles Tjoelker +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with +.\ or without modification

svn commit: r206473 - head/bin/sh

2010-04-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 11 12:24:47 2010 New Revision: 206473 URL: http://svn.freebsd.org/changeset/base/206473 Log: sh: Partially revert r206146, allowing double-quotes in arithmetic. These do pretty much nothing (except that parentheses are ignored), but people seem to use them

svn commit: r206491 - head/tools/regression/bin/sh/parameters

2010-04-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 11 20:21:34 2010 New Revision: 206491 URL: http://svn.freebsd.org/changeset/base/206491 Log: sh: Test that bogus values of PWD are not imported from the environment. Current versions pass this test trivially by never importing PWD, but I plan to change sh to

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

2010-04-16 Thread Jilles Tjoelker
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/lib/libc/gen/test-fnmatch.c Fri Apr 16 22:15:26 2010(r206710) @@ -0,0 +1,335 @@ +/*- + * Copyright (c) 2010 Jilles Tjoelker + * All

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

2010-04-16 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 16 22:29:24 2010 New Revision: 206711 URL: http://svn.freebsd.org/changeset/base/206711 Log: fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen. Example: fnmatch(a*b/*, abbb/.x, FNM_PATHNAME | FNM_PERIOD) PR: 116074 MFC after:

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

2010-04-17 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 17 14:35:46 2010 New Revision: 206759 URL: http://svn.freebsd.org/changeset/base/206759 Log: sh: On startup of the shell, use PWD from the environment if it is valid. Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical

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

2010-04-17 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 17 15:52:50 2010 New Revision: 206760 URL: http://svn.freebsd.org/changeset/base/206760 Log: getcwd(3): Clarify that EACCES may or may not be checked. POSIX permits but does not require checking access on the current and parent directories. Because

svn commit: r206773 - head/bin/ln

2010-04-17 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 17 22:39:53 2010 New Revision: 206773 URL: http://svn.freebsd.org/changeset/base/206773 Log: ln: Refuse deleting a directory entry by hardlinking it to itself. Two pathnames refer to the same directory entry iff the directories match and the final components'

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

2010-04-18 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 18 22:13:45 2010 New Revision: 206817 URL: http://svn.freebsd.org/changeset/base/206817 Log: sh: Add testcases for double-quotes within quoted ${var+-...} (non-POSIX). POSIX leaves things like ${var+word} undefined. We follow traditional ash behaviour here.

svn commit: r206942 - in stable/8: bin/sh tools/regression/bin/sh/parser

2010-04-20 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 20 22:20:31 2010 New Revision: 206942 URL: http://svn.freebsd.org/changeset/base/206942 Log: MFC r199282: sh: Allow a newline before in in a for command, as required by POSIX. Added: stable/8/tools/regression/bin/sh/parser/for1.0 - copied unchanged from

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

2010-04-20 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 20 22:32:34 2010 New Revision: 206944 URL: http://svn.freebsd.org/changeset/base/206944 Log: MFC r200943: sh: Remove setting variables from dotcmd/exportcmd. It is already done by evalcommand(), unless special-ness has been removed, in which case variable

svn commit: r206950 - in stable/8: bin/sh tools/regression/bin/sh/parameters

2010-04-20 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 20 22:52:28 2010 New Revision: 206950 URL: http://svn.freebsd.org/changeset/base/206950 Log: MFC r203576,r203677: sh: Don't stat() $MAIL/$MAILPATH if not interactive. These may be NFS mounted, and we should not touch them unless we are going to do something

svn commit: r207021 - head/bin/ln

2010-04-21 Thread Jilles Tjoelker
Author: jilles Date: Wed Apr 21 21:57:03 2010 New Revision: 207021 URL: http://svn.freebsd.org/changeset/base/207021 Log: ln: Allow a trailing slash when creating a link to a directory. In the 'ln source... directory' synopsis, the basename of each source determines the name of the

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

2010-04-23 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 23 17:26:49 2010 New Revision: 207127 URL: http://svn.freebsd.org/changeset/base/207127 Log: sh: Add some more tests for ${v#...} and ${v%...}. These pass on stable/8 as well. Added: head/tools/regression/bin/sh/expansion/trim3.0 (contents, props changed)

svn commit: r207128 - stable/8/tools/regression/lib/libc/gen

2010-04-23 Thread Jilles Tjoelker
00:00:00 1970 (empty, because file is newly added) +++ stable/8/tools/regression/lib/libc/gen/test-fnmatch.c Fri Apr 23 17:52:36 2010(r207128, copy of r206710, head/tools/regression/lib/libc/gen/test-fnmatch.c) @@ -0,0 +1,335 @@ +/*- + * Copyright (c) 2010 Jilles Tjoelker

svn commit: r207129 - in stable/8: lib/libc/gen tools/regression/lib/libc/gen

2010-04-23 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 23 18:01:19 2010 New Revision: 207129 URL: http://svn.freebsd.org/changeset/base/207129 Log: MFC r206711: fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen. Example: fnmatch(a*b/*, abbb/.x, FNM_PATHNAME | FNM_PERIOD) PR: 116074

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

2010-04-23 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 23 19:26:03 2010 New Revision: 207132 URL: http://svn.freebsd.org/changeset/base/207132 Log: MFC r197848: Clarify quoting of word in ${v=word} in sh(1). Modified: stable/8/bin/sh/sh.1 Directory Properties: stable/8/bin/sh/ (props changed) Modified:

svn commit: r207153 - head/usr.bin/stat

2010-04-24 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 24 13:53:12 2010 New Revision: 207153 URL: http://svn.freebsd.org/changeset/base/207153 Log: stat: Allow -f %Sf to display the file flags symbolically. I have changed the patch slightly to show '-' if there are no flags just like ls -ldo does. PR:

svn commit: r207166 - head/share/man/man1

2010-04-24 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 24 22:16:01 2010 New Revision: 207166 URL: http://svn.freebsd.org/changeset/base/207166 Log: builtin(1): Mention [ sh builtin. MFC after:1 week Modified: head/share/man/man1/builtin.1 Modified: head/share/man/man1/builtin.1

svn commit: r207168 - head/share/man/man1

2010-04-24 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 24 22:24:26 2010 New Revision: 207168 URL: http://svn.freebsd.org/changeset/base/207168 Log: builtin(1): Add missing escaping for !, . and : in the table. This caused these commands to look differently (not bold) from the other commands in the table (bold).

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

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 12:35:39 2010 New Revision: 207186 URL: http://svn.freebsd.org/changeset/base/207186 Log: sysctl(3): Update description of various kern.* variables. Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3) (which is a more convenient way to

svn commit: r207187 - head/lib/libkvm

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 12:50:30 2010 New Revision: 207187 URL: http://svn.freebsd.org/changeset/base/207187 Log: kvm(3): Mention that some of the functions use sysctl(3) instead of kmem. Additionally, because of sysctl(3) use (which is generally good), behaviour for crash dumps

svn commit: r207188 - head/bin/ln

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 13:13:23 2010 New Revision: 207188 URL: http://svn.freebsd.org/changeset/base/207188 Log: symlink(7): The ownership of symlinks is used by the system, in at least three ways, so do not say it is ignored: * who may delete/rename a symlink in a sticky directory

svn commit: r207189 - head/bin/ln

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 13:29:59 2010 New Revision: 207189 URL: http://svn.freebsd.org/changeset/base/207189 Log: symlink(7): Add lpathconf(2) and *at system calls. MFC after:1 week Modified: head/bin/ln/symlink.7 Modified: head/bin/ln/symlink.7

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

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 13:55:52 2010 New Revision: 207190 URL: http://svn.freebsd.org/changeset/base/207190 Log: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir() for non-empty directories. POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer

svn commit: r207196 - in head: share/man/man1 usr.bin/alias

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 17:38:53 2010 New Revision: 207196 URL: http://svn.freebsd.org/changeset/base/207196 Log: Make hash, type and ulimit available via execve(). These are specified by POSIX but are not special builtins, and therefore need to be available via execve() and

svn commit: r207206 - head/bin/sh

2010-04-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 25 20:43:19 2010 New Revision: 207206 URL: http://svn.freebsd.org/changeset/base/207206 Log: sh: Use stalloc for arith variable names. This is simpler than the custom memory tracker I added earlier, and is also needed by the dash arith code I plan to import.

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

2010-04-27 Thread Jilles Tjoelker
On Tue, Apr 27, 2010 at 07:52:25AM +0400, Andrey Chernov wrote: On Sun, Apr 25, 2010 at 08:43:19PM +, Jilles Tjoelker wrote: Author: jilles Date: Sun Apr 25 20:43:19 2010 New Revision: 207206 URL: http://svn.freebsd.org/changeset/base/207206 Log: sh: Use stalloc for arith

svn commit: r207449 - head/contrib/telnet/telnet

2010-04-30 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 30 19:52:35 2010 New Revision: 207449 URL: http://svn.freebsd.org/changeset/base/207449 Log: telnet: Fix infinite loop if local output generates SIGPIPE. Instead of catching SIGPIPE and jumping out of the signal handler with longjmp, ignore it and handle

svn commit: r207465 - stable/8/bin/ln

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 14:33:26 2010 New Revision: 207465 URL: http://svn.freebsd.org/changeset/base/207465 Log: MFC r207021: ln: Allow a trailing slash when creating a link to a directory. In the 'ln source... directory' synopsis, the basename of each source determines the name

svn commit: r207466 - stable/8/usr.bin/stat

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 14:36:04 2010 New Revision: 207466 URL: http://svn.freebsd.org/changeset/base/207466 Log: MFC r207153: stat: Allow -f %Sf to display the file flags symbolically. PR: 124349 Modified: stable/8/usr.bin/stat/stat.1 stable/8/usr.bin/stat/stat.c

svn commit: r207467 - stable/8/share/man/man1

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 14:41:37 2010 New Revision: 207467 URL: http://svn.freebsd.org/changeset/base/207467 Log: MFC r207166: builtin(1): Mention [ sh builtin. Modified: stable/8/share/man/man1/builtin.1 Directory Properties: stable/8/share/man/man1/ (props changed) Modified:

svn commit: r207469 - stable/8/share/man/man1

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 14:49:20 2010 New Revision: 207469 URL: http://svn.freebsd.org/changeset/base/207469 Log: MFC r207168: builtin(1): Add missing escaping for !, . and : in the table. This caused these commands to look differently (not bold) from the other commands in the

svn commit: r207470 - stable/7/share/man/man1

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 14:57:35 2010 New Revision: 207470 URL: http://svn.freebsd.org/changeset/base/207470 Log: MFC r207166: builtin(1): Mention [ sh builtin. Modified: stable/7/share/man/man1/builtin.1 Directory Properties: stable/7/share/man/man1/ (props changed) Modified:

svn commit: r207471 - stable/7/share/man/man1

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 15:00:00 2010 New Revision: 207471 URL: http://svn.freebsd.org/changeset/base/207471 Log: MFC r207168: builtin(1): Add missing escaping for !, . and : in the table. This caused these commands to look differently (not bold) from the other commands in the

svn commit: r207483 - head/usr.bin/pathchk

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 22:00:28 2010 New Revision: 207483 URL: http://svn.freebsd.org/changeset/base/207483 Log: pathchk: Add the new POSIX -P option. This option checks for empty pathnames and components starting with '-'. Our -p option also checks for the latter, which remains

svn commit: r207485 - head/usr.bin/pathchk

2010-05-01 Thread Jilles Tjoelker
Author: jilles Date: Sat May 1 22:10:45 2010 New Revision: 207485 URL: http://svn.freebsd.org/changeset/base/207485 Log: pathchk(1): Fix the example so it allows arbitrary pathnames. Spaces and various other characters in pathnames are not passed through literally by xargs in its

svn commit: r207501 - stable/8/lib/libkvm

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 12:38:59 2010 New Revision: 207501 URL: http://svn.freebsd.org/changeset/base/207501 Log: MFC r207187: kvm(3): Mention that some of the functions use sysctl(3) instead of kmem. Additionally, because of sysctl(3) use (which is generally good), behaviour

svn commit: r207504 - stable/8/bin/ln

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 12:43:18 2010 New Revision: 207504 URL: http://svn.freebsd.org/changeset/base/207504 Log: MFC r207188: symlink(7): The ownership of symlinks is used by the system, in at least three ways, so do not say it is ignored: * who may delete/rename a symlink in a

svn commit: r207508 - stable/8/bin/ln

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 13:36:23 2010 New Revision: 207508 URL: http://svn.freebsd.org/changeset/base/207508 Log: MFC r207189: symlink(7): Add lpathconf(2) and *at system calls. Modified: stable/8/bin/ln/symlink.7 Directory Properties: stable/8/bin/ln/ (props changed) Modified:

svn commit: r207509 - stable/7/bin/ln

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 13:38:08 2010 New Revision: 207509 URL: http://svn.freebsd.org/changeset/base/207509 Log: MFC r207188: symlink(7): The ownership of symlinks is used by the system, in at least three ways, so do not say it is ignored: * who may delete/rename a symlink in a

svn commit: r207510 - stable/7/lib/libkvm

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 13:53:08 2010 New Revision: 207510 URL: http://svn.freebsd.org/changeset/base/207510 Log: MFC r207187: kvm(3): Mention that some of the functions use sysctl(3) instead of kmem. Additionally, because of sysctl(3) use (which is generally good), behaviour

svn commit: r207538 - stable/7/lib/csu/i386-elf

2010-05-02 Thread Jilles Tjoelker
Author: jilles Date: Sun May 2 20:12:20 2010 New Revision: 207538 URL: http://svn.freebsd.org/changeset/base/207538 Log: MFC r205398: Do not create *.gmon files for PIE executables on i386. Scrt1_c.o was accidentally compiled with -DGCRT (profiling), like gcrt1_c.o. This problem is

svn commit: r207636 - stable/7/usr.bin/stat

2010-05-04 Thread Jilles Tjoelker
Author: jilles Date: Tue May 4 21:56:16 2010 New Revision: 207636 URL: http://svn.freebsd.org/changeset/base/207636 Log: MFC r207153: stat: Allow -f %Sf to display the file flags symbolically. PR: 124349 Modified: stable/7/usr.bin/stat/stat.1 stable/7/usr.bin/stat/stat.c

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

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 21:48:40 2010 New Revision: 207678 URL: http://svn.freebsd.org/changeset/base/207678 Log: sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var. This allows doing things like LC_ALL=C some_builtin to run a builtin under a different

svn commit: r207679 - stable/8/lib/libc/gen

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 22:00:57 2010 New Revision: 207679 URL: http://svn.freebsd.org/changeset/base/207679 Log: MFC r207186: sysctl(3): Update description of various kern.* variables. Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3) (which is a more

svn commit: r207681 - stable/7/lib/libc/gen

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 22:07:28 2010 New Revision: 207681 URL: http://svn.freebsd.org/changeset/base/207681 Log: MFC r207186: sysctl(3): Update description of various kern.* variables. Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3) (which is a more

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

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 22:12:56 2010 New Revision: 207682 URL: http://svn.freebsd.org/changeset/base/207682 Log: MFC r207190: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir() for non-empty directories. POSIX permits both ENOTEMPTY and EEXIST, but we use the

svn commit: r207684 - stable/8/lib/libc/gen

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 22:17:17 2010 New Revision: 207684 URL: http://svn.freebsd.org/changeset/base/207684 Log: MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked. POSIX permits but does not require checking access on the current and parent directories.

svn commit: r207686 - stable/6/lib/libc/gen

2010-05-05 Thread Jilles Tjoelker
Author: jilles Date: Wed May 5 22:23:29 2010 New Revision: 207686 URL: http://svn.freebsd.org/changeset/base/207686 Log: MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked. POSIX permits but does not require checking access on the current and parent directories.

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

2010-05-06 Thread Jilles Tjoelker
Author: jilles Date: Thu May 6 22:06:14 2010 New Revision: 207734 URL: http://svn.freebsd.org/changeset/base/207734 Log: sigaltstack(2): document some modernizations: * un-document 'struct sigaltstack' tag for stack_t as this is BSD-specific; this doesn't seem useful enough to document

svn commit: r207735 - in head: lib/libc/gen lib/libc/sys usr.bin/lastcomm

2010-05-06 Thread Jilles Tjoelker
Author: jilles Date: Thu May 6 22:49:54 2010 New Revision: 207735 URL: http://svn.freebsd.org/changeset/base/207735 Log: Update xrefs from 4.3BSD to modern signal functions in various man pages. sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and sigblock(2) to

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

2010-05-07 Thread Jilles Tjoelker
Author: jilles Date: Fri May 7 17:20:15 2010 New Revision: 207749 URL: http://svn.freebsd.org/changeset/base/207749 Log: raise(3): Note that this sends a signal to the current thread, not process. This is how it works (with threading libraries loaded) and what POSIX requires. MFC

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

2010-05-07 Thread Jilles Tjoelker
Author: jilles Date: Fri May 7 20:46:22 2010 New Revision: 207757 URL: http://svn.freebsd.org/changeset/base/207757 Log: sigprocmask(2): pthread_sigmask(3) must be used in threaded processes. Although libthr's pthread_sigmask() just calls sigprocmask() and this is unlikely to change,

svn commit: r207758 - stable/8/contrib/telnet/telnet

2010-05-07 Thread Jilles Tjoelker
Author: jilles Date: Fri May 7 20:58:50 2010 New Revision: 207758 URL: http://svn.freebsd.org/changeset/base/207758 Log: MFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE. Instead of catching SIGPIPE and jumping out of the signal handler with longjmp, ignore it

svn commit: r207783 - head/bin/sh

2010-05-08 Thread Jilles Tjoelker
Author: jilles Date: Sat May 8 14:00:01 2010 New Revision: 207783 URL: http://svn.freebsd.org/changeset/base/207783 Log: sh: Have only one copy of _PATH_STDPATH in the binary. Modified: head/bin/sh/eval.c Modified: head/bin/sh/eval.c

  1   2   3   4   5   6   7   8   9   10   >