Dag-Erling Smørgrav
710668cad4
fread() returns 0 on eof or error, not EOF. This fixes the following
...
bug:
"head -c <n>" never exit and loops forever (until it is killed),
if the input stream has fewer bytes than specified (n).
PR: bin/8225
Submitted-by: FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp>
1998-10-09 10:33:46 +00:00
Mark Murray
3e8af2321b
Use KJH's auth.conf parser to turn on/off Kerberos in userland.
1998-10-09 06:47:57 +00:00
Mark Murray
8f176b4353
Use KJH's auth.conf parser to turn on/off Kerberos in userland.
1998-10-09 06:38:33 +00:00
John Polstra
de486d8863
Don't try to print out the signal number that caused core to be
...
dumped. It is not in a fixed location in the file, so at best,
garbage comes out. I don't think this code was ever valid.
1998-10-09 01:43:08 +00:00
David E. O'Brien
d22889b821
Quiet many compiler warnings.
1998-10-08 09:56:10 +00:00
KATO Takenori
c668c15639
Use MACHINE_ARCH instead of MACHINE to detect x86 arch.
...
Pointed out by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
1998-10-07 13:46:09 +00:00
Kenneth D. Merry
2459ccb484
Fix a core-dump situation in ":boot" mode in the vmstat display.
...
Reported by: bde
1998-10-05 04:04:27 +00:00
David E. O'Brien
3747d1fad5
Also look in /usr/src/contrib.
...
PR: bin/7835
Submitted by: Stephen J. Roznowski <sjr@home.net>
1998-10-04 10:33:37 +00:00
Sean Eric Fagan
ad43611cd0
Make it compile -Wall cleanly.
...
Submitted by: Alex Nash <nash@mcs.net>
1998-10-03 18:02:03 +00:00
Sean Eric Fagan
c3b3cd1be5
Move truss from i386-specific to always-build.
...
Submitted by: Alex Nash <nash@mcs.net>
1998-10-03 17:59:26 +00:00
Doug Rabson
7fb2045a41
Some 64bit portability fixes.
1998-10-03 11:01:39 +00:00
Doug Rabson
e4dc55c3ca
mt now builds on the alpha.
1998-10-03 10:59:57 +00:00
Doug Rabson
fe3c6c1802
Don't bother trying to support Wangtek tapes on the alpha.
1998-10-03 10:58:54 +00:00
John Polstra
7a567f3a04
Fix "file" so that it prints the program names from core files
...
correctly.
1998-10-03 04:38:58 +00:00
Sean Eric Fagan
50cc4492c6
Alpha support for truss. I tested this on both bento and beast (thanks,
...
Jordan, for pointing me at beast!). There should be no change for the
i386 version.
1998-10-03 00:43:05 +00:00
David E. O'Brien
83dae84084
Use lpr' vs.
lp' to print
...
Add "ESC-Enter: exit" message to the emacs binding info window.
1998-10-01 21:18:18 +00:00
Dmitrij Tejblum
ab1c32cc13
Backed out "fix for PR 7575". It was bogus.
1998-10-01 19:40:27 +00:00
Joseph Koshy
4cbaceabf1
Mention default time between output flushes in manual page.
...
PR: docs/8009
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
1998-09-29 01:49:49 +00:00
David E. O'Brien
35ab9586c2
include <pthread.h>
...
Submitted by: Alexander Leidinger <netchild@wurzelausix.CS.Uni-SB.DE>
1998-09-25 11:43:48 +00:00
Jordan K. Hubbard
2786a038a2
Take doscmd back out - it relies on installed X components to build (!).
1998-09-25 02:15:56 +00:00
Bruce Evans
9106cde53c
Fixed disorder and long lines.
...
Decrypted a comment.
1998-09-24 10:28:28 +00:00
Luoqi Chen
fdfedb52f5
Enable elf build for doscmd.
1998-09-24 01:15:56 +00:00
Luoqi Chen
f1242b4cec
ELFize. In fact, doscmd is ELF natural -- there is no need for a loader
...
since ELF executables are loaded well above the low memory region that
DOS operates in.
1998-09-24 01:11:45 +00:00
Brian Somers
13ede3c083
Terminate our output string correctly if we've got
...
an ``a'' command that has an escaped newline on the
last line of the last script that we're processing.
This fixes exmh2/scripts/build when /etc/malloc.conf -> AJ
1998-09-22 18:39:47 +00:00
David E. O'Brien
6d7cd12a6c
Makefile.inc was conditionally setting vars already set by bsd.own.mk
...
which is read before tip's own Makefile is. Move those varables here
where they will do some good.
1998-09-21 08:41:35 +00:00
Ollivier Robert
d6bc2e88c1
Fix bad option processing.
...
PR: bin/7986
Submitted by: Dan Nelson <dnelson@emsphone.com>
1998-09-21 07:47:53 +00:00
Bruce Evans
929d7a2fc5
Install using ${INSTALL}, not using `install'.
1998-09-20 21:38:12 +00:00
Kenneth D. Merry
bcc6a3da92
Change the devstat generation number from an int to a long. The int-sized
...
generation was causing unaligned access faults on the Alpha.
I have incremented the devstat version number, since this is an interface
change. You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.
Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
1998-09-20 00:11:23 +00:00
Jordan K. Hubbard
0637c2cccd
Add -S flag; this is benign since fetch's behavior is unchanged if you
...
don't use it. That's why I'm bringing it in during our "code slush"
Submitted by: Stefan Esser <se@mi.uni-koeln.de>
1998-09-20 00:01:26 +00:00
David E. O'Brien
be0cde6f10
Remove useless `BINOWN=root' now that it is the default.
1998-09-19 22:42:06 +00:00
Dag-Erling Smørgrav
b1c669700c
Fix the following bugs:
...
- if a command was specified and script(1) failed to execute it,
it would print the name of your shell in the error message
instead of that of the command that failed.
- since finish() was installed as a SIGCHLD handler, it would
often run before the main loop had had time to process the
last few bytes of output. This resulted in very strange
truncated error messages.
- script(1) would almost always return with an exit status of 0,
even if the command returned a non-zero exit status. This broke
my 'build world, install it and rebuild the kernel' scripts
because 'make installworld' would run even if 'make buildworld'
had failed.
1998-09-19 09:45:42 +00:00
Dag-Erling Smørgrav
82e3dde754
DTRT for file: URLs when output file is "-".
...
PR: bin/7203
1998-09-17 00:15:15 +00:00
Matthew Dillon
8f82c3ea68
vmstat shows all manually-specified devices rather then just the first
...
three.
1998-09-16 18:20:23 +00:00
Dag-Erling Smørgrav
d26060f2e6
Avoid infinite loop if read() fails consistently.
...
PR: misc/7926
Submitted by: Sergey Potapov <sp@alkor.ru>
1998-09-16 15:53:25 +00:00
Doug Rabson
aaa4171279
Put ldd back in the standard list since it builds on alpha now.
1998-09-16 09:32:29 +00:00
Doug Rabson
97db68b61b
Make ldd work on alpha.
1998-09-16 09:31:48 +00:00
John Polstra
e936391783
Add links to addr2line, objcopy, and objdump. These exist only for
...
ELF, but still I think this is the best way to get them into the
shell's search path.
1998-09-16 04:11:15 +00:00
Kenneth D. Merry
8b95823257
Delete unused code. This has been obsoleted by the new devstat code.
...
Reviewed by: imp
1998-09-16 00:25:54 +00:00
Justin T. Gibbs
86e492ee46
Reference new files for device stat support.
1998-09-15 10:28:59 +00:00
Justin T. Gibbs
bb7f780427
Augment compression and blocksize support. Update table of known densities.
1998-09-15 10:28:20 +00:00
Justin T. Gibbs
8d2fbde504
Update system to new device statistics code.
...
Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
1998-09-15 08:16:45 +00:00
Jordan K. Hubbard
1025205fa2
Use -aout for kernels right now. This will have to be changed back if
...
the kernel goes ELF.
1998-09-14 11:32:52 +00:00
Dag-Erling Smørgrav
49ee7af69e
Don't require an executable file name. If no executable image is
...
specified, use /proc/<pid>/file. Document it.
PR: bin/7915
Suggested-By: Wolfram Schneider <wosch@panke.de.freebsd.org>
1998-09-14 10:09:30 +00:00
David E. O'Brien
2b1470681a
Remove -n for ignoring system headers. Instead add finer grain shell
...
macros and document them.
Prompted by: bde
1998-09-13 09:39:39 +00:00
Dag-Erling Smørgrav
e06cf7dbca
Print correct total for -c option (previously, the total for the last
...
directory scanned was printed instead of the real total)
PR: bin/7896
Submitted by: Zach Heilig <zach@gaffaneys.com>
1998-09-11 15:53:08 +00:00
Dmitrij Tejblum
00e500a2e5
Some fixes for swap space accounting.
...
Obtained from: pstat.c
1998-09-11 14:38:12 +00:00
KATO Takenori
cab4769a94
Set the `pc98' string to the MACHINE if machdep.ispc98 != 0.
1998-09-09 14:58:30 +00:00
John Birrell
c9db555954
Don't define RANLIBMAG if building an elf version of make. The RANLIBMAG
...
option lets make look inside archive libraries when determining if a
library is out-of-date. I don't think that make should look inside
files, so this fix effectively tells it not to. If the decision is
made (by someone else) that make _should_ be doing this, it will need
to be taught how to recognise elf archive libraries.
Problem noticed by: Joseph Koshy <jkoshy@freebsd.org>
1998-09-09 08:29:15 +00:00
Joseph Koshy
8460e34a1b
Fix spurious `free()' when -d g2 is enabled.
...
PR: 6790
Submitted by: nsmart <njs3@doc.ic.ac.uk>
1998-09-09 05:15:38 +00:00
Joseph Koshy
1c79dc84fd
Add missing comma.
...
PR: 7841
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
1998-09-09 03:07:03 +00:00