Commit Graph

11893 Commits

Author SHA1 Message Date
Jordan K. Hubbard 2e41d87d6a Correct typos. "ubin usbin" instead of "subin susbin" 1996-01-16 05:15:20 +00:00
Jordan K. Hubbard 1ce11aadcc Guard against argument starvation.
Noted by:	aagero@aage.aage.priv.no
1996-01-16 02:09:23 +00:00
Satoshi Asami 293cc16dec Added Brian Clapper <bmc@telebase.com> for his contribution of Linux
`ls' port.  (Hey don't scream, he said he'll do some more ports!)
1996-01-15 23:57:59 +00:00
Stefan Eßer a294c82acc Back out patch 1.53. The problem report that had made me commit this
change turned out to have been caused by some other change, and the
patch should have had no effect at all (just made the code a little
longer).
1996-01-15 23:51:10 +00:00
Stefan Eßer 01996055ed Disable handshake timeout. Some devices don't send an ACK for several
seconds ...

Submitted by:	wolf
1996-01-15 23:16:39 +00:00
Poul-Henning Kamp 791d77e0dd Get rid of two and a half printf in the kernel.
Add more features to the one remaining to handle the job:
	+	signed quantity.
	#	alternate format
	-	left padding
	*	read width as next arg.
	n	numeric in (argument specified) default radix.

Fix the DDB debugger to use these.
Use vprintf in debug routine in pcvt.

The warnings from gcc may become more wrong and  intolerable because
of this.

Warning:  I have not checked the entire source for unsupported or
changed constructs, but generally belive that there are only a few.

Suggested by: bde
1996-01-15 22:41:03 +00:00
Poul-Henning Kamp 3eb50b2edd My wife is busy making me a new conical hat, so you don't need to
send any to me this time.  Commited an old copy of this files where
the tables were swapped.  Duh!.
1996-01-15 21:26:43 +00:00
Poul-Henning Kamp e95fbcfeb4 Soren called an said that I screwed up badly, so I backup until
I find out how... Sorry.
1996-01-15 21:12:50 +00:00
Nate Williams 7b3eb0017b The order of entries in the host file was reversed. It should have been
Internet address
official host name
aliases

Submitted by:	dkelly@tomcat1.tbe.com (David Kelly)
1996-01-15 19:09:09 +00:00
John Polstra d5489b0d8f Check the count in the first word of __CTOR_LIST__ before executing
the loop that invokes the static constructors.  That makes it safe
to link c++rt0.o into any shared library, even one that does not
have any static constructors.  Formerly, doing that would cause a
bus error.  If the library has no static constructors, __CTOR_LIST__
comes out as a simple 4-byte COMMON region, and it does not have
the usual NULL word that terminates the list of constructors.  This
caused the old code to "call" a garbage address via the non-existent
entry __CTOR_LIST__[1].

The analogous code that invokes the static destructors was already safe.

This change is fully backward-compatible.

Reviewed by:	dfr@render.com (Doug Rabson)
1996-01-15 17:53:25 +00:00
Poul-Henning Kamp 22d1e589b8 Remove some unused vars, use new hex2ascii macro. 1996-01-15 16:15:27 +00:00
Jordan K. Hubbard 9372c90cc2 Add an entry for MTA-3230 3.5" magneto-optical drives.
Submitted by:	jbryant@argus.flash.net
1996-01-15 13:17:52 +00:00
Poul-Henning Kamp 2898c294f4 Make bin2bcd and bcd2bin global macroes instead of having local
implementations all over the place.
1996-01-15 10:28:44 +00:00
David Greenman ae12cdda30 This driver really is for the Pro/100B and not for the Pro/100 (and in fact
doesn't even work with a Pro/100)...updated to reflect this.
1996-01-15 10:12:41 +00:00
Poul-Henning Kamp 77c17f5c65 Add the bcd <-> bin and hex -> ascii tables. 1996-01-15 10:03:49 +00:00
Mike Pritchard d1968b90c7 Fixed to not core dump if not enough arguments are given
with the +rec and -rec options.
1996-01-15 09:11:17 +00:00
Peter Wemm 9c437f50ee tidy up the domain name trimming code, and move it to a single place
rather than having the same bit of code duplicated in three places,
each with their own static copy of the host's local name.
1996-01-15 02:18:35 +00:00
Stefan Eßer 85cf6e3f7e Make the NCR driver on the boot floppy kernel not negotiate synch. SCSI
transfers for CDROM drives.
1996-01-15 00:10:15 +00:00
Peter Wemm cc63cd5663 A couple of changes of mine that I've been using for a while:
route.c: look up the netname as-is first before the shifted name. this
         makes a big speed difference, as the lookups are generally local
	 DNS.  The shifted names can be very wrong (there is still guessing
	 and fudging involved) and usually go remote, taking a long time
	 to fail.  If you have the RFC reccomended netnames in your reverse
	 lookups, this is even faster still.
main.c:  dont do a sethostent(1) - this is causing the resolver to use a
	 VC (tcp) connection to the resolver, which has more overheads and
	 is slower than the default UDP case.  This once made sense when
	 everything was based on text host tables.
1996-01-14 23:42:19 +00:00
Peter Wemm 05ddff6e30 Merge in Lite-2 changes. 1996-01-14 23:33:13 +00:00
Poul-Henning Kamp e717f3d8e9 Mount the disks we install on async, we might as well.
Saves a lot of time.
1996-01-14 21:48:57 +00:00
Bruce Evans 337def8963 Fixed an overflowing multiplication in vnstrategy() by replacing it with
the standard macro dbtob().  The non-B_PAGING case now works well enough
to run newfs on a 32GB virtual drive.

Fixed numerous bogus variable types and one overflowing multiplication
in the B_PAGING case of vnstrategy().  Swapping to virtual drives larger
than 2GB might work now.
1996-01-14 20:32:14 +00:00
Garrett Wollman 04ecd93b2a Correct reference to tcpdump. Someone should redo this page to use
mdoc macros.
1996-01-14 19:37:48 +00:00
Poul-Henning Kamp c66cda217a I belive this works now. 1996-01-14 19:10:16 +00:00
Bruce Evans 51ea8b57b8 Partially fixed negative and truncated "Avail" counts in df output.
This fixes PR943.

ffs/ffs_vfsops.c:
ffs_statfs() multiplied by (100 - minfree) as part of calculating the
minfree percentage (complemented in 100%), so with the standard minfree
of 8, it was broken for file systems of size >= 1TB/92 = 11GB.  Use the
standard freespace() macro instead.  This also fixes a rounding bug (the
"Avail" count was sometimes 1 too small).

ffs/* (not fixed):
The freespace() macro multiplies by minfree, so with the standard
minfree of 8, it is broken for file systems of size >= 1TB/8 = 128GB.
This bug is more serious since it affects block allocation.

ffs/ffs_alloc.c (not fixed):
Ordinary users are sometimes allowed to allocate 1 (partial) block
too many so that the "Avail" count goes negative.  E.g., if there is
1 fragment available and the file is fairly large, one more full
block is allocated.

df/df.c:
ufs_df() used/uses essentially the same code as ffs_statfs(), so it
had/has the same bugs.

ufs_df() gratuitously replaced "Avail" counts of < 0 by 0, so it
gave different results for non-mounted file systems in this case.
1996-01-14 18:55:09 +00:00
Joerg Wunsch f3bec209ec Bump the timeout in st_load() from 5 to 15 minutes. My Tandberg
TDC3620 takes 4.5 minutes to retenstion a QIC-250 cartridge, so the
5 minutes seem to be too tight.
1996-01-14 16:29:01 +00:00
Jordan K. Hubbard 3c3bc06e1c Don't try to swap to a disk that isn't selected. 1996-01-14 11:45:05 +00:00
Søren Schmidt 0de2e98fc2 Add linux_mknod so that it will do mkfifo if needed... 1996-01-14 10:59:58 +00:00
Justin T. Gibbs 581bb98709 Register our softc at attach time. I forgot to do this in my last commit,
causing a panic.
1996-01-14 02:19:42 +00:00
Poul-Henning Kamp a91fd1190d Shrink BOOTMFS kernel further. Make doFS.sh more intelligent.
boot4.flp should work fine as far as I can tell.
1996-01-13 23:31:46 +00:00
Poul-Henning Kamp 7c1156970a Document NFS_NOSERVER. 1996-01-13 23:30:10 +00:00
Poul-Henning Kamp 99cb299316 Add an option NFS_NOSERVER which saves 100K in the install kernel (or
any other kernel that uses it).  Use with option NFS.
1996-01-13 23:27:58 +00:00
Bruce Evans 56ee67a3ff Fixed renaming of private DEBUG macro. The previous revision missed
one case in asc.c and almost all cases in gsc.c.
1996-01-13 20:43:10 +00:00
Poul-Henning Kamp 994689822d Avoid bzero becomming a common symbol in all .o files. 1996-01-13 18:02:41 +00:00
Jordan K. Hubbard 4fab558b60 Return pointer to new hash node when search inserts it (e.g. there
was some datum given).
1996-01-13 14:25:04 +00:00
Peter Wemm 9f0361fe4e take the $ out of the $Id$ line - when I imported this I used -ko, but
that is conflicting with cvs-1.6's "cvs update -A" when run from freefall's
update jobs.
1996-01-13 13:21:28 +00:00
Joerg Wunsch 1637891abd Forgot to update the man page for the `retension' command. 1996-01-13 09:46:26 +00:00
Peter Wemm 4faad310d3 The last of the bind-4.9.3-REL resolver merges. 1996-01-13 09:03:58 +00:00
Satoshi Asami 6e0871974b Add "Wes Santee <wsantee@wsantee.oz.net>" for the tkHTML/wwwish distfile
disappearance report.
1996-01-13 07:53:08 +00:00
John Polstra 5a81ed9667 This release is a moderate restructuring of the dynamic linker.
It addresses a number of problems that were present in earlier
versions.

The calls to the "init" and "fini" functions of shared libraries
have been reordered, so that they are called in a strictly nested
fashion, as is required for C++ constructors and destructors.  In
addition, the "init" functions are called in better order relative
to each other.  That makes the system more tolerant of C++ programs
which depend on a library's being initialized before its clients.

The dynamic linker is now more tolerant of shared libraries in
which dependencies on other shared libraries are incompletely
recorded.

Cleanup in the event of errors has been improved throughout the
dynamic linker.  A number of memory leaks were eliminated.

The warning message for a shared library whose minor version number
is too old has been clarified.

The code dealing with the "ld.so.hints" file has been cleaned up.
A bug that caused the hints file to be unmapped incompletely has
been fixed.  A different bug that could potentially cause the hints
file to be mapped on top of a loaded object has been fixed.

The code that searches for shared libraries has been cleaned up.
The searching is now more compatible with that done by SunOS and
SVR4.  Also, some unnecessary and useless searches of both the
hints file and library directories have been eliminated.

Reviewed by:	nate@freebsd.org
1996-01-13 00:15:25 +00:00
John Polstra eb4a4eeb45 Split up the code so that a single directory can be searched, to
support some changes in the dynamic linker.  (This code is shared
by the dynamic linker.)

Reviewed by:	nate@freebsd.org
1996-01-13 00:14:53 +00:00
Garrett Wollman 0e7ace7ed9 This file doesn't belong in the source tree. If anywhere, it should
be in CVSROOT, or in some directory local to freefall.
1996-01-12 19:41:25 +00:00
Garrett Wollman 446d072be4 Kill another old TODO file. Can we agree that this sort of documentation
doesn't belong in the root of the source tree?
1996-01-12 19:40:06 +00:00
Bruce Evans f668341de4 Fixed handling of Feb 29 in resettodr(). 1996-01-12 17:33:12 +00:00
Joerg Wunsch a7710e485b Rename the `retens' command into `retension', to follow existing de-facto
standards.
1996-01-12 15:36:28 +00:00
Peter Wemm d8f19d9417 Make a little more effort to avoid touching certain generated files if
they were not changed.  This makes 'make depend' more useful.
1996-01-12 08:57:10 +00:00
Peter Wemm d007c60359 oops. I forgot to add the "[-U username]" option to the usage string. 1996-01-12 08:49:43 +00:00
Bill Paul 1fff226dba Update pointer to yppush.
(And now, on to rpc.yppasswdd...)
1996-01-12 07:07:18 +00:00
Bill Paul 434584a95a Import the new yppush.
This program does what the old one did, PLUS:

- Supports parallel jobs (like the SunOS yppush)
- Does everything in one proces instead of fork()ing off
  children processes as callback listeners (this is done
  using async socket I/O).
- Can be used to transmit maps to user-specified hosts.
- Has a much more verbose verbose option.
- Reuses existing code from ypserv and ypxfr.
- Uses some rpcgen-erated code as well.
- Isn't fattening. :)

Note that this is going in /usr/sbin rather than /usr/bin like
the old one. yppush is an administrative command it it's anything.
1996-01-12 07:03:33 +00:00
Bill Paul 7ece219762 Toss the old yppush into the attic. 1996-01-12 06:46:19 +00:00