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
) 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
+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
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
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
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
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:
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
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:
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
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
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
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:
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
.
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
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/
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.
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)
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)
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)
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
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)
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
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
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
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
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:
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
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
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:
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
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:
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
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
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.
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
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
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
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:
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
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
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
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
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
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
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
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
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:
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
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
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
. 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
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
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
==
--- /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
${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
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
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
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
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
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
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
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,
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
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
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
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
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
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:
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:
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
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:
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
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
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
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
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
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,
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
]
--
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
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
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
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
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
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
==
---
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
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
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
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
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
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
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
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
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)
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
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
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
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
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:
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:
401 - 500 of 1758 matches
Mail list logo