Commit Graph

2662 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