Commit Graph

50703 Commits

Author SHA1 Message Date
des
a5b3701c0f Restore the old semantics of deleting the output file when interrupted.
Some people liked this and some didn't, so POLA won.
2000-07-26 07:28:33 +00:00
jdp
eb23e93e22 If a directory is world-writable or is not owned by root, skip it
and emit a warning.  This is a security measure since ldconfig
influences the shared libraries used by all programs.

I think the check should be made even more stringent by also
ignoring group-writable directories.  I will make that change soon
unless we encounter a good reason not to do it.

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>
2000-07-26 04:47:17 +00:00
jhb
3162da244f Take a lesson from picoBSD: symlink /bin and /sbin to /stand in the mfsroot
and install dhclient-script in stand/.
2000-07-26 04:28:21 +00:00
jdp
6d22a67f30 Revamp the code that calls shared libraries' init and fini functions.
Formerly the init functions were called in the opposite of the
order in which libraries were loaded, and libraries were loaded
according to a breadth-first traversal of the dependency graph.
That ordering came from SVR4.0, and it was easy to implement but
not always sensible.

Now we do a depth-first walk over the dependency graph and call
the init functions in an order such that each shared object's needed
objects are initialized before the shared object itself.  At the
same time we build a list of finalization (fini) functions in the
opposite order, to guarantee correct C++ destructor ordering whenever
possible.  (It may not be possible if dlopen and dlclose are used
in strange ways, but we come as close as one can come.)

The need for this renovation has become apparent as more programs
have started using multithreading.  The multithreaded C library
libc_r requires initialization, whereas the standard libc does not.
Since virtually every other object depends on the C library, it is
important that it get initialized first.
2000-07-26 04:24:40 +00:00
jhb
733921025e Bump an upper limit test so the xterm termcap selection actually works. 2000-07-26 02:51:47 +00:00
jhb
eef73e3576 Since the XFree86 port builds and installs some extras not found in the
3.3.6 base distribution, some of the packing lists needed hacking so that
they would pack up everything in the right place.  As a result, go ahead and
just add a directory for the packing lists.  These are the i386 packing lists.
2000-07-26 01:39:22 +00:00
jhb
c2510a7022 This script uses the other scripts in this directory to build XFree86
3.3.6 in a work directory and package it up into a set of tarballs that
can be used in a release.
2000-07-26 01:37:23 +00:00
jhb
eeae76a3af This script takes the packing lists we generated earlier and generates the
corresponding tarball from it.  It uses the packing list name to determine
the tarball name.  If the tarball name ends in 'gz', it will be gzipped, if
it ends in 'bz', it will be bzip2'd.
2000-07-26 01:36:22 +00:00
jhb
ec698a087f This script uses the XFree86 and XFree86-contrib ports to build and install
XFree86 3.3.6 into a scratch directory.  The patch file patches the XFree86
port to not ask any questions and to actually be able to install some things
like the i810 server link kit bits.  If you want XF86Setup to build, you
should have tk80 (not tk82) installed.  If you want to XF86Setup_jp to build
you need to have ja-tk80 installed.
2000-07-26 01:31:47 +00:00
jhb
43084421ff This script uses an existing set of XFree86 distribution tarballs to
generate a packing list for each tarball.  We can later use these
packing lists to roll our own tarballs.
2000-07-26 01:27:24 +00:00
n_hibma
937491d67d Remove the preliminary support for ATAPI. It does not work and breaks
(physically) IBM Microdrives.
2000-07-26 01:01:01 +00:00
obrien
d7b81694f5 Don't give the DEC Alpha user the chance to install the X servers that are
non-existant on non-i386 platforms.
2000-07-25 23:54:35 +00:00
nsayer
0b4affe7c4 Change to support vmware... SIOCSIFADDR on the character device
sets the (notional) "remote" ethernet address.

Submitted by:	vsilyaev@mindspring.com
2000-07-25 23:50:30 +00:00
jhb
ea75f4ac9e Use a much saner method of locating the release directory on an FTP server.
Now, if a release is specified, instead of just looking for a directory
with the same name as the release, try several possible directories (each
suffixed with the release name) relative to the base directory including
".", "releases/MACHINE", "snapshots/MACHINE", and each of those prefixed
with "pub/FreeBSD/".  This will allow us to remove the evil symlinks under
pub/FreeBSD/releases/MACHINE/ to the snapshots on the ftp site.
2000-07-25 23:22:16 +00:00
jhb
28651e0837 style(9)'ify all the function prototypes by protecting all the parameter
names with a leading underscore.  Notably, the 'stat' parameter in the
kld_stat() prototype conflicted with stat() and generated a BDE warning.

Approved by:	peter
2000-07-25 22:58:52 +00:00
jhb
6ef266d160 Grrr, build a non-crypto version of tcpdump to stick in the bin distribution.
Submitted by:	kris
2000-07-25 22:30:09 +00:00
markm
04e700b1e6 Forgot from last commit:
o if the device is being written to, and the user is not root, or
  the securelevel is greater than 0, then fail with EPERM.
2000-07-25 21:22:17 +00:00
markm
76350337d1 o Fix a horrible bug where small reads (< 8 bytes) would return the
wrong bytes.

o Improve the public interface; use void* instead of char* or u_int64_t
  to pass arbitrary data around.
Submitted by:	kris ("horrible bug")
2000-07-25 21:18:47 +00:00
gibbs
b185ee0ca3 Properly handle the case where the residual is 0, but, as the target
didn't bother to send a saved data pointers after the last transfer,
is not recorded in sgptr.  This was only a problem if the target
reported non-zero status as we always check the residual in that case.
2000-07-25 20:40:34 +00:00
imp
679331023e Add -q. this will cause the warning messages about missing
directories to not be printed.  This is from OpenBSD (and I think
NetBSD also) and makes our mtree more compatible with other BSDs.
This makes cross compilation easier than it was before.  Other changes
will be needed to allow NetBSD or OpenBSD to cross build on FreeBSD,
but this is a start.

Reviewed by: andrey
Obtained from: OpenBSD
Concentric Red Circles by: My own stupidity
2000-07-25 19:05:09 +00:00
archie
4eb215e131 Followup to previous commit..
- It's worthwhile to use untimeout(9), even though we must still protect
  against "false" timeouts, because most of the time it saves having to
  handle a dummy timeout event.
- Slight tweaks to the delayed ACK algorithm paramters.
2000-07-25 18:57:20 +00:00
dillon
48adcd61e9 MFC 1.11.2.3 from -stable to -current 2000-07-25 18:50:22 +00:00
mckusick
e7f2e618d2 Now that buffer locks can be recursive, we need to delete the panics
that complain about them.

Obtained from:	Brian Fundakowski Feldman <green@FreeBSD.org>
2000-07-25 18:28:46 +00:00
marko
bac3d432ce Committed, Thanks!!
PR:		20108
Submitted by:	Doug Lee
2000-07-25 16:49:48 +00:00
asmodai
85fbbe41c1 Document IPFILTER_DEFAULT_BLOCK.
PR:		20075
Submitted by:	Arjan de Vet <Arjan.deVet@adv.iae.nl>
2000-07-25 15:40:19 +00:00
des
515e5bdd5d If the server reports the size as 0, treat it as unknown. This works around
a bug in some ftp servers (most notably ftp.vmunix.com) which report the
size of a file correctly in ascii mode, but report it as 0 in binary mode.

Reported by:	asmodai

Also remove an unneeded initialization.
2000-07-25 14:41:02 +00:00
wilko
cbba2156df sync with the RELENG_4 HARDWARE.TXT 2000-07-25 13:15:54 +00:00
sheldonh
f632918f01 Fix a bug introduced in rev 1.8, where special files ended up
being treated like regular files because of missing braces.

PR:		20143
2000-07-25 13:01:34 +00:00
des
3a09dd575f Centralize the default port finding code.
Work around YA Apache bug: don't send port in Host: header if it's the
default port.
2000-07-25 11:45:38 +00:00
ume
80a3827868 Workaround to avoid panic during detach pccard nic. 2000-07-25 11:21:01 +00:00
billf
cfb76cbaf1 s%LINT%NOTES%g 2000-07-25 08:25:48 +00:00
jkh
ca7a22152c Actually make the date printing hack work. 2000-07-25 08:16:10 +00:00
jkh
7f1157b5e0 Restore the screen after possibly spamming it.
Reported by:	Brian J. McGovern <mcgovern@spoon.beta.com>
2000-07-25 07:38:22 +00:00
ps
9830119bf1 kern_accf.c is now uipc_accf.c after repo copy. 2000-07-25 07:32:15 +00:00
mckusick
3574b288ff Do not need vrele(nd.ni_vp) as that is done by NDFREE(&nd, 0);
Submitted by:	Peter Holm <pho@freebsd.org>
2000-07-25 05:38:54 +00:00
mckusick
e6ede683c0 Add stub for softdep_flushworklist() so that kernels compiled
without the SOFTUPDATES option will load correctly.

Obtained from:	John Baldwin <jhb@bsdi.com>
2000-07-25 05:28:59 +00:00
mckusick
de0b7f87c8 Eliminate periodic 'mfs_badop[vop_getwritemount] = 45' messages.
Submitted by:	Sheldon Hearn <sheldonh@uunet.co.za>
2000-07-25 05:11:57 +00:00
rwatson
cec293382a o Add missing function return types from capability syscall call stubs,
fix compiler warning.

Submitted by:	jake
2000-07-25 03:37:36 +00:00
kris
dae898cf94 Don't build crypto-enabled telnetd if NO_OPENSSL is defined, since it
attempts to link against libcrypto.
2000-07-25 01:11:17 +00:00
archie
ec9094a01d Several fixes:
- Fix slowness when operating over fast connections, where the timeout(9)
  granularity is on the same order of magnitude as the round trip time.
  timeout(9) can happen up to 1 tick early, which was causing receive
  ack timeouts to happen too early, causing bogus "lost" packets.
- Increase the local time counter to 64 bits to avoid roll-over.
- Keep statistics on memory allocation failures.
- Add a new option to always include the ack when sending data packets.
  Might be useful in high packet loss situations. Might not.
2000-07-25 00:23:19 +00:00
gibbs
66d1b1f763 aic7xxx.c:
Correct the BUILD_TCL macro.  It was placing the target id
	in the wrong bits.  This was only an issue for adapters that
	do not perform SCB paging (aha-3940AUW for instance).

	Don't bother inlining ahc_index_busy_tcl.  It is never
	used in a performance critical path and is a bit chunky.

	Correct ahc_index_busy_tcl to deal with "busy target tables"
	embedded in the latter half of 64byte SCBs.

	Don't initialize the busy target table to its empty state
	until after we have finished extracting configuration
	information from chip SRAM.  In the common case of using
	16 bytes of chip SRAM to do untagged target lookups,
	we were trashing the last 8 targets configuration data.
	(actually only target 8 because of the bug in the
	BUILD_TCL macro).

	Cram the "bus reset delivered" message back under bootverbose.

	Fix the cleanup of the SCB busy target table when aborting
	commands.  If the lun is wildcarded, we must loop through
	all possible luns.

aic7xxx.h:
	Only bother supporting 64 luns right now.  It doesn't seem
	like either this driver or any peripherals will be doing
	information unit transfers (where the lun number is a
	32 bit integer) any time soon.

aic7xxx.seq:
	Fix support for the aic7895.  We must flush the data
	FIFO if performing a manual transfer that is not
	a multiple of 8 bytes.  We were doing this quite
	regularly for embedded cdbs.

	Manaually flush the fifo on earlier adapters when
	dealing with embedded cdbs too.  We were stuffing
	the FIFO with 16 bytes instead, but triggering
	the flush is more efficient and allows us to
	remove two instructions from the "copy_to_fifo"
	routine.
2000-07-24 22:27:40 +00:00
sheldonh
465e918dbe Rev 1.4 shut up warnings about uninitialized (not unused) variables. 2000-07-24 21:54:52 +00:00
sheldonh
2415ea2678 Avoid the need to capitalize an extraneous argument to the Nm macro
and be more precise about the handling of command-line arguments.

Reviewed by:	ps
2000-07-24 21:53:04 +00:00
sheldonh
afa0c15135 Simplify some conditionals. 2000-07-24 21:50:38 +00:00
sheldonh
6bef5801c6 Shut an optimizing compiler up about possibly (but never) unused
variables.

Submitted by:	charnier
2000-07-24 21:46:12 +00:00
iwasaki
3d84564328 Fix a bug so that we have correct number of pccard instances in pcic_attach().
pcic_attach() got a wrong pointer to pcic_slots since device haven't
set correct unit number yet, so always accessed elements of pcic_slots
which belong to pcic0 (unit number 0).

Now we set unit number to pcic device first, then access to pcic_slots
based on the unit number we've just set.
2000-07-24 21:44:00 +00:00
ken
6ee135b629 Allocate major number 153 for the character device interface for the ti(4)
driver.
2000-07-24 21:21:03 +00:00
obrien
95d3a57757 Back out rev 1.12 (safe quoting) until I have a chance to rework the change
and get wider testing.  Too many people are having problems with the
script in its current form.
2000-07-24 20:50:18 +00:00
ps
33d1bb6c50 Typos and spelling fixes.
Submitted by:	charnier
2000-07-24 20:35:19 +00:00
charnier
93e7fa0a8d Start enumerate option with `The following options are available' like
most of the utilities.
.Nm prog -> .Nm
Remove unused include
Make use of getopt() instead of parsing params by hand.
2000-07-24 20:22:49 +00:00