Commit Graph

2762 Commits

Author SHA1 Message Date
dfr
96e043db3a From the submitter:
I found the reason why f77 so offen dies on alpha. Here is a fix.
"Const" is a union of int and double.
If nelt->constblock.Const.ci > 0 then it trys to evaluate it as double
and floating point exception occurs.

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Obtained from: NetBSD
1999-01-10 17:22:49 +00:00
peter
d66a1cb030 Fix the annoying bug introduced in rev 1.18 that caused each line to be
one character shorter than the previous in a stairstep fashion when long
idle times were involved.

A couple of nits:
- spelling/typo fix.
- some of the easier style(9) fixes where it was bothering me.
- Handle 100+ days idle time (ha!).  Probably the right thing to do is
  to do a snprintf into a buffer and strlen the result rather than doing
  hackery on magic numbers.

XXX the wide (and mostly unused) username and tty columns annoy me since
it it could be used for more useful information for the command. We should
actually count the largest username and tty and adjust like 'ls -l' does.
1999-01-10 15:28:37 +00:00
obrien
5ef1fe5a74 uptime display more in style with original code 1999-01-09 20:25:02 +00:00
obrien
50d963beb7 revert to rev 1.29. (floppy drives will be gotten rid of another way) 1999-01-09 06:03:54 +00:00
imp
b8e447f74e Add Hitachi SH-3, SH-4, ARM, PPC, 68k PA-ARCH and a few others to PE
file types.  Also add bit interpretation from NetBSD to give more
details about the file.
1999-01-09 00:43:27 +00:00
jkh
670683fcb9 Don't allow pointer underrun in loop.
Spotted by:	John W. DeBoskey <jwd@unx.sas.com>
1999-01-08 18:37:34 +00:00
danny
7244b9f847 Merge from 2_2 man page change. 1999-01-05 10:13:54 +00:00
danny
b99ec91e28 PR: 9323
Submitted by:	ishisone@sra.co.jp
Make touch handle years 2000-2038 in the obsoleted format, rather
than 1902-1969 as was previously the case with two digit year spec.
1999-01-05 09:58:02 +00:00
bde
6aac368054 Backed out previous commit. The bug was in rev.1.49 of src/Makefile.inc1,
so it can't be completely fixed here.  Putting -I paths to the current
headers in CFLAGS is more likely to break things than fix them, since
there is no reason why current headers should work with old libraries.
Other Makefiles that do this may only work because they are not used early
in the bootstrap.  However, the usual problem with errno being defined in
terms of a nonexistent library doesn't seem to occur here, since we don't
reference errno.
1999-01-04 12:36:23 +00:00
chuckr
fd81691f6b Fix a build problem when upgrading from 9 month old sources. There's
a circular dependency problem, wherein rpcgen depends on the latest
includes, but those same includes depend on rpcgen to build
include/rpcsvc.  This was causing the build or librpcsvc to fail
(like I said, only on upgrades of 9 month old sources).

If there's stylistic problems, tell me, I'll learn and fix them.
I did a buildworld with this, it should be safe.
1999-01-04 03:14:48 +00:00
eivind
c48f512ac8 Make the timeout handler log any failed logins, to make sure failed
logins get logged.
1999-01-03 23:39:33 +00:00
billf
f2bdd08367 Typo - "the -delete primary do not.." -> "the -delete primary does not.."
PR:		docs/9255
Submitted by:	Christian Weisgerber <naddy@bigeye.rhein-neckar.de>
1998-12-31 16:21:51 +00:00
obrien
3f431df8ec Add copyright and RCS/CVS Id.
Noticed by:	ken
1998-12-27 21:44:03 +00:00
obrien
b839231415 Update section on DK_NDRIVES (which was removed with CAM), and explain
relation to devstat(3)/(9).

Submitted-by:	ken@freebsd.org
1998-12-27 21:38:09 +00:00
obrien
ab302cd2cd Turn the compile time option into a run-time option.
You can now use the `want_fd' command in the vmstat display.

Suggested by:	grog
1998-12-27 17:59:42 +00:00
obrien
60e9f49335 Don't waste precious space on showing the performance of fdX.
(can get old behavior with -DWANT_FD)
1998-12-27 08:15:37 +00:00
dillon
6a839215a1 No __profname bozoness, no strstr() bozoness... test argv[0] against
"uptime" the right way.  Sheesh.
1998-12-24 23:27:33 +00:00
steve
1c3fec22d8 Since argv is in scope, use argv[0] instead of __progname.
Suggested by:	bde
1998-12-24 18:20:58 +00:00
mjacob
247c297d5a Print out latched cdb's correlated to latched errors in MTIOCERRSTAT case.
Complete the addition of the setmark support
(from Martin.Birgmeier@aon.at).
1998-12-22 17:28:25 +00:00
msmith
131312c0d6 Flush the output file before exiting; short-lived programs don't even fill
the stdio buffer.
1998-12-21 06:34:50 +00:00
foxfair
2ab2dd56dd Fixed typo. 1998-12-20 02:52:30 +00:00
mjacob
d9c216a344 add in new errstat subcommand (MTIOCSERRSTAT) 1998-12-19 20:23:37 +00:00
mjacob
e432d65bec Made changes suggested by bruce, plus a couple of others which made -Wall work.
Obtained from:bde@freebsd.org
1998-12-18 18:16:35 +00:00
des
ab07ab9139 Unbreak K&R support, and generate code that works in K&R C as well as
ANSI C no matter what language is specified.
1998-12-18 14:29:51 +00:00
mjacob
9007253495 1) Clarify that a weof count of zero is allowed (flush buffers).
2) Add in the set of {sethpos,setspos,rdhpos,rdspos) commands to implement the
Hardware && SCSI Logical Block position ioctls.
1998-12-18 02:02:20 +00:00
imp
3d6d60242a Free memory from setmode.
Obtained from: OpenBSD
1998-12-16 04:51:27 +00:00
imp
16794c966e Return memory from setmode.
Obtained from: OpenBSD
1998-12-16 04:50:46 +00:00
peter
0be4cef38e The perlinterp option builds and works, but I'm not so sure how it'll go
in a release or buildworld environment, so I'll leave it disabled.
1998-12-16 04:02:56 +00:00
des
78b34160d2 Generate a prototype for initialize_XXXX_error_table() when the language
is set to C.
1998-12-15 12:20:27 +00:00
billf
cf6ada6c38 Add "-N" option to supress reverse name lookup.
This comes in really handy when you're telneting the broken DNS server by
IP.

PR:		bin/8698
1998-12-14 22:40:39 +00:00
dillon
f1f5e5024a Added support for DIS 8859-15 based locales using patch
from Kaleb.

Obtained from: Kaleb Keithley <kaleb@ics.com>
1998-12-14 02:59:15 +00:00
steve
0021e2b7af Change the wording to reflect that only the first character of the two
arguments to changequote are significant.

PR:		8282
1998-12-13 23:15:50 +00:00
bde
4e37d54d16 Fixed disordering of cross references in previous commit. 1998-12-13 15:32:26 +00:00
dillon
a9cca9c815 PR: bin/9016
Fix bug with od/hd/hexdump. "*" lines are supposed to indicate one or
    duplicates of the previous line, but a small file with less then 16
    characters of zeros in it will be falsy identified as a repeat of
    the (non-existant) previous line.  i.e. the first line of output winds
    up being a "*".  Added a bit of code to handle the degenerate 'there is
    no previous line' case for the first line.
1998-12-13 06:40:18 +00:00
dillon
eb1a8914ce PR: bin/8680
Minor adjustments to rwall.c.  Increased the size of a couple of char
    arrays and replaced a potentially dangeerous strcpy/strcat with snprintf().
1998-12-13 03:44:19 +00:00
dillon
762deff9e1 PR: bin/8680
Increase the size of a number of buffers and replace strcpy/strcat/sprintf
    with snprintf().  There was a minor and possibly not exploitable security
    hole related to one sprintf().
1998-12-13 03:42:51 +00:00
dillon
776cf0ace3 Add reference to login.conf(5) 1998-12-13 02:48:43 +00:00
dillon
c3a1aa3df5 PR: docs/9045
Update chpass(1) manual page.  Change the definition of the class
    field and also reorganize the field list to match that of the
    /etc/master.passwd file, to avoid confusion.
1998-12-13 02:47:00 +00:00
eivind
0e52448bcc Better error checking. 1998-12-09 20:49:20 +00:00
archie
e11c48f4b1 Fix a new bug introduced by the previous bug fix 1998-12-08 21:29:22 +00:00
cracauer
c4f0cd91df Add -s option, just report size of file that would be fetched.
Reviewed by:	-current list
1998-12-08 13:00:49 +00:00
bde
c586f2866a Fixed warnx format errors in printf and csh, and snprintf format errors
in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx.
(The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy
args.)
1998-12-07 12:14:04 +00:00
archie
70bef8d209 Fix brokenness compiling "s/pat/subst/" when length of subst is >= 4090 chars.
PR:		bin/7939
1998-12-07 05:35:54 +00:00
archie
5fa68e57c0 Compile -Wall 1998-12-07 05:33:39 +00:00
archie
167c036e91 Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
archie
731caa6ae4 Eliminate compiler warnings from -Wall 1998-12-06 07:42:09 +00:00
archie
58d8b6ab3e Eliminate compiler warnings from -Wall 1998-12-06 07:36:44 +00:00
dillon
0cb646b080 Obtained from: "Jan B. Koum " <jkb@best.com>
Add a reference to pam(8) in the login(1) and login.access(5) manual
    pages.
1998-12-01 17:05:08 +00:00
billf
7c2a2707c4 We use login.conf, not login.cap
PR:		doc/8897
Submitted by:	Jonathan Hanna <pangolin@home.com>
1998-11-30 22:41:58 +00:00
wosch
a42ed30fc8 Set TMPDIR to /tmp
Use the new find option -s for sorted output.
Remove the temp directory in trap.
1998-11-29 14:46:35 +00:00
pds
e5a067a5c5 Described the search path Make uses to find makefiles. 1998-11-29 13:46:39 +00:00
bde
584f2f4b8f Fixed style bugs in previous commit. 1998-11-29 12:17:09 +00:00
bde
686e5f3db2 Fixed English in previous commit. Clarify "lexicographical order".
Don't format paragraphs manually (new sentences not beginning on new
lines give hard-formatted line breaks).
1998-11-29 12:00:06 +00:00
bde
9d5546fa95 Fixed my English fixes. 1998-11-29 11:34:30 +00:00
bde
767b0be6c5 Fixed style bugs and English in previous commit. 1998-11-29 11:11:07 +00:00
bde
095dc8ca5d Fixed disorder and and usage message. Improved English.
Broken in:	previous commit
1998-11-29 10:41:01 +00:00
bde
40847d6be1 Fixed disordering in previous commit. 1998-11-29 10:08:27 +00:00
wosch
27d1e786a6 Set TMPDIR to /tmp
Remove the temp directory in trap.
Replace the buggy awk script with a correct perl script.

Don't make a copy of the input data anymore if the input is already
sorted (option -presort). This scheme avoid large temporary files in
/tmp.
1998-11-29 00:59:20 +00:00
wosch
f14200ee15 Recommended TMPDIR is now /tmp (undo rev 1.6) 1998-11-29 00:57:03 +00:00
wosch
d13a028d3d 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
bde
1c6d286a62 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
dfr
68f5aa320d Port top to the alpha.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-11-25 09:45:28 +00:00
jdp
105a91137f 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
jdp
37a1ff186f 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
jkoshy
04eb32a847 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
ken
a75739e4d3 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
bde
c097792724 Fixed missing 'v' in usage message. 1998-11-15 05:55:58 +00:00
bde
c66126f4eb 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
obrien
0fe57f402d New file formats.
Obtained from:	NetBSD-current/src/usr.bin/file/magdir
1998-11-15 03:35:10 +00:00
obrien
817362682f Additional file formats.
Obtained from:	NetBSD-current/src/usr.bin/file/magdir/msdos
1998-11-15 03:34:31 +00:00
dg
4d7662ab34 Added a -v (verbose) option and hid multi-job file banner generation
behind it.
1998-11-14 16:15:04 +00:00
jdp
f8dcb23dba 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
jdp
9ac805c824 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
jdp
f42dae09fb Fix a const-related compiler warning. 1998-11-11 01:53:12 +00:00
bde
3a805c89f4 Fixed disorder. 1998-11-10 12:19:26 +00:00
dima
0ba40b32fa Reenable fstat for alpha. 1998-11-09 11:08:48 +00:00
dima
346ad67e3c Reenable systat/vmstat for alpha. 1998-11-09 10:52:43 +00:00
steve
85139e6fc1 Do a better job of determining if we were called as uptime(1).
PR:		8593
1998-11-09 01:19:30 +00:00
des
34ddce5767 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
gpalmer
2a9cd56051 dig, dnsquery & host seem to work on the alpha now 1998-11-08 12:37:30 +00:00
rnordier
3950d98847 Add missing '\n'; remove redundant 'h' case in getopt switch. 1998-11-05 07:24:21 +00:00
rnordier
9f8e720777 Add -c option to usage string.
PR:           8568
Submitted by: Ryan Younce <ryany@pobox.com>
1998-11-05 07:18:41 +00:00
joerg
55bc1d5350 Include `enigma' into the list of usr.bin programs. 1998-11-02 11:01:38 +00:00
jdp
0ad104691f Fix errors detected by -Wformat. 1998-11-01 06:35:36 +00:00
jdp
8bb5a3817f 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
52a3cc418d 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
0185a58913 This commit was generated by cvs2svn to compensate for changes in r40767,
which included commits to RCS files with non-trunk default branches.
1998-10-30 18:20:54 +00:00
joerg
24c8864d34 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
dg
49185b19a8 Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
jdp
5b35be6f12 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
fenner
1f7615e10a 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
obrien
30d20c2c11 Add manpage for objformat. This needs major word smithing. 1998-10-25 13:25:42 +00:00
bde
1f4dc65d17 Backout out previous commit. The bug was in the kernel. 1998-10-25 10:59:44 +00:00
msmith
b628626c22 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
msmith
81d90aa796 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
jdp
685952292c 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
bde
83d29b9bb2 Fixed gratuitous unformatting in rev.1.8. 1998-10-22 18:17:30 +00:00
bde
6e141e7972 Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.
1998-10-22 15:53:06 +00:00
torstenb
495233d391 oops, forgot to add his birthday 1998-10-22 07:56:22 +00:00
torstenb
4bd32f3200 Add Jon Postel's birth/death
PR: 8402
1998-10-22 07:40:05 +00:00
imp
ceebcabfd1 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
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