| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Bruce-Filter-By: bde
|
|
|
|
|
|
|
| |
Don't output double-quotes inside variable expansion/arithmetic
expansion region in here-documents. When leaving the arithmetic
expansion syntax mode, adjust the dblquote flag according to
previous syntax, in order to avoid splitting of quoted variables.
|
|
|
|
|
| |
make a char * const that should have been. Use new style function
declaration for main. Mostly a Bruce Filter[tm] test commit.
|
|
|
|
| |
Improve comments.
|
|
|
|
|
|
| |
was called with wrong args so it always failed.
PR: 7881
|
|
|
|
| |
Include "expand.h" vom memalloc.c to pull function declartion into scope
|
|
|
|
|
|
|
|
|
|
|
|
| |
foreground child is running. Formerly, traps were exceuted after the
next child exit.
The enables the user to put a breaking wrapper around a blocking
application:
(trap 'echo trap ; exit 1' 2; ./pestyblocker; echo -n)
The "echo -n" after the child call is needed to prevent sh from
optimizing the trap-executing shell away. I'm working on this.
|
|
|
|
|
|
| |
PR: bin/7507
Reviewed by: I tested the patch
Submitted by: Stefan `Sec` Zehl sec@42.org
|
|
|
|
|
|
| |
multiple times when performing nested variable expansion, and
preserve some quoting information in order to avoid removing
apparently empty expansion result.
|
|
|
|
|
| |
PR: 2541
Obtained from: NetBSD
|
| |
|
|
|
|
| |
Submitted by: Bruce Evans
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
i.e. this makes emacs usable from system(3). Programs called from
shellscripts are now required to exit with proper signal status. That
means, they have to kill themself. Exiting with faked numerical exit
code is not sufficient.
Exit with proper signal status if script exits on signal.
Make the wait builtin interruptable, both with and without traps set.
Use volatile sig_atomic_t where (and only where) appropriate.
(Almost) fix printing of newlines on SIGINT.
Make traps setable from trap handlers. This is needed for shellscripts
that catch SIGINT for cleanup work but intend to exit on it, hance
have to kill themself from a trap handler. I.e. mkdep.
While I'm at it, make it -Wall clean. -Wall is not enabled in
Makefile, since vararg warnx() macro calls in usr.bin/printf/printf.c
are not -Wall-able.
PR: 1206
Obtained from: Basic SIGINT fix from Bruce Evans
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix a 2nd level indentation style bug.
|
| |
|
|
|
|
| |
PR: docs/5399
|
|
|
|
|
|
|
|
|
|
|
| |
effectively overriding the dynamically-sized-column feature. This
is mostly useful for non-interactive use, where it may be necessary
to ensure that listings taken at different times have columns that
line-up correctly. I have been assured that at least one large,
well-known program will soon be taking advantage of this. :-)
PR: bin/7011
Submitted by: Joel Ray Holveck <joelh@gnu.org>
|
| |
|
|
|
|
|
|
|
| |
printf '%d\n' `echo 23`
now works as expected.
PR: bin/2969
Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk>
|
|
|
|
|
|
| |
command to match whats there in the source.
PR: 7328
|
|
|
|
|
|
| |
Removed explicit dependencies of foo.o on foo.c. These were mainly
placeholders for comments about missing dependencies of tools objects
on headers. This problem needs to be handled more generally.
|
|
|
|
|
|
|
|
| |
Use /dev/null for opening the kvm library, we don't need access to /dev/mem
anymore.
ps can now run without the setgid(kmem) bit. If it does it will not be
able to show argv/envp for another uid's processes unless you are root.
|
| |
|
| |
|
|
|
|
| |
don't assume that time_t is long".
|
| |
|
| |
|
|
|
|
|
| |
PR: 1791 (partial)
Reviewed by: Bruce Evans <bde@freebsd.org>, Tor Egge <tegge@freebsd.org>
|
|
|
|
|
|
| |
This should calm down attempts to `cp -p' to a nfs mount or some other
filesystem that doesn't accept flags or all combinations of flags.
It will warn if it fails to change flags though.
|
| |
|
|
|
|
| |
Obtained from or inspired by: A similar change in OpenBSD by theo
|
|
|
|
|
| |
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
|
|
|
|
|
| |
PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>
|
| |
|
|
|
|
|
|
|
|
| |
rev 1.6 of "ps.c".
2. Reword description of `-f' option.
PR: 5340
Submitted by: Jorge Goncalves <j@bug.fe.up.pt>
|
|
|
|
|
| |
PR: 6836
Submitted by: Andrew <andrew@ugh.net.au>
|
|
|
|
|
| |
PR: 6801
Reviewed by: David Kelly <dkelly@hiwaay.net>
|
|
|
|
| |
excessive 64-bit arithmetic, and excessive changes).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clean up (or if antipodic: down) some of the msgbuf stuff.
Use an inline function rather than a macro for timecounter delta.
Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.
Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()
This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.
WARNING: Programs which muck about with struct proc in userland
will have to be fixed.
Reviewed, but found imperfect by: bde
|
|
|
|
|
|
|
|
|
| |
true in /etc/make.conf. Both qmail and smail use a different rmail, so
replacing rmail is a Bad Thing.
PR: 6762
Reviewed by: phk
Submitted by: Bill Trost <trost@cloud.rain.com>
|
|
|
|
|
|
| |
is already one there.
PR: 3025
|
|
|
|
|
|
|
| |
Also pretty-up the display of 'ps -Ortprio'.
PR: 4947
Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
|
|
|
|
|
| |
Submitted by: Josh Gilliam <josh@quick.net>
PR: 6634
|