]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd proper mime-types for files that they are relevant for.
dougb [Mon, 2 Jun 2008 20:54:45 +0000 (20:54 +0000)]
Add proper mime-types for files that they are relevant for.
This is useful for things like *.pdf files that svn needs
to know about, and will probably be useful down the road
for other things.

16 years agoMFC r177993
thompsa [Mon, 2 Jun 2008 02:30:02 +0000 (02:30 +0000)]
MFC r177993

 Fix spelling, retaining old define.

16 years agoDisown ncurses, as a multi-branch commit test, to make sure the exporter
peter [Sat, 31 May 2008 22:32:51 +0000 (22:32 +0000)]
Disown ncurses, as a multi-branch commit test, to make sure the exporter
handles it.

16 years agoMFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
marius [Fri, 30 May 2008 22:00:45 +0000 (22:00 +0000)]
MFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
     sym_hipd.c 1.69 (partial), 1.70

- Remove unused members related to bus addresses in struct sym_hcb.
- sym(4) takes care of allocating an instance of struct sym_hcb
  itself so don't let newbus allocate it as an unused softc also.
- Const'ify firmware and lookup-tables.
- Obsolete redundant inst_name and unit members of struct sym_hcb.
- Fix three more NULL vs. 0 confusions.
- Use device_set_softc(9) to tell the bus layer that this driver
  allocates a instance of struct sym_hcb itself.

16 years agoMFC: 1.56; 1.57; 1.58; 1.63; 1.66; 1.68
marius [Fri, 30 May 2008 19:59:38 +0000 (19:59 +0000)]
MFC: 1.56; 1.57; 1.58; 1.63; 1.66; 1.68

- Fix -Wundef.
- FreeBSD has had endian conversion macros for a long time.  Axe the custom
  macros in this driver.
- Fix typo in comment.
- Fix various compilation warnings for gcc-4.2.
- Use NULL instead of 0 for pointers.
- Remove superfluous returns in functions returning void.
- In sym_alloc_lcb_tags() return directly instead of jumping
  to a label which just returns.
- Fix some spelling in comments.
- Remove trailing whitespace.

16 years agoMFC:
emax [Fri, 30 May 2008 00:42:50 +0000 (00:42 +0000)]
MFC:

Bluetooth SIG is being difficult and keep moving specification
documents away from being public accessible. Replace link to
the Bluetooth specification document with the document name.

Pointed out by: SoftLover < slserg at uic dot tula dot ru >

16 years agoMFC: Add memrchr(3).
delphij [Tue, 27 May 2008 20:04:27 +0000 (20:04 +0000)]
MFC: Add memrchr(3).

Obtained from: OpenBSD

16 years agoMFC to RELENG_6:
antoine [Tue, 27 May 2008 18:33:17 +0000 (18:33 +0000)]
MFC to RELENG_6:
  Move "1000baseT" from IFM_SUBTYPE_ETHERNET_DESCRIPTIONS to
  IFM_SUBTYPE_ETHERNET_ALIASES: there is already "1000baseTX" in
  IFM_SUBTYPE_ETHERNET_DESCRIPTIONS.  This doesn't change ifconfig
  behaviour.

  PR:             45793 (maybe)
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC:
gabor [Mon, 26 May 2008 19:26:10 +0000 (19:26 +0000)]
MFC:
hu_HU.ISO8859-2.src r1.9
hu_HU.UTF-8.src r1.4

- The names of the months and the days are in lowercase according to the
  Hungarian spelling, change them accordingly

16 years agoMFC rev. 1.278:
kib [Mon, 26 May 2008 11:15:15 +0000 (11:15 +0000)]
MFC rev. 1.278:
Use the t_state for the TS_GONE test.

16 years agoMFC revision 1.293
alc [Sun, 25 May 2008 07:38:09 +0000 (07:38 +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 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 ago- Close a small fd leak that can occur if we have to do more than one
jhb [Fri, 23 May 2008 20:06:59 +0000 (20:06 +0000)]
- Close a small fd leak that can occur if we have to do more than one
  PIOCWAIT after forking a new child process.
- Use NULL instead of 0 in one spot.

This is a direct commit to RELENG_6 since it only applies to the procfs
code and newer branches use ptrace() rather than procfs.

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 of an update to the dump program to save extended attributes
mckusick [Fri, 23 May 2008 18:08:32 +0000 (18:08 +0000)]
MFC of an update to the dump program to save extended attributes
and an update to the restore program to restore all dumped extended
attributes. The affected files and the version being MFC'ed:

  Revision  Path
  1.11      src/include/protocols/dumprestore.h
  1.28      src/sbin/dump/dump.h
  1.38      src/sbin/dump/traverse.c
  1.31      src/sbin/restore/dirs.c
  1.11      src/sbin/restore/extern.h
  1.12      src/sbin/restore/restore.h
  1.48      src/sbin/restore/tape.c
  1.16      src/sys/sys/extattr.h
  1.21      src/sys/ufs/ufs/extattr.h
  1.24      src/share/man/man5/fs.5

Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>. This should happen in the course of doing
a normal `buildworld'.

This resolves PR 93085 which will be closed.

PR:             bin/93085
MFC request by: Robert Watson

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:
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 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 agoMFC: moused.c rev 1.84
philip [Tue, 20 May 2008 10:53:58 +0000 (10:53 +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:
dwmalone [Tue, 20 May 2008 10:51:27 +0000 (10:51 +0000)]
Sync with -current:
 - ability to traceroute with packets with no upper layer header.
 - clean __P use.
 - place each router entry on its own line.
 - get ipsec.h from netipsec directory.

16 years agoFix a harmless mismerge.
dfr [Tue, 20 May 2008 07:55:03 +0000 (07:55 +0000)]
Fix a harmless mismerge.

Pointed out by: jhb

16 years agoMFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77;
marius [Mon, 19 May 2008 19:23:06 +0000 (19:23 +0000)]
MFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77;
     sbus.c 1.46 (partial), 1.48; counter.c 1.7;
     iommu.c 1.44 (partial), 1.45 (partial), 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.
- Correct a typo in sbus_alloc_resource() which caused (pass-through)
  allocations to only work down to the grandchildren of the bus, which
  wasn't a real problem so far as we don't support any devices which are
  great-grandchildren or greater of a U2S bridge, yet.
- Fix some minor style(9) bugs.
- Use __FBSDID in counter.c and iommu.c.

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 agoMFC
kib [Mon, 19 May 2008 11:50:48 +0000 (11:50 +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 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.216 scsi_da.c
remko [Sat, 17 May 2008 23:41:27 +0000 (23:41 +0000)]
MFC rev 1.216 scsi_da.c

  Quirk for Denver MP3 player usb.

  Submitted by: Ed Schouten
  PR: 107101
  Approved by: re (blanket for device supprot)

Approved by: imp (mentor, implicit)

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 the MPSAFE quotas.
kib [Sat, 17 May 2008 12:46:24 +0000 (12:46 +0000)]
MFC the MPSAFE quotas.

kern/vfs_syscalls.c rev. 1.433:
Busy filesystem around call of VFS_QUOTACTL() vfs op.

ufs/ffs/ffs_softdep.c remaining parts of the rev. 1.206 after 1.181.2.24:
Replace unconditional acquision of Giant when QUOTAS are defined with
VFS_LOCK_GIANT(NULL) call.

ufs/ffs/ffs_vfsops.c rev. 1.327, 1.328
rev. 1.327: Implement fine-grained locking for UFS quotas.
rev. 1.328: Mark UFS as being MP-Safe in "options QUOTA" case too.

ufs/ufs/quota.h remaining parts of the rev. 1.30 after 1.27.2.3:
Implement fine-grained locking for UFS quotas.

ufs/ufs/ufs_lookup.c rev. 1.83:
Call getinoquota() before allocating new block for the directory to properly
account for block allocation.

ufs/ufs/ufs_quota.c rev. 1.93:
Implement fine-grained locking for UFS quotas.

ufs/ufs/ufs_vnops.c rev. 1.289:
Remove unneeded getinoquota() call in the ufs_access().

16 years agoMFC rev. 1.158
mav [Sat, 17 May 2008 08:45:58 +0000 (08:45 +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 agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Fri, 16 May 2008 15:34:07 +0000 (15:34 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC part of the rev. 1.210, and the rev. 1.211.
kib [Fri, 16 May 2008 11:41:50 +0000 (11:41 +0000)]
MFC part of the rev. 1.210, and the rev. 1.211.

In the giant_XXX wrappers for the device methods of the D_NEEDGIANT
drivers, do not dereference the cdev->si_devsw. It is racing with
the destroy_devl() clearing of the si_devsw. Instead, use the
dev_refthread() and return ENXIO for the destroyed device.

PR: kern/122287

16 years agoMFC rev. 1.24 of the sys/fs/devfs/devfs_rule.c,
kib [Fri, 16 May 2008 10:35:16 +0000 (10:35 +0000)]
MFC rev. 1.24 of the sys/fs/devfs/devfs_rule.c,
    rev. 1.218 of the sys/vm/vm_mmap.c

Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly
obtain the reference. In particular, this fixes the panic reported in
the PR. Remove the comments stating that this needs to be done.

PR: kern/119422

16 years agoMFC rev. 1.320:
kib [Fri, 16 May 2008 10:32:52 +0000 (10:32 +0000)]
MFC rev. 1.320:

The wakeup() line from the rev. 1.319 is wrong and reintroduces
a panic race on module unload. The wakeup() is internal to
kproc_exit/kthread_exit. The correct fix is to fix the msleep() in
detach to sleep on fdc->fdc_thread instead of &fdc->fdc_thread.

MFC rev. 1.319:
Wakeup the thread doing the fdc_detach() when the fdc worker thread exits [1].
Write access to the write-protected floppy shall call device_unbusy() to
pair the device_busy() in the fd_access() [2].

PR: 116537 [1], 116539 [2]

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 01:22:20 +0000 (01:22 +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.6
marius [Thu, 15 May 2008 18:50:10 +0000 (18:50 +0000)]
MFC: 1.6

Style(9) fix - use #define<tab> consistently.

16 years agoMFC rev 1.8: When sending packets directly to the DHCP server, use a socket
brooks [Thu, 15 May 2008 01:59:20 +0000 (01:59 +0000)]
MFC rev 1.8: When sending packets directly to the DHCP server, use a socket
and send directly rather than bogusly sending it out as a link layer
broadcast (which fails to be received on some networks).

PR: bin/96018

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: 1.206 (partial)
marius [Wed, 14 May 2008 21:22:17 +0000 (21:22 +0000)]
MFC: 1.206 (partial)

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.

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:
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 in runq-fuzz
julian [Mon, 12 May 2008 06:45:37 +0000 (06:45 +0000)]
fix stupid typo in runq-fuzz

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: 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:47:10 +0000 (18:47 +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 if_bfe.c rev 1.45 to RELENG_6.
yongari [Wed, 7 May 2008 01:33:01 +0000 (01:33 +0000)]
MFC if_bfe.c rev 1.45 to RELENG_6.
  Don't panic even if bus_dmamap_load(9) was failed. Just return
  ENOBUFS so callers can reuse previous mbuf.

16 years agoMFC(rev.1.25):
hrs [Tue, 6 May 2008 18:07:17 +0000 (18:07 +0000)]
MFC(rev.1.25):
Add AUTHORS section[*] and fix HISTORY section.

Requested by: Dave Yost (original author)[*]
History checked by: The CSRG Archives

16 years agoMFC:
mtm [Tue, 6 May 2008 10:50:51 +0000 (10:50 +0000)]
MFC:
Add a dummynet_enable knob to go with firewall_enable. If this knob
is enabled dummynet(4) is added to the list of required modules.

Discussed on: #freebsd-bugbusters (rwatson, trhodes)
PR: conf/79196

16 years agoMFC rev. 1.328:
mtm [Tue, 6 May 2008 09:45:40 +0000 (09:45 +0000)]
MFC rev. 1.328:
date: 2008/03/06 14:01:10;  author: mtm;  state: Exp;  lines: +1 -1
The rarpd(8) daemon must be instructed to start on all interfaces or a
specific one. Instruct it to listen on all interfaces so that enabling
it in rc.conf(5) works "out of the box."

PR:     conf/121406
Submited by: trasz

16 years agoMFC: Remove the 'add_kld_command' arg from load_kld().
jhb [Mon, 5 May 2008 19:15:38 +0000 (19:15 +0000)]
MFC: Remove the 'add_kld_command' arg from load_kld().

16 years agoMFC: Emit a warning when the network_interfaces variable is not set to AUTO.
brooks [Sun, 4 May 2008 16:15:04 +0000 (16:15 +0000)]
MFC: Emit a warning when the network_interfaces variable is not set to AUTO.

16 years agoMFC: Add error handling for PSEUDO syscalls.
dfr [Sun, 4 May 2008 09:09:29 +0000 (09:09 +0000)]
MFC: Add error handling for PSEUDO syscalls.

PR: 123325

16 years agoMFC: add -f option and other small fixes
simokawa [Fri, 2 May 2008 06:17:16 +0000 (06:17 +0000)]
MFC: add -f option and other small fixes
firewire.8 rev 1.22
firewire.c rev 1.24

16 years agoMFC: A few fixes.
jhb [Thu, 1 May 2008 20:15:01 +0000 (20:15 +0000)]
MFC: A few fixes.
- Increase time we wait for things to settle to 1 millisecond,
  10 microseconds is too short.
- In est_acpi_info(), initialize count.

16 years agoMFC:
scf [Wed, 30 Apr 2008 23:35:46 +0000 (23:35 +0000)]
MFC:
Have the man page catch up with the namespace pollution cleanup that
occurred between 2001-2003.  Thanks to bde for the history lesson[1]
concerning sys/types.h and the many system calls that at one time
(pre-2001) were required by POSIX to include it.

1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html

    src/lib/libc/sys/mkdir.2: rev 1.25 -> 1.26

16 years agoMFC: 1.5
marius [Wed, 30 Apr 2008 11:26:55 +0000 (11:26 +0000)]
MFC: 1.5

- Include <machine/utrap.h> so this header doesn't have an MD
  dependency.
- Make prototypes style(9) compliant.

16 years agoMFC rev 1.278:
brooks [Tue, 29 Apr 2008 20:43:48 +0000 (20:43 +0000)]
MFC rev 1.278:

Delay the global registration of the struct ifnet in if_alloc() until after
we're certain the allocation will entierly succeed.  This fixes a leak in a
fairly unlikely case.

Reported by: vijay singh <vijjus at rocketmail dot com>

16 years agoMFC per ppp profile variable documentation (revs 1.336 and 1.337)
brooks [Tue, 29 Apr 2008 20:34:31 +0000 (20:34 +0000)]
MFC per ppp profile variable documentation (revs 1.336 and 1.337)

PR: conf/121452, conf/122127

16 years agoMFC: Fix a resource leak in the recent fixes for file descriptors >
jhb [Tue, 29 Apr 2008 17:44:00 +0000 (17:44 +0000)]
MFC: Fix a resource leak in the recent fixes for file descriptors >
SHRT_MAX.

16 years agoMFC: Support for the detach packet.
jhb [Mon, 28 Apr 2008 20:48:42 +0000 (20:48 +0000)]
MFC: Support for the detach packet.

16 years agoMFC: sys/netipsec/key.c rev. 1.31,
bz [Mon, 28 Apr 2008 16:19:36 +0000 (16:19 +0000)]
MFC: sys/netipsec/key.c rev. 1.31,
     also apply to sys/netkey/key.c not present in 7.x/8.

  Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

  In case of "new SA", we must check the hard lifetime of the old SA
  to find out if it is not permanent and we can delete it.

  Submitted by:   sakane via gnn

16 years agoRevert, this was supposed to go into HEAD.
stefanf [Sun, 27 Apr 2008 20:43:26 +0000 (20:43 +0000)]
Revert, this was supposed to go into HEAD.

16 years ago- Fix bugs where the value of arithmetic expansion$((...)) was trucated
stefanf [Sun, 27 Apr 2008 20:25:43 +0000 (20:25 +0000)]
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
  to type int.
- Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
  currently supported FreeBSD architectures).  SUSv3 requires at least type
  long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
  do that too.

PR: 122659
Submitted by: Jaakko Heinonen (minor modifications by me)

16 years agoMFC:
scf [Sun, 27 Apr 2008 17:39:33 +0000 (17:39 +0000)]
MFC:
Capitalize "Eve".  This is the correct form and now matches
calendar.usholiday.

    src/usr.bin/calendar/calendars/calendar.christian: rev 1.10 -> 1.11

16 years agoMFC: 1.61
marius [Sun, 27 Apr 2008 11:36:42 +0000 (11:36 +0000)]
MFC: 1.61

- vx_stop() requires the driver lock to be held.
- Add some missing newlines to messages printed by vx_getlink().

16 years agoBack out the last revision - it shouldn't have been committed and in any
dfr [Sun, 27 Apr 2008 10:57:53 +0000 (10:57 +0000)]
Back out the last revision - it shouldn't have been committed and in any
case its wrong for RELENG_6.

16 years agoUnbreak RELENG_6 build.
oleg [Sat, 26 Apr 2008 19:15:57 +0000 (19:15 +0000)]
Unbreak RELENG_6 build.

PR: misc/123110

16 years agoMFC to RELENG_6:
antoine [Sat, 26 Apr 2008 17:39:56 +0000 (17:39 +0000)]
MFC to RELENG_6:
  Don't allocate the constant array "props" on the stack in wctype.

  PR:             74743
  Submitted by:   knut st. osmundsen
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC: 1.111
oleg [Fri, 25 Apr 2008 10:35:53 +0000 (10:35 +0000)]
MFC: 1.111

Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).

16 years agoMFC:
oleg [Fri, 25 Apr 2008 10:29:26 +0000 (10:29 +0000)]
MFC:
src/sys/netinet/ip_dummynet.h 1.41
src/sys/netinet/ip_dummynet.c 1.111-1.114
src/sys/netinet/ip_fw_pfil.c 1.26
src/sys/net/if_bridge.c 1.107
src/sys/net/if_ethersubr.c 1.240
src/sbin/ipfw/ipfw.8 1.206

- style(9) cleanup.
- dummynet_io() declaration has changed.
- Alter packet flow inside dummynet and introduce 'fast' mode of dummynet
  operation: allow certain packets to bypass dummynet scheduler. Benefits are:
  -- lower latency: if packet flow does not exceed pipe bandwidth, packets
     will not be (up to tick) delayed (due to dummynet's scheduler granularity).
  -- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter
     ip stack later. Such packets can be fastforwarded.
  -- recursion (which can lead to kernel stack exhaution) eliminated. This fix
     long existed panic, which can be triggered this way:
kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost
- New sysctl nodes:
  net.inet.ip.dummynet.io_fast - enables 'fast' dummynet io
  net.inet.ip.dummynet.io_pkt - packets passed to dummynet
  net.inet.ip.dummynet.io_pkt_fast - packets avoided dummynet scheduler
  net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet
- Workaround p->numbytes overflow, which can result in infinite loop inside
  dummynet module (prerequisite is using queues with "fat" pipe).

PR: kern/113548 kern/121955

16 years agoRemove DDB options which accidentally got added in the last revision.
dfr [Thu, 24 Apr 2008 13:08:30 +0000 (13:08 +0000)]
Remove DDB options which accidentally got added in the last revision.

16 years agoRegen.
dfr [Thu, 24 Apr 2008 10:52:30 +0000 (10:52 +0000)]
Regen.

16 years agoMFC: kernel-mode NFS lock manager.
dfr [Thu, 24 Apr 2008 10:46:25 +0000 (10:46 +0000)]
MFC: kernel-mode NFS lock manager.

16 years agoFix spelling mistake made in MFC of rev 1.61.
scf [Thu, 24 Apr 2008 01:30:52 +0000 (01:30 +0000)]
Fix spelling mistake made in MFC of rev 1.61.

16 years agoMFC: if_xl.c 1.211, 1.212, 1.213 (partial); if_xlreg.h 1.60
marius [Wed, 23 Apr 2008 21:38:29 +0000 (21:38 +0000)]
MFC: if_xl.c 1.211, 1.212, 1.213 (partial); if_xlreg.h 1.60

- Spelling fix for interupt -> interrupt
- Fix function prototype for device_shutdown method.
- Take advantage of bus_dmamap_load_mbuf_sg(9).
- Sync with other NIC drivers and prepend a TX mbuf if the first attempt
  to load it fails with an error other than EFBIG and stop trying instead
  of freeing it and keeping on trying to enqueue more mbufs. Also ensure
  the driver queue isn't empty before trying to enqueue mbufs in order to
  reduce locking operations.
- In xl_ifmedia_upd() add a missing XL_UNLOCK(). [1]
- Const'ify the xl_devs array.
- Remove an outdated comment.

PR: 113406 [1]

16 years agoMFC: Add PCI ID's for ICH8 USB controllers.
jhb [Wed, 23 Apr 2008 18:54:51 +0000 (18:54 +0000)]
MFC: Add PCI ID's for ICH8 USB controllers.

16 years agoMFC: Fix pkg_info when specifying a remote package.
flz [Wed, 23 Apr 2008 10:42:00 +0000 (10:42 +0000)]
MFC: Fix pkg_info when specifying a remote package.

  src/usr.sbin/pkg_install/info/perform.c: rev 1.54 -> 1.55
  src/usr.sbin/pkg_install/info/main.c: rev 1.51 -> 1.52

16 years agoMFC of new 'arm' category.
linimon [Wed, 23 Apr 2008 04:01:53 +0000 (04:01 +0000)]
MFC of new 'arm' category.

16 years agoMFC: 1.15-1.18: Fix overflows and memory leaks.
ru [Tue, 22 Apr 2008 13:23:34 +0000 (13:23 +0000)]
MFC: 1.15-1.18: Fix overflows and memory leaks.

16 years agoMFC r1.32, r1.33:
rpaulo [Tue, 22 Apr 2008 12:44:39 +0000 (12:44 +0000)]
MFC r1.32, r1.33:
   Add support for Asus EeePC backlight control.
   style(9) fix.

   Submitted by:   Akira Funahashi <funa at funa.org>

16 years agoMFC ip1000phy.c 1.3, ip1000phyreg.h 1.2 and miidevs 1.52 to RELENG_6.
yongari [Tue, 22 Apr 2008 06:39:07 +0000 (06:39 +0000)]
MFC ip1000phy.c 1.3, ip1000phyreg.h 1.2 and miidevs 1.52 to RELENG_6.
  Add support for IC Plus IP1001 PHY.

16 years agoMFC rgephy.c rev 1.19 to RELENG_6.
yongari [Tue, 22 Apr 2008 06:26:01 +0000 (06:26 +0000)]
MFC rgephy.c rev 1.19 to RELENG_6.
  Add detection of isolation state.

  PR: kern/76710

16 years agoMFC 1.26: Reset the internal state used for the 'getopts' built-in when 'shift'
stefanf [Sun, 20 Apr 2008 18:08:46 +0000 (18:08 +0000)]
MFC 1.26: Reset the internal state used for the 'getopts' built-in when 'shift'
or 'set' are used to modify the arguments.

16 years agoMFC 1.36: Leave working directory variables unchanged if chdir() fails.
stefanf [Sun, 20 Apr 2008 18:08:12 +0000 (18:08 +0000)]
MFC 1.36: Leave working directory variables unchanged if chdir() fails.

16 years agoUpdate pthread errata note with errata notice.
bmah [Sun, 20 Apr 2008 17:55:48 +0000 (17:55 +0000)]
Update pthread errata note with errata notice.

Mention multicast refcounting kernel panic.

16 years agoMFC to RELENG_6:
antoine [Sun, 20 Apr 2008 16:32:20 +0000 (16:32 +0000)]
MFC to RELENG_6:
  Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13
  Significant changes:
  - rev. 1.11: Use PRId64 instead of a cast to long long and %lld to print
  an int64_t.
  - rev. 1.12: Fix a bug that humanize_number() produces "1000" where it
  should be "1.0G" or "1.0M".  The bug reported by Greg Troxel.

  PR:             118461
  PR:             102694
  Approved by:    rwatson (mentor)
  Obtained from:  NetBSD
  MFC after:      1 month

16 years agoMFC some small optimizations:
mav [Sun, 20 Apr 2008 11:34:56 +0000 (11:34 +0000)]
MFC some small optimizations:
rev. 1.151: Remove impossible (hk_peer == NULL) check.
rev. 1.152: Remove ng_setisr() call from ng_dequeue().
rev. 1.153: There is no need to erase hook->hk_node before freeing hook.
rev. 1.154: Use new atomic_fetchadd() primitive instead of looping atomic_cmpset().
rev. 1.158: ng_address_hook() microoptimization.

16 years agoMove our ".mcount" bits around a little.
obrien [Fri, 18 Apr 2008 16:06:46 +0000 (16:06 +0000)]
Move our ".mcount" bits around a little.

16 years agoMFC:
emax [Fri, 18 Apr 2008 00:55:03 +0000 (00:55 +0000)]
MFC:

Fix possible buffer overrun on 64-bit arch when generating MAC
address for tap interface.

Reported by: Marc Lorner < marc dot loerner at hob dot de >
Reviewed by: bms
MFC after: 3 days

16 years agoDocument SA-08:05.openssh
delphij [Thu, 17 Apr 2008 19:10:57 +0000 (19:10 +0000)]
Document SA-08:05.openssh

16 years agoMFC if_rl.c, rev 1.174 to RELENG_6.
yongari [Thu, 17 Apr 2008 04:18:29 +0000 (04:18 +0000)]
MFC if_rl.c, rev 1.174 to RELENG_6.
  It seems that RealTek 8129/8139 chip reports invalid length of
  received frame under certain conditions. wpaul said the length
  0xfff0 is special meaning that indicates hardware is in the
  process of copying a packet into host memory. But it seems
  there are other cases that hardware is busy or stuck in bad
  situation even if the received frame length is not 0xfff0.
  To work-around this condition, add a check that verifys that
  recevied frame length is in valid range. If received length is out
  of range reinitialize hardware to recover from stuck condition.

16 years agoMention bzip2 1.0.5 MFC.
delphij [Thu, 17 Apr 2008 01:02:03 +0000 (01:02 +0000)]
Mention bzip2 1.0.5 MFC.