Commit graph

2500 commits

Author SHA1 Message Date
Bruce Evans 511a1b6f79 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
John Polstra 201fdc5426 Fix make world breakage from last commit. 1998-10-15 16:09:56 +00:00
Stephen McKay f4a747a11b 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
Joseph Koshy 4a949c96ce 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
Joseph Koshy 402b6be6ee Fix formatting bug.
PR:		8320
Submitted by:	Amakawa Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
1998-10-15 05:04:28 +00:00
Sean Eric Fagan a8f3721897 Add lstat() as a known system call. 1998-10-15 04:31:44 +00:00
Peter Wemm d6e03c9b6d 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
John Polstra 1c35b08ea6 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
Bruce Evans 900d63bade 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 Wemm bde6c54e06 +gensetdefs 1998-10-14 03:41:25 +00:00
Peter Wemm dbd049cf6c 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
Dag-Erling Smørgrav 202bab3944 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
Dag-Erling Smørgrav 450288f508 Missed one in the previous commit. 1998-10-13 15:05:00 +00:00
Dag-Erling Smørgrav 1fd98d7d88 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
Joseph Koshy 9a3a4fc790 Fix typos.
PR:		8216
Submitted by:	Kaneda Hiloshi <vanitas@ma3.seikyou.ne.jp>
1998-10-13 08:57:45 +00:00
Bruce Evans 46ccc3e932 vfork -> fork. The child calls abort(), which calls stdio. 1998-10-10 19:21:39 +00:00
Bruce Evans db6b691087 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
Bruce Evans 4689d219ff 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
Bruce Evans e43edbda3d Removed debugging cruft.
Broken in:	previous commit
1998-10-10 18:37:02 +00:00
Bruce Evans 007b865605 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
Peter Hawkins f40053daa9 PR: bin/8250
protect against buffer overruns in mail temporary files.
1998-10-10 09:58:20 +00:00
Mark Murray 98eb1c311d Add JKH's auth.conf parser to turn on/off Kerberos in userland 1998-10-09 20:14:48 +00:00
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