Commit Graph

241702 Commits

Author SHA1 Message Date
christos b732ccab17 replace with standard copyright :-) 2016-03-31 16:28:23 +00:00
christos 9f1b8a789b Avoid leaving turds in /tmp. (from kre@) 2016-03-31 16:22:54 +00:00
christos 87a25451df When embedding a command in a subshell "( ... )" avoid accidentally
producing (( (when the cmd starts with a '(' as that as a reserved
sequence (according to posix) and some shells do treat it specially.
So, force a space after the enclosing '(' to avoid the problem.
For symmetry, put a space before the concluding ')' as well, though
there is nothing special about )). (from kre@)
2016-03-31 16:22:27 +00:00
christos de3efde923 Added lots more end delimiter tests (some weird cases...). Also
use printf %s instead of echo, as there are embedded \ chars in
some of the strings, and some other (nameless) shells insist on
treating \ in the args to echo as something special... (from kre@)
2016-03-31 16:21:52 +00:00
christos 3f90444865 PR bin/51027 - tests for shell positional parameters, including
testing that $10 is correctly parsed as ${1}0 and not as ${10}.
More than that though. (from kre@)
2016-03-31 16:21:10 +00:00
christos 54d4333f65 Added tests collected by Sven Mascheck
http://www.in-ulm.de/~mascheck/various/cmd-subst/
which test cases of ')' being embedded in command substitutions.
(from kre@)
2016-03-31 16:20:39 +00:00
christos 8f7ab1d41a Don't confuse more capable shells by writing operator combinations
that could be interpreted as something different. That is, for our
shell +4++3 is just (+4)+(+3) and works fine. But others treat ++
as the increment operator.  Same for --. Sprinkle spaces to taste.
(from kre@)
2016-03-31 16:19:52 +00:00
christos 26427ea787 Document the NETBSD_SHELL variable, the enhancements to export,
the posix option, and a whole bunch of miscellaneous updates and
corrections. (from kre@)
2016-03-31 16:18:22 +00:00
christos 9302f8ef1a Implement the NETBSD_SHELL readonly unexportable unimportable
variable (with its current value set at 20160401) as discussed on
current-users and tech-userlevel. This also includes the necessary
support to implement it properly (particularly the unexportable
part) and adds options to the export command to support unexportable
variables. Also implement the "posix" option (no single letter
equivalent) which gets its default value from whether or not
POSIXLY_CORRECT is set in the environment when the shell starts
(but can be changed just like any other option using -o and +o on
the command line, or the set builtin command.) While there, fix
all uses of options so it is possible to have options that have a
short (one char) name, and no long name, just as it has been possible
to have options with a long name and no short name, though there
are currently none (with no long name).  For now, the only use of
the posix option is to control whether ${ENV} is read at startup
by a non-interactive shell, so changing it with set is not usful
- that might change in the future. (from kre@)
2016-03-31 16:16:35 +00:00
christos ddf72776f1 PR bin/51027 - fix the parsing of references to shell parameters
when given without braces (ie: $2 etc).  Only the first 9 shell
parameters ($1 .. $9) and the special parameter ($0) can be
referenced this way, $10 is ${1}0 not ${10}.   Make it so.
This bug brought to notice by Sven Mascheck's web pages which
discuss (among other things) the history of this (and other ash
based) shells .. see http://www.in-ulm.de/~mascheck/ (from kre@)
2016-03-31 16:12:52 +00:00
christos 21cf17379f This is an internally visible change - no effect visible to the
user is expected. With the previous commits to parser.c, we no
longer need to handle reading here documents in the (massive)
readtoken1() function. That allows its code to be simplified and
made easier to read and understand (several goto's goto goto heaven.
RIP) (from kre@)
2016-03-31 16:12:09 +00:00
christos f6e1dd671e Delay freeing the die where the indirect attribute is found. Found by jemalloc
J, see: https://mail-index.netbsd.org/current-users/2016/03/28/msg029130.html
2016-03-31 15:53:33 +00:00
martin f9c9a2217e "Extended version" of the "mips64 hack" used in gcc 5.3's libgcc.a
build: avoid lots of duplicate symbols on softfloat builds.
Now mac68k is buildable with MKSOFTFLOAT=yes again, finally!
2016-03-31 15:06:39 +00:00
kiyohara 118e184d7f Ensure enable clocks for omapmputmr. 2016-03-31 14:33:17 +00:00
christos b322b670f0 After discussions with Jilles Tjoelker (FreeBSD shell) and following
a suggestion from him, the way the fix to PR bin/50993 was implemented
has changed a little.   There are three steps involved in processing
a here document, reading it, parsing it, and then evaluating it
before applying it to the correct file descriptor for the command
to use.  The third of those is not related to this problem, and
has not changed.  The bug was caused by combining the first two
steps into one (and not doing it correctly - which would be hard
that way.)  The fix is to split the first two stages into separate
events.   The original fix moved the 2nd stage (parsing) to just
immediately before the 3rd stage (evaluation.)  Jilles pointed out
some unwanted side effects from doing it that way, and suggested
moving the 2nd stage to immediately after the first.  This commit
makes that change.  The effect is to revert the changes to expand.c
and parser.h (which are no longer needed) and simplify slightly
the change to parser.c. (from kre@)
2016-03-31 13:27:44 +00:00
martin 91839179d9 Extend the "mips64 hack" to all MKSOFTFLOAT builds - avoid duplicate
symbols in libgcc.
2016-03-31 06:59:44 +00:00
riastradh e1fdad5e8b Disable stripping pcc tool.
We don't have a tool that strips tools -- we have only a tool that
strips target programs.  $TOOLDIR/bin/$PLATFORM-install supports -s
by invoking the target-stripping tool, which chokes if you try to use
it to strip tools on a sufficiently different cross build.  So let's
just not strip the pcc tool -- it's tiny enough that I'm not worried
about its unstripped size!
2016-03-30 23:36:45 +00:00
christos 91c0081cc5 Add sqlite3 generated man pages, sort. 2016-03-30 21:36:48 +00:00
christos c3d31e1aba Add auto-generated sqlite3 man pages 2016-03-30 21:31:44 +00:00
christos b817d38134 From: https://github.com/kristapsdz/sqlite2mdoc 2016-03-30 21:30:20 +00:00
christos 6952a2b793 PR/51016: David Binderman: comment out pointless code. 2016-03-30 21:16:22 +00:00
christos 40d9145b70 PR/51015: David Binderman: remove useless code 2016-03-30 21:14:54 +00:00
mrg 9fb12ec9aa turn off MKCOMPAT for arm and GCC 5 (for now). 2016-03-30 20:18:18 +00:00
martin e27f028ff5 Remove hacks for ancient vax gcc 2016-03-30 17:35:43 +00:00
macallan 82d8a53e21 Loongson MMI code needs -Wa,-mhard-float now 2016-03-30 16:19:06 +00:00
martin cb4d6b868c Pass -pie to cc, not -Wl,-pie. This way we have a chance to fix specs
for obscure corner cases like -pie -fPIE -static (used for
/usr/tests/lib/csu/h_initfini2 if building with MKPIE=yes).
While there also replace -fPIC with -fPIE for the PIE case, even if
it should be mostly equivalent.
2016-03-30 13:05:09 +00:00
martin a13d81e5df No fenv for m68k with SOFTFLOAT for now - so at least it builds. 2016-03-30 07:44:06 +00:00
martin a49d73fd0a Drop fixxfdi.c for m68k (where double == long double and this isn't needed
but causes duplicate symbols with softfloat, if compiling MKSOFTFLOAT=yes)
2016-03-30 07:25:33 +00:00
ozaki-r 0b31db8c25 Document arp sysctl removals 2016-03-30 05:55:04 +00:00
ozaki-r 9bacf05801 Document net.inet6.ip6.neighborgcthresh change 2016-03-30 05:45:26 +00:00
skrll e4a98f388f crt0-common.c is miscompiled by gcc 5.3 on evbarm with -O2 so use -O1. Do
this for all non-x86 arches.
2016-03-29 21:23:05 +00:00
martin 60de583e7a Avoid warnings (signed/unsigned comparision and unused variable) 2016-03-29 18:42:29 +00:00
macallan a3107e02e3 make sure we compile mips_fpu.c and fp.S with -mhard-float 2016-03-29 18:40:32 +00:00
mrg 768e59d75f - clean up some
- i386 atf works
- mipseb kernels and system runs
- mips64* kernels work system runs
2016-03-29 09:20:28 +00:00
mrg 19cbd6805c distinguish between partial and failed read, so that "read 0xffffffff bytes failed"
is not output..
2016-03-29 06:51:40 +00:00
mrg 877929762e switch alpha to GCC 5.3. works just as well on my UP1000. 2016-03-29 06:36:12 +00:00
mlelstv 7a222a4140 Initialize disk_geom information, DIOCGPARTINFO relies on it. 2016-03-29 04:55:53 +00:00
mlelstv 3bb28e76f8 Align /proc/<pid>/statm data with /proc/<pid>/stat and
provide RSS information. There is no data about shared
pages.

Helps PR 50801.
2016-03-28 17:23:47 +00:00
mrg f46b30aacc mknative-binutils for binutils 2.26 and mipse[lb]. 2016-03-28 17:00:43 +00:00
macallan 192512b54b fix this properly.
uap is supposed to hold init's argv[], so it's 3 * sizeof(char *), the bug
was to copyout(..., sizeof(args)) which is an array of syscallargs, not argv
*
2016-03-28 16:45:44 +00:00
macallan 3228b500d3 do not assume that syscallarg(const char *) and (char *) are the same size
first step to make n32 kernels run binaries again
2016-03-28 15:45:18 +00:00
riastradh 96b890b34c Fix relation in rngtest failure message to match reality. 2016-03-28 15:20:16 +00:00
martin 0213dfd655 Add missing include 2016-03-28 10:35:36 +00:00
martin e002a1e12e Simplify now that we have an internal toolchain 2016-03-28 10:31:45 +00:00
skrll 8e0f1b1171 Simplify. No functional change. 2016-03-28 09:50:40 +00:00
skrll d176304fc0 Add some more mips targets for martin 2016-03-28 09:01:24 +00:00
martin afad7c48d8 Restrict float format hacks to gcc 4.8 2016-03-28 08:10:57 +00:00
ozaki-r fb96f2a80f Remove unused global bridge list
Pointed out by riastradh@
2016-03-28 04:38:04 +00:00
ozaki-r 84720685bf Make outputs informative on failure 2016-03-28 02:35:43 +00:00
ozaki-r d0731f8a07 Add tests for "route get" 2016-03-28 01:53:07 +00:00