]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoInitialize id before using it.
Warner Losh [Sat, 23 Jun 2007 04:18:44 +0000 (04:18 +0000)]
Initialize id before using it.

Submitted by: mjacob
Approved by: re@

17 years agoFix various compilation warnings for gcc-4.2.
Matt Jacob [Sat, 23 Jun 2007 00:02:20 +0000 (00:02 +0000)]
Fix various compilation warnings for gcc-4.2.

Approved by: re (bruce)

17 years agoCheck the correct port to see if synced is true.
Andrew Thompson [Fri, 22 Jun 2007 23:28:33 +0000 (23:28 +0000)]
Check the correct port to see if synced is true.

PR: misc/113958
Submitted by: Aaron Needles
Approved by: re (bmah)
MFC after: 1 week

17 years ago- Fix type casts in calling sctp_m_getptr, it expects a int not
Randall Stewart [Fri, 22 Jun 2007 14:40:09 +0000 (14:40 +0000)]
- Fix type casts in calling sctp_m_getptr, it expects a int not
  an unsigned (returned by sizeof) also add cast to  comparison check
  for size bounds.
Approved by: re(bmah@freebsd.org)

17 years ago- Fix incorrect error return on sctp_getaddrlen
Randall Stewart [Fri, 22 Jun 2007 13:59:54 +0000 (13:59 +0000)]
- Fix incorrect error return on sctp_getaddrlen
- Fix a memory leak when a non v4/v6 address was passed in.
- Take out strange line that copy's back to the src array
  incorrectly (corrupting the input array).

Approved by: re(bmah@freebsd.org)
Obtained from: Weongyo Jeong(weongyo.jeong@gmail.com)

17 years ago- Fix stream reset so it limits the number of streams that can be listed
Randall Stewart [Fri, 22 Jun 2007 13:50:56 +0000 (13:50 +0000)]
- Fix stream reset so it limits the number of streams that can be listed
- Fix fwd-tsn to use proper accessor so it does not overrun mbufs
- Fix stream reset error reporting to actually work (it has always been
  broken if the peer rejects a stream reset)
- Some 64 bit friendly changes

Approved by: re(bmah@freebsd.org)

17 years agoFix livelock that could occur when snapshoting UFS with quotas, where
Konstantin Belousov [Fri, 22 Jun 2007 13:22:37 +0000 (13:22 +0000)]
Fix livelock that could occur when snapshoting UFS with quotas, where
some quota limit was exceeded. Sequence of UFS_VALLOC()/UFS_VFREE()
call there could cause inodeblock to have both freefile and inodedep
dependencies without any inode in the block being marked for write.
Then, softdep_check_suspend() would return EAGAIN forewer.

Force write of inodeblock with allocated freefile softdependency by
setting IN_MODIFIED flag in softdep_freefile and unconditionally calling
UFS_UPDATE() in ufs_reclaim.

Reported by: kris
Debug help and tested by:  Peter Holm
Approved by: re (kensmith)
MFC after: 3 weeks

17 years agoAdd an option to make periodic(8) quiet when no output was generated.
David Malone [Fri, 22 Jun 2007 10:04:05 +0000 (10:04 +0000)]
Add an option to make periodic(8) quiet when no output was generated.

The man page part of the patch is my fault, the changes to the
periodic script is Dominik's.

PR: 88486
Submitted by: Dominik Brettnacher <domi@saargate.de>
Reviewed by: brian
Approved by: re
MFC after: 1 month

17 years agoAdd support for Garmin iQue 3600
Warner Losh [Fri, 22 Jun 2007 06:02:19 +0000 (06:02 +0000)]
Add support for Garmin iQue 3600

Submitted by: Lapo Luchini
PR: 113324
Approved by: re (kensmith, blanket)

17 years agoadd support for Option GlobeTrotter 3G+
Warner Losh [Fri, 22 Jun 2007 05:56:05 +0000 (05:56 +0000)]
add support for Option GlobeTrotter 3G+
(PR says this may be from OpenBSD)

Submitted by: Simun Mikecin
PR: 111710
Approved by: re (kensmith, blanket)

17 years agoTactrix Openport support
Warner Losh [Fri, 22 Jun 2007 05:53:05 +0000 (05:53 +0000)]
Tactrix Openport support

Submitted by: Jonathan Charest
PR: 110992
Approved by: re (kensmith, blanket)

17 years agoOuch. I partially screwed up the last commit by
Tim Kientzle [Fri, 22 Jun 2007 05:49:13 +0000 (05:49 +0000)]
Ouch.  I partially screwed up the last commit by
enabling a test that's not ready yet. <sigh>

Pointy hat: /me
Approved by: re@

17 years agoadd Benq 3300U/4300U support
Warner Losh [Fri, 22 Jun 2007 05:49:12 +0000 (05:49 +0000)]
add Benq 3300U/4300U support

Submitted by: Denis Sadykov
PR: 110477
Approved by: re (kensmith, blanket)

17 years agoSupport for writing the 'newc' cpio format, plus a minimal test harness
Tim Kientzle [Fri, 22 Jun 2007 05:47:00 +0000 (05:47 +0000)]
Support for writing the 'newc' cpio format, plus a minimal test harness
for the cpio formats.

Thanks to: Rudolf Marek
Approved by: re@

17 years agoCrystalfontz CFA-635 20x4 USB LCD
Warner Losh [Fri, 22 Jun 2007 05:44:41 +0000 (05:44 +0000)]
Crystalfontz CFA-635 20x4 USB LCD
(plus minor sorting)

Submitted by: John Wilson
PR: 107526
Approved by: re (kensmith, blanket)

17 years agoUpdate uvisor to support the Fossil Abacus Wrist PDA
Warner Losh [Fri, 22 Jun 2007 05:33:20 +0000 (05:33 +0000)]
Update uvisor to support the Fossil Abacus Wrist PDA

Submitted by: Simon Dick
PR: 96714
Approved by: re (kensmith, blanket)

17 years agoUSB Ethernet Adaptor "ELECOM LD-USB20"
Warner Losh [Fri, 22 Jun 2007 05:20:11 +0000 (05:20 +0000)]
USB Ethernet Adaptor "ELECOM LD-USB20"

PR: 86195
Submitted by: kato <redzonemiata@yahoo.co.jp>
Approved by: re (kensmith)

17 years agoUSL101 Host-to-Host bridge support
Warner Losh [Fri, 22 Jun 2007 05:14:27 +0000 (05:14 +0000)]
USL101 Host-to-Host bridge support

PR: 82436
Submitted by: Maxim M. Kazachek
Approved by: re (kensmith)

17 years agoReimplement bus_dmamap_load with bus_dmamap_load_buffer.
Pyun YongHyeon [Fri, 22 Jun 2007 03:57:36 +0000 (03:57 +0000)]
Reimplement bus_dmamap_load with bus_dmamap_load_buffer.
Previously it didn't honor parent dma tag's restrictions such that
an invalid dma segment could be passed to device. The driver for the
device may panic in sanity check routine for the dma segment or may
produce unexpected results. I have no idea how it could ever have
worked before.

Reviewed by: grehan
Tested by: gad
Approved by: re (hrs)

17 years agoHonor maxsegsz of less than a page size in a DMA tag. Previously it
Pyun YongHyeon [Fri, 22 Jun 2007 03:54:53 +0000 (03:54 +0000)]
Honor maxsegsz of less than a page size in a DMA tag. Previously it
used to return PAGE_SIZE without respect to restrictions of a DMA tag.
This affected all of the busdma load functions that use
_bus_dmamap_loader_buffer() as their back-end.

Reviewed by: scottl (long a ago)
Approved by: re (hrs)

17 years agoUpdate the suspend/resume user API while maintaining backwards compat.
Nate Lawson [Thu, 21 Jun 2007 22:50:37 +0000 (22:50 +0000)]
Update the suspend/resume user API while maintaining backwards compat.

Improvements:
* /etc/rc.suspend,rc.resume are always run, no matter the source of the
  suspend request (user or kernel, apm or acpi)
* suspend now requires positive user acknowledgement.  If a user program
  wants to cancel the suspend, they can.  If one of the user programs
  hangs or doesn't respond within 10 seconds, the system suspends anyway.
* /dev/apm is clonable, allowing multiple listeners for suspend events.
  In the future, xorg-server can use this to be informed about suspend
  even if there are other listeners (i.e. apmd).

Changes:
* Two new ACPI ioctls:  REQSLPSTATE and ACKSLPSTATE.  Request begins the
  process of suspending by notifying all listeners.  acpi is monitored by
  devd(8) and /dev/apm listener(s) are also counted.  Users register their
  approval or disapproval via Ack.  If anyone disapproves, suspend is vetoed.
* Old user programs or kernel modules that used SETSLPSTATE continue to
  work.  A message is printed once that this interface is deprecated.
* acpiconf gains the -k flag to ack the suspend request.  This flag is
  undocumented on purpose since it's only used by /etc/rc.suspend.  It is
  not intended to be a permanent change and will be removed once a better
  power API is implemented.
* S5 (power off) is no longer supported via acpiconf -s 5 or apm -z/-Z.
  This restores previous behavior of halt/shutdown -p being the interface.
* Miscellaneous improvements to error reporting

Approved by: re

17 years agoUpdated release notes: less v406.
Bruce A. Mah [Thu, 21 Jun 2007 20:27:23 +0000 (20:27 +0000)]
Updated release notes:  less v406.

Approved by: re (implicitly)

17 years agoAdd support for YANO external USB-HDD.
Warner Losh [Thu, 21 Jun 2007 20:13:07 +0000 (20:13 +0000)]
Add support for YANO external USB-HDD.

Submitted by: Norihiro TANAKA
PR: 94742
Approved by: re (kensmith blanket)

17 years agoReplace sosend() with direct call to .pru_send method on the
Maksim Yevmenkin [Thu, 21 Jun 2007 19:55:49 +0000 (19:55 +0000)]
Replace sosend() with direct call to .pru_send method on the
L2CAP socket. This is to avoid LOR with sx(9) lock in sblock()
called from sosend_generic().

Approved by: re (kensmith)
MFC after: 1 week

17 years agoFix two PRs by adding vendor IDs:
Warner Losh [Thu, 21 Jun 2007 17:55:28 +0000 (17:55 +0000)]
Fix two PRs by adding vendor IDs:

PR 108097: ADMtek 851X USB-to-LAN adapter
PR 74849: Samsung SPH-i500 does not attach properly as usb modem/Palm device

PR: 108097, 74849
Approved by: re@ (kensmith trivial usb blanket)

17 years agoRemove duplicate xref and add missing commas.
Christian Brueffer [Thu, 21 Jun 2007 16:39:25 +0000 (16:39 +0000)]
Remove duplicate xref and add missing commas.

PR: 113891
Submitted by: pluknet <pluknet@gmail.com>
Approved by: re (blanket)

17 years agoLatest round of usb cleanups:
Warner Losh [Thu, 21 Jun 2007 14:42:34 +0000 (14:42 +0000)]
Latest round of usb cleanups:

o Consistently use device_foo_t and bus_foo_t for functions implementing
  device_foo and bus_foo respectively.  Adjust those routines that were wrong
  (we should do this throughout the tree).
o make all the modules depend on usb.  Otherwise these modules won't
  load.
o ucycom doesn't need usb_port.h
o Minor unifdefing
o uhub, umass, ums, urio, uscanner conversion complete.
o ukbd: Remove the NO_SET_PROTO quirk (fixes a PR 77940).  NetBSD removed
  their check and setting the proto a long time ago.
o umodem panic fixed.  UQ_ASSUME_CM_OVER_DATA quirk removed because I've never
  seen a umodem that needed this rejection for proection (this gets rid of
  ~20% of the quirks).

Approved by: re@ (kensmith)
PR: 77940

17 years agoRestore approximately FreeBDS 6.x's level of compatibility macros.
Warner Losh [Thu, 21 Jun 2007 14:36:22 +0000 (14:36 +0000)]
Restore approximately FreeBDS 6.x's level of compatibility macros.
Older drivers that do not wish to convert to the native API (which
will work with both 6.x and 7.x) can simply include
<dev/usb/usb_port.h>.  Drivers in the tree shouldn't these macros,
unless they actually work on other OSes and are actively maintained.

Approved by: re@

17 years agoResolve conflicts after less(1) v406 import.
Xin LI [Thu, 21 Jun 2007 10:44:50 +0000 (10:44 +0000)]
Resolve conflicts after less(1) v406 import.

Approved by: re (hrs)

17 years agoThis commit was generated by cvs2svn to compensate for changes in r170964,
Xin LI [Thu, 21 Jun 2007 10:42:55 +0000 (10:42 +0000)]
This commit was generated by cvs2svn to compensate for changes in r170964,
which included commits to RCS files with non-trunk default branches.

17 years agoVirgin import of less v406.
Xin LI [Thu, 21 Jun 2007 10:42:55 +0000 (10:42 +0000)]
Virgin import of less v406.

Approved by: re (hrs)

17 years agoRestore a historical behavior that +foo is considered as a
Xin LI [Thu, 21 Jun 2007 10:39:24 +0000 (10:39 +0000)]
Restore a historical behavior that +foo is considered as a
filename by more(1).  The less(1) behavior is keep intact.

PR: bin/51488
Prodded by: demon
Approved by: re (hrs)

17 years agos/logprintf/printf/g
Warner Losh [Wed, 20 Jun 2007 05:11:37 +0000 (05:11 +0000)]
s/logprintf/printf/g

Approved by: re@

17 years agoUse .CURDIR when referring source code. This fixes build
Xin LI [Wed, 20 Jun 2007 00:29:51 +0000 (00:29 +0000)]
Use .CURDIR when referring source code.  This fixes build
when 'make obj' was done first.  I found this when fixing
a problem reported by tinderbox, but forgot to send the
patchset to re@ altogether.

Approved by: re (kensmith)

17 years agoClean up after previous commit: new sentence -> new line, no empty lines,
Christian Brueffer [Tue, 19 Jun 2007 16:29:46 +0000 (16:29 +0000)]
Clean up after previous commit: new sentence -> new line, no empty lines,
.Fa macro usage.

Approved by: re (blanket)

17 years ago- Fix the signature of sctp_connectx to match the function and adds some
Randall Stewart [Tue, 19 Jun 2007 16:18:43 +0000 (16:18 +0000)]
- Fix the signature of sctp_connectx to match the function and adds some
  text about the last argument.
Approved by: re (bmah@freebsd.org)

17 years ago- Fix RFC reference to SCTP to be correct.
Randall Stewart [Tue, 19 Jun 2007 15:56:32 +0000 (15:56 +0000)]
- Fix RFC reference to SCTP to be correct.
Approved by: re (bmah@freebsd.org)

17 years agoUpdated release notes: Note that diffutils was formerly version 2.7 [1].
Bruce A. Mah [Tue, 19 Jun 2007 15:08:43 +0000 (15:08 +0000)]
Updated release notes:  Note that diffutils was formerly version 2.7 [1].
Add some more verbage with respect to jemalloc and resource limits [2].

Submitted by: delphij [1]
Collaboration with: jasone [2]
Approved by: re (implicit)

17 years agoFix build problem caused by a set of typos.
Xin LI [Tue, 19 Jun 2007 14:56:35 +0000 (14:56 +0000)]
Fix build problem caused by a set of typos.

Reported by: tinderbox
Approved by: re (mux)

17 years agoNew release notes:
Christian Brueffer [Tue, 19 Jun 2007 14:13:46 +0000 (14:13 +0000)]
New release notes:
- tmpfs on i386,amd64
- gem(4) altq support
- AUDIT and SCTP in GENERIC
- FireWire MPSAFE
- netstat SCTP support
- dhclient RFC 3442 support (1)

Modified release notes:
- MFC markers: mxge(4) and netcat
- touch -A entry grammar fix (2)
- More manpage references used

Submitted by: Andrey V. Elsukov (1)
ceri (2)
Approved by: re (blanket)

17 years agodevfs_free() calls free_unr(), that may sleep.
Konstantin Belousov [Tue, 19 Jun 2007 13:19:23 +0000 (13:19 +0000)]
devfs_free() calls free_unr(), that may sleep.
Postpone call to devfs_free() after cdev mutex is dropped. Reuse
cdp_list link for queuing devices awaiting deletion in the
cdevp_free_list.

Reported by: Hans Petter Selasky <hselasky c2i net>
Tested by: Peter Holm
Approved by: re (kensmith)
MFC after: 2 weeks

17 years agoAdd the witness warning for free_unr. Function could sleep, thus callers
Konstantin Belousov [Tue, 19 Jun 2007 13:13:17 +0000 (13:13 +0000)]
Add the witness warning for free_unr. Function could sleep, thus callers
shall not have any non-sleepable locks held.

Submitted by: Hans Petter Selasky <hselasky c2i net>
Approved by: re (kensmith)

17 years agoInclude usb_port.h to fix build.
Xin LI [Tue, 19 Jun 2007 10:28:08 +0000 (10:28 +0000)]
Include usb_port.h to fix build.

Reported by: tinderbox
Approved by: re (mux)

17 years ago- Replace rather inefficient bubble sort with a recursive depth-first search.
Pav Lucistnik [Mon, 18 Jun 2007 22:49:13 +0000 (22:49 +0000)]
- Replace rather inefficient bubble sort with a recursive depth-first search.
  This speeds up registration of packages considerably.
- style(9) police welcome!

PR: bin/112630
Submitted by: Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
Tested by: bento i386 experimental run
MFC after: 14 days

17 years agoFix headphone jack sensing support for Olivetti Olibook 610-430 XPSE.
Ariff Abdullah [Mon, 18 Jun 2007 22:39:27 +0000 (22:39 +0000)]
Fix headphone jack sensing support for Olivetti Olibook 610-430 XPSE.

Tested by: Gonzalo Lionel Rodriguez

17 years ago- Two more static analisys bugs found by cisco's tool on a subsequent
Randall Stewart [Mon, 18 Jun 2007 22:36:52 +0000 (22:36 +0000)]
- Two more static analisys bugs found by cisco's tool on a subsequent
  run.

17 years agoMark the few remaining drivers that haven't been converted as needing
Warner Losh [Mon, 18 Jun 2007 22:32:09 +0000 (22:32 +0000)]
Mark the few remaining drivers that haven't been converted as needing
usb_port.h by explicitly including it.

17 years agoExpand usb_port macros
Warner Losh [Mon, 18 Jun 2007 22:31:35 +0000 (22:31 +0000)]
Expand usb_port macros

17 years agoRemove usb_port.h from usb.h, except for one or two useful things that
Warner Losh [Mon, 18 Jun 2007 22:30:53 +0000 (22:30 +0000)]
Remove usb_port.h from usb.h, except for one or two useful things that
don't belong there (these moved into usb.h).

17 years agoExpand usb_port.h macros.
Warner Losh [Mon, 18 Jun 2007 22:30:08 +0000 (22:30 +0000)]
Expand usb_port.h macros.

17 years agoExpand usb_callout_init
Warner Losh [Mon, 18 Jun 2007 22:28:32 +0000 (22:28 +0000)]
Expand usb_callout_init

17 years agoFinish removal of usb_port.h macros.
Warner Losh [Mon, 18 Jun 2007 22:27:57 +0000 (22:27 +0000)]
Finish removal of usb_port.h macros.

17 years agoExplicitly use usb_port.h to get compat macros.
Warner Losh [Mon, 18 Jun 2007 22:26:41 +0000 (22:26 +0000)]
Explicitly use usb_port.h to get compat macros.

17 years agoUse device_foo_t to declare kobj methods
Warner Losh [Mon, 18 Jun 2007 22:25:46 +0000 (22:25 +0000)]
Use device_foo_t to declare kobj methods
Fix shutdown type to return int rather than void.

17 years agofinish removing usb_port.h macros.
Warner Losh [Mon, 18 Jun 2007 22:24:32 +0000 (22:24 +0000)]
finish removing usb_port.h macros.
Use device_foo_t to declare functions
a little de-k&r

17 years agoFinish removing usb_port.h compat macros.
Warner Losh [Mon, 18 Jun 2007 22:23:20 +0000 (22:23 +0000)]
Finish removing usb_port.h compat macros.

17 years agoAccording to the default font size on sparc64 provide a 12 x 22
Marius Strobl [Mon, 18 Jun 2007 22:15:17 +0000 (22:15 +0000)]
According to the default font size on sparc64 provide a 12 x 22
mouse pointer instead of a 8 x 16 one so device drivers don't
need to bring there own one there and in gfb_mouse() (ab)use
the pixel_mask argument of putm() to pass along on/off info as
erasing the mouse cursor image by redrawing the text underneath
doesn't work as we use hardware cursors on sparc64.

17 years ago- Fixes cstatic issues found by cisco sa tool (missing frees and such
Randall Stewart [Mon, 18 Jun 2007 21:59:15 +0000 (21:59 +0000)]
- Fixes cstatic issues found by cisco sa tool (missing frees and such
  on error legs)
- align sctp_sockstore to 64 bit boundary ..

17 years ago- Move ofw_pci_alloc_busno() to the ofw_pci KOBJ interface,
Marius Strobl [Mon, 18 Jun 2007 21:49:42 +0000 (21:49 +0000)]
- Move ofw_pci_alloc_busno() to the ofw_pci KOBJ interface,
  allowing the driver for the host-PCI-bridge to indicate that
  reenumeration of the PCI busses isn't supported by returning
  -1 instead of a valid PCI bus number. This is needed in order
  support both Tomatillo, which don't support reenumeration and
  thus are apparently intended to be used for independently
  numbered PCI domains only, and Psycho bridges, whose busses
  need to be reenumerated on at least some E450, without the
  #ifndef currently used for sun4v in order to support multiple
  independently PCI domains. The actual allocation/incrementation
  of the PCI bus numbers is now done in psycho(4), though it
  no longer establish a mapping between bus numbers and device
  nodes like ofw_pci_alloc_busno() did as that functionality
  wasn't used (but can easily brought back if really needed).
  The now no longer used sys/sparc64/pci/ofw_pci.c is also
  removed from sys/conf/files.sun4v as ofw_pci_alloc_busno()
  wasn't used there in the first place.
- In ofw_pci_default_{adjust_busrange,intr_pending}() sanity
  check that the device has a parent before passing it on.
- Make psycho_softcs static to sys/sparc64/pci/psycho.c as
  it's not used outside of that module.
- In sys/sparc64/pci/ofw_pcib_subr.c remove the superfluous
  inclusion of opt_global.h and correct the debug output for
  adjusting the subordinate bus number.

17 years agoFor sun4u also add PCI busses with a device unit number of -1
Marius Strobl [Mon, 18 Jun 2007 21:46:07 +0000 (21:46 +0000)]
For sun4u also add PCI busses with a device unit number of -1
instead of using the PCI bus number, like it's already done for
sun4v in order to deal properly with independently numbered PCI
domains which can't be reenumerated (in the case of sun4u f.e.
Tomatillo bridges). For machines where we need to reenumerate
all PCI busses this change obviously introduces the theoretical
cosmetic problem that the device number of the PCI bus no longer
equals to its PCI bus number. In practice this doesn't happen
as both are assigned linearly and in parallel.

17 years agoRemove some stuff I accidently left in the previous commit.
Christian Brueffer [Mon, 18 Jun 2007 19:19:02 +0000 (19:19 +0000)]
Remove some stuff I accidently left in the previous commit.

17 years agoComplete SYNOPSIS and some cleanup.
Christian Brueffer [Mon, 18 Jun 2007 18:58:15 +0000 (18:58 +0000)]
Complete SYNOPSIS and some cleanup.

17 years ago- Add liblwres.so.10 which is now .30 after latest bind import
Rong-En Fan [Mon, 18 Jun 2007 18:50:59 +0000 (18:50 +0000)]
- Add liblwres.so.10 which is now .30 after latest bind import
- Add obsolete libraries which got a version bump

17 years ago- Bump share library version which were missed in last bump
Rong-En Fan [Mon, 18 Jun 2007 18:47:54 +0000 (18:47 +0000)]
- Bump share library version which were missed in last bump

Reported by:       jhb
Discussed with:      deischen, des, doubg, harti
Approved by:      re (kensmith)

17 years agoFix some debugging code that crept in accidentally.
Scott Long [Mon, 18 Jun 2007 18:28:43 +0000 (18:28 +0000)]
Fix some debugging code that crept in accidentally.

17 years agoo Make ipfw set more robust -- now it is possible:
Maxim Konovalov [Mon, 18 Jun 2007 17:52:37 +0000 (17:52 +0000)]
o Make ipfw set more robust -- now it is possible:
    - to show a specific set: ipfw set 3 show
    - to delete rules from the set: ipfw set 9 delete 100 200 300
    - to flush the set: ipfw set 4 flush
    - to reset rules counters in the set: ipfw set 1 zero

PR: kern/113388
Submitted by: Andrey V. Elsukov
Approved by: re (kensmith)
MFC after: 6 weeks

17 years agoUse vfs_timestamp() instead of nanotime() - make it up to
Xin LI [Mon, 18 Jun 2007 14:40:19 +0000 (14:40 +0000)]
Use vfs_timestamp() instead of nanotime() - make it up to
the user to make decisions about how detail they wanted
timestamps to have.

17 years agoAdd additional logging level mask for packet_logging too.
Randall Stewart [Mon, 18 Jun 2007 13:57:37 +0000 (13:57 +0000)]
Add additional logging level mask for packet_logging too.

17 years agoNote PAM support in atrun(8) and cron(8).
Yaroslav Tykhiy [Mon, 18 Jun 2007 12:03:02 +0000 (12:03 +0000)]
Note PAM support in atrun(8) and cron(8).

17 years agoMajor cleanup: mdoc macros, style, typos etc.
Christian Brueffer [Mon, 18 Jun 2007 10:20:32 +0000 (10:20 +0000)]
Major cleanup: mdoc macros, style, typos etc.

17 years agoWe only flush entries related to the given file system. Currently there are
Pawel Jakub Dawidek [Mon, 18 Jun 2007 09:28:24 +0000 (09:28 +0000)]
We only flush entries related to the given file system. Currently there are
no 'invalid' cache entires - file system is responsible for keeping it that
way. The comment should have been updated in rev.1.25.

17 years ago/usr/lib/libvgl.so.4 was bumped last month (20070521).
Rong-En Fan [Mon, 18 Jun 2007 09:00:01 +0000 (09:00 +0000)]
/usr/lib/libvgl.so.4 was bumped last month (20070521).

Approved by: delphij (mentor)

17 years agoUpdate comment: kernel privileges are, in fact sorted by subsytem.
Robert Watson [Mon, 18 Jun 2007 07:54:27 +0000 (07:54 +0000)]
Update comment: kernel privileges are, in fact sorted by subsytem.

17 years agoDrop the default zones that are now covered by the new zones that
Doug Barton [Mon, 18 Jun 2007 06:29:45 +0000 (06:29 +0000)]
Drop the default zones that are now covered by the new zones that
were added in the last revision.

17 years agoBring our default named configuration more in line with current
Doug Barton [Mon, 18 Jun 2007 05:58:23 +0000 (05:58 +0000)]
Bring our default named configuration more in line with current
best practices:

1. The old way of generating the localhost zones was not optimal both
because they did not exist by default, and because they were not really
aligned with BCP. There is no need to have the dynamic data that the
make-localhost script generated, and good reasons to do this more
"by the book."

2. In named.conf
a. Clean up white space
b. Add/clarify a few comments
c. Slave zones from the root servers instead of using a hints
file. This has several advantages, as described in the comments.
d. Significantly revamp the default zones, including the
forward localhost zone, and the reverse zones for IPv4 and IPv6
loopback addresses. There are extensive comments describing what
is included and why. Interested readers should take the time to
review the RFCs mentioned in the comments. There is also relevant
information about the motivations for hosting these zones in the
"work in progress" Internet-Draft,
http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
or its successor.
It's also worth noting that a significant number of these
empty zones are already included by default in the named binary
without any user configuration.
e. Because we're including a lot of examples of both local
forward zones and slave zones in the default configuration,
eliminate some of those examples.

3. Add new localhost-{forward|reverse} zone files, and an "empty" zone
to support the changes in 2.d. above. The empty zone file isn't really
empty in order to avoid a warning from BIND about a zone file that
doesn't contain any A or AAAA records.

17 years agoAdd a namedb/master directory for the zone files I'm about to add,
Doug Barton [Mon, 18 Jun 2007 05:44:38 +0000 (05:44 +0000)]
Add a namedb/master directory for the zone files I'm about to add,
and switch to the more "normal" way of installing files for the
namedb directory so that we can pick up the new subdir.

17 years agominor style(9) polishing
Warner Losh [Mon, 18 Jun 2007 02:15:58 +0000 (02:15 +0000)]
minor style(9) polishing

# but we need a usb_match function, if we don't already have one...

17 years agoAdd rewind() to the list of functions which may fail and set errno
Andrey A. Chernov [Mon, 18 Jun 2007 02:13:04 +0000 (02:13 +0000)]
Add rewind() to the list of functions which may fail and set errno

17 years agoAdd mbstate clear missed in one of the cases.
Andrey A. Chernov [Mon, 18 Jun 2007 02:09:08 +0000 (02:09 +0000)]
Add mbstate clear missed in one of the cases.
Move overflow check for fseek as early as needed.

17 years agoEliminate unnecessary checks from vm_pageout_clean(): The page that is
Alan Cox [Mon, 18 Jun 2007 02:04:38 +0000 (02:04 +0000)]
Eliminate unnecessary checks from vm_pageout_clean(): The page that is
passed to vm_pageout_clean() cannot possibly be PG_UNMANAGED because
it came from the inactive queue and PG_UNMANAGED pages are not in any
page queue.  Moreover, PG_UNMANAGED pages only exist in OBJT_PHYS
objects, and all pages within a OBJT_PHYS object are PG_UNMANAGED.
So, if the page that is passed to vm_pageout_clean() is not
PG_UNMANAGED, then it cannot be from an OBJT_PHYS object and its
neighbors from the same object cannot themselves be PG_UNMANAGED.

Reviewed by: tegge

17 years agoFix library names.
David Xu [Mon, 18 Jun 2007 01:50:03 +0000 (01:50 +0000)]
Fix library names.

17 years agoMFp4: fix two locking problems:
Xin LI [Mon, 18 Jun 2007 01:43:13 +0000 (01:43 +0000)]
MFp4: fix two locking problems:

 - Hold TMPFS_LOCK while updating tm_pages_used.
 - Hold vm page while doing uiomove.

This will hopefully fix all known panics.

Submitted by: Howard Su

17 years agoTrack whether the current read stream supports seek(). For now, we
Tim Kientzle [Mon, 18 Jun 2007 00:36:54 +0000 (00:36 +0000)]
Track whether the current read stream supports seek().  For now, we
assume yes unless seek has previously failed, but I fear I'll have to
avoid seeks under other circumstances.  (For instance, tape drives on
FreeBSD seem to return garbage from lseek().)  Also, optimize away
zero-byte skips.

17 years ago- The packet log needs to copy all of the buffer not to the end.
Randall Stewart [Sun, 17 Jun 2007 23:43:37 +0000 (23:43 +0000)]
- The packet log needs to copy all of the buffer not to the end.

17 years agoApply a vendor patch that fixes very annoying bug
Xin LI [Sun, 17 Jun 2007 23:20:43 +0000 (23:20 +0000)]
Apply a vendor patch that fixes very annoying bug
which caused the cursor not to return to the place
it should when -w is used with -e.

Note that this is a commit against -HEAD because
we already have the file off the vendor branch.

Reported by: Tom Uffner (on -current@)
Obtained from: http://www.greenwoodsoftware.com/less/less-405.tar.gz

17 years agoHave gpart synthesize a disk geometry if the underlying provider
Marcel Moolenaar [Sun, 17 Jun 2007 22:19:19 +0000 (22:19 +0000)]
Have gpart synthesize a disk geometry if the underlying provider
don't have it. Some partitioning schemes, as well as file systems,
operate on the geometry and without it such schemes (e.g. MBR)
and file systems (e.g. FAT) can't be created. This is useful for
memory disks.

17 years agoSilence some gcc 4 warnings. It is expected that the bpf_movein() routine
Christian S.J. Peron [Sun, 17 Jun 2007 21:51:43 +0000 (21:51 +0000)]
Silence some gcc 4 warnings. It is expected that the bpf_movein() routine
will intialize the the header length and re-initialize the mbuf pointer
to reference the mbuf that is allocated after moving user supplied packet
data in.

17 years agoFix a (very) longstanding bug in moused(8) affecting high-resolution rodents
Philip Paeps [Sun, 17 Jun 2007 20:27:54 +0000 (20:27 +0000)]
Fix a (very) longstanding bug in moused(8) affecting high-resolution rodents
when linear acceleration (-a) was enabled with a <1 value to slow them down.

Previously, rounding errors would eat small movements so the mouse had to be
moved a certain distance to get any movement at all.  We now calculate the
rounding errors and take them into account when reporting movement.

PR: bin/113749
Submitted by: Oliver Fromme <olli -at- secnetix.de>
MFC after: 3 days

17 years agoBack out last change to inpcb_free. Turns out we need
Randall Stewart [Sun, 17 Jun 2007 19:27:46 +0000 (19:27 +0000)]
Back out last change to inpcb_free. Turns out we need
to hold off freeing if there is data pending ... someone
might do send/close. Which means we want the data to
go and then close it after startup. Added comments to
the code as well to note that this is done for a reason.

17 years agoSpelling nit due to my lamenglishness.
Ariff Abdullah [Sun, 17 Jun 2007 19:02:05 +0000 (19:02 +0000)]
Spelling nit due to my lamenglishness.

Noticed by: brueffer

17 years agoRemove USBGETSOFTC, USB_ATTACH_START, USB_DETACH_START and
Warner Losh [Sun, 17 Jun 2007 18:46:26 +0000 (18:46 +0000)]
Remove USBGETSOFTC, USB_ATTACH_START, USB_DETACH_START and
USB_DECLARE_DRIVER_INIT from the usb network drivers.

17 years agoAdd PAM support to cron(8). Now cron(8) will skip commands scheduled
Yaroslav Tykhiy [Sun, 17 Jun 2007 17:25:53 +0000 (17:25 +0000)]
Add PAM support to cron(8).  Now cron(8) will skip commands scheduled
by unavailable accounts, e.g., those locked, expired, not allowed in at
the moment by nologin(5), or whatever, depending on cron's pam.conf(5).
This applies to personal crontabs only, /etc/crontab is unaffected.

In other words, now the account management policy will apply to
commands scheduled by users via crontab(1) so that a user can no
longer use cron(8) to set up a delayed backdoor and run commands
during periods when the admin doesn't want him to.

The PAM check is done just before running a command, not when loading
a crontab, because accounts can get locked, expired, and re-enabled
any time with no changes to their crontabs.  E.g., imagine that you
provide a system with payed access, or better a cluster of such
systems with centralized account management via PAM.  When a user
pays for some days of access, you set his expire field respectively.
If the account expires before its owner pays more, its crontab
commands won't run until the next payment is made.  Then it'll be
enough to set the expire field in future for the commands to run
again.  And so on.

Document this change in the cron(8) manpage, which includes adding
a FILES section and touching the document date.

X-Security: should benefit as users have access to cron(8) by default

17 years agoThis is a forced (and belated) commit to record that these files
Poul-Henning Kamp [Sun, 17 Jun 2007 16:53:45 +0000 (16:53 +0000)]
This is a forced (and belated) commit to record that these files
were repocopied from src/tools/tools/recoverdisk

17 years agoRemove unused softc.
Marius Strobl [Sun, 17 Jun 2007 16:44:08 +0000 (16:44 +0000)]
Remove unused softc.

17 years agoExpand USB_MATCH_START
Warner Losh [Sun, 17 Jun 2007 16:24:49 +0000 (16:24 +0000)]
Expand USB_MATCH_START

17 years agoAdd sysctl/tunable "hw.snd.default_auto", which is useful (especially
Ariff Abdullah [Sun, 17 Jun 2007 16:15:56 +0000 (16:15 +0000)]
Add sysctl/tunable "hw.snd.default_auto", which is useful (especially
for non-root users) to automatically assign default unit to a newly
attach device like USB audio.

17 years agoReassign default unit to a valid unit, be it during attach or detach.
Ariff Abdullah [Sun, 17 Jun 2007 15:53:11 +0000 (15:53 +0000)]
Reassign default unit to a valid unit, be it during attach or detach.
If nothing is available, set to something that is purely ridiculous
so the next valid attach will notice it.

Tested by: chibis

17 years agoFix a compile error from the last change.
Scott Long [Sun, 17 Jun 2007 15:21:09 +0000 (15:21 +0000)]
Fix a compile error from the last change.

17 years ago o style(9) nit.
Randall Stewart [Sun, 17 Jun 2007 14:45:28 +0000 (14:45 +0000)]
o style(9) nit.
o shorten explainations which are over 80 columns in console.
o group rows
o clean up and change explanations a little bit.
Obtained from: weongyo.jeong@gmail.com

17 years agoNote PAM support in atrun(8).
Yaroslav Tykhiy [Sun, 17 Jun 2007 14:02:31 +0000 (14:02 +0000)]
Note PAM support in atrun(8).
Sort FILES section while there.
Touch document date.