| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL()
definition.
Suggested by: jhb
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295435
|
|
|
|
|
|
|
|
| |
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295428
|
|
|
|
|
|
|
|
|
|
|
| |
being used wouldn't work if the value returned didn't fit in intmax_t.
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295427
|
|
|
|
|
|
|
|
|
| |
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295426
|
|
|
|
|
|
|
|
| |
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295261
|
|
|
|
|
|
|
|
| |
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=295260
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=295224
|
|
|
|
|
|
|
| |
since r231990.
Notes:
svn path=/head/; revision=295204
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The symbols of libiconv from ports were changed to
have prefixed.
Since we have iconv in our libc these days, we don't
need it on 10.X and later. However, 9.X still need
this.
Spotted by: Yoshihiko Sarumaru
MFC after: 1 days
Notes:
svn path=/head/; revision=295147
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Builtins (including variable assignments without command word), function
calls and redirected compound commands need to restore file descriptors
to their original state after execution. This is handled by allocating a
redirtab structure. These mallocs and frees show up heavily in pmcstat.
Only allocate a redirtab if there are actually redirections and maintain a
count of how many levels of REDIR_PUSH there are without redirtabs.
A simple loop without external programs like
sh -c 'i=0; w=$(printf %0100d 7); while [ "$i" -lt 1000000 ]; do
i=$((i+1)); done'
is over 25% faster on an amd64 bhyve VM.
Notes:
svn path=/head/; revision=295085
|
|
|
|
|
|
|
|
| |
This reflects the changes in r294649 and can therefore not be MFCed by
itself.
Notes:
svn path=/head/; revision=295083
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The linear search using strcmp() shows up in pmcstat for several percent.
Split the operators into lengths and whether they start with '-' and compare
bytes using == instead of strcmp().
A simple test
sh -c 'i=0; w=$(printf %0100d 7); while [ "$i" -lt 1000000 ]; do
v=$(printf %sx%s "$w" "$w"); i=$((i+1)); done'
is over 4% faster on an amd64 bhyve VM.
Notes:
svn path=/head/; revision=295082
|
|
|
|
|
|
|
|
|
|
| |
Forbid (temporary or permanent) modifications of the strings in NARG nodes
during expansion.
Tilde expansion now needs to copy the username for the terminating '\0'.
Notes:
svn path=/head/; revision=294692
|
|
|
|
| |
Notes:
svn path=/head/; revision=294667
|
|
|
|
|
|
|
|
|
|
|
| |
Per POSIX, 'cd -' should use the OLDPWD shell variable, not internal state.
This variable is normally exported.
Also, if OLDPWD is not set, fail 'cd -' instead of changing to the current
directory.
Notes:
svn path=/head/; revision=294649
|
|
|
|
|
|
|
|
|
|
| |
that's long gone.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=294626
|
|
|
|
|
|
|
|
| |
If a local variable has been made read-only, this should not prevent its
removal when the function returns.
Notes:
svn path=/head/; revision=294593
|
|
|
|
| |
Notes:
svn path=/head/; revision=294582
|
|
|
|
| |
Notes:
svn path=/head/; revision=294348
|
|
|
|
|
|
|
|
|
|
|
| |
Some variables like PATH call a function when modified. Make sure to call
this also when leaving a function where such a variable was made local.
Make sure to restore local variables before shellparam, so getopts state is
not clobbered.
Notes:
svn path=/head/; revision=293635
|
|
|
|
| |
Notes:
svn path=/head/; revision=293392
|
|
|
|
|
|
|
|
|
| |
Redirect 'cd -' output to /dev/null since POSIX requires it to write the new
directory name even if not interactive, but we currently only write it if
interactive.
Notes:
svn path=/head/; revision=293371
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Command substitutions containing a single simple command and here-document
expansion are performed in a subshell environment, but may not fork. Any
modified state of the shell environment should be restored afterward.
The state that OPTIND=1 had been done was not saved and restored here.
Note that the other parts of shellparam need not be saved and restored,
since they are not modified in these situations (a fork is done before such
modifications).
Notes:
svn path=/head/; revision=293359
|
|
|
|
|
|
|
| |
This was forgotten in r273700.
Notes:
svn path=/head/; revision=293120
|
|
|
|
| |
Notes:
svn path=/head/; revision=293118
|
|
|
|
|
|
|
|
|
|
|
| |
With the new expand.c code, the intermediate representation passed to the
pathname generation code only contains CTLESC, not CTLQUOTEMARK.
CTLQUOTEMARK now only occurs in the text of NARG nodes (output of the
parser).
Notes:
svn path=/head/; revision=293002
|
|
|
|
| |
Notes:
svn path=/head/; revision=292995
|
|
|
|
|
|
|
|
|
|
|
| |
This avoids the need to add and remove CTLESC bytes if pathname generation
will not be performed (set -f).
Side effect: the order of operations is slightly different: pathname
generation in ${$+* $(CMD)} will not see filesystem changes from CMD.
Notes:
svn path=/head/; revision=292994
|
|
|
|
|
|
|
|
|
|
|
|
| |
This simplifies the code and should be faster in some cases.
Side effect: the order of operations is different so that the value of IFS
used when IFS is modified during expansion (${IFS:=...}, ${IFS=...} or
$((...IFS=...))) may be different. Note that this order is highly unportable
between shells.
Notes:
svn path=/head/; revision=292991
|
|
|
|
| |
Notes:
svn path=/head/; revision=292887
|
|
|
|
|
|
|
|
|
|
|
| |
Or at least quiet down some static analyzers about it.
CID: 978835
MFC after: 1 week
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=292877
|
|
|
|
|
|
|
|
| |
Although POSIX leaves things like ${*#X} unspecified, it occasionally occurs
in practice. Add some tests that seem to work sensibly.
Notes:
svn path=/head/; revision=292758
|
|
|
|
|
|
|
|
|
|
| |
This is a build tool only and does not affect run time.
PR: 204951
MFC after: 1 week
Notes:
svn path=/head/; revision=292517
|
|
|
|
|
|
|
|
|
|
|
| |
Use strlcpy instead of strncpy to guarantee NULL termination.
Pointed out by: imp
CID: 1007252
X-MFC with: r292454
Notes:
svn path=/head/; revision=292455
|
|
|
|
|
|
|
|
| |
CID: 1007252
MFC after: 2 weeks
Notes:
svn path=/head/; revision=292454
|
|
|
|
|
|
|
|
| |
Reported by: bapt
MFC after: 1 week
Notes:
svn path=/head/; revision=292360
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Latest update of locales introduced abbreviated month that follows the regionale
rules meaning that they can be of variable length instead of being arbitrary
truncated to top 3 characters.
To fix alignement, ls now computes the visible length of the abbreviated month,
pads the shorter month with spaces in order to make sure everything is properly
aligned
Reviewed by: ache, ed, jilles
Differential Revision: https://reviews.freebsd.org/D4239
Notes:
svn path=/head/; revision=291959
|
|
|
|
|
|
|
|
| |
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=291942
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kyua 0.11's version of report-junit was rendering non-printable characters
Upgrade to kyua 0.12 to obtain a fixed version of the command
Output verified with python 2.7.10's xml.dom.minidom module
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=291919
|
|
|
|
|
|
|
|
| |
POSIX leaves the result of expanding ${#@} and ${#*} unspecified, but ensure
it is numeric.
Notes:
svn path=/head/; revision=291903
|
|
|
|
|
|
|
| |
This was forgotten in r291025.
Notes:
svn path=/head/; revision=291857
|
|
|
|
| |
Notes:
svn path=/head/; revision=291608
|
|
|
|
| |
Notes:
svn path=/head/; revision=291607
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately filemon/meta mode tracks all indirect dependencies here
since ld(1) is reading libelf when linking in libkvm. Churn would be
reduced if this was able to be limited to direct dependencies.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=291558
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
directory.
Tracking these leads to situations where meta mode will consider the
file to be out of date if /bin/sh or /bin/ln are newer than the source
file. There's no reason for meta mode to do this as make is already
handling the rebuild dependency fine.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=291320
|
|
|
|
|
|
|
| |
No functional change is intended.
Notes:
svn path=/head/; revision=291267
|
|
|
|
|
|
|
|
|
|
|
|
| |
It included libutil.h for setproctitle(3), which was moved from libutil to libc
in r65353 in 2000.
Reviewed by: gshapiro [sendmail change]
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D4261
Notes:
svn path=/head/; revision=291235
|
|
|
|
|
|
|
|
| |
"$@" should expand to no words if there are no positional parameters, but
""$@ should always expand to at least an empty word.
Notes:
svn path=/head/; revision=291025
|
|
|
|
|
|
|
|
|
|
|
|
| |
edition 2013. No need anymore to disable the protection if one set
the POXILY_CORRECT environment variable.
Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D4092
Notes:
svn path=/head/; revision=290480
|
|
|
|
|
|
|
|
| |
Add dummy entries before and after so arglist's array is directly usable as
argv.
Notes:
svn path=/head/; revision=290244
|