Commit Graph

2751 Commits

Author SHA1 Message Date
Wolfram Schneider
0bf9cc11f0 Recommended TMPDIR is now /tmp (undo rev 1.6) 1998-11-29 00:57:03 +00:00
Wolfram Schneider
6d0c7e1378 Added a sort option to find(1).
The sort option make it possible to build the locate
database without large (usually 20-100MB) temp files.
1998-11-29 00:54:21 +00:00
Bruce Evans
c13e5fb799 Removed unused nlist'ed variables stathz and hz. These used to be used
to half compensate for broken scaling of p_pctcpu in the kernel, but the
previous commit removed this compensation.  %cpu values will be wrong by
a factor of stathz/hz until the kernel is fixed.  (The kernel gets it
wrong by a factor of stathz/hz, and top got the compensation wrong by
a factor of 100/stathz.)
1998-11-26 12:59:21 +00:00
Doug Rabson
d24b518319 Port top to the alpha.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-11-25 09:45:28 +00:00
John Polstra
cc4b11542b Work around the problem that login won't link if NOSHARED=yes,
because libpam is built shared only.  There is a way to build PAM
into a static library that contains all (or a selected subset) of
the modules.  But our Makefiles don't support that yet.  Until I get
that working, just force NOSHARED=no in login's Makefile.  Of
course, it still won't work if NOPIC is set.

Submitted by:	bde
1998-11-21 18:27:15 +00:00
John Polstra
e83348169b ATTENTION: INSTALL "/etc/pam.conf" FROM "src/etc"!!!
Change login to use PAM for authentication.  I kept the built-in
passwd/NIS authentication support, to handle cases where the system
is missing its "/etc/pam.conf" file.  S/Key and KerberosIV
authentication methods are removed from the login program, but
still available in PAM modules.
1998-11-21 02:22:14 +00:00
Joseph Koshy
cb474aac07 Updated gencat(1) page from T. Lambert:
"Here is a new gencat(1) man page.  It contains examples
  and information not in the current man page (e.g., file
  format) per the X/Open documentation.  It also updates some
  aspects of the X/Open documentation (e.g., the X/Open
  document neglects to say how to embed a $quote character
  into a string)."

Submitted by: Terry Lambert <tlambert@primenet.com>
Review and small corrections by:	jkoshy
1998-11-18 04:30:53 +00:00
Kenneth D. Merry
93a6df25e8 Update tcopy for CAM. (/dev/rst0 -> /dev/rsa0)
PR:		i386/8688
Submitted by:	Bill Trost <trost@cloud.rain.com>
1998-11-16 00:05:46 +00:00
Bruce Evans
50f292a2b5 Fixed missing 'v' in usage message. 1998-11-15 05:55:58 +00:00
Bruce Evans
3873e6c2a7 Fixed bugs in previous commit:
- missing `v' in synopsis.
- 'v' disordered relative to 'V' in description of options.
- line too long in description of 'v'.
1998-11-15 05:51:55 +00:00
David E. O'Brien
216a4d993b New file formats.
Obtained from:	NetBSD-current/src/usr.bin/file/magdir
1998-11-15 03:35:10 +00:00
David E. O'Brien
0fe4a4090f Additional file formats.
Obtained from:	NetBSD-current/src/usr.bin/file/magdir/msdos
1998-11-15 03:34:31 +00:00
David Greenman
7009ec844f Added a -v (verbose) option and hid multi-job file banner generation
behind it.
1998-11-14 16:15:04 +00:00
John Polstra
6717b4a8dd unifdef -DLOGIN_CAP. After almost 2 years, I think we can assume
it's here to stay.

This code is starting to look almost reasonable again.
1998-11-11 05:47:45 +00:00
John Polstra
8e32ad3bde Remove support for LOGIN_CAP_AUTH. It was never enabled, it was
not complete, and it hasn't been touched for 18 months.  All the
ifdefs obfuscate the code.  I discussed the LOGIN_CAP_AUTH support
with its author and he agreed that it is a dead end.  I am bringing
PAM into the tree within the next two weeks.  It is much more
flexible than LOGIN_CAP_AUTH, and will serve as a superior replacement
for it.
1998-11-11 02:16:01 +00:00
John Polstra
069b715f73 Fix a const-related compiler warning. 1998-11-11 01:53:12 +00:00
Bruce Evans
0600c89080 Fixed disorder. 1998-11-10 12:19:26 +00:00
Dima Ruban
87bc830f60 Reenable fstat for alpha. 1998-11-09 11:08:48 +00:00
Dima Ruban
8df85cf6dc Reenable systat/vmstat for alpha. 1998-11-09 10:52:43 +00:00
Steve Price
a288ccca56 Do a better job of determining if we were called as uptime(1).
PR:		8593
1998-11-09 01:19:30 +00:00
Dag-Erling Smørgrav
9f63f2aa1c main.c:
Fix usage string. Fix getopt() string. Fix ordering of compatibility options.
fetch.1:
 Fix synopsis. Fix ordering of T and t options. Fix minor grammar nit.
1998-11-08 23:18:48 +00:00
Gary Palmer
370402654f dig, dnsquery & host seem to work on the alpha now 1998-11-08 12:37:30 +00:00
Robert Nordier
dd2461309f Add missing '\n'; remove redundant 'h' case in getopt switch. 1998-11-05 07:24:21 +00:00
Robert Nordier
57037d27d5 Add -c option to usage string.
PR:           8568
Submitted by: Ryan Younce <ryany@pobox.com>
1998-11-05 07:18:41 +00:00
Joerg Wunsch
489c66fe33 Include `enigma' into the list of usr.bin programs. 1998-11-02 11:01:38 +00:00
John Polstra
00bf1f3066 Fix errors detected by -Wformat. 1998-11-01 06:35:36 +00:00
John Polstra
eca7742c3c Link objformat statically by default. This makes it possible to
build 2.2-stable worlds on 3.0-current systems again.  objformat
calls getobjformat(), which doesn't exist in 2.2's libc.
Technically there should have been a version number bump when it was
added in -current.  But it's used in so few places that it hardly
seems worth that.  Besides, the objformat program is very heavily
used during a make world; it won't hurt to have it load a little
faster.
1998-11-01 02:37:40 +00:00
Joerg Wunsch
5dc67cd725 Fix some of the more blatant bugs in the original code, provide a
BSD-able Makefile, add a man page (that also puts a bold warning about
the weakness of the encryption), and implement the -k option for
compatibility with other vendor's implementations.  (Unlike those
other vendors, we actually also document this option and its
problems.)

There are more violations of style(9) in it, like the not-use of
getopt(3), but it's not worth the while fixing all of this.
1998-10-30 18:24:54 +00:00
Joerg Wunsch
13e21a9da4 This is enigma, aka. crypt(1). It has suppsedly been taken from
Cryptbreakers Workbench.  While arguably a rather weak encryption,
it's in some use in the Internet still, and provided by a bunch of
other Unix systesms, so we include it here for compatibility.

Silently agreed by: core
1998-10-30 18:20:54 +00:00
David Greenman
8692ad469b Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
John Polstra
b5e7d1133b Back out previous work-around for "vmstat -i" failing on ELF
kernels.  A better fix is now committed to "src/lib/libc/gen/nlist.c"
and "src/usr.sbin/kvm_mkdb/nlist.c".
1998-10-28 06:41:24 +00:00
Bill Fenner
60a53b7d32 If we know the content-length, only read that number of bytes from
the server.  There exists a broken server which sends a few extra
garbage bytes in response to HTTP/1.1 requests.
1998-10-26 02:39:21 +00:00
David E. O'Brien
5c21e13f1a Add manpage for objformat. This needs major word smithing. 1998-10-25 13:25:42 +00:00
Bruce Evans
83d8891ddc Backout out previous commit. The bug was in the kernel. 1998-10-25 10:59:44 +00:00
Mike Smith
e74e8b8b23 Work around some variables having N_UNDF types but valid values; this
makes vmstat work on ELF kernels again.
Submitted by:	Daniel Rock <rock@cs.uni-sb.de>
1998-10-24 23:12:09 +00:00
Mike Smith
d6324f511d Use sysctlbyname() to locate the vfs.nfs.nfsstats node.
Submitted by:	Daniel Rock <rock@cs.uni-sb.de>
1998-10-24 19:36:52 +00:00
John Polstra
5dd2c95881 When invoked as "objformat" to print out the current object format,
produce an error message if any arguments are given on the command
line.
1998-10-24 02:01:30 +00:00
Bruce Evans
ee99f351b1 Fixed gratuitous unformatting in rev.1.8. 1998-10-22 18:17:30 +00:00
Bruce Evans
17d1bf4260 Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.
1998-10-22 15:53:06 +00:00
Torsten Blum
ecc9d4571f oops, forgot to add his birthday 1998-10-22 07:56:22 +00:00
Torsten Blum
5990cc7824 Add Jon Postel's birth/death
PR: 8402
1998-10-22 07:40:05 +00:00
Warner Losh
ad180a3533 Added Microsoft's PE formatted executables for mips, i386 and Alpha.
Also added entry for the debugger files as well.  The PE format is
used for all Win32 platforms (Win95, Win98, WinNT and WinCE), so it is
nice to be able to tell what kind of thing the foo.dll....  Don't have
any data for powerpc formats, however...
1998-10-22 04:41:34 +00:00
John Polstra
283c2d5af4 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
John Polstra
778a593eb2 Remove most of the code and replace it with a call to getobjformat(). 1998-10-21 15:13:16 +00:00
Bruce Evans
d52ae8190d 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
Mike Smith
7c0704e446 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
John Polstra
52e7cc0a90 Make gcore work for ELF. 1998-10-19 19:42:18 +00:00
Peter Hawkins
18251d7146 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
David E. O'Brien
9471b48afe 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
Bruce Evans
06cc787d3e Fixed printf format errors. Assume that uid_t's are representable as
unsigned longs.
1998-10-17 14:08:12 +00:00
Bruce Evans
fa63310f99 Fixed printf format errors. Assume that time_t's are representable as
longs.
1998-10-17 14:06:20 +00:00
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
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
Mike Smith
1717c90cc3 Terminate the defdrives array correctly. (Shame, Rod!)
Submitted by:	Scott Michel <scottm@cs.ucla.edu>
1998-09-09 02:22:28 +00:00
David E. O'Brien
c304ad8a23 Add support for the RPC 64-bit integer type ``hyper''. 1998-09-08 17:33:12 +00:00
John Polstra
5584f22bb3 Make profiling work for ELF. gprof now autodetects the format of
the executable file, so it will work for both a.out and ELF format
files.  I have split the object format specific code into separate
source files.  It's cleaner than it was before, but it's still
pretty crufty.

Don't cheat on your make world for this update.  A lot of things
have to be rebuilt for it to work, including the compiler and all
of the profiled libraries.
1998-09-07 23:32:00 +00:00
Steve Price
bbfd144724 Make the builtin unix macro work as it should (well like Solaris's,
GNU's, and OSF1's).
1998-09-07 22:09:13 +00:00
Martin Cracauer
35923ba71d Correct zsh shell script entry.
PR:		bin/7657
Submitted by:	Dom Mitchell dom@phmit.demon.co.uk
1998-09-07 16:27:24 +00:00
John Birrell
a8228cf988 Install the legacy man file in section 1aout. 1998-09-07 06:01:37 +00:00
Sean Eric Fagan
3625b5147c Use a default execution type if none of the listed ones match. This
uses the first type listed in the array as the default type.  This isn't
perfect, but I thought it would be better than nothing.
1998-09-07 05:49:43 +00:00
Satoshi Asami
ff5fcc93d4 Remove tcl from /usr/src, according to prior agreement. BTW, tcl-8.0 *is*
a port so there is nothing to be done on that side now.

Approved by:	jkh
===
To: "Jordan K. Hubbard" <jkh@time.cdrom.com>
cc: Andreas Klemm <andreas@klemm.gtn.com>, current@freebsd.org
Subject: Re: Make this a relese coordinator decision (was Re: ports-current/packages-current discontinued)
From: David Greenman <dg@root.com>
Date: Sun, 03 Aug 1997 20:23:31 -0700

>decision is, I'll respect it.

   Another chance to architect people's principles...I can hardly wait. Seems
quite appropriate for a Sunday - I just need to get one of those collection
plates (and money envelopes) so I can profit, too. :-)
   Tcl stays in /usr/src for now, but it needs to be kept up to date; same
for perl. If Jordan doesn't have "setup" (written in tcl) ready for 3.0,
then tcl will be yanked prior to the 3.0 release (and made into a port).
   As for the ports tree only supporting the last FreeBSD release, this seems
sensible to me. The "ports" have always been a moving target between releases
and the problem is only going to get worse when we expand to supporting other
processor architectures. In any case, Satoshi is and always has been in charge
of the ports tree and whatever he wants to do with it (within reason :-)) is
his decision.
   Does this cover the issue completely? I admit to deleting messages in this
thread with unusual fervor (people have FAR too much time on their hands!).
There's a fair bit of reasoning behind the above, but since everyone is sick
of arguing about this, I'll spare you the analysis.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project
1998-09-05 12:25:55 +00:00
John Birrell
db36ef8f02 Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:22:30 +00:00
John Birrell
e00072f9f4 Add -lcrypt when building kerberos. 1998-09-05 00:32:27 +00:00
David E. O'Brien
5fd097d7cb revert back to rev 1.5 1998-09-04 06:01:42 +00:00
Mark Murray
e29c2a4f89 Bump up the E_SHELL constant after an extra field was added, thus making
this refer to the wrong data.
Submitted by:	axl@iafrica.com (Sheldon Hearn)
1998-09-03 17:32:22 +00:00
Bruce Evans
83294a65d7 Removed a buggy ifdef for not linking libmd explicitly. Explicit
linkage is needed for the NOSHARED=YES case, so it is simplest to
never depend on the automagic linkage for elf shared libraries.

Reviewed by:	jdp
1998-09-02 14:46:20 +00:00
David E. O'Brien
287bb46fa2 Cut-n-paste fub.
Noticed by:	bde
1998-09-02 10:09:08 +00:00
Wolfram Schneider
0f1a6b7b3a Diagnostic rewritten in English.
Submitted by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
1998-09-02 10:05:47 +00:00
Wolfram Schneider
acd8019083 Sort cross references. 1998-08-31 16:41:09 +00:00
Wolfram Schneider
4d3ee60941 Support multiple databases. For example
$ look miau  dict1 dict2 dict3
1998-08-31 16:38:23 +00:00
Joseph Koshy
a6054afb48 Move setting of 'crt' mail variable to {/usr/src}/etc/mail.rc. 1998-08-31 10:53:06 +00:00
John Birrell
7ceecc6645 The elf build wants to link against libcrypt. 1998-08-31 00:42:21 +00:00
John Birrell
8472e43276 Change /etc/objectformat to /etc/objformat. Last chance 'cause it's E-day.
Suggested by: jdp
1998-08-30 20:40:29 +00:00
Gary Palmer
cb7f1224bb Split lines into one subdir per line. 1998-08-30 20:28:50 +00:00
John Polstra
e2daa140cc Fix a bug which caused ldd to execute scripts listed on its command
line, instead of skipping them.

Also make a few minor cleanups.

PR:		bin/7783
1998-08-30 18:30:59 +00:00
Steve Price
3297b869e3 Typo fix: garbeld -> garbled
PR:		7784
Submitted by:	Kris Kennaway <kkennawa@physics.adelaide.edu.au>
1998-08-30 17:33:05 +00:00
Gary Palmer
175ae25003 Add $Id$ 1998-08-30 17:02:51 +00:00
Wolfram Schneider
31033c2c38 PR: bin/5596
Change the diagnostic if there were no matching processes owned by
you.
1998-08-30 16:54:58 +00:00
Gary Palmer
521e091823 Still need -lmd on the alpha as it doesn't have shlibs yet 1998-08-30 16:07:18 +00:00
John Birrell
839de40e6e BINFORMAT -> OBJFORMAT ready for E-day. 1998-08-30 02:52:04 +00:00
Bruce Evans
0fccc7dafd Fixed anachronisms (nuked vfs type number; don't give a 1/6-baked list
of vfs flags in the man page).
1998-08-29 13:53:22 +00:00
David E. O'Brien
905a01acd9 Add option `-n', causing system headers not to be included in dependacy
lists.

This is needed when using a non-stock compiler.
1998-08-29 07:55:55 +00:00
Gary Palmer
590c5955be Delete trailing space that may have caused problems 1998-08-26 12:41:11 +00:00
Gary Palmer
23f353f34a Move kdump & ktrace out of i386 specific section. 1998-08-26 10:03:28 +00:00
Wolfram Schneider
63d82ffc0e Check the text segment size of the executable and the process. If
not equal, the command line arguments are wrong. E.g.:

$./gcore /bin/sh 1761

$ ./gcore /usr/tmp/chroot/bin/sh 1761
gcore: The executable /usr/tmp/chroot/bin/sh does not belong to process 1761!
Text segment size (in bytes): executable 303104, process 294912
1998-08-24 16:25:30 +00:00
Martin Cracauer
9a4902a99f When exiting on SIGINT, exit with signal status 1998-08-24 10:17:20 +00:00
Steve Price
36f8699a07 The host commandline option is -h and not -s.
PR:		7703
Submitted by:	Yoshishige Arai <ryo2@on.rim.or.jp>
1998-08-24 00:56:20 +00:00
Gary Palmer
ed9ff6ddf7 Quick hack to allow netstat to compile once more: ifdef out MT_SOOPTS 1998-08-23 15:23:11 +00:00
David E. O'Brien
bd7061056e Add "-P" display the id as a password file entry.
Submitted by:	terry
1998-08-21 06:47:58 +00:00
John Birrell
acfd6b3968 Change casts from int to u_long and formats from %x to %lx.
Didn't fix the alignment of the output fields on alpha where addresses
require 16 characters to print.

Added a dummy field to the pt_u union to help the alpha compiler align
the u_sa field in a suiable way.
1998-08-18 13:41:38 +00:00
John Birrell
fb5a5a81ea Change a variable from int to size_t. 1998-08-18 13:36:47 +00:00
John Birrell
96a332e8f9 More programs that build on alpha now. 1998-08-18 12:55:32 +00:00
John Birrell
a89fd81d2b The selection of a default object format is based on OBJFORMAT, not
BINFORMAT.
1998-08-18 06:55:36 +00:00
John Birrell
34c2c7717f Make this internal build tool static to avoid trying to use shared
libraries before the shared loader has been installed.
1998-08-17 11:56:22 +00:00
John Birrell
47b524d13a Remove the PATH setting. 1998-08-17 11:43:25 +00:00
Gary Palmer
83314c7206 lorder is needed on the alpha too 1998-08-17 07:37:55 +00:00
Joseph Koshy
580367f264 Remove hardcoded constant in favour of login.conf value.
PR: 	6529
Submitted by:	Dan Lukes <dan@obluda.cz>
1998-08-17 03:25:07 +00:00
Poul-Henning Kamp
7a55a3c230 I have added the support for BIG5 encoding into libc/libxpg4/mklocale.
the diff is attached below. This is done on the 3.0 source-tree.
I have test this on 2.2-stable before, but I don't have a 3.0 machine
right now.

This patch is mainly to make libc support BIG5 encoding, thus add
zh_TW.BIG5 locale to 3.0.

Submitted by:	Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw>
1998-08-15 12:51:49 +00:00
Poul-Henning Kamp
15160dd67b Remove half the file, somehow it got doubled... 1998-08-15 12:36:50 +00:00
John Birrell
559628a153 Removed explict PATH which tended to cause the *wrong* path to be used
more often than not.

Also included Doug Rabson's changes to make this script better handle the
two varieties of nm output we now have.
1998-08-15 07:10:21 +00:00
Poul-Henning Kamp
9cd4d748f9 /usr/src/usr.bin/lex/Makefile puts FlexLexer.h into /usr/include/g++,
but flex still generates "#include <FlexLexer.h".  As a result,
C++ sources flex generates failed to be compiled.

PR:		7575
Reviewed by:	phk
Submitted by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
1998-08-14 06:35:37 +00:00
Peter Hawkins
0914b0d220 Submitted by: Peter Hawkins <thepish@freebsd.org>
Document last mod (extended gcos)
1998-08-14 03:47:38 +00:00
Peter Hawkins
19ae8d1e56 Submitted by: Peter Hawkins <thepish@FreeBSD.org>
Add functionality for support for more than 4 subfields within gcos. chsh,
chpass etc did not parse beyond the 4th field previously and so truncated
gcos on updating the database.
1998-08-14 03:18:32 +00:00
Wolfram Schneider
f3b2c2d1d3 Merge from stable: support for the o, order, command 1998-08-12 09:58:15 +00:00
Peter Hawkins
449cc391d9 PR: 7522
Correct bug in the inverse operator optimisation code which caused segv
on ! without a following expression.
1998-08-10 10:29:11 +00:00
Poul-Henning Kamp
da52a1bae1 I have been running with these locale data for a while now and
I hope some other people might find them useful. They are for
zh_CN.EUC (GB) only. I'm not familiar with the BIG5 encoding,
so I could only hope someone else would fill the gap.

PR:		7310
Submitted by:	Luoqi Chen <luoqi@chen.ml.org>
1998-08-10 09:49:42 +00:00
John Polstra
43ab5f3877 Don't ignore symbols containing "$". C++ destructors and other
special functions have names containing dollar signs, and ignoring
them causes gprof to produce incorrect and sometimes bizarre results.
The comment in the original code said that dollar signs were excluded
because they are used in Pascal labels.  That's not much of an
issue these days.
1998-08-08 17:48:26 +00:00
Alexander Langer
1f939e3414 Year is sometimes set to -1 when assign_date() is called. Check for -1
before Y2K processing.

PR:		7524
1998-08-08 14:02:06 +00:00
Poul-Henning Kamp
c6620a13c0 Make netstat work again. 1998-08-08 08:13:04 +00:00
Andrey A. Chernov
2667adfdac add Hungarian clooate 1998-08-07 17:08:56 +00:00
Andrey A. Chernov
7a37f336e3 add Hungarian ctype 1998-08-07 17:07:12 +00:00
Andrey A. Chernov
b4689cd667 fix 8bit clean issue
PR: 7519
1998-08-07 16:21:09 +00:00
Poul-Henning Kamp
86f347ae38 This PR contains additional magic for file(1) describing
various adventure game data files.

from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998

PR:		7466
Reviewed by:	phk
Submitted by:	The Frobozz Magic Homing Pigeon Company
1998-08-07 06:26:37 +00:00
Mark Murray
448bbb5805 Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
Poul-Henning Kamp
99453c6ab8 Don't open /dev/mem until we need it, most cases we don't. 1998-08-05 13:54:07 +00:00
Doug Rabson
f1598784ae Use <signal.h> instead of <sys/signal.h>. 1998-08-05 09:01:29 +00:00
Dag-Erling Smørgrav
e7cdb97253 Add -t option ('t' in interactive mode) to make top(1) ignore itself.
Attempts to contact the author of top(1) (William LeFebvre) have so
far been unsuccessful.

PR:		7253
Submitted by:	Yours Truly
1998-08-04 14:10:48 +00:00
Tim Vanderhoek
1707aceca1 Ignore (effectively) SIGTSTP if we're already in the process of tstoping. 1998-08-03 03:11:09 +00:00
Bruce Evans
c513aafea1 Fixed printf format errors. 1998-08-02 15:18:45 +00:00
Bruce Evans
e662741c24 Backed out rev.1.31. It was a workaround for bugs in rev.1.4 of
libc/gen/getpass.c.  The old behaviour of blocking SIGINT and not
changing SIGQUIT was restored in rev.1.5 of getpass.c.  The change
here completely restores the old behaviour of not supporting killing
login with keyboard signals (only) at the password prompt.  There
is no reason to support this, since login can be exited normally
by typing a couple of ^D's.  Login certainly shouldn't dump core
in response to user input.  Previously, SIGQUIT killed login
immediately but SIGINT killed it only after the password was
entered.

PR:		7444
1998-07-31 07:22:31 +00:00
Tim Vanderhoek
b410b35213 Fix coredump when two signals are sent in rapid succession.
PR:		bin/5721
Submitted by:	Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>

Also, add "volatile" to a variable modified by signal handlers (coincidentally,
the same variable involved in the above fix, although this isn't related
to the reported problem).
1998-07-31 04:05:11 +00:00
Dag-Erling Smørgrav
1f89173a8c Don't try to dereference a pointer to freed memory.
PR:		bin/7393
1998-07-29 17:50:06 +00:00
Dag-Erling Smørgrav
9b81ca853e Brucifixion. 1998-07-28 10:08:16 +00:00
Jonathan Lemon
4b8a1af6a2 Change doscmd to use i386_set_ioperm() call instead of sysarch(). 1998-07-28 03:39:59 +00:00
Dag-Erling Smørgrav
28f5cafe82 Behave like GNU time. More cleanup. Reword man page.
Pointed out by:	Bruce Evans
1998-07-27 16:54:05 +00:00
Dag-Erling Smørgrav
fabfd1334a Clean up the previous commit. 1998-07-27 16:08:58 +00:00
Wolfram Schneider
4dc0ec1db1 Round - not cut - the real cpu time. 1998-07-27 12:21:58 +00:00
Warner Losh
d352b6c59e fd_set is documented to be a typedef, not a struct. Conform more
closely to the documented interface.

Inspired-by: similar changes in OpenBSD
1998-07-26 18:49:36 +00:00
Warner Losh
dff85ecbee Use malloc + sprintf rather than asprintf to ensure portability to
other, less advanced architecutres.  This should minorly help porting
efforts of FreeBSD.  I've done several make worlds since this came up
with this change, as well as debugging several interesting nits with
-V (which is the only thing this change will affect really).
1998-07-26 17:06:05 +00:00
Tim Vanderhoek
a65adfc05c Fix compilation for the case where neither ioctl(TIOCGWINSZ)
nor ioctl(WIOCGETD) exist.  This case doesn't occur under FreeBSD.

PR:		bin/5996
Submitted by:	Max Euston <meuston@jmrodgers.com>
1998-07-26 16:15:26 +00:00
Tim Vanderhoek
b0ab44a317 Really delete -# option. 1998-07-25 05:58:04 +00:00
Tim Vanderhoek
42580a0726 Nuke obsolote and broken -# option.
Order options.

PR:		bin/5996
Submitted by:	Max Euston <meuston@jmrodgers.com>
1998-07-25 05:56:49 +00:00
Tim Vanderhoek
b3841c3bd9 Keep "-c" (top_scroll) through viewing help.
PR:		bin/5996
Submitted by:	Max Euston <meuston@jmrodgers.com>
1998-07-25 05:28:32 +00:00
Poul-Henning Kamp
03a2224899 By default, /usr/bin/time writes its output to stderr. Two options
have been added to time(1) to write output to an alternative destination.
Option "-f filename" will write to filename, and filename can be - to
write to stdout.  Option "-a filename" will append the output to filename.
Time(1) man page has been updated to reflect the change.

PR:		7368
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1998-07-24 07:19:29 +00:00
Poul-Henning Kamp
24db6e216f During compilation of a Fortran program f2c/f77 will spew the
name of entry points, functions, subroutines, and program to
stderr error.  The enclosed patches do 3 things:

     (1) Silenced the output to stderr.
     (2) Added a -v option to f2c and f77.  This will turn on a verbose
         mode, and dumps quite a bit of stuff to stderr.
     (3) Updated the f2c man page.

PR:		7369
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1998-07-24 07:13:57 +00:00
Poul-Henning Kamp
a623ec03f3 A bit of PR7278 which belongs here.
PR:		7278
Reviewed by:	phk
Submitted by:	Harlan.Stenn@pfcs.com
1998-07-22 20:34:24 +00:00
John Polstra
79bdd98bf7 Fix a couple of little bugs that prevented login.c from compiling
if LOGIN_CAP_AUTH was defined.  This is kind of silly, because
LOGIN_CAP_AUTH doesn't work anyway, is not defined currently,
probably will never be defined, and IMHO should not be defined.
But I'm sure you'll sleep better tonight, knowing that these bugs
are gone.
1998-07-22 04:33:12 +00:00
Jean-Marc Zucconi
d90d7b04ab 'remaining' must be declared off_t instead of int to avoid FPE when the size of
the file to transfer is very large (577985293894855484 bytes in the case I
encountered, but this was a buggy ftp server :-))
1998-07-19 00:01:24 +00:00
Warner Losh
1b1101e52f o for unknown int21 functions, set the CY bit to indicate failure
o When reporting a int21 function we don't know about yet, report
  AH as the major and AL as the minor, as opposed to reporting AL
  as the major.
o Add support for 21:44:7: ioctl check output status.  We
  optimistically say that output is always ready.
o Add half support for 21:23: get file size.  We always now return
  failure.  This function isn't supported, according to the interrupt
  list, by the DOS box in windows, so I don't feel too bad.
1998-07-17 00:18:52 +00:00
Warner Losh
10f1d28ac1 o remove -f from doscmd man page, as it is not implemented.
o Remove init printf
o Don't set optind from return value for do_args.  getopt has already
  done this.
o Bump EMS memory from 1M to 10M (this really should be a command line
  option).
o Open /dev/null when requested to open emmxxxx0 to allow many programs
  checking to see if EMS is installed to find it.
o Route int67 to ems_entry to allow EMS to be used when DOS is emulated
  as well as when DOS is booted.  This may obviate the need for the
  driver doing anything at all in a really booted situation and won't
  hurt that case.

I can now run the DOS program I'm interested in running with enough
EMS memory that its "advanced" functions are enabled and working.
1998-07-16 23:54:26 +00:00
Guy Helmer
9629cc1275 Revert "POSIX saved uids change". seteuid(2) is not POSIX, and
FreeBSD does not have _POSIX_SAVED_IDS enabled.  Thanks to Warner Losh
and Ollivier Robert for pointing this out, and Bruce Evans for explaining
the role of _POSIX_SAVED_IDS.
1998-07-14 19:07:30 +00:00
Stefan Eßer
cc522880b4 Fix proxy authorization code:
- failed to use authorization parameters passed in the environment, if
  /dev/tty could not be opened (i.e. if running from cron)
- mixed use of /dev/tty and stdin for prompt and reading of the result
1998-07-12 09:07:36 +00:00
Dag-Erling Smørgrav
b9dd99f2f5 Recognize long month names in addition to short ones.
PR:		bin/7228
Submitted by:	Archie Cobbs <archie@whistle.com>
1998-07-09 22:51:59 +00:00
Guy Helmer
932634cdff Security and minor functionality changes based on OpenBSD msgs.c:
tmp file (mktemp changed to mkstemp), saved POSIX uids, buffer overflow,
and use PAGER environment variable if set.
Obtained from: OpenBSD
1998-07-09 14:06:54 +00:00
John Polstra
2f278eac1f Add a "-k" option, to specify that the lock file should be kept
rather than removed.

Submitted by:	Nick Barnes <Nick.Barnes@pobox.com>
1998-07-08 05:29:05 +00:00
Bruce Evans
42ff1492ee Use the installed version of mklocale for `make all'. It is now
bootstrapped by `make world'.  The version just built in ".."
normally won't work if the target system is not binary compatible.

Don't build or install anything if _BUILD_TOOLS is defined.  Then
we only want to build and install the mklocale binary, but the layout
of the mklocale tree forces recursing to mklocale/data for at least
the obj target even when _BUILD_TOOLS is defined.
1998-07-07 23:05:59 +00:00
Bruce Evans
563030afa1 Use the installed version of colldef for `make all'. It is now
bootstrapped by `make world'.  The version just built in ".."
normally won't work if the target system is not binary compatible.

Don't build or install anything if _BUILD_TOOLS is defined.  Then
we only want to build and install the colldef binary, but the layout
of the colldef tree forces recursing to colldef/data for at least
the obj target even when _BUILD_TOOLS is defined.
1998-07-07 23:04:25 +00:00
Jordan K. Hubbard
df1da01e0e Previous fix didn't make it past the Bruce filter. Clean up
non-KNF indentation and use err() properly.
1998-07-07 22:20:50 +00:00
Jordan K. Hubbard
0b1778905f msgs -p (and maybe other flags, too) gives misleading error messages,
especially on a new install, where /var/msgs/bounds doesn't exist.  I
        moved my bounds file out of the way to create this before and after
        on a quick 'n' dirty hack, which is probably the 23rd best way to do it,
        but it works:

PR:		6963
Submitted by:	Matthew Fuller <fullermd@mortis.futuresouth.com>
1998-07-07 12:02:59 +00:00
Bruce Evans
81a4459b5f Fixed type mismatches which were fatal when sizeof(long) > sizeof(int). 1998-07-06 22:08:00 +00:00
Bruce Evans
29415d80c2 Fixed classic sign extension bug `-(long)sizeof(foo)'.
Fixed the type of the string table size variable to match its use
(assuming that int32_t is 4 bytes and other unportable things).
bfd uses `unsigned char string_chars[BYTES_IN_WORD]', where
BYTES_IN_WORD can be 4, 8, or perhaps even 2 or 3, but it is
assumed to be precisely 4 bytes here.

Fixed printf format errors (don't assume that n_value in struct
n_list has type u_long, since it should have size BYTES_IN_WORD
and longs may be longer than words).
1998-07-06 21:45:12 +00:00
Bruce Evans
22694ebad5 Fixed printf format errors. 1998-07-06 21:01:54 +00:00
Bruce Evans
b45d09e830 Fixed type mismatches and style bugs in rev.1.30. 1998-07-06 20:52:08 +00:00
Tim Vanderhoek
7b31132c01 Fix bug from last commit: don't SEGV when reading as part of a pipe. 1998-07-04 01:22:07 +00:00
Tim Vanderhoek
2c4d94647c Use '-e' when viewing helpfile. 1998-07-03 23:01:33 +00:00
Tim Vanderhoek
36c29707b7 Prevent recursive help)elp)elping. 1998-07-03 17:12:10 +00:00
Søren Schmidt
66fa510625 Add missing ')'..
Doesn't anybody TEST code before committing....

This is the X'th time these laste couble of days...
1998-07-02 14:07:31 +00:00
Warner Losh
50e040d480 o Be more careful about using sprintf and strcpy. 1998-07-02 05:23:55 +00:00
Warner Losh
f15b742fdd o typo: will -> with 1998-07-02 05:21:36 +00:00
Warner Losh
cf0ad320e4 o fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bit
off_t.

This fixed the primitive 'copy protection' that the program I'm using.
1998-07-02 05:12:53 +00:00
Warner Losh
e1603e453d Kill printf accidentally committed 1998-07-01 23:31:53 +00:00
Warner Losh
39a1ad8654 Make sourcer's main program execute in X mode.
o Make the dos emulation treat c: and C: the same way.  Sourcer was doing
  a chdir("c:\\") rather than a chdir("C:\\");
o use drlton() in all places where we used to use -'A' so that we're always
  case independent.
o use drntol() in all places where we used to use + 'A' for similar reasons
1998-07-01 19:56:17 +00:00
Warner Losh
4e47f901f9 Implement int 2f ax=1600, which is, according to the Interrupt List,
used to check to see if windows 3.x if running.  We always return 0,
which means that neither Windows 3.x nor Windows/386 2.x is running.  It
also means, btw, that XMS version 1 isn't installed, which is true since
we don't implement that either.
1998-06-30 22:23:06 +00:00
Bruce Evans
a8c09dabbd Don't assume that time_t is long. 1998-06-29 17:25:46 +00:00
Bruce Evans
375557fcad Don't assume that time_t is long. 1998-06-29 17:06:00 +00:00
Bruce Evans
39470616b1 Don't assume that time_t is long. 1998-06-29 15:52:49 +00:00
Steve Price
d79e6e1601 Fix a few typos.
PR:		7092
Submitted by:	Kauzo Horikawa <h-horik@yk.rim.or.jp>
1998-06-27 20:32:41 +00:00
Robert Nordier
d41e2bb8a1 Correct typo: loosing --> losing 1998-06-26 14:25:18 +00:00
Guy Helmer
a57a22d25f Update vmstat portion of man page to reflect the statistics currently
shown by systat's vmstat display.
PR:		docs/3764
1998-06-25 22:04:48 +00:00
Peter Wemm
7288c50357 Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth) 1998-06-23 21:58:41 +00:00
Guy Helmer
e063c51e70 Minor grammar and punctuation cleanup.
Reference /etc/periodic/daily instead of /etc/crontab.
1998-06-23 16:52:59 +00:00
Dmitrij Tejblum
8fbaa58a29 Make value of SIZE accurate.
Obtained from:	ps(1)
1998-06-21 18:00:34 +00:00
Wolfram Schneider
a2f2188044 Create a save TMPDIR using `mktemp -d'. 1998-06-18 09:26:22 +00:00
Joseph Koshy
a3e5bc4fb5 Remove compile time dependency on ARG_MAX.
This fix only removes the dependency on compile time constants.  The code
has other (old) problems that need to be addressed.

PR: 1791
Reviewed-by: bde, tegge
1998-06-17 12:58:43 +00:00
Steve Price
a84507eabd sprintf -> snprintf to avoid potential buffer overflow.
PR:		6907
Submitted by:	Archie Cobbs <archie@whistle.com>
1998-06-14 16:03:40 +00:00
Steve Price
a05ac887c5 Correct the description of the last four fields.
PR:		6926
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-13 19:14:14 +00:00
Peter Wemm
b9305a0668 Make -V expand it's arguments. This means that instead of 'make -V OBJS'
printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g}
it will instead print the actual ${OBJS} value.
1998-06-13 11:55:57 +00:00
Peter Wemm
0cb730b0dc "./strip maybe_stripped" doesn't work too well if maybe_stripped is an
elf executable..
1998-06-12 16:22:25 +00:00
Peter Wemm
5307b90005 The doscmd build process and doscmd.kernel loader is very a.out specific
and doesn't fly too well on in an elf enviroment yet.
1998-06-12 16:18:27 +00:00
Peter Wemm
9ec49abd00 #include <arpa/inet.h> 1998-06-12 14:18:33 +00:00