Commit Graph

2561 Commits

Author SHA1 Message Date
jdp
74c0b02f75 When the "-s" option is given, try to ensure that we restart the
target process even if we are killed or die due to an error.
1998-10-22 04:02:37 +00:00
jdp
b2cef22522 Remove most of the code and replace it with a call to getobjformat(). 1998-10-21 15:13:16 +00:00
bde
f93869e1c4 Fixed previous commit to actually work. The wrong variable was initialized
earlier (with style bugs of course), so zcat was an alias for uncompress
instead of `uncompress -c'.
1998-10-21 11:48:39 +00:00
msmith
0dac499ae3 Behave like zcat if invoked as zcat. We don't install as zcat; this just
makes us more useful in a tight environment.

Submitted by:	Wilfredo Sanchez <wsanchez@apple.com>
1998-10-20 06:13:57 +00:00
jdp
face6e9277 Make gcore work for ELF. 1998-10-19 19:42:18 +00:00
thepish
2b6c28f287 PR: 7583
Submitted by:	Dave Glowacki <dglo@SSEC.WISC.EDU>
Support input via stdin if no input file name specified explicitly
1998-10-18 04:46:24 +00:00
obrien
0c8a74dcaf Only process the ``PWD'' environmental var if built with "WANT_ENV_PWD"
defined.  Bash v2 sets PWD and it creates major problems for those of us
with /usr/src being a symlink.  See the lists for examples of the problems.
1998-10-18 00:51:46 +00:00
bde
42b87ecc2f Fixed printf format errors. Assume that uid_t's are representable as
unsigned longs.
1998-10-17 14:08:12 +00:00
bde
2625896b1b Fixed printf format errors. Assume that time_t's are representable as
longs.
1998-10-17 14:06:20 +00:00
bde
6478fc2452 Generate code to interpret ioctl numbers for all ioctls defined in
headers under /usr/include, not just for the ones in <sys/ioctl.h>.
The generated file includes all headers that seem to define ioctls,
so build errors will probably occur if headers become less self-
sufficient than they are already.  This is a feature.  Build errors
shall not be fixed by adding more includes here.

Optionally generate a case statement instead of a list of if
statements.  This source must be edited to change this.  The case
statement should be non-optional.  It currently can't be, because
many ioctl numbers are not unique.
1998-10-16 15:33:17 +00:00
jdp
d8b0acd731 Fix make world breakage from last commit. 1998-10-15 16:09:56 +00:00
mckay
098b4f80dd atq ignored locale info when printing dates. Is the other call to
setlocale() just in the wrong place?

PR:	8300
1998-10-15 13:30:48 +00:00
jkoshy
bad1418fa9 Fix a serious bug in make(1)'s handling of archive libraries.
This case did not need to be tested when RANLIBMAG was defined
(as when in an `aout' environment) because Arch_StatMember() treated
the two cases of the library not being present and a member of
the library not being present the same way, forcing a rebuild
of the library.  Since in the ELF environment we don't look inside
archive libraries we now need to check if the archive library is
present in order to determine its `out-of-date'-ness.

(I hope I've been able to meet the Oct 15th freeze).

Reported-by:	Steve Price (and a few others whom I've forgotten, sorry)
1998-10-15 13:00:34 +00:00
jkoshy
5816b595c7 Fix formatting bug.
PR:		8320
Submitted by:	Amakawa Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
1998-10-15 05:04:28 +00:00
sef
9e0aee1ff0 Add lstat() as a known system call. 1998-10-15 04:31:44 +00:00
peter
ec797a8335 Add objformat links for gdb and (while we're at it) c++filt.
This means we can (assuming an a.out gdb is present) debug a.out kernels
and crashdumps with gdb -aout.
1998-10-15 00:19:08 +00:00
jdp
f417a55b2f Check the executable's header to make sure it is a valid executable.
If it is ELF, print a diagnostic saying that it is not supported yet
by this program.  This is a stop-gap anti-bug-report measure because
it looks like there won't be time to implement gcore's ELF support
before 3.0 is released.
1998-10-14 16:16:50 +00:00
bde
e7c1180f6e Fixed 7 style bugs. The contents of such a simple Makefile is entirely
determined by style rules, the program name and the existence of the man
page.
1998-10-14 10:21:10 +00:00
peter
828f45c65b +gensetdefs 1998-10-14 03:41:25 +00:00
peter
c98bc4ace2 gensetdefs is a standalone version of the tool that we use to wrap a
struct linker_set around the contents of ELF linker sets.  This tool
also generates setdef0.c and setdef1.c for the alpha and i386 rather than
having these duplicated all over the tree too.

This is required for building KLD modules.
1998-10-14 03:41:01 +00:00
des
43cb8a7cb9 One vfork() changed to fork(); one execl() changed to execv(). The
latter isn't actually called as far as I can see since FreeBSD uses
termcap and not terminfo.
1998-10-13 15:14:37 +00:00
des
efc55abc02 Missed one in the previous commit. 1998-10-13 15:05:00 +00:00
des
3ca80efd3a Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.

Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.

PR:		Loosely related to bin/8252
Approved by:	jkh and bde
1998-10-13 14:52:33 +00:00
jkoshy
f4d0d8887f Fix typos.
PR:		8216
Submitted by:	Kaneda Hiloshi <vanitas@ma3.seikyou.ne.jp>
1998-10-13 08:57:45 +00:00
bde
b350ac99ac vfork -> fork. The child calls abort(), which calls stdio. 1998-10-10 19:21:39 +00:00
bde
7a03a3002a vfork -> fork. This home made popen() had the same bug as the library
popen(), but worse.  The child calls execvp(), which calls malloc()
a bit more than execl(), and it calls non-library functions that call
malloc() and who-knows-what else (stdio is called in at least some
error cases).
1998-10-10 19:18:30 +00:00
bde
0d02aaceb9 Fixed gross breakage in previous commit. The malloc sizes for the
temporary file names were uninitialized if TMPDIR was set and 1 too
small otherwise.

Fixed style bugs in previous commit.

Fixed missing checks for malloc failure in previous commit.

Report malloc failure consistently, at least in temp.c.
1998-10-10 19:01:47 +00:00
bde
e528e28bfe Removed debugging cruft.
Broken in:	previous commit
1998-10-10 18:37:02 +00:00
bde
056ba4d8e8 Don't build or install ${MAN1}. It's just a copy of ${MAN1aout} and
installing it clobbers the elf ${MAN1}.  The MAN1 -> MAN1aout changes
actually work now.

Fixed order of MAN* and BINDIR.
1998-10-10 12:48:48 +00:00
thepish
baece423c7 PR: bin/8250
protect against buffer overruns in mail temporary files.
1998-10-10 09:58:20 +00:00
markm
bad4fa82c9 Add JKH's auth.conf parser to turn on/off Kerberos in userland 1998-10-09 20:14:48 +00:00
des
077f96877a 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
markm
7536318c13 Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
markm
a486b8dd50 Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:38:33 +00:00
jdp
799457cc9c 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
obrien
59bd962db0 Quiet many compiler warnings. 1998-10-08 09:56:10 +00:00
kato
4df6ab63be 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
ken
bd9fb75d91 Fix a core-dump situation in ":boot" mode in the vmstat display.
Reported by:	bde
1998-10-05 04:04:27 +00:00
obrien
c143792936 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
sef
74b596d2ae Make it compile -Wall cleanly.
Submitted by:	Alex Nash <nash@mcs.net>
1998-10-03 18:02:03 +00:00
sef
ebe5e8bdaf Move truss from i386-specific to always-build.
Submitted by:	Alex Nash <nash@mcs.net>
1998-10-03 17:59:26 +00:00
dfr
f91b3d0db4 Some 64bit portability fixes. 1998-10-03 11:01:39 +00:00
dfr
79f0e61c60 mt now builds on the alpha. 1998-10-03 10:59:57 +00:00
dfr
94e3fb4cb4 Don't bother trying to support Wangtek tapes on the alpha. 1998-10-03 10:58:54 +00:00
jdp
590984c836 Fix "file" so that it prints the program names from core files
correctly.
1998-10-03 04:38:58 +00:00
sef
8c873c0b15 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
obrien
c9a04630c0 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
dt
0c8d2e9dfc Backed out "fix for PR 7575". It was bogus. 1998-10-01 19:40:27 +00:00
jkoshy
3ed49ce3db 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
obrien
f6f60ebfb1 include <pthread.h>
Submitted by:	Alexander Leidinger <netchild@wurzelausix.CS.Uni-SB.DE>
1998-09-25 11:43:48 +00:00