]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoDon't forget to turn off P_SINGLE_BOUNDARY for thread_single(SINGLE_EXIT),
David Xu [Thu, 4 Nov 2004 22:13:16 +0000 (22:13 +0000)]
Don't forget to turn off P_SINGLE_BOUNDARY for thread_single(SINGLE_EXIT),
otherwise a threaded process which calls execv() will hang in kernel and
may can not be killed!

19 years agoPartically backout previous commit. Since _callout_stop_safe() clears
Gleb Smirnoff [Thu, 4 Nov 2004 21:30:18 +0000 (21:30 +0000)]
Partically backout previous commit. Since _callout_stop_safe() clears
out c->c_func, we can't take it after callout_stop(). To take it before
we need to acquire callout_lock, to avoid race. This commit narrows
down area where lock is held, but hack is still present.

This should be redesigned.

Approved by: julian (mentor)

19 years agoProtect the function declarations with #ifdef _KERNEL.
Olivier Houchard [Thu, 4 Nov 2004 19:20:54 +0000 (19:20 +0000)]
Protect the function declarations with #ifdef _KERNEL.

19 years agoDirectly use __pcpu for PCPU_* instead of pcpup.
Olivier Houchard [Thu, 4 Nov 2004 19:19:44 +0000 (19:19 +0000)]
Directly use __pcpu for PCPU_* instead of pcpup.

19 years agoDecrease KSTACK_PAGES and UAREA_PAGES.
Olivier Houchard [Thu, 4 Nov 2004 19:19:21 +0000 (19:19 +0000)]
Decrease KSTACK_PAGES and UAREA_PAGES.

19 years agoUse interrupts_disable() and interrupts_restore() as intr_disable() and
Olivier Houchard [Thu, 4 Nov 2004 19:18:50 +0000 (19:18 +0000)]
Use interrupts_disable() and interrupts_restore() as intr_disable() and
intr_restore() instead of re-implement it.

19 years agoAdd support for following more than one file i.e.
Paul Richards [Thu, 4 Nov 2004 19:18:19 +0000 (19:18 +0000)]
Add support for following more than one file i.e.
tail -f file1 file2

19 years agoDon't barf if no CPU type is defined while compiling kernel modules.
Olivier Houchard [Thu, 4 Nov 2004 19:16:31 +0000 (19:16 +0000)]
Don't barf if no CPU type is defined while compiling kernel modules.

19 years agoImplement get_cyclecount().
Olivier Houchard [Thu, 4 Nov 2004 19:15:43 +0000 (19:15 +0000)]
Implement get_cyclecount().

19 years agoTry to implement atomic operations using swp, instead of disabling interrupts.
Olivier Houchard [Thu, 4 Nov 2004 19:14:50 +0000 (19:14 +0000)]
Try to implement atomic operations using swp, instead of disabling interrupts.

19 years agoGrammatical and spelling improvements.
Ceri Davies [Thu, 4 Nov 2004 19:12:43 +0000 (19:12 +0000)]
Grammatical and spelling improvements.

Reviewed by: pjd

19 years agoUse casts to enforce the return type of bswap16() and bswap32().
Olivier Houchard [Thu, 4 Nov 2004 19:07:28 +0000 (19:07 +0000)]
Use casts to enforce the return type of bswap16() and bswap32().

19 years agoImplement cpu_thread_siginfo() and set_mcontext().
Olivier Houchard [Thu, 4 Nov 2004 19:04:30 +0000 (19:04 +0000)]
Implement cpu_thread_siginfo() and set_mcontext().
Nuke getframe(), and choose which stack to use directly in sendsig().

19 years agoImplement cpu_set_upcall and cpu_set_upcall_kse.
Olivier Houchard [Thu, 4 Nov 2004 18:59:02 +0000 (18:59 +0000)]
Implement cpu_set_upcall and cpu_set_upcall_kse.
Calculate td_frame and td_pcb the right way in cpu_thread_setup.

19 years agoGet kernel modules to work.
Olivier Houchard [Thu, 4 Nov 2004 18:48:52 +0000 (18:48 +0000)]
Get kernel modules to work.

19 years agoFix braino where I didn't fix the file path from when the line was
David E. O'Brien [Thu, 4 Nov 2004 15:46:59 +0000 (15:46 +0000)]
Fix braino where I didn't fix the file path from when the line was
copied from the test program.

19 years agoMFi386: revision 1.420 (Reduce annoying SCSI probing delay).
Yoshihiro Takahashi [Thu, 4 Nov 2004 15:20:26 +0000 (15:20 +0000)]
MFi386: revision 1.420 (Reduce annoying SCSI probing delay).

19 years agoSync up with gdbinit.vinum removal.
Ruslan Ermilov [Thu, 4 Nov 2004 14:47:15 +0000 (14:47 +0000)]
Sync up with gdbinit.vinum removal.

OK'ed by: phk

19 years agoRemove vinum bits.
Poul-Henning Kamp [Thu, 4 Nov 2004 13:34:06 +0000 (13:34 +0000)]
Remove vinum bits.

19 years agoSync up with vinum(8) and rc.d/vinum removal.
Ruslan Ermilov [Thu, 4 Nov 2004 13:33:29 +0000 (13:33 +0000)]
Sync up with vinum(8) and rc.d/vinum removal.

OK'ed by: phk

19 years agoRemove another vinum file
Poul-Henning Kamp [Thu, 4 Nov 2004 13:32:24 +0000 (13:32 +0000)]
Remove another vinum file

19 years agoremove vinum startup script.
Poul-Henning Kamp [Thu, 4 Nov 2004 12:59:16 +0000 (12:59 +0000)]
remove vinum startup script.

19 years agoRemove the remote stuff from make. This actually never worked in our make
Hartmut Brandt [Thu, 4 Nov 2004 12:57:41 +0000 (12:57 +0000)]
Remove the remote stuff from make. This actually never worked in our make
because the necessary files were not imported with the original import.
If somebody really needs it, there is still the devel/pmake port.

This is just the first step and removes just everything that is ifdef'ed out.
Otherwise the code is unchanged.

Checked by: md5

Approved by: no objections on arch@

19 years agoRemove references to NO_VINUM
Poul-Henning Kamp [Thu, 4 Nov 2004 12:57:40 +0000 (12:57 +0000)]
Remove references to NO_VINUM

19 years agoUps! Forgot to put "sbin" on the commit line:
Poul-Henning Kamp [Thu, 4 Nov 2004 12:46:46 +0000 (12:46 +0000)]
Ups!  Forgot to put "sbin" on the commit line:

Remove userland vinum(8) stuff.

19 years agoAdapt to the new ng_timeout/ng_untimeout arguments. These now use
Hartmut Brandt [Thu, 4 Nov 2004 12:33:55 +0000 (12:33 +0000)]
Adapt to the new ng_timeout/ng_untimeout arguments. These now use
the callout instead of the timeout interface.

Submitted by: glebius

19 years agoRemove unused vinum files.
Poul-Henning Kamp [Thu, 4 Nov 2004 09:57:21 +0000 (09:57 +0000)]
Remove unused vinum files.

19 years agoRetire b_magic now, we have the bufobj containing the same hint.
Poul-Henning Kamp [Thu, 4 Nov 2004 09:48:18 +0000 (09:48 +0000)]
Retire b_magic now, we have the bufobj containing the same hint.

19 years agoEliminate the embedded struct bio in struct buf.
Poul-Henning Kamp [Thu, 4 Nov 2004 09:37:50 +0000 (09:37 +0000)]
Eliminate the embedded struct bio in struct buf.

Saves approx 100-170 bytes per buf depending on architecture.

19 years agoAdd back securelevel check for disks.
Poul-Henning Kamp [Thu, 4 Nov 2004 09:17:55 +0000 (09:17 +0000)]
Add back securelevel check for disks.

XXX: This should live in geom_dev.c but we don't have access to the
cred there.
XXX: XXX:  This may not matter anymore since filesystems use geom_vfs.

19 years agoDon't grab the exclusive bit on a root filesystem until we are willing
Poul-Henning Kamp [Thu, 4 Nov 2004 09:11:22 +0000 (09:11 +0000)]
Don't grab the exclusive bit on a root filesystem until we are willing
to mount it.  Doing so prevented fsck to be run after a refused mount.

19 years agoChange buf->b_object to buf->b_bufobj->bo_object
Poul-Henning Kamp [Thu, 4 Nov 2004 09:06:54 +0000 (09:06 +0000)]
Change buf->b_object to buf->b_bufobj->bo_object

some whitespace fixes.

19 years agoBump __FreeBSD_version after addition of glibc-style strftime(3) padding
Xin LI [Thu, 4 Nov 2004 08:38:34 +0000 (08:38 +0000)]
Bump __FreeBSD_version after addition of glibc-style strftime(3) padding
specifiers.

This helps the port team to decide whether to use local patch for
applications that makes use of these GNU extensions (and hopefully we
can get rid of these patches finally)

Requested by: marcus

19 years agoDe-couple our I/O bio request from the embedded bio in buf by explicitly
Poul-Henning Kamp [Thu, 4 Nov 2004 08:38:07 +0000 (08:38 +0000)]
De-couple our I/O bio request from the embedded bio in buf by explicitly
copying the fields.

19 years agoAdd glibc-style strftime(3) padding specifiers, namely, -(no padding),
Xin LI [Thu, 4 Nov 2004 08:34:57 +0000 (08:34 +0000)]
Add glibc-style strftime(3) padding specifiers, namely, -(no padding),
_(use space as padding), and 0(zero padding).

These GNU extensions are widely used ones that is worthy for us to
have.

Discussed with: stefanf, roam, -current
Approved by: murray
Prodded by: ports/72722, ports/72723
MFC After: 1 month

19 years agoFix markup: .Dv -> .Va
Bruce M Simpson [Thu, 4 Nov 2004 08:29:28 +0000 (08:29 +0000)]
Fix markup: .Dv -> .Va
Update document dates.

Prodded by: ru

19 years agowhitespace
Poul-Henning Kamp [Thu, 4 Nov 2004 08:25:52 +0000 (08:25 +0000)]
whitespace

19 years agoFixed "make clean".
Ruslan Ermilov [Thu, 4 Nov 2004 08:25:03 +0000 (08:25 +0000)]
Fixed "make clean".

19 years agoRemove buf->b_dev field.
Poul-Henning Kamp [Thu, 4 Nov 2004 07:59:57 +0000 (07:59 +0000)]
Remove buf->b_dev field.

19 years agos/ffs/ntfs/
Poul-Henning Kamp [Thu, 4 Nov 2004 07:18:54 +0000 (07:18 +0000)]
s/ffs/ntfs/

Fix error handling to not use VOP_CLOSE() on the disk.

Spotted by: tegge

19 years agoFinish cut&paste adjustments.
Poul-Henning Kamp [Thu, 4 Nov 2004 07:17:08 +0000 (07:17 +0000)]
Finish cut&paste adjustments.

Spotted by: tegge

19 years agoHide udp_in6 behind #ifdef INET6
Poul-Henning Kamp [Thu, 4 Nov 2004 07:14:03 +0000 (07:14 +0000)]
Hide udp_in6 behind #ifdef INET6

19 years agoCreate a separate directory for dynamic zones which is owned by the bind
Gregory Neil Shapiro [Thu, 4 Nov 2004 05:24:29 +0000 (05:24 +0000)]
Create a separate directory for dynamic zones which is owned by the bind
user (for creation of the zone journal file).  This is separate from the
master/ directory for security.  Give an example dynamic zone in the
sample named.conf.

Approved by: dougb
Noticed by: Eivind Olsen <eivind at aminor.no>
MFC after: 1 week

19 years agoDocument the fact that blackhole routes normally need to be bound
Bruce M Simpson [Thu, 4 Nov 2004 02:15:03 +0000 (02:15 +0000)]
Document the fact that blackhole routes normally need to be bound
to lo(4) interfaces to have an effect, and that this is not needed
when using IP fast forwarding.

Sponsored by: eXtensible Open Router Project <URL:http://www.xorp.org/>
MFC after: 3 weeks

19 years agoWhen performing IP fast forwarding, immediately drop traffic which is
Bruce M Simpson [Thu, 4 Nov 2004 02:14:38 +0000 (02:14 +0000)]
When performing IP fast forwarding, immediately drop traffic which is
destined for a blackhole route.

This also means that blackhole routes do not need to be bound to lo(4)
or disc(4) interfaces for the net.inet.ip.fastforwarding=1 case.

Submitted by: james at towardex dot com
Sponsored by: eXtensible Open Router Project <URL:http://www.xorp.org/>
MFC after: 3 weeks

19 years agoDocument the fact that the flags for a FreeBSD kernel routing table
Bruce M Simpson [Thu, 4 Nov 2004 02:13:15 +0000 (02:13 +0000)]
Document the fact that the flags for a FreeBSD kernel routing table
entry are documented in the page for route(8), not route(4).

Sponsored by: eXtensible Open Router Project <URL:http://www.xorp.org/>
MFC after: 3 weeks

19 years agoStop listening to bug reports with wrong solutions and commit a fix to the '
David E. O'Brien [Thu, 4 Nov 2004 01:28:43 +0000 (01:28 +0000)]
Stop listening to bug reports with wrong solutions and commit a fix to the '
problem I know will work.

19 years agoUntil this change, the UDP input code used global variables udp_in,
Robert Watson [Thu, 4 Nov 2004 01:25:23 +0000 (01:25 +0000)]
Until this change, the UDP input code used global variables udp_in,
udp_in6, and udp_ip6 to pass socket address state between udp_input(),
udp_append(), and soappendaddr_locked().  While file in the default
configuration, when running with multiple netisrs or direct ithread
dispatch, this can result in races wherein user processes using
recvmsg() get back the wrong source IP/port.  To correct this and
related races:

- Eliminate udp_ip6, which is believed to be generated but then never
  used.  Eliminate ip_2_ip6_hdr() as it is now unneeded.

- Eliminate setting, testing, and existence of 'init' status fields
  for the IPv6 structures.  While with multiple UDP delivery this
  could lead to amortization of IPv4 -> IPv6 conversion when
  delivering an IPv4 UDP packet to an IPv6 socket, it added
  substantial complexity and side effects.

- Move global structures into the stack, declaring udp_in in
  udp_input(), and udp_in6 in udp_append() to be used if a conversion
  is required.  Pass &udp_in into udp_append().

- Re-annotate comments to reflect updates.

With this change, UDP appears to operate correctly in the presence of
substantial inbound processing parallelism.  This solution avoids
introducing additional synchronization, but does increase the
potential stack depth.

Discovered by: kris (Bug Magnet)
MFC after: 3 weeks

19 years agoRevert most of 1.109. Although it improved the situation on one particular
John Baldwin [Wed, 3 Nov 2004 22:11:20 +0000 (22:11 +0000)]
Revert most of 1.109.  Although it improved the situation on one particular
motherboard, in practice the changes resulted in many false positives for
heavy network loads, etc. resulting in poor performance.  Also, the
motherboard referenced in the 1.109 log has other problems and simply does
not seem to work with the APIC enabled even with the changes in 1.109.  The
correct fix for that board seems to be to not use the APIC at all.  One
thing kept from 1.109 is that throttled interrupts are now effectively
polled on every clock tick rather than just 10 times per second.

MFC after: 1 month
Tested by: Shunsuke SHINOMIYA shino at fornext dot org

19 years agoBe more clear that "bridged" is a synonym for "layer2".
Ceri Davies [Wed, 3 Nov 2004 21:51:34 +0000 (21:51 +0000)]
Be more clear that "bridged" is a synonym for "layer2".

PR: docs/44400
Submitted by: Constantin Stefanov <cstef at mail dot ru>

19 years agoMake a more whole-hearted attempt at GEOM'ifying NTFS.
Poul-Henning Kamp [Wed, 3 Nov 2004 21:36:41 +0000 (21:36 +0000)]
Make a more whole-hearted attempt at GEOM'ifying NTFS.

I must have been sleepy when I did the first pass.

Spotted by: tegge

19 years agoAlways initialize bo_private along with bo_ops in getnewvnode().
Poul-Henning Kamp [Wed, 3 Nov 2004 21:09:23 +0000 (21:09 +0000)]
Always initialize bo_private along with bo_ops in getnewvnode().

Spotted by: tegge

19 years agoAllow the -f argument to work.
Ceri Davies [Wed, 3 Nov 2004 20:45:52 +0000 (20:45 +0000)]
Allow the -f argument to work.

PR: bin/73229
Submitted by: Irina Liakh <spell at itl dot ua>
MT4: 2 weeks
MT5: After 5.3-RELEASE

19 years agoThe synchronization provided by vm object locking has eliminated the
Alan Cox [Wed, 3 Nov 2004 20:17:31 +0000 (20:17 +0000)]
The synchronization provided by vm object locking has eliminated the
need for most calls to vm_page_busy().  Specifically, most calls to
vm_page_busy() occur immediately prior to a call to vm_page_remove().
In such cases, the containing vm object is locked across both calls.
Consequently, the setting of the vm page's PG_BUSY flag is not even
visible to other threads that are following the synchronization
protocol.

This change (1) eliminates the calls to vm_page_busy() that
immediately precede a call to vm_page_remove() or functions, such as
vm_page_free() and vm_page_rename(), that call it and (2) relaxes the
requirement in vm_page_remove() that the vm page's PG_BUSY flag is
set.  Now, the vm page's PG_BUSY flag is set only when the vm object
lock is released while the vm page is still in transition.  Typically,
this is when it is undergoing I/O.

19 years agoRestore TTYDEF_LFLAG to set echo bits.
Poul-Henning Kamp [Wed, 3 Nov 2004 19:16:55 +0000 (19:16 +0000)]
Restore TTYDEF_LFLAG to set echo bits.

19 years agoUpdate the list of package names/descriptions.
Ken Smith [Wed, 3 Nov 2004 18:26:06 +0000 (18:26 +0000)]
Update the list of package names/descriptions.

Last second MFC candidate?

19 years agoDon't use atomic ops to increment interrupt stats. This was only done on
Scott Long [Wed, 3 Nov 2004 18:03:06 +0000 (18:03 +0000)]
Don't use atomic ops to increment interrupt stats.  This was only done on
amd64 and i386 anyways.  The stats are only kept for informational purposes.

19 years agoIntroduce the PRECIOUSPROG knob in bsd.prog.mk, similar
Ruslan Ermilov [Wed, 3 Nov 2004 18:01:21 +0000 (18:01 +0000)]
Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar
to PRECIOUSLIB from bsd.lib.mk.  The side effect of this
is making installing the world under jail(8) possible by
using another knob, NOFSCHG.

Reviewed by: oliver

19 years agoFix kernel build (caused by recent ng_{un}timeout API change)
Maksim Yevmenkin [Wed, 3 Nov 2004 18:00:49 +0000 (18:00 +0000)]
Fix kernel build (caused by recent ng_{un}timeout API change)

Submitted by: glebius

19 years agoRevert a WIP change that shouldn't have been in last commit.
Paul Richards [Wed, 3 Nov 2004 17:52:29 +0000 (17:52 +0000)]
Revert a WIP change that shouldn't have been in last commit.

19 years agoRemove extra 's'.
Pawel Jakub Dawidek [Wed, 3 Nov 2004 17:31:09 +0000 (17:31 +0000)]
Remove extra 's'.

Submitted by: ceri

19 years agoBe more correct.
Pawel Jakub Dawidek [Wed, 3 Nov 2004 17:21:37 +0000 (17:21 +0000)]
Be more correct.

Submitted by: ceri

19 years agoImproved interface handling. This should fix the use of renamed interfaces
Max Laier [Wed, 3 Nov 2004 17:21:12 +0000 (17:21 +0000)]
Improved interface handling. This should fix the use of renamed interfaces
(ifconfig xl0 name foo) as well as some special interfaces such as the 6to4
tunnel.

Reported by: Ed Schouten <ed (at) il ! fontys , nl>
Tested by: freebsd-pf
PR: kern/72444
MFC after: 3 weeks

19 years agoRemove one more redundant 'not'.
Pawel Jakub Dawidek [Wed, 3 Nov 2004 16:32:55 +0000 (16:32 +0000)]
Remove one more redundant 'not'.

19 years agoConvert to ANSI style function definitions.
Paul Richards [Wed, 3 Nov 2004 15:23:11 +0000 (15:23 +0000)]
Convert to ANSI style function definitions.

19 years agoThe ehci_dump() function shouldn't be declared static, as it is
Ian Dowse [Wed, 3 Nov 2004 15:12:18 +0000 (15:12 +0000)]
The ehci_dump() function shouldn't be declared static, as it is
just a convenience function to be called from debuggers that gets
compiled in when EHCI_DEBUG is defined. Move its declaration to
make this more obvious.

19 years agoPut the "Link is up/down" printfs behind bootverbose. gigE is not so uncommon
Poul-Henning Kamp [Wed, 3 Nov 2004 14:11:18 +0000 (14:11 +0000)]
Put the "Link is up/down" printfs behind bootverbose.  gigE is not so uncommon
that we need to tell people about every cable in the network anymore.  It can
be enabled for debugging purposes with "boot -v".

19 years ago(1) Move from O(n) list copies to O(1) list concatenation, which is
Robert Watson [Wed, 3 Nov 2004 10:02:50 +0000 (10:02 +0000)]
(1) Move from O(n) list copies to O(1) list concatenation, which is
    supported for STAILQ via STAILQ_CONCAT().

(2) Maintain a count of the number of entries in the thread-local entropy
    fifo so that we can keep the other fifo counts in synch.

MFC after: 3 weeks
MFC with: randomdev_soft.c revisions 1.5 and 1.6
Suggested by:   jhb (1)

19 years agoMake the bootverbose output from qualitydetermination of the ACPI timer
Poul-Henning Kamp [Wed, 3 Nov 2004 09:09:13 +0000 (09:09 +0000)]
Make the bootverbose output from qualitydetermination of the ACPI timer
take up only one line.

19 years agoStop dumping the MBR entries under bootverbose
Poul-Henning Kamp [Wed, 3 Nov 2004 09:08:33 +0000 (09:08 +0000)]
Stop dumping the MBR entries under bootverbose

19 years agoStop wasting a bootverbose line on all geom slices.
Poul-Henning Kamp [Wed, 3 Nov 2004 09:08:10 +0000 (09:08 +0000)]
Stop wasting a bootverbose line on all geom slices.

19 years agoStop printing the VGA registers during verbose boot, in order to not
Poul-Henning Kamp [Wed, 3 Nov 2004 09:07:44 +0000 (09:07 +0000)]
Stop printing the VGA registers during verbose boot, in order to not
needlessly overflow the msgbuffer.  Can be reenabled if somebody ever
takes an interest in syscons again.

19 years agoDon't print the singularly unhelpful message:
Poul-Henning Kamp [Wed, 3 Nov 2004 09:06:45 +0000 (09:06 +0000)]
Don't print the singularly unhelpful message:

unknown: not probled (disabled)

During verbose boot.

19 years agoMake the KASSERTS in bstrategy() stop claiming to be bwrite().
Poul-Henning Kamp [Wed, 3 Nov 2004 09:05:55 +0000 (09:05 +0000)]
Make the KASSERTS in bstrategy() stop claiming to be bwrite().

Spotted by: delphij

19 years agoFix logxfer() by using realpath(3) instead of playing with getwd(3).
Yaroslav Tykhiy [Wed, 3 Nov 2004 06:52:40 +0000 (06:52 +0000)]
Fix logxfer() by using realpath(3) instead of playing with getwd(3).
Previously logxfer() used to record bogus pathnames to the log
in some cases, namely, when cwd was / or "name" was absolute.

Noticed by: Nick Leuta
MFC after: 2 weeks

19 years agoMerge recent USB2/EHCI related changes from NetBSD:
Ian Dowse [Wed, 3 Nov 2004 01:52:50 +0000 (01:52 +0000)]
Merge recent USB2/EHCI related changes from NetBSD:
 o Reduce the interrupt delay to 2 microframes.
 o Follow the spec more closely when updating the overlay qTD in the QH.
 o No need to generate an interrupt at the data part of a control
   transfer, it's generated by the status transfer.
 o Make sure to update the data toggle on short transfers.
 o Turn the printf about needing toggle update into a DPRINTF.
 o Keep track of what high speed port (if any) a device belongs to
   so we can set the transaction translator fields for the transfer.
 o Verbosely refuse to open low/full speed pipes that depend on
   unimplemented split transaction support.
 o Fix various typos in comments.

Obtained from: NetBSD

19 years agoStreamline busdma a bit. Inline _bus_dmamap_load_buffer, optimize some
Scott Long [Tue, 2 Nov 2004 23:52:58 +0000 (23:52 +0000)]
Streamline busdma a bit.  Inline _bus_dmamap_load_buffer, optimize some
tests, replace a passed td with a passed pmap to eliminate some deferences.

19 years agoAdd an "old-style" entry for the hptmv(4) until it gets a manual page.
Simon L. B. Nielsen [Tue, 2 Nov 2004 22:31:29 +0000 (22:31 +0000)]
Add an "old-style" entry for the hptmv(4) until it gets a manual page.

Suggested by: brueffer

19 years agoRemove RFC1644 T/TCP support from the TCP side of the network stack.
Andre Oppermann [Tue, 2 Nov 2004 22:22:22 +0000 (22:22 +0000)]
Remove RFC1644 T/TCP support from the TCP side of the network stack.

A complete rationale and discussion is given in this message
and the resulting discussion:

 http://docs.freebsd.org/cgi/mid.cgi?4177C8AD.6060706

Note that this commit removes only the functional part of T/TCP
from the tcp_* related functions in the kernel.  Other features
introduced with RFC1644 are left intact (socket layer changes,
sendmsg(2) on connection oriented protocols)  and are meant to
be reused by a simpler and less intrusive reimplemention of the
previous T/TCP functionality.

Discussed on: -arch

19 years ago- Make ng_timeout() to use callout() interface instead of timeout().
Gleb Smirnoff [Tue, 2 Nov 2004 21:24:30 +0000 (21:24 +0000)]
- Make ng_timeout() to use callout() interface instead of timeout().
- Remove callout-hacking from ng_untimeout().

Approved by: julian (mentor)
MFC after: 1 month

19 years agoReduce annoying SCSI probing delay from 15 to 5 seconds in all GENRIC kernels.
Andre Oppermann [Tue, 2 Nov 2004 20:57:20 +0000 (20:57 +0000)]
Reduce annoying SCSI probing delay from 15 to 5 seconds in all GENRIC kernels.

Discussed on: -current

19 years agoFix a harmless error in order of ng_timeout() arguments.
Gleb Smirnoff [Tue, 2 Nov 2004 20:26:41 +0000 (20:26 +0000)]
Fix a harmless error in order of ng_timeout() arguments.

Approved by: julian (mentor)

19 years agoSerial devices now called /dev/cuadXX not /dev/cuaaXX
Maksim Yevmenkin [Tue, 2 Nov 2004 20:12:06 +0000 (20:12 +0000)]
Serial devices now called /dev/cuadXX not /dev/cuaaXX

19 years agoSerial devices now called /dev/cuadXX not /dev/cuaaXX
Maksim Yevmenkin [Tue, 2 Nov 2004 20:06:33 +0000 (20:06 +0000)]
Serial devices now called /dev/cuadXX not /dev/cuaaXX

19 years agoFix broken ng_h4(4). Basically, do not abuse t_sc field and use new t_lsc
Maksim Yevmenkin [Tue, 2 Nov 2004 20:01:42 +0000 (20:01 +0000)]
Fix broken ng_h4(4). Basically, do not abuse t_sc field and use new t_lsc
field created for line disciplne drivers private use. Also add NET_NEEDS_GIANT
warning. For whatever reason ng_tty(4) was fixed but ng_h4(4) was not :(

19 years agoReplace the last occurence of (long long) and %qd with
Yaroslav Tykhiy [Tue, 2 Nov 2004 18:48:44 +0000 (18:48 +0000)]
Replace the last occurence of (long long) and %qd with
(intmax_t) and %jd, which is the right way to printf
an off_t in the presence of <stdint.h>.

Submitted by: Nick Leuta

19 years agostty sane should set the echo bits.
Poul-Henning Kamp [Tue, 2 Nov 2004 18:10:01 +0000 (18:10 +0000)]
stty sane should set the echo bits.

PR: 73423
Submitted by: Michiel Boland <michiel@boland.org>
Overlooked by: phk

19 years agoAdd a small regression test that opens a TCP socket, listens on it,
Robert Watson [Tue, 2 Nov 2004 17:59:12 +0000 (17:59 +0000)]
Add a small regression test that opens a TCP socket, listens on it,
performs a non-blocking connect from another socket, and then closes
the listen socket rather than accepting.  This is intended to
exercise the close path in which connections are aborted due to a
close on the listen socket while the connection is in the listen
queue.

19 years agoAcquire the accept mutex in soabort() before calling sotryfree(), as
Robert Watson [Tue, 2 Nov 2004 17:15:13 +0000 (17:15 +0000)]
Acquire the accept mutex in soabort() before calling sotryfree(), as
that is now required.

RELENG_5_3 candidate.

Foot provided by: Dikshie <dikshie at ppk dot itb dot ac dot id>

19 years agoThis is a forced commit to note that actually pam_strerror()
Yaroslav Tykhiy [Tue, 2 Nov 2004 14:49:46 +0000 (14:49 +0000)]
This is a forced commit to note that actually pam_strerror()
in RELENG_4 can handle a NULL "pamh", too, because the code
that wouldn't allow that is effectively ifdef'ed out.
Therefore rev. 1.171-1.172 can be merged to RELENG_4 safely.

19 years agoAdd support for Asus M6N laptops
Philip Paeps [Tue, 2 Nov 2004 13:02:22 +0000 (13:02 +0000)]
Add support for Asus M6N laptops

Submitted by: Andreas Dieling <snow@quantentunnel.de>

19 years agoSort files properly.
Pawel Jakub Dawidek [Tue, 2 Nov 2004 12:35:54 +0000 (12:35 +0000)]
Sort files properly.

19 years agoActually put hint.atkbd.0.flags="0x1" in /boot/device.hints on CD-ROMs.
Ruslan Ermilov [Tue, 2 Nov 2004 11:59:27 +0000 (11:59 +0000)]
Actually put hint.atkbd.0.flags="0x1" in /boot/device.hints on CD-ROMs.
(Brought to my attention by Brooks while sitting together on the floor
in "Kairo".)

19 years agoAdd a man page for the NgATM helper module ngatmbase.
Hartmut Brandt [Tue, 2 Nov 2004 10:46:28 +0000 (10:46 +0000)]
Add a man page for the NgATM helper module ngatmbase.

Requested by: Ulrich Spoerlein <q@uni.de>

19 years agoImplement TLS relocations for powerpc.
Suleiman Souhlal [Tue, 2 Nov 2004 09:47:01 +0000 (09:47 +0000)]
Implement TLS relocations for powerpc.

Approved by: grehan (mentor)

19 years agoDo the TLS offset allocations before relocations, as otherwise there
Suleiman Souhlal [Tue, 2 Nov 2004 09:42:21 +0000 (09:42 +0000)]
Do the TLS offset allocations before relocations, as otherwise there
can be overlap in the TLS offsets, if the relocations are done in a
certain order.

Approved by: dfr, grehan (mentor)

19 years agoAdd OpenBSD 3.6.
Maxim Konovalov [Tue, 2 Nov 2004 09:40:57 +0000 (09:40 +0000)]
Add OpenBSD 3.6.

19 years agoStay up to date with the latest ATA developments, where
Suleiman Souhlal [Tue, 2 Nov 2004 09:29:31 +0000 (09:29 +0000)]
Stay up to date with the latest ATA developments, where
ata_channel.locking now returns an int.

Approved by: grehan (mentor)

19 years agoUncomment options _KPOSIX_PRIORITY_SCHEDULING as it is enabled in the
Suleiman Souhlal [Tue, 2 Nov 2004 09:06:48 +0000 (09:06 +0000)]
Uncomment options _KPOSIX_PRIORITY_SCHEDULING as it is enabled in the
other architectures, and does not give any problems.

Approved by: grehan (mentor)

19 years ago- Change the ddb paging "support" to use a variable (db_lines_per_page) to
John Baldwin [Mon, 1 Nov 2004 22:15:15 +0000 (22:15 +0000)]
- Change the ddb paging "support" to use a variable (db_lines_per_page) to
  control the number of lines per page rather than a constant.  The variable
  can be examined and changed in ddb as '$lines'.  Setting the variable to
  0 will effectively turn off paging.
- Change db_putchar() to force out pending whitespace before outputting
  newlines and carriage returns so that one can rub out content on the
  current line via '\r     \r' type strings.
- Change the simple pager to rub out the --More-- prompt explicitly when
  the routine exits.
- Add some aliases to the simple pager to make it more compatible with
  more(1): 'e' and 'j' do a single line.  'd' does half a page, and
  'f' does a full page.

MFC after: 1 month
Inspired by: kris