Commit Graph

2622 Commits

Author SHA1 Message Date
Andrzej Bialecki 11468b741a Add a compile knob to avoid using PAM code (login will use standard Unix
authentication only). This comes handy when you're tight on space.

Submitted by:	mostly John Baldwin <jobaldwi@vt.edu>
Reviewed by:	John D. Polstra <jdp@polstra.com>
1999-01-19 22:59:37 +00:00
Hidetoshi Shimokawa dd81f3b0a0 Replace 'long int' with 'int' for Alpha.
This change should have no effect on i386.

Pointed out by: Steve Kargl <sgk@troutmask.apl.washington.edu>

Quote from http://www.netlib.org/f2c/readme:

NOTE:   f2c.h defines several types, e.g., real, integer, doublereal.
        The definitions in f2c.h are suitable for most machines, but if
        your machine has sizeof(double) > 2*sizeof(long), you may need
        to adjust f2c.h appropriately.  f2c assumes
                sizeof(doublecomplex) = 2*sizeof(doublereal)
                sizeof(doublereal) = sizeof(complex)
                sizeof(doublereal) = 2*sizeof(real)
                sizeof(real) = sizeof(integer)
                sizeof(real) = sizeof(logical)
                sizeof(real) = 2*sizeof(shortint)
        EQUIVALENCEs may not be translated correctly if these
        assumptions are violated.

        On machines, such as those using a DEC Alpha processor, on
        which sizeof(short) == 2, sizeof(int) == sizeof(float) == 4,
        and sizeof(long) == sizeof(double) == 8, it suffices to
        modify f2c.h by removing the first occurrence of "long "
        on each line containing "long ", e.g., by issuing the
        commands
                mv f2c.h f2c.h0
                sed 's/long //' f2c.h0 >f2c.h
        On such machines, one can enable INTEGER*8 by uncommenting
        the typedef of longint in f2c.h, so it reads
                typedef long longint;
        by compiling libI77 with -DAllow_TYQUAD, and by adjusting
        libF77/makefile as described in libF77/README.
1999-01-19 06:48:44 +00:00
Bruce Evans 0b4cb69d67 Fixed breakage of `make checkdpadd' in previous commit.
Didn't fix related bogotification from moving the definitions of
DPADD and LDADD to here.  Setting these variables in a top-level
directory gives bogus dependencies in library subdirectories.
E.g., there is a dependency on `foo.so..' where the double dots
separate null shared library version numbers.

Set BINDIR properly by inheriting it from ../Makefile.inc.
1999-01-19 00:23:25 +00:00
Daniel O'Callaghan 9a578eb627 "19%02", tm.year -> "%d", tm.year+1900 1999-01-18 22:42:05 +00:00
Daniel O'Callaghan ea5cc207d2 Allow two digit years 1969-2068 1999-01-18 22:15:09 +00:00
Ollivier Robert bca92d96b8 Fix "make world" breakage because MT_RTABLE was still referenced here. 1999-01-18 12:40:44 +00:00
Hidetoshi Shimokawa 0e575b05a2 Update to Global-3.42. 1999-01-18 07:38:13 +00:00
Bill Fenner 67a451cc89 Don't use ip_mrtproto to determine whether multicast routing is in
the kernel; this was left over from the earlier protocol-dependent
 kernel multicast routing code.

Learn how to handle the malloc'd multicast routing table (instead of
 expecting it to be in mbufs)
1999-01-18 02:09:15 +00:00
Garrett Wollman 9caa4ddf6b Fix logic error in RFC 850 kluge. 1999-01-15 17:10:31 +00:00
Garrett Wollman c146843096 For RFC 850 dates received in HTTP responses, implement the century pivot
described in RFC 2068.  Include a reference to same in the manual page.
1999-01-15 16:56:22 +00:00
Jean-Marc Zucconi 34d8315bd9 Typo. 1999-01-15 02:38:33 +00:00
Hidetoshi Shimokawa 0b919713bb Allocate aligned memory according to sizeof(char *).
Approved by: jkh
Obtained from: NetBSD
1999-01-13 10:37:22 +00:00
Satoshi Asami 16ceea1b93 Move nologin from /etc to /var/run. This means one less file that has
to be written to /etc.

The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.

Reviewed by:	the committers list (actually an old version)
1999-01-11 09:07:42 +00:00
Doug Rabson f4dd1f4feb 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 Wemm 69b41093b5 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
David E. O'Brien a2641311ff uptime display more in style with original code 1999-01-09 20:25:02 +00:00
David E. O'Brien 154a13b5f8 revert to rev 1.29. (floppy drives will be gotten rid of another way) 1999-01-09 06:03:54 +00:00
Warner Losh 94a553c632 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
Jordan K. Hubbard f93b86166a Don't allow pointer underrun in loop.
Spotted by:	John W. DeBoskey <jwd@unx.sas.com>
1999-01-08 18:37:34 +00:00
Daniel O'Callaghan 25c4d00840 Merge from 2_2 man page change. 1999-01-05 10:13:54 +00:00
Daniel O'Callaghan 34c7ff495d 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
Bruce Evans 19d108e89e 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
Chuck Robey 9b294c6e32 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 Eklund b606e33cb8 Make the timeout handler log any failed logins, to make sure failed
logins get logged.
1999-01-03 23:39:33 +00:00
Bill Fumerola 56f7a84010 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
David E. O'Brien 587c729bb3 Add copyright and RCS/CVS Id.
Noticed by:	ken
1998-12-27 21:44:03 +00:00
David E. O'Brien d623448808 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
David E. O'Brien 4ae16510d1 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
David E. O'Brien 5647c79de5 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
Matthew Dillon a4f33f438d No __profname bozoness, no strstr() bozoness... test argv[0] against
"uptime" the right way.  Sheesh.
1998-12-24 23:27:33 +00:00
Steve Price 0d5ad2d7ff Since argv is in scope, use argv[0] instead of __progname.
Suggested by:	bde
1998-12-24 18:20:58 +00:00
Matt Jacob 2331285d76 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
Mike Smith dcbdc0b9b5 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 Hu 8e1c603056 Fixed typo. 1998-12-20 02:52:30 +00:00
Matt Jacob 9b37fcd2ea add in new errstat subcommand (MTIOCSERRSTAT) 1998-12-19 20:23:37 +00:00
Matt Jacob 5091642944 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
Dag-Erling Smørgrav d63c42d19f 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
Matt Jacob 69765472a3 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
Warner Losh 1202b72441 Free memory from setmode.
Obtained from: OpenBSD
1998-12-16 04:51:27 +00:00
Warner Losh 83268d4dbb Return memory from setmode.
Obtained from: OpenBSD
1998-12-16 04:50:46 +00:00
Peter Wemm 766e996f98 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
Dag-Erling Smørgrav 88c4d11dc7 Generate a prototype for initialize_XXXX_error_table() when the language
is set to C.
1998-12-15 12:20:27 +00:00
Bill Fumerola 60453219bd 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
Matthew Dillon ad7847141f 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 Price 4f3a383e26 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
Bruce Evans b5d2ebcc28 Fixed disordering of cross references in previous commit. 1998-12-13 15:32:26 +00:00
Matthew Dillon b001517f54 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
Matthew Dillon de7c546760 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
Matthew Dillon 98df703fe0 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
Matthew Dillon 4bb8e546c1 Add reference to login.conf(5) 1998-12-13 02:48:43 +00:00