]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoSync with sys/isa/fd.c revision 1.168.
nyan [Thu, 18 Nov 1999 11:34:26 +0000 (11:34 +0000)]
Sync with sys/isa/fd.c revision 1.168.

24 years agoSync with sys/i386/conf/Makefile.i386 revision up to 1.163.
nyan [Thu, 18 Nov 1999 11:26:45 +0000 (11:26 +0000)]
Sync with sys/i386/conf/Makefile.i386 revision up to 1.163.

24 years agoArgh, don't turn the IIR test on unless it's a pccard. These tests mess
peter [Thu, 18 Nov 1999 10:29:06 +0000 (10:29 +0000)]
Argh, don't turn the IIR test on unless it's a pccard.  These tests mess
up the subsequent probes.

24 years agoMake last commit bde-compliant:
pb [Thu, 18 Nov 1999 10:20:45 +0000 (10:20 +0000)]
Make last commit bde-compliant:
- correct indentation
- change data types for consistency with the rest of ping.c
- create new variable separate from "answer" for clarity

24 years agoHack: comment out the pull-in of src/sys/../share/mk/bsd.kern.mk as
peter [Thu, 18 Nov 1999 09:54:11 +0000 (09:54 +0000)]
Hack: comment out the pull-in of src/sys/../share/mk/bsd.kern.mk as
that breaks if you try and compile a kernel before building world, as
is presently required to get past the signal changes.   I don't
particularly like doing this, but at least it will mean that a 'make world'
will activate the gcc 2.95.2-specific option in bsd.kern.mk.

24 years agoFix an unused variable warning.
peter [Thu, 18 Nov 1999 09:07:30 +0000 (09:07 +0000)]
Fix an unused variable warning.

24 years agoIf we have found pci devices via pci_cfgopen(), but don't find a
peter [Thu, 18 Nov 1999 08:58:37 +0000 (08:58 +0000)]
If we have found pci devices via pci_cfgopen(), but don't find a
host->pci bridge specifically, then add a pcib0 device on the motherboard
for the pci bus to hang off.

Requested by:  Anders Andersson <anders@sanyusan.se>
Obtained from: dfr

24 years agoremove PCATCH from a tsleep that isn't checked for (avoid infinite loop).
alfred [Thu, 18 Nov 1999 08:57:03 +0000 (08:57 +0000)]
remove PCATCH from a tsleep that isn't checked for (avoid infinite loop).

this needs to be revisited.

24 years agoFix a warning (unused static declaration without MFS_ROOT)
peter [Thu, 18 Nov 1999 08:49:40 +0000 (08:49 +0000)]
Fix a warning (unused static declaration without MFS_ROOT)

24 years agoFix a warning.
peter [Thu, 18 Nov 1999 08:47:10 +0000 (08:47 +0000)]
Fix a warning.

24 years agoFix some -Wunused warnings
peter [Thu, 18 Nov 1999 08:43:58 +0000 (08:43 +0000)]
Fix some -Wunused warnings

24 years agoFix some warnings.
peter [Thu, 18 Nov 1999 08:41:53 +0000 (08:41 +0000)]
Fix some warnings.

24 years agoFix a warning.
peter [Thu, 18 Nov 1999 08:39:02 +0000 (08:39 +0000)]
Fix a warning.

24 years agoTouch up the make_dev() usage to hopefully make it work and fix warnings.
peter [Thu, 18 Nov 1999 08:36:42 +0000 (08:36 +0000)]
Touch up the make_dev() usage to hopefully make it work and fix warnings.

24 years agoFix some warnings.
peter [Thu, 18 Nov 1999 08:32:02 +0000 (08:32 +0000)]
Fix some warnings.

24 years agoFix a warning and a potential panic if TCPDEBUG is active. (tp is
peter [Thu, 18 Nov 1999 08:28:24 +0000 (08:28 +0000)]
Fix a warning and a potential panic if TCPDEBUG is active.  (tp is
a wild pointer and used by TCPDEBUG2())

24 years agoFix a warning (unused variable RCSid)
peter [Thu, 18 Nov 1999 08:18:13 +0000 (08:18 +0000)]
Fix a warning (unused variable RCSid)

24 years ago Ensure that garbage from the kernel stack does not wind up being
dillon [Thu, 18 Nov 1999 08:14:20 +0000 (08:14 +0000)]
Ensure that garbage from the kernel stack does not wind up being
    returned to user mode in the spare fields of the stat structure.

PR: kern/14966
Reviewed by: dillon@freebsd.org
Submitted by: Kelly Yancey kbyanc@posi.net

24 years agoFollow-up on mdoc fixes in rev 1.35; this includes things that I missed
sheldonh [Thu, 18 Nov 1999 08:13:21 +0000 (08:13 +0000)]
Follow-up on mdoc fixes in rev 1.35; this includes things that I missed
in that revision as well as things I broke in that revision.  A note-
worthy instance of the latter case was the inversion of -E and -V in the
subsection on Commandline Editing.

24 years ago Only bother converting the stat structure if we intend to return it,
dillon [Thu, 18 Nov 1999 08:08:28 +0000 (08:08 +0000)]
Only bother converting the stat structure if we intend to return it,
    when no error occurs.

PR: kern/14966
Reviewed by: dillon@freebsd.org
Submitted by: Kelly Yancey kbyanc@posi.net

24 years agoZap nsio
peter [Thu, 18 Nov 1999 07:34:58 +0000 (07:34 +0000)]
Zap nsio

24 years agoSync to latest cardbusdevs file
imp [Thu, 18 Nov 1999 07:22:59 +0000 (07:22 +0000)]
Sync to latest cardbusdevs file

24 years agoMerge some typo fixes from dev/sio/sio.c (siostop -> comstop)
peter [Thu, 18 Nov 1999 07:22:41 +0000 (07:22 +0000)]
Merge some typo fixes from dev/sio/sio.c (siostop -> comstop)
Remove EXTRA_SIO/NSIOTOT and make it fully dynamic (from dev/sio/sio.c)
Make sio work for pccard here - pccardd doesn't activate interrupts
until after prove has succeeded.
Mark the initial reset of likely sio ports as broken as it depended on
config supplying a list of locations to probe, devices are now proved
standalone.
Optimize a bit of COM_NOAST4() logic.
Use bus_get_resource_start() etc rather than using isa-centric calls.
Reactivate the IIR_TXRDYBUG test, I've got a card here with it.
Try to be a bit smarter about activating interrupts (ie: don't panic
if polled)
Fix some style bugs that have crept in over time (there are still more).

24 years agoRaw import of newconfig cardbus code. This is effectively an import,
imp [Thu, 18 Nov 1999 07:21:51 +0000 (07:21 +0000)]
Raw import of newconfig cardbus code.  This is effectively an import,
so the code doesn't compile.  I added $FreeBSD$ headers.

24 years agoInitial import of cardbus bridge driver (cbb) from the latest
imp [Thu, 18 Nov 1999 07:14:54 +0000 (07:14 +0000)]
Initial import of cardbus bridge driver (cbb) from the latest
newconfig code.  This is a raw import and doesn't compile yet.

Obtained from: newconfig project

24 years agoAdd modules for cardbus and the cardbus bridge driver. Files needed
imp [Thu, 18 Nov 1999 07:11:16 +0000 (07:11 +0000)]
Add modules for cardbus and the cardbus bridge driver.  Files needed
to build these to be committed next.

Again, not added to sys/modules/Makefile

24 years agoNewcard's pccard module. It compiles, but doesn't work. This should
imp [Thu, 18 Nov 1999 07:02:18 +0000 (07:02 +0000)]
Newcard's pccard module.  It compiles, but doesn't work.  This should
make development easier and push the ability of newbus to load busses
to the test.

Not added to sys/modules/Makefile because it isn't ready to break the
nightly snapshots for alpha yet :-).

NOTE: This is only for NEWCARD.  The old pccard stuff will not build
as a loadable module.

24 years agoRemove the non-functional "swap device" userland front-end to the
peter [Thu, 18 Nov 1999 06:55:40 +0000 (06:55 +0000)]
Remove the non-functional "swap device" userland front-end to the
multiplexed underlying swap devices (/dev/drum).  The only thing it did
was to allow root to open /dev/drum, but not do anything with it.
Various utilities used to grovel around in here, but Matt has written
a much nicer (and clean) front-end to this for libkvm, and nothing uses
the old system any more.

The VM system was calling VOP_STRATEGY() on the vp of the first underlying
swap device (not the /dev/drum one, the first real device), and using
the VOP system to indirectly (and only) call swstrategy() to choose
an underlying device and enqueue it on that device.  I have changed it
to avoid diverting through the VOP system and to call the only possible
target directly, saving a little bit of time and some complexity.

In all, nothing much changes, except some scaffolding to support the
roundabout way of calling swstrategy() is gone.

Matt gave me the ok to do this some time ago, and I apologize for taking
so long to get around to it.

24 years agoHijack old, broken, obsolete, unsupported pcic module for the NEWCARD
imp [Thu, 18 Nov 1999 06:54:19 +0000 (06:54 +0000)]
Hijack old, broken, obsolete, unsupported pcic module for the NEWCARD
code.  You can now build the newcard's pcic driver as a module for all
the joy that will bring you, which currently isn't so much joy as it
is pain.

The old pccard module will never be made to work again, so I think
this is OK.  Note, it still remains disabled in sys/modules/Makefile
on purpose.

24 years agoRemove cdevsw_add() as the make_dev()'s are done in a clone-like fashion.
peter [Thu, 18 Nov 1999 06:41:30 +0000 (06:41 +0000)]
Remove cdevsw_add() as the make_dev()'s are done in a clone-like fashion.
(ie: the next device is created with make_dev as the first is opened
and so on)

24 years agoRemove cdevsw_add() - the make_dev() calls are already there.
peter [Thu, 18 Nov 1999 06:39:47 +0000 (06:39 +0000)]
Remove cdevsw_add() - the make_dev() calls are already there.
Don't '#if NSNP > 0' around the thing as it's silly and not required.
config(8) only causes it to be compiled if NSNP is > 0 by definition.

24 years agoRemove cdevsw_add() - the necessary make_dev() is already there.
peter [Thu, 18 Nov 1999 06:37:00 +0000 (06:37 +0000)]
Remove cdevsw_add() - the necessary make_dev() is already there.

24 years agoRemove cdevsw_add() - the necessary make_dev() calls appear to be there
peter [Thu, 18 Nov 1999 06:34:47 +0000 (06:34 +0000)]
Remove cdevsw_add() - the necessary make_dev() calls appear to be there
already.

24 years agoFix a warning.
peter [Thu, 18 Nov 1999 06:29:57 +0000 (06:29 +0000)]
Fix a warning.

24 years ago'const'ify a bunch of pointers in the resource_*() functions for accessing
peter [Thu, 18 Nov 1999 06:05:30 +0000 (06:05 +0000)]
'const'ify a bunch of pointers in the resource_*() functions for accessing
the config hint tables.  This fixes a few warnings elsewhere (eg: fd).

24 years agoConvert smb to use make_dev() rather than cdevsw_add(). This stops the
peter [Thu, 18 Nov 1999 05:44:56 +0000 (05:44 +0000)]
Convert smb to use make_dev() rather than cdevsw_add().  This stops the
annoying 'smb is usurping smb's cdevsw' type messages.  (Yes, there are
other ways to fix cdevsw_add(), but that is a doomed api)

24 years agoConvert iic to use make_dev() rather than cdevsw_add(). This stops the
peter [Thu, 18 Nov 1999 05:43:32 +0000 (05:43 +0000)]
Convert iic to use make_dev() rather than cdevsw_add().  This stops the
annoying 'iic is usurping iic's cdevsw' type messages.  (Yes, there are
other ways to fix cdevsw_add(), but that is a doomed api)

24 years agoTidy up a few loose ends in the fifo setup code.
peter [Thu, 18 Nov 1999 05:15:09 +0000 (05:15 +0000)]
Tidy up a few loose ends in the fifo setup code.
Don't use NFDC as an arbitary limit, it is not required and goes against
using PnP fdc devices (eg: when PNPBIOS is turned on, the motherboard
devices (sio, fdc, etc etc) are detected via PnP, not config(8).)

24 years agoUse a common MAKEDEV between the Alpha and i386 - the only differences
peter [Thu, 18 Nov 1999 04:31:31 +0000 (04:31 +0000)]
Use a common MAKEDEV between the Alpha and i386 - the only differences
of significance were due to the Alpha version going stale.  We use common
device numbering for devices.  Hopefully, this file's days are numbered.

24 years agoFor now, disable umodem module building, because it doesn't. Don't
green [Thu, 18 Nov 1999 04:27:10 +0000 (04:27 +0000)]
For now, disable umodem module building, because it doesn't.  Don't
want to break the snapshots :)

24 years agoMove Alpha conflicting entries (98,99) to 135,136. Renumber the zsc
peter [Thu, 18 Nov 1999 04:20:23 +0000 (04:20 +0000)]
Move Alpha conflicting entries (98,99) to 135,136.  Renumber the zsc
CDEV_MAJOR entry to match..  Is "ipr" in the tree?  I can't find it.

24 years agoDon't ask about SCO/IBSC2 binary support on the Alpha.
obrien [Thu, 18 Nov 1999 03:03:01 +0000 (03:03 +0000)]
Don't ask about SCO/IBSC2 binary support on the Alpha.

24 years agoFor the TCP transport, put the listening socket in non-blocking
jdp [Thu, 18 Nov 1999 03:01:06 +0000 (03:01 +0000)]
For the TCP transport, put the listening socket in non-blocking
mode.  This addresses a well-known race condition that can cause
servers to hang in accept().  The relevant case is when somebody
connects to the server and then immediately kills the connection
by sending a TCP reset.  On the server this causes select to report
a ready condition on the socket, after which the accept call blocks
because there is no longer any pending connection to accept.

In -current there is already a work-around for this in the kernel.
It was merged into -stable some time ago, but then David Greenman
reverted it because it seemed to be causing a socket leak in some
cases.  (See uipc_socket.c revision 1.51.2.3.)  Hence this userland
fix is needed in -stable, and I plan to merge it into that branch
soon because it fixes a potential DoS attack.  It may also be needed
in -current if the suspected socket leak turns out to be real.  In
any case, after thinking it over I believe the fix belongs in
userland.  An application shouldn't assume that a ready return from
select guarantees that the subsequent I/O operation cannot block.
A lot can happen between the select and the accept.

A similar fix should most likely be applied to the Unix domain
socket transport too.

Submitted by: peter
Reviewed by: jdp

24 years agofix up a whitespace screwup I made.
julian [Thu, 18 Nov 1999 01:23:06 +0000 (01:23 +0000)]
fix up a whitespace screwup I made.

24 years agoo Remove #if XXX from around the probe code.
imp [Wed, 17 Nov 1999 23:54:39 +0000 (23:54 +0000)]
o Remove #if XXX from around the probe code.
o Rewrite probe code to work in the newbus world.
o Add preliminary pnp support.  I have no clue what the pnp ids for
  the older ISA machines/cards.  I don't have any of these cards/machines
  so I'll have to rely on the user community to give me help.
o Minor code reformatting.

Attach hasn't been touched, and there may be some config issues that
we need to deal with as well.  These will follow in time.

24 years agoAllow octal or hex input.
grog [Wed, 17 Nov 1999 23:42:09 +0000 (23:42 +0000)]
Allow octal or hex input.
Suggested-by: Geoff Steckel <gwes@sitaranetworks.com>

24 years agoAdd the entry for usb (as opposed to usb<number>). It's minor is equivalent
n_hibma [Wed, 17 Nov 1999 23:02:34 +0000 (23:02 +0000)]
Add the entry for usb (as opposed to usb<number>). It's minor is equivalent
to usb255 and will be used for the event queue of the usb daemon.

24 years agoChange the name of the modules from <name>_mod to <name>
n_hibma [Wed, 17 Nov 1999 22:47:11 +0000 (22:47 +0000)]
Change the name of the modules from <name>_mod to <name>

Suggested by: David O'Brien <obrien@FreeBSD.ORG>

24 years agoAdd network pass4 - after all local (/usr/local/etc/rc.d f.e.)
ache [Wed, 17 Nov 1999 22:38:02 +0000 (22:38 +0000)]
Add network pass4 - after all local (/usr/local/etc/rc.d f.e.)
daemons started. Move log_in_vain option there. It is needed to avoid
lot of connections to port 80 logged on production WWW server prior
Apache started from /usr/local/etc/rc.d

24 years agoSynchronisation with NetBSD as of 1999/11/16:
n_hibma [Wed, 17 Nov 1999 22:33:51 +0000 (22:33 +0000)]
Synchronisation with NetBSD as of 1999/11/16:

Cleaning up the code:
- Declare many functions static
- Change variable names to make them more self explanatory
- Change usbd_request_handle -> usbd_xfer_handle
- Syntactical changes
- Remove some unused code
- Other KNF changes

Interrupt context handling
- Change delay to usbd_delay_ms were possible (takes polling mode into
  account)
- Change detection mechanism for interrupt context

Add support for pre-allocation DMA-able memory by device driver

Add preliminary support for isochronous to the UHCI driver (not for OHCI
yet).

usb.c, uhci.c, ohci.c
- Initial attempt at detachable USB host controllers
- Handle the use_polling flag with a lttle more care and only set it if
we are cold booting.

usb.c, uhci.c ohci.c, usbdi.c usbdi_util.c usb_subr.c
- Make sure an aborted pipe is marked as not running.
- Start queued request in the right order.
- Insert some more DIAGNOSTIC sanity checks.
- Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN.

usb.c, usb_subr.c
- Add an event mechanism so that a userland process can watch devices
  come and go.

ohci.c
- Handle the case when a USB transfer is so long that it crosses two
  page (4K) boundaries.  OHCI cannot do that with a single TD so we make
  a chain.

ulpt.c
- Use a bigger buffer when transferring data.
- Pre-allocate the DMA buffer.  This makes the driver slightly more
  efficient.
- Comment out the GET_DEVICE_ID code, because for some unknown reason it
  causes printing to fail sometimes.

usb.h
- Add a macro to extract the isoc type.
- Add a macro to check whether the routine has been entered after splusb
  and if not, complain.

usbdi.c
- Fix a glitch in dequeueing and aborting requests on interrupt pipes.
- Add a flag in the request to determine if the data copying is done by
  the driver or the usbdi layer.

24 years ago"b_unused1" was.
phk [Wed, 17 Nov 1999 21:43:00 +0000 (21:43 +0000)]
"b_unused1" was.

Fix comment for b_caller[12] fields.

Spotted by:     grog

24 years agoDo timeouts in terms of hz
phk [Wed, 17 Nov 1999 21:40:14 +0000 (21:40 +0000)]
Do timeouts in terms of hz

Spotted by:     julian

24 years agoMake proc/*/cmdline use the cached argv if available.
phk [Wed, 17 Nov 1999 21:35:07 +0000 (21:35 +0000)]
Make proc/*/cmdline use the cached argv if available.

Submitted by:   Paul Saab <paul@mu.org>
Reviewed by:    phk

24 years agoThe function `procfs_getattr()' in procfs doesn't set the value of
phk [Wed, 17 Nov 1999 21:33:25 +0000 (21:33 +0000)]
The function `procfs_getattr()' in procfs doesn't set the value of
vap->va_fsid, so we cannot get valid information about procfs.

Submitted by:   SAWADA Mizuki miz@pa.aix.or.jp
Reviewed by:    phk
PR:     1654

24 years agomodfind(char *) -> modfind(const char *)
brian [Wed, 17 Nov 1999 21:32:40 +0000 (21:32 +0000)]
modfind(char *) -> modfind(const char *)

Reminded by: dfr

24 years agoFix ``set proctitle'' by using setproctitle().
brian [Wed, 17 Nov 1999 21:12:35 +0000 (21:12 +0000)]
Fix ``set proctitle'' by using setproctitle().

24 years agoMake setproctitle(NULL) restore all of the original arguments
brian [Wed, 17 Nov 1999 21:12:17 +0000 (21:12 +0000)]
Make setproctitle(NULL) restore all of the original arguments
(if it's able).

24 years agoThe logic for blackhole processing does not free mbufs if the
phk [Wed, 17 Nov 1999 20:57:49 +0000 (20:57 +0000)]
The logic for blackhole processing does not free mbufs if the
blackhole flag is set.

PR: 14958
Submitted by: Larry Baird <lab@gta.com>
Reviewed by: phk

24 years agopurity change for name length checking code
ache [Wed, 17 Nov 1999 20:51:35 +0000 (20:51 +0000)]
purity change for name length checking code

24 years agoMerge with OpenBSD whois (with bugfixes missed there)
ache [Wed, 17 Nov 1999 19:11:51 +0000 (19:11 +0000)]
Merge with OpenBSD whois (with bugfixes missed there)

New features are:
Automatic lookup using *.whois-servers.net
Recursive lookup using Registrar's name
Fallback to InterNIC for non-domains
-m for RADB database
-Q to turn recursion/fallback off

Obtained from: OpenBSD

24 years agogcc 2.95.2
imp [Wed, 17 Nov 1999 18:06:56 +0000 (18:06 +0000)]
gcc 2.95.2

24 years agoWhen allocating a new PKTHDR mbuf, always set m->m_pkthdr.rcvif = NULL.
archie [Wed, 17 Nov 1999 17:41:22 +0000 (17:41 +0000)]
When allocating a new PKTHDR mbuf, always set m->m_pkthdr.rcvif = NULL.

24 years agoFix a couple of boo-boos in the last delta.
mjacob [Wed, 17 Nov 1999 17:11:21 +0000 (17:11 +0000)]
Fix a couple of boo-boos in the last delta.

24 years agoThe pipleline problem introduced in version 1.22 wasn't fully fixed in
cracauer [Wed, 17 Nov 1999 16:53:34 +0000 (16:53 +0000)]
The pipleline problem introduced in version 1.22 wasn't fully fixed in
1.23. This revision should work for long pipes both in
here-documents/backquote and in normal cases.

Fix works for jmz, bde.

24 years agoReduce max length of user names to 15 characters to reflect reality.
davidn [Wed, 17 Nov 1999 16:31:51 +0000 (16:31 +0000)]
Reduce max length of user names to 15 characters to reflect reality.
This also prevents the line-wrap and messed up display that occurs
when there happens to be one or more names with 15 chars.

24 years agoBuild genrtl.h before print-rtl.o.
obrien [Wed, 17 Nov 1999 15:50:45 +0000 (15:50 +0000)]
Build genrtl.h before print-rtl.o.

Submitted by: John Hay <jhay@mikom.csir.co.za> (basic idea, changed by me)

24 years agoUse the same technique as ps(1) to avoid the need for setgid. (ie: use
peter [Wed, 17 Nov 1999 15:28:45 +0000 (15:28 +0000)]
Use the same technique as ps(1) to avoid the need for setgid.  (ie: use
/dev/null as the default kernel and /dev/mem filenames, but still allow
the usual overrides)

24 years agoI'm probably jumping the gun, but what the heck, this is -current.
peter [Wed, 17 Nov 1999 13:37:30 +0000 (13:37 +0000)]
I'm probably jumping the gun, but what the heck, this is -current.
Turn off setgid-kmem for /bin/ps, it's now quite functional without it.
ps no longer needs /dev/*mem or /proc.  (It will still use some /proc
files if they are available for -e, but it's not required, so it'll
happily run in a jail or chroot).

The proc stats are now part of eproc (obtained via sysctl) and no longer
needs to beat up the u-page reading code and the problems with that.

This also has the side effect of disabling 'ps -e' for normal users
*EXCEPT* when looking at their own processes.  ie: they can see
environments in processes with their uid, enforced by the ownership of
/proc/*/mem.  Root can still see them all, as it can open all /proc/*/mem.

24 years agoUse eproc.e_stats, not a series of crude hacks to fetch it from the u-area.
peter [Wed, 17 Nov 1999 12:52:42 +0000 (12:52 +0000)]
Use eproc.e_stats, not a series of crude hacks to fetch it from the u-area.
Also, fix some indentation that got messed up somehow..

24 years agoAdd e_stats (p->p_stats, from struct user->u_stats) to eproc so it's
peter [Wed, 17 Nov 1999 12:49:22 +0000 (12:49 +0000)]
Add e_stats (p->p_stats, from struct user->u_stats) to eproc so it's
fetchable via sysctl.  This saves ps having to read the u-area for stats.
Be sure to recompile libkvm, ps, w, top and the usual suspects.

24 years agoFix invalid option name: DIVERT -> IPDIVERT
phantom [Wed, 17 Nov 1999 12:34:35 +0000 (12:34 +0000)]
Fix invalid option name: DIVERT -> IPDIVERT

24 years agoAdd perlopentut.pod, perlreftut.pod and perlthrtut.pod to the list of
sheldonh [Wed, 17 Nov 1999 12:22:51 +0000 (12:22 +0000)]
Add perlopentut.pod, perlreftut.pod and perlthrtut.pod to the list of
pod files to be converted to and installed as manual pages.

These were probably overlooked in the last minor version number upgrade
to perl5.  This change was approved by the perl5 maintainer.

PR: 14649
Submitted by: Andy Farkas <andyf@speednet.com.au>

24 years agoAllow sub-Makefile's to determine the version of the OS we are make'ing on.
obrien [Wed, 17 Nov 1999 07:42:40 +0000 (07:42 +0000)]
Allow sub-Makefile's to determine the version of the OS we are make'ing on.

24 years agoAdd `mkstemp.c' to the mix if we are building on something older than
obrien [Wed, 17 Nov 1999 07:39:51 +0000 (07:39 +0000)]
Add `mkstemp.c' to the mix if we are building on something older than
__FreeBSD_version < 400004.

This allows -STABLE to build -CURRENT sources.

[mkstemps() was added to -current just before the version bump to 400004
(a matter of hours in this case), so the test is as exact as possible.]

Submitted by: marcel

24 years agoMake "-mpreferred-stack-boundary=2" the default on the i386.
obrien [Wed, 17 Nov 1999 07:30:35 +0000 (07:30 +0000)]
Make "-mpreferred-stack-boundary=2" the default on the i386.
This reduces the size of the kernel and modules when compiled with GCC 2.95.

24 years agoPay attention to the "KEEP THIS IN SYNC" comment, and sync the `tm.h'
obrien [Wed, 17 Nov 1999 07:20:27 +0000 (07:20 +0000)]
Pay attention to the "KEEP THIS IN SYNC" comment, and sync the `tm.h'
header with src/gcc/usr.bin/cc/cc_tools/Makefile.

24 years ago* Remove a trailing ";" from a macro.
obrien [Wed, 17 Nov 1999 07:18:25 +0000 (07:18 +0000)]
* Remove a trailing ";" from a macro.
* Style cleanup.

24 years agoThis temperary file can die now.
obrien [Wed, 17 Nov 1999 07:03:32 +0000 (07:03 +0000)]
This temperary file can die now.

24 years agoFix for 11815 (at mount time do a throwaway read of the front of the
mjacob [Wed, 17 Nov 1999 06:05:09 +0000 (06:05 +0000)]
Fix for 11815 (at mount time do a throwaway read of the front of the
tape to force the drive to do a media access so it knows what media
may be inserted).

Also Ken's make_dev patches- relatively untested.

24 years agoGet rid of some trailing commas in enumerated types that cause gcc to
ken [Wed, 17 Nov 1999 05:06:52 +0000 (05:06 +0000)]
Get rid of some trailing commas in enumerated types that cause gcc to
complain when some warnings are turned on.

Requested by: Bertrand Petit <elrond@phoe.frmug.org>

24 years agoConvert the xpt, pass, pt and target drivers to use the new
ken [Wed, 17 Nov 1999 04:59:09 +0000 (04:59 +0000)]
Convert the xpt, pass, pt and target drivers to use the new
make_dev()/destroy_dev() interface.

24 years agoPut the listening socket into non-blocking mode before doing an
peter [Wed, 17 Nov 1999 03:32:05 +0000 (03:32 +0000)]
Put the listening socket into non-blocking mode before doing an
accept(2).  This is a not really problem on -current as the accept race
is fixed, however it is a MFC candidate for -stable.

This could possibly be slightly more efficient and leave the listening
socket permanently in non-blocking mode, but I wasn't certain that I
could catch all the stream/wait (not nowait) mode implications.

24 years agoFixed sorting on time. On i386's, time differences of more than 2147
bde [Wed, 17 Nov 1999 03:25:54 +0000 (03:25 +0000)]
Fixed sorting on time.  On i386's, time differences of more than 2147
seconds caused overflow.  Use a type-safe but slightly slower comparison.
Comparisons for other fields are still fragile.

Fixed rounding of cputime (don't do extra work to get it slightly wrong
by first converting without rounding to milliseconds).

Removed dead code for setting cputime.

Fixed comments about cputime.

24 years agoFix a bug in the hack that protects against FTP bounce attacks.
jdp [Wed, 17 Nov 1999 01:54:17 +0000 (01:54 +0000)]
Fix a bug in the hack that protects against FTP bounce attacks.
It used to loop back up to the accept() call and block there,
shutting out all other transports until a new connection came in.
Now it returns instead after dropping the connection.  That will
take it back to the select() loop where all transports can be
serviced.  I intend to MFC this within a day or two since it
fixes a DoS vulnerability.

24 years agoRemove -O from CFLAGS
n_hibma [Wed, 17 Nov 1999 01:40:24 +0000 (01:40 +0000)]
Remove -O from CFLAGS

24 years agoDon't complain loudly about unknown termcap capabilities, eg:
peter [Wed, 17 Nov 1999 01:01:02 +0000 (01:01 +0000)]
Don't complain loudly about unknown termcap capabilities, eg:
{vladivostok:/usr/home/ken:1:0} echo |more
"TERMCAP", line 0, col 60, terminal 'screen': unknown capability 'G0'
"TERMCAP", line 0, col 806, terminal 'screen': unknown capability 'AX'

Submitted by: Kenneth D. Merry <ken@kdm.org>

24 years agoAdd option NETGRAPH_KSOCKET.
archie [Tue, 16 Nov 1999 23:49:07 +0000 (23:49 +0000)]
Add option NETGRAPH_KSOCKET.

24 years agoAdd option NETGRAPH_KSOCKET.
archie [Tue, 16 Nov 1999 23:30:05 +0000 (23:30 +0000)]
Add option NETGRAPH_KSOCKET.

24 years agoAdd reference to new netgraph node type "ksocket".
archie [Tue, 16 Nov 1999 23:27:37 +0000 (23:27 +0000)]
Add reference to new netgraph node type "ksocket".

24 years agoNew Netgraph node type "ksocket".
archie [Tue, 16 Nov 1999 23:27:10 +0000 (23:27 +0000)]
New Netgraph node type "ksocket".

Obtained from:  Whistle source tree

24 years agoNew netgraph node type "ksocket".
archie [Tue, 16 Nov 1999 23:25:11 +0000 (23:25 +0000)]
New netgraph node type "ksocket".

Obtained from: Whistle source tree

24 years agoTypo
n_hibma [Tue, 16 Nov 1999 22:02:16 +0000 (22:02 +0000)]
Typo

24 years agoAdd the USB modules.
n_hibma [Tue, 16 Nov 1999 22:00:46 +0000 (22:00 +0000)]
Add the USB modules.

24 years agoRemove some extraneous ifdefs, and don't try to put the socket in
brian [Tue, 16 Nov 1999 21:57:48 +0000 (21:57 +0000)]
Remove some extraneous ifdefs, and don't try to put the socket in
O_NONBLOCK.  The select() is the best best as I don't want to muck
about with the send/receive thresholds.

24 years agoUse modfind() to check if a kld is already loaded.
brian [Tue, 16 Nov 1999 21:57:34 +0000 (21:57 +0000)]
Use modfind() to check if a kld is already loaded.

Submitted mostly by: green

24 years agomodfind(char *) -> modfind(const char *)
brian [Tue, 16 Nov 1999 21:51:35 +0000 (21:51 +0000)]
modfind(char *) -> modfind(const char *)

Ok'd by: dfr

24 years agoIntroduce commandline caching in the kernel.
phk [Tue, 16 Nov 1999 20:31:58 +0000 (20:31 +0000)]
Introduce commandline caching in the kernel.

This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.

To disable this facility and revert to previous behaviour:
        sysctl -w kern.ps_arg_cache_limit=0

For full details see the current@FreeBSD.org mail-archives.

24 years agoAdd Nokia Cellular Data Card DTP2 and DTP-2 ver II
roger [Tue, 16 Nov 1999 17:44:31 +0000 (17:44 +0000)]
Add Nokia Cellular Data Card DTP2 and DTP-2 ver II

24 years agoAdded $FreeBSD$ idents.
joe [Tue, 16 Nov 1999 17:27:07 +0000 (17:27 +0000)]
Added $FreeBSD$ idents.

24 years agoAdded $FreeBSD$ tags.
joe [Tue, 16 Nov 1999 17:16:18 +0000 (17:16 +0000)]
Added $FreeBSD$ tags.