]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoreset uid back to the user before doing kerberised change password.
assar [Mon, 12 Mar 2001 03:52:00 +0000 (03:52 +0000)]
reset uid back to the user before doing kerberised change password.
root permission is not needed and the kerberos library is paranoid
about access control to the ticket file

PR: bin/20779

23 years agoinitialize pointers to NULL and sized to 0 to avoid free:ing invalid memory.
assar [Mon, 12 Mar 2001 03:48:03 +0000 (03:48 +0000)]
initialize pointers to NULL and sized to 0 to avoid free:ing invalid memory.

PR: bin/20779

23 years agoEliminate global node types and instead use an operations vector for
jlemon [Mon, 12 Mar 2001 03:16:56 +0000 (03:16 +0000)]
Eliminate global node types and instead use an operations vector for
each node in order to make it easier to add new entries.

Rewrite the internal directory structure so that it is possible to
have independent subdirectories.  Utilize this to add /proc/net/dev.

Reviewed by:  DES

23 years agoUnbreak LINT.
jlemon [Mon, 12 Mar 2001 02:57:42 +0000 (02:57 +0000)]
Unbreak LINT.

Pointed out by: phk

23 years agoAdd Intel 82553, 82555 PHY driver.
jlemon [Mon, 12 Mar 2001 02:45:06 +0000 (02:45 +0000)]
Add Intel 82553, 82555 PHY driver.

23 years agoAdd the Intel PHY driver.
jlemon [Mon, 12 Mar 2001 02:43:03 +0000 (02:43 +0000)]
Add the Intel PHY driver.

23 years agoAdd drivers for Intel 82553 and 82555 PHYs.
jlemon [Mon, 12 Mar 2001 02:41:57 +0000 (02:41 +0000)]
Add drivers for Intel 82553 and 82555 PHYs.

23 years agoRegenerate.
jlemon [Mon, 12 Mar 2001 02:27:58 +0000 (02:27 +0000)]
Regenerate.

23 years agoAdd some definitions for Intel 82553 PHYs
jlemon [Mon, 12 Mar 2001 02:27:10 +0000 (02:27 +0000)]
Add some definitions for Intel 82553 PHYs

23 years agoAdd a comment pointing to the freebsd-print@bostonradio.org mailing list.
gad [Mon, 12 Mar 2001 02:13:08 +0000 (02:13 +0000)]
Add a comment pointing to the freebsd-print@bostonradio.org mailing list.

23 years agoChange the usage() message to include the recently-added -4 and -6 options.
gad [Mon, 12 Mar 2001 02:03:53 +0000 (02:03 +0000)]
Change the usage() message to include the recently-added -4 and -6 options.

23 years agoFix "lprm -" (remove all jobs) processing for remote printer queues.
gad [Mon, 12 Mar 2001 01:16:09 +0000 (01:16 +0000)]
Fix "lprm -" (remove all jobs) processing for remote printer queues.

PR: bin/25544

23 years agoDon't require that mouse cursor must be visible before mouse paste.
ache [Mon, 12 Mar 2001 01:15:11 +0000 (01:15 +0000)]
Don't require that mouse cursor must be visible before mouse paste.

Paste always happens to current _text_ cursor position independently of
mouse cursor position in any case and old variant force user to press
mouse paste button _two_ times if mouse cursor is invisible.

23 years agoImprove a few error messages wrt if= filters on remote print queues.
gad [Mon, 12 Mar 2001 00:22:03 +0000 (00:22 +0000)]
Improve a few error messages wrt if= filters on remote print queues.

23 years agoUpdate default keyboard (PREV, PASTE)
ache [Mon, 12 Mar 2001 00:00:22 +0000 (00:00 +0000)]
Update default keyboard (PREV, PASTE)

23 years agoUpdate to use proper nomenclature for the security profiles.
jkh [Sun, 11 Mar 2001 23:47:12 +0000 (23:47 +0000)]
Update to use proper nomenclature for the security profiles.

Submitted by: olgeni

23 years ago- Call fork1() directly instead of calling rfork() so that it doesn't mask
jhb [Sun, 11 Mar 2001 23:41:55 +0000 (23:41 +0000)]
- Call fork1() directly instead of calling rfork() so that it doesn't mask
  out RFSTOPPED.
- Lock the child process when settings p_sigparent instead of locking the
  parent.

Pointy-hat to: me

23 years agoShift+Ins - paste buffer
ache [Sun, 11 Mar 2001 23:41:19 +0000 (23:41 +0000)]
Shift+Ins - paste buffer
Shift+PrintScr - prev. screen

23 years agoImplement keyboard paste
ache [Sun, 11 Mar 2001 22:51:05 +0000 (22:51 +0000)]
Implement keyboard paste

PR: 25499
Submitted by: Gaspar Chilingarov <nm@web.am>

23 years agoo Replace part-wise instructions for building world for jail(8) with
rwatson [Sun, 11 Mar 2001 20:37:11 +0000 (20:37 +0000)]
o Replace part-wise instructions for building world for jail(8) with
  a simple make world; while this does a bit more work, it means that
  jail(8) doesn't have to be kept in sync with /usr/src/Makefile{,.inc1}
  which is a moving target.  MFC candidate.

Submitted by: FUJISHIMA Satsuki <sf@FreeBSD.org>
Reviewed by: phk
Also pointed out by: Phil Kernick <Phil@Kernick.org>

23 years agoDocument the make_dev_alias function.
mjacob [Sun, 11 Mar 2001 20:10:45 +0000 (20:10 +0000)]
Document the make_dev_alias function.

23 years agoAssert that the process we're trying to enqueue isn't already there.
des [Sun, 11 Mar 2001 18:57:30 +0000 (18:57 +0000)]
Assert that the process we're trying to enqueue isn't already there.

23 years agorfork() masks RFSTOPPED out of the flags it passes to fork1(), so we have
des [Sun, 11 Mar 2001 18:52:10 +0000 (18:52 +0000)]
rfork() masks RFSTOPPED out of the flags it passes to fork1(), so we have
to call fork1() directly if we don't want out process queued right away.
This has the serendipitous side effect of saving us a call to pfind().

This makes threaded Linux apps (such as Opera) work again.

23 years agoIn ip_output(), initialise `ia' in the case where the packet has
iedowse [Sun, 11 Mar 2001 17:50:19 +0000 (17:50 +0000)]
In ip_output(), initialise `ia' in the case where the packet has
come from a dummynet pipe. Without this, the code which increments
the per-ifaddr stats can dereference an uninitialised pointer. This
should make dummynet usable again.

Reported by: "Dmitry A. Yanko" <fm@astral.ntu-kpi.kiev.ua>
Reviewed by: luigi, joe

23 years agoAdd a manpage for the DEV_MODULE kernel macro.
alex [Sun, 11 Mar 2001 17:30:08 +0000 (17:30 +0000)]
Add a manpage for the DEV_MODULE kernel macro.

23 years agoUse type of modeventhand_t for the event handler (defined in module.h).
alex [Sun, 11 Mar 2001 17:07:20 +0000 (17:07 +0000)]
Use type of modeventhand_t for the event handler (defined in module.h).
Add a reference to module(9) for more info about the event handler.

23 years agoFix brain damage: s/CDEV_MODULE/DEV_MODULE/
alex [Sun, 11 Mar 2001 16:52:17 +0000 (16:52 +0000)]
Fix brain damage: s/CDEV_MODULE/DEV_MODULE/

23 years agoUpdates for Blowfish password hashing.
markm [Sun, 11 Mar 2001 16:37:33 +0000 (16:37 +0000)]
Updates for Blowfish password hashing.

23 years agoAdd OpenBSD-style blowfish password hashing. This makes one less
markm [Sun, 11 Mar 2001 16:05:43 +0000 (16:05 +0000)]
Add OpenBSD-style blowfish password hashing. This makes one less
gratuitous difference between us and our sister project.

This was given to me _ages_ ago. May apologies to Paul for the length
of time its taken me to commit.

Obtained from: Niels Provos <provos@physnet.uni-hamburg.de>/OpenBSD
Submitted by: Paul Herman <pherman@frenchfries.net>

23 years agoAdd missed MODULE_VERSION() call, so loading of unicode conversion routine
sobomax [Sun, 11 Mar 2001 15:28:42 +0000 (15:28 +0000)]
Add missed MODULE_VERSION() call, so loading of unicode conversion routine
works properly.

Clue beaten in by: des

23 years agoAdd MODULE_DEPEND.9 and MODULE_VERSION.9
alex [Sun, 11 Mar 2001 14:42:38 +0000 (14:42 +0000)]
Add MODULE_DEPEND.9 and MODULE_VERSION.9

23 years agoAdd a manpage for the MODULE_DEPEND macro.
alex [Sun, 11 Mar 2001 14:33:34 +0000 (14:33 +0000)]
Add a manpage for the MODULE_DEPEND macro.

23 years agoAdd a manpage for the MODULE_VERSION macro.
alex [Sun, 11 Mar 2001 14:33:15 +0000 (14:33 +0000)]
Add a manpage for the MODULE_VERSION macro.

23 years agoAdd calls to MODULE_VERSION and MODULE_DEPEND to the EXAMPLE.
alex [Sun, 11 Mar 2001 14:18:23 +0000 (14:18 +0000)]
Add calls to MODULE_VERSION and MODULE_DEPEND to the EXAMPLE.

23 years agoWhen the file was transferred using sendfile(2), we forgot to keep track
des [Sun, 11 Mar 2001 13:20:44 +0000 (13:20 +0000)]
When the file was transferred using sendfile(2), we forgot to keep track
of the transferred byte count. MFC candidate.

PR: bin/25699

23 years agoDo not kill vnodes after rename. This can cause deadlocks in the deadfs.
bp [Sun, 11 Mar 2001 11:51:42 +0000 (11:51 +0000)]
Do not kill vnodes after rename. This can cause deadlocks in the deadfs.

Noticed by: Matthew N. Dodd <winter@jurai.net>

23 years agoUpdate userland interface for broken Joilet disks.
bp [Sun, 11 Mar 2001 10:06:28 +0000 (10:06 +0000)]
Update userland interface for broken Joilet disks.

Reviewed by: adrian

23 years agoAdd a mount time option which slightly relaxes checks for valid Joilet
bp [Sun, 11 Mar 2001 10:05:08 +0000 (10:05 +0000)]
Add a mount time option which slightly relaxes checks for valid Joilet
extensions.

PR: kern/23315
Reviewed by: adrian

23 years agoThis is an MFC candidate.
gibbs [Sun, 11 Mar 2001 06:34:17 +0000 (06:34 +0000)]
This is an MFC candidate.

ahc_eisa.c:
Change aic7770_map_int to take an additional irq parameter.
Although we can get the irq from the eisa dev under FreeBSD,
we can't do this under linux, so the OSM interface must supply
this.

ahc_pci.c:
Move ahc_power_state_change() to the OSM.  This allows us to
use a platform supplied function that does the same thing.
-current will move to the FreeBSD native API in the near
future.

aic7770.c:
Sync up with core changes to support Linux EISA.

We now store a 2 bit primary channel number rather
than a bit flag that only allows b to be the primary
channel.   Adjust for this change.

aic7xxx.c:
Namespace and staticization cleanup.  All exported symbols
use an "ahc_" prefix to avoid collisions with other modules.

Correct a logic bug that prevented us from dropping
ATN during some exceptional conditions during message
processing.

Take advantage of a new flag managed by the sequencer
that indicates if an SCB fetch is in progress.  If so,
the currently selected SCB needs to be returned to the
free list to prevent an SCB leak.  This leak is a rarity
and would only occur if a bus reset or timeout resulting
in a bus reset occurred in the middle of an SCB fetch.

Don't attempt to perform ULTRA transfers on ultra capable
adapters missing the external precision resistor required
for ultra speeds.  I've never encountered an adapter
configured this way, but better safe than sorry.

        Handle the case of 5MHz user sync rate set as "0" instead of 0x1c
        in scratch ram.

        If we lookup a period of 0 in our table (async), clear the scsi offset.

aic7xxx.h:
Adjust for the primary channel being represented as
a 2 bit integer in the flags member of the ahc softc.

Cleanup the flags definitions so that comment blocks are
not cramped.

Update seeprom definitions to correctly reflect the fact
that the primary channel is represented as a 2 bit integer.

Add AHC_ULTRA_DIASABLED softc flag to denote controllers
missing the external precision resistor.

aic7xxx.reg:
Add DFCACHETH to the definition of DFSTATUS for completness sake.

Add SEQ_FLAGS2 which currently only contains the SCB_DMA
(SCB DMA in progress) flag.

aic7xxx.seq:
Correct a problem when one lun has a disconnected untagged
transaction and another lun has disconnected tagged transactions.
Just because an entry is found in the untagged table doesn't
mean that it will match.  If the match on the lun fails, cleanup
the SCB (return it to the disconnected list or free it), and snoop
for a tag message.  Before this change, we reported an unsolicited
reselection.  This bug was introduced about a month ago during an
overly aggressive optimization pass on the reselection code.

When cleaning up an SCB, we can't just blindly free the SCB.  In
the paging case, if the SCB came off of the disconnected list, its
state may never have been updated in host memory.  So, check the
disconnected bit in SCB_CONTROL and return the SCB to the disconnected
list if appropriate.

Manage the SCB_DMA flag of SEQ_FLAGS2.

More carefully shutdown the S/G dma engine in all cases by using
a subroutine.  Supposedly not doing this can cause an arbiter hang
on some ULTRA2 chips.

Formatting cleanup.

On some chips, at least the aic7856, the transition from
MREQPEND to HDONE can take a full 4 clock cycles.  Test
HDONE one more time to avoid this race.  We only want our
FIFO hung recovery code to execute when the engine is
really hung.

aic7xxx_93cx6.c:
Sync perforce ids.

aic7xxx_freebsd.c:
Adjust for the primary channel being a 2 bit integer
rather than a flag for 'B' channel being the primary.

Namespace cleanup.

Unpause the sequencer in one error recovery path that
neglected to do so.  This could have caused us to perform
a bus reset when a recovery message might have otherwise been
successful.

aic7xxx_freebsd.h:
Use AHC_PCI_CONFIG for controlling compilation of PCI
support consistently throughout the driver.

Move ahc_power_state_change() to OSM.

aic7xxx_inline.h
Namespace cleanup.

Adjust our interrupt handler so it will work in the edge
interrupt case.  We must process all interrupt sources
when the interrupt fires or risk not ever getting an
interrupt again.  This involves marking the fact
that we are relying on an edge interrupt in ahc->flags
and checking for this condition in addition to the
AHC_ALL_INTERRUPTS flag.  This fixes hangs on the
284X and any other aic7770 installation where level
interrupts are not available.

aic7xxx_pci.c:
Move the powerstate manipulation code into the OSM.  Several
OSes now provide this functionality natively.

Take another shot at using the data stored in scratch ram
if the SCB2 signature is correct and no SEEPROM data is
available.  In the past this failed if external SCB ram
was configured because the memory port was locked.  We
now release the memory port prior to testing the values
in SCB2 and re-acquire it prior to doing termination control.

Adjust for new 2 bit primary channel setting.

Trust the STPWLEVEL setting on v 3.X BIOSes too.

Configure any 785X ID in the same fashion and assume
that any device with a rev id of 1 or higher has the
PCI 2.1 retry bug.

23 years agoPlug several mbuf leaks in error cases (in nd6)
bmilekic [Sun, 11 Mar 2001 05:31:45 +0000 (05:31 +0000)]
Plug several mbuf leaks in error cases (in nd6)

Submitted by: jhay

23 years agoDocument the softupdate stuff and also warn people against using
jkh [Sun, 11 Mar 2001 04:24:52 +0000 (04:24 +0000)]
Document the softupdate stuff and also warn people against using
it on root unless root is very large.

23 years agoReenable the SIGPIPE signal handler default in all cases for spawned
green [Sun, 11 Mar 2001 02:26:57 +0000 (02:26 +0000)]
Reenable the SIGPIPE signal handler default in all cases for spawned
sessions.

23 years agoWhen aio_read/write() is used on a raw device, physical buffers are
alc [Sat, 10 Mar 2001 22:47:57 +0000 (22:47 +0000)]
When aio_read/write() is used on a raw device, physical buffers are
used for up to "vfs.aio.max_buf_aio" of the requests.  If a request
size is MAXPHYS, but the request base isn't page aligned, vmapbuf()
will map the end of the user space buffer into the start of the kva
allocated for the next physical buffer.  Don't use a physical buffer
in this case.  (This change addresses problem report 25617.)

When an aio_read/write() on a raw device has completed, timeout() is
used to schedule a signal to the process.  Thus, the reporting is
delayed up to 10 ms (assuming hz is 100).  The process might have
terminated in the meantime, causing a trap 12 when attempting to
deliver the signal.  Thus, the timeout must be cancelled when removing
the job.

aio jobs in state JOBST_JOBQGLOBAL should be removed from the
kaio_jobqueue list during process rundown.

During process rundown, some aio jobs might move from one list to a
different list that has already been "emptied", causing the rundown to
be incomplete.  Retry the rundown.

A call to BUF_KERNPROC() is needed after obtaining a physical buffer
to disassociate the lock from the running process since it can return
to userland without releasing that lock.

PR: 25617
Submitted by: tegge

23 years agoCross references between the DEVICE_*(9) manual pages.
alex [Sat, 10 Mar 2001 19:53:38 +0000 (19:53 +0000)]
Cross references between the DEVICE_*(9) manual pages.

23 years agoAdd tunefs to the mfsroot floppy
jkh [Sat, 10 Mar 2001 19:52:12 +0000 (19:52 +0000)]
Add tunefs to the mfsroot floppy

23 years agoSupport setting soft updates from the label editor.
jkh [Sat, 10 Mar 2001 19:51:04 +0000 (19:51 +0000)]
Support setting soft updates from the label editor.

23 years agoAdd references to the various DEVICE_*(9) manpages, otherwise people
alex [Sat, 10 Mar 2001 19:42:26 +0000 (19:42 +0000)]
Add references to the various DEVICE_*(9) manpages, otherwise people
don't even know about these.

23 years agoAdd DEVICE_IDENTIFY.9
alex [Sat, 10 Mar 2001 19:37:27 +0000 (19:37 +0000)]
Add DEVICE_IDENTIFY.9

23 years agoAdd a manpage for the last of the driver's functions, the identify
alex [Sat, 10 Mar 2001 19:34:42 +0000 (19:34 +0000)]
Add a manpage for the last of the driver's functions, the identify
routine.

PR: 18654
Submitted by: myself (reworked today)

23 years agoTwo mdoc fixes:
alex [Sat, 10 Mar 2001 19:12:46 +0000 (19:12 +0000)]
Two mdoc fixes:
- .Os is used without "FreeBSD" nowadays.
- remove hard sentence breaks.

23 years agoEveryone that has commented seems to agree `-m 0' will cause no problems.
obrien [Sat, 10 Mar 2001 17:10:48 +0000 (17:10 +0000)]
Everyone that has commented seems to agree `-m 0' will cause no problems.

23 years agonetgraph.h:
julian [Sat, 10 Mar 2001 16:31:00 +0000 (16:31 +0000)]
netgraph.h:
  Change a prototype.
  Add a function version of ng_ref_node() when debugging so
  a breakpoint can be set on it.
ng_base.c:
  add 'node' as an argument to ng_apply_item so that it is up
  to the caller to take over and release the item's reference on
  the node. If the release reports back that the node went away
  due to the reference going to 0, the caller should cease referencing
  the now defunct node. (e.g. the item was a 'kill node' message).
  Alter ng_unref_node to report back the residual references as a result.
ng_pptpgre.c:
  Don't reference a node after we dropped a reference to it.
  (What if it was the last?)
Fixes a node leak reported by Harti Brandt <brandt@fokus.gmd.de>
 which was due to an incorrect earlier attempt to fix the
 "accessing node after dropping the last reference" problem.

23 years agoUpdate for /dev/random improvements.
markm [Sat, 10 Mar 2001 16:08:04 +0000 (16:08 +0000)]
Update for /dev/random improvements.

23 years agoAdd note on instruction emulation on EV[45] for things like BWX.
wilko [Sat, 10 Mar 2001 15:58:57 +0000 (15:58 +0000)]
Add note on instruction emulation on EV[45] for things like BWX.

23 years agoThe /dev/random harvesting sysctls have had a name change.
markm [Sat, 10 Mar 2001 13:45:28 +0000 (13:45 +0000)]
The /dev/random harvesting sysctls have had a name change.
Reflect this.

23 years agoKernel crypto need binary key material, not symbolic ascii.
markm [Sat, 10 Mar 2001 13:02:58 +0000 (13:02 +0000)]
Kernel crypto need binary key material, not symbolic ascii.

23 years agoThe /dev/random driver used Rijndael, not Blowfish, now.
markm [Sat, 10 Mar 2001 12:57:08 +0000 (12:57 +0000)]
The /dev/random driver used Rijndael, not Blowfish, now.

23 years agoVery large makeover of the /dev/random driver.
markm [Sat, 10 Mar 2001 12:51:55 +0000 (12:51 +0000)]
Very large makeover of the /dev/random driver.

o Separate the kernel stuff from the Yarrow algorithm. Yarrow is now
  well contained in one source file and one header.

o Replace the Blowfish-based crypto routines with Rijndael-based ones.
  (Rijndael is the new AES algorithm). The huge improvement in
  Rijndael's key-agility over Blowfish means that this is an
  extremely dramatic improvement in speed, and makes a heck of
  a difference in its (lack of) CPU load.

o Clean up the sysctl's. At BDE's prompting, I have gone back to
  static sysctls.

o Bug fixes. The streamlining of the crypto stuff enabled me to
  find and fix some bugs. DES also found a bug in the reseed routine
  which is fixed.

o Change the way reseeds clear "used" entropy. Previously, only the
  source(s) that caused a reseed were cleared. Now all sources in the
  relevant pool(s) are cleared.

o Code tidy-up. Mostly to make it (nearly) 80-column compliant.

23 years agoAllow for the last arugment to be the mountpoint of a filesystem,
ps [Sat, 10 Mar 2001 12:12:47 +0000 (12:12 +0000)]
Allow for the last arugment to be the mountpoint of a filesystem,
not just the device.

23 years agoafter discovering that the Santa Clara Valley Medical Center actually
billf [Sat, 10 Mar 2001 12:05:55 +0000 (12:05 +0000)]
after discovering that the Santa Clara Valley Medical Center actually
has a burn unit and is only 8 miles away...

add __DECONST(), __DEVOLATILE(), and __DEQUALIFY()

23 years agoAMD K6/K6-2/Duron/Athlon CPUs support MMX too.
sobomax [Sat, 10 Mar 2001 11:49:05 +0000 (11:49 +0000)]
AMD K6/K6-2/Duron/Athlon CPUs support MMX too.

Missed by: kris

23 years agoIn theory it would be perfectly legal for a system administrator to
billf [Sat, 10 Mar 2001 10:39:52 +0000 (10:39 +0000)]
In theory it would be perfectly legal for a system administrator to

# cd /dev && ./MAKEDEV pty0 pty3
and/or
# rm -rf /dev/ptyp0

and expect all programs that use openpty() to still try to find available ptys.

23 years agoFix typo.
okazaki [Sat, 10 Mar 2001 10:19:38 +0000 (10:19 +0000)]
Fix typo.

Approved by: tanimura

23 years agoAdd documentation for mchain API.
bp [Sat, 10 Mar 2001 06:10:48 +0000 (06:10 +0000)]
Add documentation for mchain API.

Reviewed by: asmodai, ru (mbchain.9)

23 years agoRemove now unused opt_ipx.h and opt_inet.h
bp [Sat, 10 Mar 2001 05:42:44 +0000 (05:42 +0000)]
Remove now unused opt_ipx.h and opt_inet.h

23 years agoSlightly reorganize allocation of new vnode. Use bit NVOLUME to detected
bp [Sat, 10 Mar 2001 05:39:03 +0000 (05:39 +0000)]
Slightly reorganize allocation of new vnode. Use bit NVOLUME to detected
vnodes which represent volumes (before it was done via strcmp()).
Turn n_refparent into bit in the n_flag field.

23 years agoAvoid complicated tests of whether devices are present or not, and
dougb [Sat, 10 Mar 2001 05:33:38 +0000 (05:33 +0000)]
Avoid complicated tests of whether devices are present or not, and
enable all harvesting options by default since having them on for
devices not present doesn't hurt anything. Leave them on by default
since for the most part they are not producing noticable slowdown,
and are about to get a lot more efficient.

Re-order part of the cheesy entropy process in preparation for
its complete removal.

23 years agoSynch with changes in the NCP requester.
bp [Sat, 10 Mar 2001 05:31:22 +0000 (05:31 +0000)]
Synch with changes in the NCP requester.

23 years agofix spelling errors, clarify comment, add $FreeBSD$
billf [Sat, 10 Mar 2001 05:28:46 +0000 (05:28 +0000)]
fix spelling errors, clarify comment, add $FreeBSD$

23 years agoMajor update of NCP requester:
bp [Sat, 10 Mar 2001 05:24:45 +0000 (05:24 +0000)]
Major update of NCP requester:

Use mchain API to work with mbuf chains.

Do not depend on INET and IPX options.

Allocate ncp_rq structure dynamically to prevent possible stack overflows.

Let ncp_request() dispose control structure if request failed.

Move all NCP wrappers to ncp_ncp.c file and all NCP request processing
functions to ncp_rq.c file.

Improve reconnection logic.

Misc style fixes.

23 years agoSpecify packing for an entire structure, not for each element of it.
bp [Sat, 10 Mar 2001 05:06:29 +0000 (05:06 +0000)]
Specify packing for an entire structure, not for each element of it.

23 years agoAdd libdata, some ports were using it.
kris [Sat, 10 Mar 2001 03:34:14 +0000 (03:34 +0000)]
Add libdata, some ports were using it.

23 years agoUse the correct path to the SASL .h files as installed by the SASL port.
gshapiro [Sat, 10 Mar 2001 00:31:07 +0000 (00:31 +0000)]
Use the correct path to the SASL .h files as installed by the SASL port.

MFC candidate.

Submitted by: jeh

23 years agoMAXHOSTNAMELEN includes the NUL
brian [Fri, 9 Mar 2001 21:24:13 +0000 (21:24 +0000)]
MAXHOSTNAMELEN includes the NUL

23 years agoIn the absence of explicit ``-t type'' option assume that ``-f file''
sobomax [Fri, 9 Mar 2001 21:15:08 +0000 (21:15 +0000)]
In the absence of explicit ``-t type'' option assume that ``-f file''
implies ``-t vnode''.

Approved by: phk

23 years agoFix a botch where we wrote the year register with > 2 digits (and
mjacob [Fri, 9 Mar 2001 20:39:02 +0000 (20:39 +0000)]
Fix a botch where we wrote the year register with > 2 digits (and
then knocked the extra digits off). Blegh. Update the comment and
adjustment method reading the chip clock year register to note that
anything less than 70 means we're past the year 2000.

23 years agoMAXHOSTNAME includes space for a NUL
brian [Fri, 9 Mar 2001 20:31:02 +0000 (20:31 +0000)]
MAXHOSTNAME includes space for a NUL

23 years agoRemove vn(4) driver.
phk [Fri, 9 Mar 2001 20:10:35 +0000 (20:10 +0000)]
Remove vn(4) driver.

23 years agoMake md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)
phk [Fri, 9 Mar 2001 20:09:28 +0000 (20:09 +0000)]
Make md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)
entirely as previously advertised.

md(4) adopted all assets of vn(4) some time back and has proper devfs
support and cloning abilities to boot.

23 years agoMake md(4) more in line with reality.
phk [Fri, 9 Mar 2001 20:07:37 +0000 (20:07 +0000)]
Make md(4) more in line with reality.

NB: probably contains mdoc mistakes, feel free to fix.

23 years agoUse a more BIOS friendly geometry.
phk [Fri, 9 Mar 2001 20:06:30 +0000 (20:06 +0000)]
Use a more BIOS friendly geometry.

Submitted by: joe

23 years ago1) If mdconfig isn't given an action argument, it assumes detach.
phk [Fri, 9 Mar 2001 20:05:06 +0000 (20:05 +0000)]
1) If mdconfig isn't given an action argument, it assumes detach.
2) Running `mdconfig -l` without any attached devices results in
mdconfig printing "md0" to standard output.

Submitted by: dd [1]

[1] no, not "dd(1)" but "Dima Dorfman"

23 years agoDon't call malloc with M_WAITOK while holding a mutex.
alfred [Fri, 9 Mar 2001 18:40:34 +0000 (18:40 +0000)]
Don't call malloc with M_WAITOK while holding a mutex.

23 years agoWhen creating a shadow vm_object in vmspace_fork(), only one
iedowse [Fri, 9 Mar 2001 18:25:54 +0000 (18:25 +0000)]
When creating a shadow vm_object in vmspace_fork(), only one
reference count was transferred to the new object, but both the
new and the old map entries had pointers to the new object.
Correct this by transferring the second reference.

This fixes a panic that can occur when mmap(2) is used with the
MAP_INHERIT flag.

PR: i386/25603
Reviewed by: dillon, alc

23 years agomdoc(7) police: in mdocNG, -offset and -width values without scaling
ru [Fri, 9 Mar 2001 16:22:37 +0000 (16:22 +0000)]
mdoc(7) police: in mdocNG, -offset and -width values without scaling
indicator are treated as strings, so "-offset 0" will set the offset
to the width of the string "0", as opposed to "no offset".

TIP: if offset is not needed, the -offset clause may be omitted.

23 years agoCorrect a race condition where it was possible for a signaled
deischen [Fri, 9 Mar 2001 16:05:43 +0000 (16:05 +0000)]
Correct a race condition where it was possible for a signaled
thread to become stranded and not placed in the run queue.

MFC Candidate

Reported by: tegge

23 years agoAdd module.9 and DECLARE_MODULE.9
alex [Fri, 9 Mar 2001 14:16:46 +0000 (14:16 +0000)]
Add module.9 and DECLARE_MODULE.9

23 years agoAdd a general manpage about kernel modules, similar to driver(9).
alex [Fri, 9 Mar 2001 14:12:43 +0000 (14:12 +0000)]
Add a general manpage about kernel modules, similar to driver(9).

Reviewed by: dfr, ru

23 years agoAdd a manpage for the kernel macro DECLARE_MODULE.
alex [Fri, 9 Mar 2001 14:11:56 +0000 (14:11 +0000)]
Add a manpage for the kernel macro DECLARE_MODULE.

Reviewed by: dfr, ru

23 years agoChange the kernel layout to match Linux/ia64 more closely. This prevents
dfr [Fri, 9 Mar 2001 13:47:25 +0000 (13:47 +0000)]
Change the kernel layout to match Linux/ia64 more closely. This prevents
the Linux loader from corrupting our text section when it attempts to
write out boot options.

23 years agoAdd SKI_ROOT_FILESYSTEM option.
dfr [Fri, 9 Mar 2001 13:46:03 +0000 (13:46 +0000)]
Add SKI_ROOT_FILESYSTEM option.

23 years agoAllow the config file to specify a root filesystem filename.
dfr [Fri, 9 Mar 2001 13:45:31 +0000 (13:45 +0000)]
Allow the config file to specify a root filesystem filename.

23 years agoAdjust a comment slightly.
dfr [Fri, 9 Mar 2001 13:44:53 +0000 (13:44 +0000)]
Adjust a comment slightly.

23 years agoAdd new option -m which allows the user to set IP TTL.
ru [Fri, 9 Mar 2001 13:20:23 +0000 (13:20 +0000)]
Add new option -m which allows the user to set IP TTL.

23 years agobye-bye documented raw devices
obrien [Fri, 9 Mar 2001 13:06:53 +0000 (13:06 +0000)]
bye-bye documented raw devices

23 years agobye-bye documented raw device
obrien [Fri, 9 Mar 2001 13:06:09 +0000 (13:06 +0000)]
bye-bye documented raw device

23 years agoRemove tunefs'ing that was OBE by rev 1.30.
obrien [Fri, 9 Mar 2001 12:33:53 +0000 (12:33 +0000)]
Remove tunefs'ing that was OBE by rev 1.30.

Submitted by: bde

23 years agoWarner gave a nice followup in email, and I thought it would be nice to
obrien [Fri, 9 Mar 2001 12:29:08 +0000 (12:29 +0000)]
Warner gave a nice followup in email, and I thought it would be nice to
get it in the CVS logs.  This pertains to rev 1.30 (and the MFC of it):

  Space optimization forces the kernel to always use fragments to store
  parts of file, rather than using an entire block when less than an
  entire block has been written.  This forces files to be as small as
  they can be at the minor cost of time to do all the fussy stuff.  The
  cpio image that we put on the disk was so close to filling the disk
  exactly that this minor minor difference made a big difference.  The
  system changed things to time optmization on the first write.  When
  the end of file was hit, it tried to allocate a full block (4k), but
  there was only 3k left on the disk (since you get only 1407 blocks on
  a 1.44 floppy) so it failed.  So this change nails the space
  optmiziation in place for the whole operation.

23 years agoMake it possible to use IP_TTL and IP_TOS setsockopt(2) options
ru [Fri, 9 Mar 2001 12:22:51 +0000 (12:22 +0000)]
Make it possible to use IP_TTL and IP_TOS setsockopt(2) options
on certain types of SOCK_RAW sockets.  Also, use the ip.ttl MIB
variable instead of MAXTTL constant as the default time-to-live
value for outgoing IP packets all over the place, as we already
do this for TCP and UDP.

Reviewed by: wollman

23 years agoDefine KINFO_PROC_SIZE for ia64.
dfr [Fri, 9 Mar 2001 11:34:29 +0000 (11:34 +0000)]
Define KINFO_PROC_SIZE for ia64.