]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC rev. 1.278:
kib [Mon, 26 May 2008 11:03:30 +0000 (11:03 +0000)]
MFC rev. 1.278:
Use the t_state for the TS_GONE test.

16 years agoMFC r1.208:
rpaulo [Sun, 25 May 2008 14:37:33 +0000 (14:37 +0000)]
MFC r1.208:
  devctl_process_running(): Check for devsoftc.inuse == 1 instead of
  devsoftc.async_proc != NULL because the latter might not be true
  sometimes.
  This way /etc/rc.suspend gets executed.

  Reviwed by:     njl
  Submitted by:   Mitsuru IWASAKI <iwasaki at jp.FreeBSD.org>
  Tested also by: Andreas Wetzel <mickey242 at gmx.net>

16 years agoMFC revision 1.46:
attilio [Sun, 25 May 2008 14:16:28 +0000 (14:16 +0000)]
MFC revision 1.46:
lockinit() can't accept LK_EXCLUSIVE as a flag.

16 years agoMFC revision 1.293
alc [Sun, 25 May 2008 07:00:07 +0000 (07:00 +0000)]
MFC revision 1.293
  Add a read/write sysctl for reconfiguring the maximum number of physical
  pages that can be wired.

PR: 114654

16 years agoMFC: if_bgereg.h rev. 1.79
bz [Sat, 24 May 2008 10:23:35 +0000 (10:23 +0000)]
MFC: if_bgereg.h rev. 1.79
     if_bge.c rev. 1.205, 1.209, 1.210

  Summary:
  In some situations we were not clearing pending link state attentions.
  Because of this we were not getting further interrupts for link state
  changes, thus never went into iface UP state and thus could not transmit.

  The only way out of this was an incoming packet generating an rx interrupt
  and making us call into bge_link_upd.

  What we do now is force an interrupt at the end of bge_ifmedia_upd_locked
  so we will call bge_link_upd, clear the link state attention and get
  further interrupts.

  While the initial version was not expected to work with all chips
  the later update in rev. 1.210 is.

PR:                             kern/111804
Tested by:                      phk, scottl (initial version)
Thanks for your help to:        davidch, Broadcom

16 years agoMFC: rev. 1.287 ata-all.c
bz [Sat, 24 May 2008 10:15:20 +0000 (10:15 +0000)]
MFC: rev. 1.287 ata-all.c

  devclass_get_maxunit() returns n+1 with n starting at 0.
  So if we have channel 0..3  devclass_get_maxunit is 4.

  It's never been a problem as devclass_get_device() has
  caught any possibly bad input.

16 years agoMFC: rev. 1.6
bz [Sat, 24 May 2008 10:13:07 +0000 (10:13 +0000)]
MFC: rev. 1.6

  Add ';' missed with the SYSINIT changes.
  Not noticed by tb as TCP_SIGNATURE is not in LINT.

  (this MFC ahead of the MFC of the other SYSINIT ';' chnages)

16 years agoMFC rev. 1.120:
kib [Sat, 24 May 2008 03:36:19 +0000 (03:36 +0000)]
MFC rev. 1.120:
Kqueue_scan() may sleep when encountered the influx knotes. On the other
hand, it may cause other threads to sleep since kqueue_scan() may mark
some knotes as infux. This could lead to the deadlock.

Before kqueue_scan() sleeps, wakeup the threads that are waiting for the
influx knotes produced by this thread.

16 years agoMFC rev. 1.119:
kib [Sat, 24 May 2008 03:35:13 +0000 (03:35 +0000)]
MFC rev. 1.119:
The kqueue_close() encountering the KN_INFLUX knotes on the kq being
closed is the legitimate situation. For instance, filedescriptor with
registered events may be closed in parallel with closing the kqueue.
Properly handle the case instead of asserting that this cannot happen.

16 years agoMFC revision 1.52
delphij [Sat, 24 May 2008 00:42:53 +0000 (00:42 +0000)]
MFC revision 1.52
date: 2008/05/10 01:27:23;  author: delphij;  state: Exp;  lines: +6 -0

Add support for LSI 1078DE (ServeRAID-AR10is SAS/SATA Controller)

16 years agoMFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.
jhb [Fri, 23 May 2008 20:04:55 +0000 (20:04 +0000)]
MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.

16 years agoMFC revision 1.6
lulf [Fri, 23 May 2008 15:39:27 +0000 (15:39 +0000)]
MFC revision 1.6
- Recognize the 'volume' parameter when creating a plex.

16 years agoMFC: Add an ability to run man(1) on local files plus add limited
ru [Thu, 22 May 2008 07:30:32 +0000 (07:30 +0000)]
MFC: Add an ability to run man(1) on local files plus add limited
support for bzip2-compressed manpages.

PR: bin/120730

16 years agoPrimary a delta to pick up the missing UNLOCK in the watchdog
jfv [Wed, 21 May 2008 21:34:05 +0000 (21:34 +0000)]
Primary a delta to pick up the missing UNLOCK in the watchdog
code, this can cause a panic due to a recusion on the TX Lock.
Also sync up other changes in HEAD, all trivial, added PCI ID
and #ifdef's to make the driver compile on 6.3.

16 years agoMFC rev 1.163 umass.c, 1.354 usbdevs
remko [Wed, 21 May 2008 14:22:03 +0000 (14:22 +0000)]
MFC rev 1.163 umass.c, 1.354 usbdevs

  Add support for the Nikon D300 camera

  PR:             usb/118741
  Submitted by:   Yuri <yuri at tsoft dot com>
  Approved by:    imp (mentor, implicit)
  MFC after:      3 days

Approved by: imp (mentor, implicit)
Facilitated by: Snow B.V.

16 years agoMerge uipc_sem.c:1.31 from HEAD to RELENG_7:
rwatson [Wed, 21 May 2008 13:36:48 +0000 (13:36 +0000)]
Merge uipc_sem.c:1.31 from HEAD to RELENG_7:

  Attempt to improve convergence of POSIX semaphore code with style(9).

16 years agoMFC: bsdtar can now use archive_entry_strmode(), since the latter has
kientzle [Wed, 21 May 2008 04:18:49 +0000 (04:18 +0000)]
MFC:  bsdtar can now use archive_entry_strmode(), since the latter has
been in 7-STABLE since Feb 2008.

16 years agoMFC: Numerous test updates.
kientzle [Wed, 21 May 2008 04:14:39 +0000 (04:14 +0000)]
MFC:  Numerous test updates.

16 years agoMFC: New manpage links and turn on the compress write support.
kientzle [Wed, 21 May 2008 04:14:10 +0000 (04:14 +0000)]
MFC: New manpage links and turn on the compress write support.

16 years agoMFC: updates to the public API plus an attempt to straighten out versioning.
kientzle [Wed, 21 May 2008 04:13:43 +0000 (04:13 +0000)]
MFC: updates to the public API plus an attempt to straighten out versioning.

16 years agoMFC: some documentation corrections and updates.
kientzle [Wed, 21 May 2008 04:12:57 +0000 (04:12 +0000)]
MFC: some documentation corrections and updates.

16 years agoMFC: A number of interrelated changes that I'm too tired to tease
kientzle [Wed, 21 May 2008 04:12:29 +0000 (04:12 +0000)]
MFC:  A number of interrelated changes that I'm too tired to tease
apart into separate MFCs.  These have all been in -CURRENT for
quite some time.

16 years agoMFC: write support for 'compress' format.
kientzle [Wed, 21 May 2008 04:11:11 +0000 (04:11 +0000)]
MFC: write support for 'compress' format.

16 years agoMFC: Some changes to 'ar' format support from Kai Wang.
kientzle [Wed, 21 May 2008 04:07:35 +0000 (04:07 +0000)]
MFC: Some changes to 'ar' format support from Kai Wang.

16 years agoMFC:
mtm [Tue, 20 May 2008 15:27:24 +0000 (15:27 +0000)]
MFC:
Specify the full path to the md5(1) binary so the script will
still work even if it's not in the shell's path.
PR: conf/122215

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:32:03 +0000 (11:32 +0000)]
MFC:
Dummynet has a limit of 100 slots queue size (or 1MB, if you give
the limit in bytes) hard coded into both the kernel and userland.
Make both these limits a sysctl, so it is easy to change the limit.

16 years agoMerge mac.c:1.13, mac_exec.c:1.3, mac_get.c:1.6, mac_set.c:1.4 from HEAD
rwatson [Tue, 20 May 2008 11:25:00 +0000 (11:25 +0000)]
Merge mac.c:1.13, mac_exec.c:1.3, mac_get.c:1.6, mac_set.c:1.4 from HEAD
to RELENG_7:

  Add __FBSDID() tags.

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:17:51 +0000 (11:17 +0000)]
MFC:
If we are walking the IPv6 header chain and we hit an IPPROTO_NONE
header, then don't try to pullup anything, because there is no next
header if we hit IPPROTO_NONE. Set ulp to a non-NULL value so the
search for an upper layer header terinates.

16 years agoMerge busspace.9:1.5 from HEAD to RELENG_7:
rwatson [Tue, 20 May 2008 10:52:52 +0000 (10:52 +0000)]
Merge busspace.9:1.5 from HEAD to RELENG_7:

  Minor spelling/grammer fixes.

16 years agoMerge kern_priv.c:1.5 from HEAD to RELENG_7:
rwatson [Tue, 20 May 2008 10:52:19 +0000 (10:52 +0000)]
Merge kern_priv.c:1.5 from HEAD to RELENG_7:

  Add __FBSDID() tag.

  Pointed out by: antoine

16 years agoMFC: moused.c rev 1.84
philip [Tue, 20 May 2008 10:48:26 +0000 (10:48 +0000)]
MFC: moused.c rev 1.84
     moused.8 rev 1.62

    Improve the virtual scrolling mechanism to make middle clicking less
    difficult.  Add a -L option (yet another option, indeed!) which changes
    the speed of scrolling and change -U to only affect the scroll threshold.

    This should make middle-clicking a much more pleasant experience.

Submitted by: Aragon Gouveia <aragon -at- phat.za.net>

16 years agoSync with current - add the ability to traceroute with no-next-header
dwmalone [Tue, 20 May 2008 10:46:50 +0000 (10:46 +0000)]
Sync with current - add the ability to traceroute with no-next-header
packets.

16 years agoMFC
kib [Tue, 20 May 2008 09:38:44 +0000 (09:38 +0000)]
MFC
rev. 1.126 of libexec/rtld-elf/rtld.c
rev. 1.5 of libexec/rtld-elf/rtld_lock.c
rev. 1.3 of libexec/rtld-elf/rtld_lock.h

Fix the problem with the C++ exception handling for the multithreaded
programs.

From the PR description:
The gcc runtime's _Unwind_Find_FDE function, invoked during exception
handling's stack unwinding, is not safe to execute from within multiple
threads. FreeBSD' s dl_iterate_phdr() however permits multiple threads
to pass through it though. The result is surprisingly reliable infinite
looping of one or more threads if they just happen to be unwinding at
the same time.

Introduce the new lock that is write locked around the dl_iterate_pdr,
thus providing required exclusion for the stack unwinders.

PR: threads/123062
Submitted by: Andy Newman <an at atrn org>
Reviewed by: kan

16 years agoMFC: intr_machdep.h 1.18; smp.h 1.23; intr_machdep.c 1.32; mp_machdep.c 1.39
marius [Mon, 19 May 2008 20:09:04 +0000 (20:09 +0000)]
MFC: intr_machdep.h 1.18; smp.h 1.23; intr_machdep.c 1.32; mp_machdep.c 1.39

- Add support for IPI_PREEMPT.
- Add my copyright to mp_machdep.c for having implemented support for
  USIII and up and some fixes.

16 years agoMFC: apb.c 1.15; ofw_pci_if.m 1.9; ofw_pcib.c 1.9; ofw_pcib_subr.c 1.9;
marius [Mon, 19 May 2008 19:32:00 +0000 (19:32 +0000)]
MFC: apb.c 1.15; ofw_pci_if.m 1.9; ofw_pcib.c 1.9; ofw_pcib_subr.c 1.9;
     ofw_pcib_subr.h 1.4; ofw_pcibus.c 1.18; psycho.c 1.74; psychovar.h 1.18

On sparc64 machines with multiple host-PCI-bridges these bridges
have separate configuration spaces so by definition they implement
different PCI domains. Thus change psycho(4) to use PCI domains
instead of reenumerating all PCI busses so they have globally unique
bus numbers and drop support for reenumerating busses in the OFW PCI
code.

16 years agoMFC: Set sc->dev and add a missing newline.
jhb [Mon, 19 May 2008 18:24:33 +0000 (18:24 +0000)]
MFC: Set sc->dev and add a missing newline.

16 years agoMFC: Always bump tcpstat.tcps_badrst if we get a RST for a connection in
jhb [Mon, 19 May 2008 18:23:09 +0000 (18:23 +0000)]
MFC: Always bump tcpstat.tcps_badrst if we get a RST for a connection in
the syncache that has an invalid SEQ.

16 years agoMFC: Only output details about the current working directory of a process
jhb [Mon, 19 May 2008 18:21:52 +0000 (18:21 +0000)]
MFC:  Only output details about the current working directory of a process
if the vnode pointer is not NULL.

16 years agoMFC: Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned
jhb [Mon, 19 May 2008 18:19:48 +0000 (18:19 +0000)]
MFC: Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned
bpf devices never getting fully closed.

16 years agoMFC:
emax [Mon, 19 May 2008 16:46:42 +0000 (16:46 +0000)]
MFC:

Make -t <tty> optional in server mode. If not specified use stdin/stdout.
Document this. Do not require channel number in server mode. If not
specified - bind to ''wildcard'' channel zero. Real channel number will
be obtained automatically and registered with local sdpd(8). While I'm
here fix serial port service registration.

Submitted by: luigi
Tested by: Helge Oldach <freebsd-bluetooth at oldach dot net>

16 years ago- MFC in the changes to allow SCTP to not need to
rrs [Mon, 19 May 2008 12:34:44 +0000 (12:34 +0000)]
- MFC in the changes to allow SCTP to not need to
  have both INET and INET6. INET only will work now.

16 years agoMFC
kib [Mon, 19 May 2008 11:43:36 +0000 (11:43 +0000)]
MFC
rev. 1.15 of lib/libc/gen/readdir.c
rev. 1.11 of lib/libc/gen/telldir.c
rev. 1.3  of lib/libc/gen/telldir.h

Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by: Marc Balmer <mbalmer at openbsd org>
Obtained from: OpenBSD

16 years agoMFC: Don't require a configuration file. Ntpd will be perfectly happy if there's
flz [Mon, 19 May 2008 09:21:24 +0000 (09:21 +0000)]
MFC: Don't require a configuration file. Ntpd will be perfectly happy if there's
none or if the file doesn't exist (there's no ntp.conf in the base install).

  src/etc/rc.d/ntpd: rev 1.13 -> 1.14

16 years agoMFC revision 1.1455: Typo
grog [Mon, 19 May 2008 04:42:40 +0000 (04:42 +0000)]
MFC revision 1.1455: Typo

16 years agoMFC revisions 1.2 and 1.3:
grog [Mon, 19 May 2008 03:50:25 +0000 (03:50 +0000)]
MFC revisions 1.2 and 1.3:

Fix a compiler warning by using a printf format matching the variable
type.

Ensure that the -s flag truncates the accounting data.

16 years agogetopt.c is public domain. Add a comment to that effect.
brooks [Mon, 19 May 2008 02:49:02 +0000 (02:49 +0000)]
getopt.c is public domain. Add a comment to that effect.

Remove confusing README.

PR: bin/98911
Submitted by: Jason McIntyre <jmc at kerhand dot co dot uk>
Obtained from: OpenBSD

16 years agoMFC:
scf [Mon, 19 May 2008 02:30:56 +0000 (02:30 +0000)]
MFC:
Spelling and capitalization fixes.

    src/sys/net/ethernet.h: rev 1.34 -> 1.35

16 years agoMFC rev. 1.724:
kib [Sun, 18 May 2008 05:05:33 +0000 (05:05 +0000)]
MFC rev. 1.724:
Only return 1 from sync_vnode() in cases where the vnode is still at the
head of the sync list. This prevents sched_sync() from re-queueing a
vnode which may have been freed already.

Approved by: jeff

16 years agoMFC r1.8:
rpaulo [Sat, 17 May 2008 17:02:55 +0000 (17:02 +0000)]
MFC r1.8:
  style(9): remove FreeBSD CVS ID from the initial license comment.

16 years agoMFC: rev. 1.105
daichi [Sat, 17 May 2008 10:56:11 +0000 (10:56 +0000)]
MFC: rev. 1.105

Fixed panic issue caused by cache incorrect free process
by "umount -f"

Submitted by: Masanori OZAWA <ozawa@ongs.co.jp>

16 years agoMFC rev. 1.158
mav [Sat, 17 May 2008 08:43:50 +0000 (08:43 +0000)]
MFC rev. 1.158
Use separate UMA zone for data items allocation. It is a partial
rev. 1.149 rework.
It allows to save several percents of CPU time on SMP by using UMA's
internal per-CPU allocation limits instead of own global variable
each time updated with atomics.
Also it restores NG_WAITOK flag processing.

PR: kern/123741

16 years agoMFC rev 1.32 and rev 1.33 termios.4
remko [Sat, 17 May 2008 01:29:44 +0000 (01:29 +0000)]
MFC rev 1.32 and rev 1.33 termios.4

  The first of thirteen patches by Ed that resolves a documentation
  issue in termios.4, ttydefaults.h does not exist in /usr/include
  but in /usr/include/sys.

  MFC after:      3 days
  Submitted by:   Ed Schouten (ed at 80386 dot nl)

16 years agoMFC rev. 1.34:
attilio [Fri, 16 May 2008 19:56:24 +0000 (19:56 +0000)]
MFC rev. 1.34:
LK_DRAIN'ed lockmgr needs to be released, so fix a wrong behaviour.

16 years agoMFC ver. 1.20:
attilio [Fri, 16 May 2008 19:44:50 +0000 (19:44 +0000)]
MFC ver. 1.20:
Currently, smb_co_init() uses the same lock name for the mutex interlock
and the lockmgr. Use different names in order to avoid WITNESS conflicts.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Fri, 16 May 2008 15:34:08 +0000 (15:34 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC:
kris [Fri, 16 May 2008 10:11:15 +0000 (10:11 +0000)]
MFC:
  Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for
  better grep-compliance and to standardize with the rest of the kernel.

16 years agoMFC 1.330, 1.331:
kris [Fri, 16 May 2008 10:08:18 +0000 (10:08 +0000)]
MFC 1.330, 1.331:

fdhold can return NULL, so add the one remaining missing check for this
condition.

16 years agoMFC: rev 1.88
ps [Fri, 16 May 2008 08:30:25 +0000 (08:30 +0000)]
MFC: rev 1.88
Remove a check that didn't allow > 12 byte CDB's to be issued to
ciss.  This should allow volumes > 2TB to work.

16 years agoMFC:
scf [Fri, 16 May 2008 02:07:57 +0000 (02:07 +0000)]
MFC:
Add four utility functions related to struct grp processing modeled in-part
after similar calls related to struct pwd in libutil/pw_util.c:
  - gr_equal()
    Perform a deep comparison of two struct grp's.  It does a thorough, yet
    unoptimized comparison of all the members regardless of order.

  - gr_make()
    Create a string (see group(5)) from a struct grp.

  - gr_dup()
    Duplicate a struct grp.  Returns a value that is a single contiguous
    block of memory.

  - gr_scan()
    Create a struct grp from a string (as produced by gr_make()).

    src/lib/libutil/Makefile: rev 1.66 -> 1.67
    src/lib/libutil/gr_util.c: rev 0 -> 1.1
    src/lib/libutil/libutil.h: rev 1.46 -> 1.47

16 years agoMFC:
scf [Fri, 16 May 2008 01:06:01 +0000 (01:06 +0000)]
MFC:
Define the size_t type since readpassphrase(3) requires it in its
definition and sys/types.h is not listed within the synopsis of the man
page.

    src/include/readpassphrase.h: rev 1.2 -> 1.3

16 years agoMFC: 1.43
marius [Thu, 15 May 2008 20:21:30 +0000 (20:21 +0000)]
MFC: 1.43

- Remove the BUS_HANDLE_MIN checking in the __BUS_DEBUG_ACCESS macro;
  for UPA it should have fulfilled its purpose by now and Fireplane-
  and JBus-based machines are way to messy in organization to implement
  something equivalent.
- Fix a bunch of style(9) bugs.

16 years agoForced commit to denote that revision 1.198.2.5 actually was
marius [Thu, 15 May 2008 20:12:17 +0000 (20:12 +0000)]
Forced commit to denote that revision 1.198.2.5 actually was
an MFC of 1.206.

16 years agoMFC: Add very limited support for the isc-dhclient. It will almostly certaintly
brooks [Thu, 15 May 2008 01:53:46 +0000 (01:53 +0000)]
MFC: Add very limited support for the isc-dhclient. It will almostly certaintly
only work if there's just one interface doing dhcp. This version implements
the same logic as the version in the PR, but uses pgrep to be less verbose.

PR: conf/95905

16 years agoMFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77; sbus.c 1.48;
marius [Wed, 14 May 2008 21:23:14 +0000 (21:23 +0000)]
MFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77; sbus.c 1.48;
     counter.c 1.7; iommu.c 1.47

- Use the name returned by device_get_nameunit(9) for the name of the
  counter-timer timecounter so the associated SYSCTL nodes don't clash on
  machines having multiple U2P and U2S bridges as well as establishing a
  clear mapping between these bridges and their timecounter device.
- Don't bother setting up a "nice" name for the IOMMU, just use the name
  returned by device_get_nameunit(9), too.
- Fix some minor style(9) bugs.
- Use __FBSDID in counter.c

16 years agoMFC: 1.208
marius [Wed, 14 May 2008 21:07:25 +0000 (21:07 +0000)]
MFC: 1.208

- Use more appropriate maxsize, nsegments and maxsegsize parameters
  when creating the parent bus DMA tag. While at it correct the style
  and a nearby comment.
- Take advantage of m_collapse(9) for performance reasons.

16 years agoMFC r1.7:
rpaulo [Wed, 14 May 2008 10:04:17 +0000 (10:04 +0000)]
MFC r1.7:
  Change the check for cpu_high to actually match CPUID 0x06.

  Submitted by: Arthur Hartwig <arthur.hartwig at nokia.com>
  PR: 122878

16 years agoMFC *: Add the '-u name' option to the env command, which will completely
gad [Tue, 13 May 2008 21:46:50 +0000 (21:46 +0000)]
MFC *: Add the '-u name' option to the env command, which will completely
unset the given variable name (removing it from the environment, instead
of just setting it to a null value).

[* = 1.10->1.11 env.1, 1.20 env.c]

PR: bin/65649

16 years agoMFC: Instead of rolling our own jail number allocation procedure, use
delphij [Mon, 12 May 2008 18:00:55 +0000 (18:00 +0000)]
MFC: Instead of rolling our own jail number allocation procedure, use
alloc_unr() to do it.

Submitted by:   Ed Schouten <ed 80386 nl>
PR:             kern/122270

16 years agoMFC:
delphij [Mon, 12 May 2008 16:42:01 +0000 (16:42 +0000)]
MFC:
  usbdevs revisions 1.331 (mav)+1.347 (mav)+1.352 (kris moore)
  uipaq.c revisions 1.8+1.10 (mav), 1.9 (stas), 1.11 (kris moore)

For several HTC Smartphone/PocketPC support.

16 years agoMFC:
mtm [Mon, 12 May 2008 07:37:40 +0000 (07:37 +0000)]
MFC:
o Change the warning dialog for the 'W' command in both the label
  and partition editors to reflect the fact that this is a stand-alone
  application, not sysinstall(8).
o Change an instance of sade(8) refering to itself as sysinstall(8) in
  a confirmation dialog.

16 years agoMFC:
mtm [Mon, 12 May 2008 07:29:03 +0000 (07:29 +0000)]
MFC:
Fix improper use of checkyesno routine.
Noticed by: oliver

16 years agofix stupid typo.. not an MFC because code is differnt from current
julian [Mon, 12 May 2008 06:47:49 +0000 (06:47 +0000)]
fix stupid typo.. not an MFC because code is differnt from current
but the logic is the same

16 years agoMFC kern_lockf.c revision 1.64:
dfr [Sun, 11 May 2008 08:53:55 +0000 (08:53 +0000)]
MFC kern_lockf.c revision 1.64:
When blocking on an F_FLOCK style lock request which is upgrading a
shared lock to exclusive, drop the shared lock before deadlock
detection.

16 years agoMFC: rev. 1.13
weongyo [Sun, 11 May 2008 05:53:19 +0000 (05:53 +0000)]
MFC: rev. 1.13

don't set sniffer mode to ON when the driver is running with the
monitor mode.  This solves a problem that sometimes mangled frames
are passed.

Submitted by: Werner Backes <werner_at_bit-1.de>
Tested by: Werner Backes <werner_at_bit-1.de>
PR: kern/121608
Approved by: thompsa (mentor)

16 years agoMFC: rev. 1.12
weongyo [Sun, 11 May 2008 05:49:02 +0000 (05:49 +0000)]
MFC: rev. 1.12

Fix incorrect dependencies of zyd(4).

Approved by: thompsa (mentor)

16 years agoMFC: FreeBSD does have fstat() and libarchive should use it (it
kientzle [Sat, 10 May 2008 23:27:22 +0000 (23:27 +0000)]
MFC: FreeBSD does have fstat() and libarchive should use it (it
reduces some races).  But I need to fix a typo in the one use
of fstat() first.  <sigh>

16 years agoMerge ip_fw.h:1.113 from HEAD to RELENG_7:
rwatson [Sat, 10 May 2008 18:45:30 +0000 (18:45 +0000)]
Merge ip_fw.h:1.113 from HEAD to RELENG_7:

  Fix a comment typo.

16 years agoMerge Makefile:1.348 from HEAD to RELENG_7:
rwatson [Sat, 10 May 2008 18:43:57 +0000 (18:43 +0000)]
Merge Makefile:1.348 from HEAD to RELENG_7:

  Mention -U and -ai arguments to mergemaster in a comment for the
  general mergemaster line.

  Suggested by:   Ben Laurie

16 years agoMerge MAkefile:1.2, ddb.8:1.5, ddb.c:1.4, ddb.h:1.2, ddb_capture.c:1.1
rwatson [Sat, 10 May 2008 18:43:11 +0000 (18:43 +0000)]
Merge MAkefile:1.2, ddb.8:1.5, ddb.c:1.4, ddb.h:1.2, ddb_capture.c:1.1
from HEAD to RELENG_7:

  Add "ddb capture print" and "ddb capture status" commands do ddb(8),
  alowing the DDB output capture buffer to be easily extracted from
  user space.  Both of these commands include -M/-N arguments, allowing
  them to be used with kernel crash dumps (or /dev/mem).

  This makes it easier to use DDB scripting and output capture with
  minidumps or full dumps rather than with text dumps, allowing DDB
  output (scripted or otherwise) to be easily extracted from a crash
  dump.

  Discussed with: brooks, jhb

16 years agoMerge ddb.8:1.4, ddb.c:1.3 from HEAD to RELENG_7:
rwatson [Sat, 10 May 2008 18:39:53 +0000 (18:39 +0000)]
Merge ddb.8:1.4, ddb.c:1.3 from HEAD to RELENG_7:

  - Normalize usage(), add "ddb pathname" syntax.
  - Revise the manpage.

16 years agoMerge sctp_generic_recvmsg.2:1.4, sctp_peeloff.2:1.4 from HEAD to
rwatson [Sat, 10 May 2008 17:31:53 +0000 (17:31 +0000)]
Merge sctp_generic_recvmsg.2:1.4, sctp_peeloff.2:1.4 from HEAD to
RELENG_7:

  Correct minor typos in SCTP man pages.

16 years agoMerge audit.h:1.17 from HEAD to RELENG_7:
rwatson [Sat, 10 May 2008 17:30:57 +0000 (17:30 +0000)]
Merge audit.h:1.17 from HEAD to RELENG_7:

  Fix include guard spelling.

  Submitted by:   diego

16 years agoMerge uipc_syscalls.c:1.271 from HEAD to RELENG_7:
rwatson [Sat, 10 May 2008 17:21:20 +0000 (17:21 +0000)]
Merge uipc_syscalls.c:1.271 from HEAD to RELENG_7:

  When writing trailers in sendfile(2), don't call kern_writev()
  while holding the socket buffer lock.  These leads to an
  immediate panic due to recursing the socket buffer lock.  This
  bug was introduced in uipc_syscalls.c:1.240, but masked by
  another bug until that was fixed in uipc_syscalls.c:1.269.

  Note that the current fix isn't perfect, but better than
  panicking: normally we guarantee that simultaneous invocations
  of a system call to write on a stream socket won't be
  interlaced, which is ensured by use of the socket buffer sleep
  lock.  This is guaranteed for the sendfile headers, but not
  trailers.  In practice, this is likely not a problem, but
  should be fixed.

  Pointy hat to:  andre (1.240), cperciva (1.269)

16 years agoMFC: Eliminate a bunch of unused fields from the read structure.
kientzle [Sat, 10 May 2008 07:05:14 +0000 (07:05 +0000)]
MFC: Eliminate a bunch of unused fields from the read structure.
Most are write-specific values that are leftovers from when read and
write used a shared structure.

16 years agoMFC: The read side doesn't use the 'nulls' convenience value, so get
kientzle [Sat, 10 May 2008 07:03:18 +0000 (07:03 +0000)]
MFC: The read side doesn't use the 'nulls' convenience value, so get
rid of it.  We also don't need to set the block size here, since
we don't use it.

16 years agoMFC: Set the archive format code and name in the generic portion
kientzle [Sat, 10 May 2008 06:57:04 +0000 (06:57 +0000)]
MFC: Set the archive format code and name in the generic portion
of the archive structure, not the write-specific portion.
(This is a bungle from back when the generic and write-specific portions
were first separated and the write-specific part accidentally ended
up with copies of some of the generic fields.)  In particular,
archive_format() and archive_format_name() now work correctly
on write handles.

16 years agoMFC: Stop using ARCHIVE_DEFAULT_BYTES_PER_BLOCK to set the default
kientzle [Sat, 10 May 2008 06:49:13 +0000 (06:49 +0000)]
MFC: Stop using ARCHIVE_DEFAULT_BYTES_PER_BLOCK to set the default
block size.  The default setting here is arbitrary and shouldn't be
published.  Someday, we should be smarter about the default here.

16 years agoMFC: Add the useful archive_string_sprintf() function for internal use.
kientzle [Sat, 10 May 2008 06:46:09 +0000 (06:46 +0000)]
MFC: Add the useful archive_string_sprintf() function for internal use.

16 years agoMFC 1.25: Portability: on platforms that don't have timegm, don't have
kientzle [Sat, 10 May 2008 06:45:23 +0000 (06:45 +0000)]
MFC 1.25: Portability: on platforms that don't have timegm, don't have
tm_gmtoff and can't reset the timezone to force mktime to use UTC,
just give up and use unadorned mktime().

16 years agoMFC 1.2: Minor portability improvement. Not every platform
kientzle [Sat, 10 May 2008 06:42:59 +0000 (06:42 +0000)]
MFC 1.2: Minor portability improvement.  Not every platform
has S_IXUSR, S_IXGRP, S_IXOTH defines, but the values never change,
so just hardcode the constants.

16 years agoMFC: rev. 1.2
brueffer [Sat, 10 May 2008 06:37:10 +0000 (06:37 +0000)]
MFC: rev. 1.2

Bring this manpage more in line with other wlan driver manpages.

16 years agoMFC: Include space for the trailing NUL byte.
kientzle [Sat, 10 May 2008 06:12:06 +0000 (06:12 +0000)]
MFC: Include space for the trailing NUL byte.

16 years agoMerge tcp_input.c:1.374 from HEAD to RELENG_7:
rwatson [Fri, 9 May 2008 20:40:47 +0000 (20:40 +0000)]
Merge tcp_input.c:1.374 from HEAD to RELENG_7:

  Add further TCP inpcb locking assertions to some TCP input code paths.

16 years agoMerge if_loop.c:1.115,1.116 from HEAD to RELENG_7:
rwatson [Fri, 9 May 2008 20:39:48 +0000 (20:39 +0000)]
Merge if_loop.c:1.115,1.116 from HEAD to RELENG_7:

  Coerce if_loop.c in the general direction of style(9):

  - Use ANSI function declarations
  - Remove use of 'register' keyword
  - Prefer style(9) return parens, white space
  - Trim trailing whitespace at ends of lines.

16 years agoMFC: Fix a few edge cases with error handling in cpufreq(4)'s CPUFREQ_GET()
jhb [Fri, 9 May 2008 19:03:55 +0000 (19:03 +0000)]
MFC: Fix a few edge cases with error handling in cpufreq(4)'s CPUFREQ_GET()
method.

16 years agoMFC: Enable use of 'tid' for remote targets and use gdb_thread_select()
jhb [Fri, 9 May 2008 18:59:50 +0000 (18:59 +0000)]
MFC: Enable use of 'tid' for remote targets and use gdb_thread_select()
for 'tid' and 'proc' so they provide UI feedback like the 'thread'
command.

16 years agoMFC: Rework how kgdb manages kernel and vmcore files to be a bit more
jhb [Fri, 9 May 2008 18:41:36 +0000 (18:41 +0000)]
MFC: Rework how kgdb manages kernel and vmcore files to be a bit more
gdb-ish.  Specifically, you can now use the 'file' and 'core' commands.
Also, the kernel module stuff now works for remote targets.

16 years agoMFC: Add 'fbsdcoreops_suppress_target' to support kgdb having its own
jhb [Fri, 9 May 2008 18:20:35 +0000 (18:20 +0000)]
MFC: Add 'fbsdcoreops_suppress_target' to support kgdb having its own
coredump target and adjust core dump target's long name and documentation.

16 years agoMFC: rev. 1.413
weongyo [Fri, 9 May 2008 02:23:11 +0000 (02:23 +0000)]
MFC: rev. 1.413

Connect malo.4 to the build.

Approved by: thompsa (mentor)

16 years agoMFC: rev. 1.560
weongyo [Fri, 9 May 2008 02:20:39 +0000 (02:20 +0000)]
MFC: rev. 1.560

Add malo driver to the build

Approved by: thompsa (mentor)