]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC:
emax [Fri, 14 Mar 2008 16:11:20 +0000 (16:11 +0000)]
MFC:

Add an option to register DUN (Dial-Up Networking) service on the same
RFCOMM channel if needed. There is really no good reason to not to support
this. AT-command exchange can be faked with chat script in ppp.conf.

16 years agoFix showing nat rules.
piso [Fri, 14 Mar 2008 09:41:46 +0000 (09:41 +0000)]
Fix showing nat rules.

Bug spotted by: Gael Roualland <gael.roualland@dial.oleane.com>
PR: bin/121683

16 years agoMFC: In est_acpi_info(), initialize count before passing its pointer to
gibbs [Fri, 14 Mar 2008 02:57:46 +0000 (02:57 +0000)]
MFC: In est_acpi_info(), initialize count before passing its pointer to
CPUFREQ_DRV_SETTINGS().

16 years agoMFC: rev. 1.5
brueffer [Thu, 13 Mar 2008 15:15:38 +0000 (15:15 +0000)]
MFC: rev. 1.5

Fix typos.

16 years agoMFC revision 1.25 -- Make sure we return EINVAL for invalid commands
csjp [Thu, 13 Mar 2008 13:53:20 +0000 (13:53 +0000)]
MFC revision 1.25 -- Make sure we return EINVAL for invalid commands

16 years agoMerge audit_worker.c:1.22 from HEAD to RELENG_7:
rwatson [Thu, 13 Mar 2008 10:30:06 +0000 (10:30 +0000)]
Merge audit_worker.c:1.22 from HEAD to RELENG_7:

  Remove XXX to remind me to check the free space calculation, which to my
  eyes appears right following a check.

16 years agoMerge smb_conn.h:1.13 from HEAD to RELENG_7:
rwatson [Thu, 13 Mar 2008 10:29:35 +0000 (10:29 +0000)]
Merge smb_conn.h:1.13 from HEAD to RELENG_7:

  Remove unused vc_tnode field from struct smb_vc.

16 years agoMFC rev. 1.146 tcp_output.c
bz [Thu, 13 Mar 2008 10:09:12 +0000 (10:09 +0000)]
MFC rev. 1.146 tcp_output.c

  Padding after EOL option must be zeros according to RFC793 but
  the NOPs used are 0x01.
  While we could simply pad with EOLs (which are 0x00), rather use an
  explicit 0x00 constant there to not confuse poeple with 'EOL padding'.
  Put in a comment saying just that.

Early MFC requested by: silby
because of more people reporting problems on net@

16 years agoMerge Makefile.inc:1.129, kldunload.2:1.19 from HEAD to RELENG_7:
rwatson [Thu, 13 Mar 2008 09:58:07 +0000 (09:58 +0000)]
Merge Makefile.inc:1.129, kldunload.2:1.19 from HEAD to RELENG_7:

  Add reference to kldunloadf system call, which was previously not
  mentioned in the kldunload(2) man page.

  Spotted by:     rink

16 years agoMFC: Fix function prototype for device_shutdown method.
yongari [Thu, 13 Mar 2008 07:50:48 +0000 (07:50 +0000)]
MFC: Fix function prototype for device_shutdown method.

16 years agoMFC rev. 1.26:
wollman [Thu, 13 Mar 2008 02:33:20 +0000 (02:33 +0000)]
MFC rev. 1.26:
  stdio is currently limited to file descriptors not greater than
  {SHRT_MAX}, so {STREAM_MAX} should be no greater than that.  (This
  does not exactly meet the letter of POSIX but comes reasonably close
  to it in spirit.)

16 years agoMFC rev 1.31:
brooks [Wed, 12 Mar 2008 17:35:38 +0000 (17:35 +0000)]
MFC rev 1.31:

When the state of the interface changes rapidly enough there is a race
where dhclient is in the process of exiting due to the link going down
when the link coming up causes devd to try and start a new one.  This
results is the link being up, but no dhclient running.

Work around this race by checking a second time after a one second delay
before refusing to start a dhclient instance due to one already being
running.

16 years agoMFC rev 1.18:
brooks [Wed, 12 Mar 2008 17:29:42 +0000 (17:29 +0000)]
MFC rev 1.18:

During PREINIT, when giving the interface the address 0.0.0.0, do it as an
alias to avoid distrubing other addresses.

PR: bin/119255
Submitted by: Jaakko Heinonen <jh at saunalahti dot fi>

16 years agoMFC rev 1.6:
cognet [Wed, 12 Mar 2008 13:51:51 +0000 (13:51 +0000)]
MFC rev 1.6:
date: 2008/03/06 22:27:35;  author: cognet;  state: Exp;  lines: +3 -1
MFi386:
revision 1.6
date: 2004/08/21 18:50:34;  author: alc;  state: Exp;  lines: +3 -1
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin or
copyout fails.

Obtained from: DragonFlyBSD

Spotted out by: Mark Tinguely

16 years agoMerge gzip.c:1.6 from HEAD to RELENG_7:
rwatson [Wed, 12 Mar 2008 11:34:26 +0000 (11:34 +0000)]
Merge gzip.c:1.6 from HEAD to RELENG_7:

  Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
  its existing understanding that .tgz uncompresses to .tar.

  PR:             121519
  Submitted by:   Ighighi <ighighi at gmail.com>

16 years agoMerge NOTES:1.1475 from HEAD to RELENG_7:
rwatson [Wed, 12 Mar 2008 11:09:16 +0000 (11:09 +0000)]
Merge NOTES:1.1475 from HEAD to RELENG_7:

  HZ now defaults to 1000 on many architectures, so update NOTES to reflect
  that.

  PR:             113670
  Submitted by:   Ighighi <ighighi at gmail.com>

16 years agoMerge coda_vnops.c:1.93 from HEAD to RELENG_7:
rwatson [Wed, 12 Mar 2008 11:08:32 +0000 (11:08 +0000)]
Merge coda_vnops.c:1.93 from HEAD to RELENG_7:

  Clean up coda_pathconf() slightly while debugging a problem there.

16 years agoMFC a number of minor edits and portability fixups.
kientzle [Wed, 12 Mar 2008 04:20:30 +0000 (04:20 +0000)]
MFC a number of minor edits and portability fixups.
This is mostly just to catch 7-STABLE up with -CURRENT
before the next big round of changes.

16 years agoMFen 1.73 -> 1.73.4.3
delphij [Tue, 11 Mar 2008 22:40:04 +0000 (22:40 +0000)]
MFen 1.73 -> 1.73.4.3

16 years agoMFC rev 1.8 tinybsd
remko [Tue, 11 Mar 2008 19:19:14 +0000 (19:19 +0000)]
MFC rev 1.8 tinybsd

  Improve handling of the tinybsd application wrt ports.  Ports that
  have dependencies or need to install a new user/group, are not
  problematic anymore.

  PR:             121367
  Submitted by:   Richard Arends < richard at unixguru dot nl >
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC rev. 1.23-1.24
mav [Tue, 11 Mar 2008 19:14:10 +0000 (19:14 +0000)]
MFC rev. 1.23-1.24
To avoid control data losses, do not acknowledge recieving of control packet
if netgraph reported error while delivering to destination.
Reset 'next send' counter to the last requested by peer on ack timeout,
to resend all subsequest packets after lost one again without additional hints.

16 years agoMFC rev. 1.61
mav [Tue, 11 Mar 2008 19:04:42 +0000 (19:04 +0000)]
MFC rev. 1.61
Send only one incoming notification at a time to reduce queue
trashing and improve performance.
Remove waitflag argument from ng_ksocket_incoming2(), it means nothing
as function call was queued by netgraph.
Remove node validity check, as node validity guarantied by netgraph.
Update comments.

16 years agoMerge cnode.h:1.25, coda_fbsd.c:1.48, coda_io.h:1.10,
rwatson [Tue, 11 Mar 2008 10:14:47 +0000 (10:14 +0000)]
Merge cnode.h:1.25, coda_fbsd.c:1.48, coda_io.h:1.10,
coda_kernel.h:1.7, coda_namecache.c:1.25, coda_namecache.h:1.14,
coda_opstats.h:1.8, coda_pioctl.h:1.10, coda_psdev.c:1.43,
coda_psdev.h:1.8, coda_subr.c:1.35, coda_subr.h:1.11,
coda_venus.c:1.30, coda_venus.h:1.11, coda_vfsops.c:1.79,
coda_vfsops.h:1.14, coda_vnops.c:1.92, coda_vnops.h:1.23 from HEAD
to RELENG_7:

  Since we're now actively maintaining the Coda module in the FreeBSD source
  tree, restyle everything but coda.h (which is more explicitly shared
  across systems) into a closer approximation to style(9).

  Remove a few more unused function prototypes.

  Add or clarify some comments.

Minor differences required in the MFC due to diverging VFS locking in
HEAD vs RELENG_7.

16 years agoMFC rev 1.160; Change tcp options order back to how it was
silby [Tue, 11 Mar 2008 06:34:28 +0000 (06:34 +0000)]
MFC rev 1.160; Change tcp options order back to how it was
in FreeBSD 6 to improve compatibility.

16 years agoMFC: revision 1.400
nyan [Mon, 10 Mar 2008 12:41:47 +0000 (12:41 +0000)]
MFC: revision 1.400

    Add "show sysregs" command to ddb.  On i386, this gives gdt, idt, ldt,
    cr0-4, etc.  Support should be added for other platforms that have a
    different set of registers for system use.

16 years agoMerge db_command.c:1.77 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:26:03 +0000 (10:26 +0000)]
Merge db_command.c:1.77 from HEAD to RELENG_7:

  When killing a user process from DDB, check that the requested signal is
  > 0 rather than >= 0, or we will panic when trying to deliver the signal.

  PR:             100802
  Submitted by:   Valerio Daelli <valerio.daelli at gmail.com>

16 years agoMerge db_input.c:1.39 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:23:03 +0000 (10:23 +0000)]
Merge db_input.c:1.39 from HEAD to RELENG_7:

  Reserve two bytes at the end of the DDB input line in db_readline() to
  hold the newline and nul terminator.  Otherwise, there are cases where
  garbage may end up in the command history due to a lack of a nul
  terminator, or input may end up without room for a newline.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>

16 years agoMerge cnode.h:1.24, coda_fbsd.c:1.47, coda_namecache.c:1.24,
rwatson [Mon, 10 Mar 2008 10:22:23 +0000 (10:22 +0000)]
Merge cnode.h:1.24, coda_fbsd.c:1.47, coda_namecache.c:1.24,
coda_psdev.c:1.42, coda_psdev.h:1.7, coda_venus.c:1.29,
coda_vfsops.c:1.78, coda_vfsops.h:1.13, coda_vnops.c:1.91,
coda_vnops.h:1.22 from HEAD to RELENG_7:

  Various further non-functional cleanups to coda:

  - Rename print_vattr to coda_print_vattr and make static, rename
    print_cred to coda_print_cred.
  - Remove unused coda_vop_nop.
  - Add XXX comment because coda_readdir forwards to the cache vnode's
    readdir rather than venus_readdir, and annotate venus_readdir as
    unused.
  - Rename vc_nb_* to vc_*.
  - Use d_open_t, d_close_t, d_read_t, d_write_t, d_ioctl_t and d_poll_t
    for prototyping vc_* as that is the intent, don't use our own
    definitions.
  - Rename coda_nb_statfs to coda_statfs, rename NB_SFS_SIZ to
    CODA_SFS_SIZ.
  - Replace one more OBE reference to NetBSD with a reference to FreeBSD.
  - Tidy up a little vertical whitespace here and there.
  - Annotate coda_nc_zapvnode as unused.
  - Remove unused vcodattach.
  - Annotate VM_INTR as unused.
  - Annotate that coda_fhtovp is unused and doesn't match the FreeBSD
    prototype, so isn't hooked up to vfs_fhtovp.  If we want NFS export of
    Coda to work someday, this needs to be fixed.
  - Remove unused getNewVnode.
  - Remove unused coda_vget, coda_init, coda_quotactl prototypes.

16 years agoMerge coda_vfsops.c:1.77 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:18:48 +0000 (10:18 +0000)]
Merge coda_vfsops.c:1.77 from HEAD to RELENG_7:

  No reason not to maintain stats on statfs in Coda, as it's done for
  other VFS operations, so uncomment the existing statistics gathering.

16 years agoMerge cnode.h:1.23, coda_vfsops.c:1.76 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:18:06 +0000 (10:18 +0000)]
Merge cnode.h:1.23, coda_vfsops.c:1.76 from HEAD to RELENG_7:

  Remove unused devtomp(), which exploited UFS-specific knowledge to find
  the mountpoint for a specific device.  This was implemented incorrectly,
  a bad idea in a fundamental sense, and also never used, so presumably
  a long-idle debugging function.

16 years agoMerge coda_vnops.c:1.90, coda_vnops.h:1.21 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:16:09 +0000 (10:16 +0000)]
Merge coda_vnops.c:1.90, coda_vnops.h:1.21 from HEAD to RELENG_7:

  Since Coda is effectively a stacked file system, use VOP_EOPNOTSUPP
  for vop_bmap; delete the existing stub that returned either EINVAL
  or EOPNOTSUPP, and had unreachable calls to VOP_BMAP on the cache
  vnode.

16 years agoMerge coda_vnops.c:1.89 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:14:51 +0000 (10:14 +0000)]
Merge coda_vnops.c:1.89 from HEAD to RELENG_7:

  Lock cache vnode when VOP_FSYNC() is called on a Coda vnode.

16 years agoMerge coda_vfsops.c:1.75, coda_vnops.c:1.88 from HEAD to RELENG_7:
rwatson [Mon, 10 Mar 2008 10:13:48 +0000 (10:13 +0000)]
Merge coda_vfsops.c:1.75, coda_vnops.c:1.88 from HEAD to RELENG_7:

  Make all calls to vn_lock() in Coda, including recently added ones,
  use LK_RETRY, since failure is undesirable (and not handled).

  Pointed out by: kib

16 years agoMFC
bz [Sun, 9 Mar 2008 21:04:55 +0000 (21:04 +0000)]
MFC
  1.278 sys/netinet/ip_output.c
  1.114 sys/netinet6/ip6_output.c
  1.26  sys/netipsec/ipsec.c
  1.15  sys/netipsec/ipsec.h
  1.4   sys/netipsec/ipsec6.h

  Rather than passing around a cached 'priv', pass in an ucred to
  ipsec*_set_policy and do the privilege check only if needed.

  Try to assimilate both ip*_ctloutput code blocks calling ipsec*_set_policy.

16 years agoMFC: rev. 1.148-1.149
mav [Sun, 9 Mar 2008 20:10:54 +0000 (20:10 +0000)]
MFC: rev. 1.148-1.149
Implement 128 items node name hash for faster name search.
Increase node ID hash size from 32 to 128 items.
Increase default queue items allocation limit from 512 to 4096 items
to avoid terrible unpredicted effects for netgraph operation of their
exhaustion while allocating control messages.
Add separate configurable 512 items limit for data items allocation
for DoS/overload protection.

16 years agoMFC:
bz [Sun, 9 Mar 2008 19:01:50 +0000 (19:01 +0000)]
MFC:
  1.75  sys/kern/kern_jail.c
  1.8   sys/netinet/ip_options.c
  1.78  sys/netinet6/in6.c
  1.113 sys/netinet6/ip6_output.c
  1.41  sys/netinet6/ip6_var.h
  1.76  sys/netinet6/raw_ip6.c
  1.85  sys/netinet6/udp6_usrreq.c
  [ previously MFCed by rwatson 1.18 sys/sys/priv.h belonging to this change ]

  Replace the last susers calls in netinet6/ with privilege checks.

  Introduce a new privilege allowing to set certain IP header options
  (hop-by-hop, routing headers).

  Leave a few comments that we would like to address later.

Discussed with: rwatson

16 years agoMerge coda_psdev.c:1.41, coda_subr.c:1.45, coda_venus.c:1.28,
rwatson [Sun, 9 Mar 2008 15:12:11 +0000 (15:12 +0000)]
Merge coda_psdev.c:1.41, coda_subr.c:1.45, coda_venus.c:1.28,
coda_vfsops.c:1.74, coda_vnops.c:1.87, coda_vnops.h:1.20 from HEAD
to RELENG_7:

  The Coda module was originally ported to NetBSD from Mach by rvb, and
  then later to FreeBSD.  Update various NetBSD-related comments: in some
  cases delete them because they don't appply, in others update to say
  FreeBSD as they still apply but in FreeBSD (and might for that matter
  no longer apply on NetBSD), and flag one case where I'm not sure
  whether it applies.

16 years agoMerge coda_vnops.c:1.86 from HEAD to RELENG_7:
rwatson [Sun, 9 Mar 2008 15:09:22 +0000 (15:09 +0000)]
Merge coda_vnops.c:1.86 from HEAD to RELENG_7:

  Before invoking vnode operations on cache vnodes, acquire the vnode
  locks of those vnodes.  Probably, Coda should do the same lock sharing/
  pass-through that is done for nullfs, but in the mean time this ensures
  that locks are adequately held to prevent corruption of data structures
  in the cache file system.

  Assuming most operations came from the top layer of Coda and weren't
  performed directly on the cache vnodes, in practice this corruption was
  relatively unlikely as the Coda vnode locks were ensuring exclusive
  access for most consumers.

  This causes WITNESS to squeal like a pig immediately when Coda is used,
  rather than waiting until file close; I noticed these problems because
  of the lack of said squealing.

NB: Because WITNESS in RELENG_7 doesn't yet support lockmgr, said
squealing doesn't yet happen in RELENG_7, but will do if/when lockmgr
grows support for WITNESS there.

16 years agoMerge coda_vfsops.c:1.73 from HEAD to RELENG_7:
rwatson [Sun, 9 Mar 2008 15:06:12 +0000 (15:06 +0000)]
Merge coda_vfsops.c:1.73 from HEAD to RELENG_7:

  Remove undefined coda excluded by #if 1 #else, which previously protected
  vget() calls using inode numbers to query the root of /coda, which is not
  needed since we now cache the root vnode with the mountpoint.

16 years agoMerge db_input.c:1.38 from HEAD to RELENG_7:
rwatson [Sun, 9 Mar 2008 14:49:39 +0000 (14:49 +0000)]
Merge db_input.c:1.38 from HEAD to RELENG_7:

  When redrawing an input line, count backspaces to get to the beginning of
  the input field from the current cursor location, rather than the end of
  the input line, as the cursor may not be at the end of the line.
  Otherwise, we may overshoot, overwriting a bit of the previous line and
  failing to fully overwrite the current line.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>

16 years agoMFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17;
marius [Sun, 9 Mar 2008 14:25:02 +0000 (14:25 +0000)]
MFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17;
     sys/sparc64/sparc64/ata_machdep.c 1.1

The Sun disk label only uses 16-bit fields for cylinders, heads and
sectors so the geometry of large IDE disks has to be adjusted.

16 years agoMFC rev. 1.11:
kib [Sun, 9 Mar 2008 13:59:19 +0000 (13:59 +0000)]
MFC rev. 1.11:
Return ENOSYS instead of 0 for the unknown futex operations.

16 years agoMFC rev. 1.338:
kib [Sun, 9 Mar 2008 13:57:48 +0000 (13:57 +0000)]
MFC rev. 1.338:
Initialize mnt_stat.f_iosize before autostarting UFS1 extattrs.

16 years agoMFC rev. 1.178:
kib [Sun, 9 Mar 2008 13:55:51 +0000 (13:55 +0000)]
MFC rev. 1.178:
Fix the Giant leak in the nfsrv_remove().

16 years agoMFC: tzdata2008a
edwin [Sun, 9 Mar 2008 11:21:36 +0000 (11:21 +0000)]
MFC: tzdata2008a

Notable changes:

- Chilis DST has been extended for 3 weeks.
- No leapsecond in 2008

Approved by: grog@ (mentor)

16 years agoMFC rev. 1.3 uipc_debug.c
bz [Sun, 9 Mar 2008 00:04:45 +0000 (00:04 +0000)]
MFC rev. 1.3 uipc_debug.c

  Add missing sb_sndptr* fields to db_print_sockbuf().
  While here change %d to %u for u_ints.

16 years agoMFC rev. 1.49 in6_src.c
bz [Sat, 8 Mar 2008 23:45:39 +0000 (23:45 +0000)]
MFC rev. 1.49 in6_src.c

  Correct the commented out debugging printf()s in REPLACE and NEXT macros.
  ip6_sprintf() needs a buffer as first argument these days.

16 years agoMFC rev. 1.103 in.c
bz [Sat, 8 Mar 2008 23:41:47 +0000 (23:41 +0000)]
MFC rev. 1.103 in.c

  Differentiate between addifaddr and delifaddr for the privilege check.

16 years agoMFC rev. 1.54
bz [Sat, 8 Mar 2008 23:36:25 +0000 (23:36 +0000)]
MFC rev. 1.54

  Though we are currently not interested in the EDD3 flag,
  Enhanced Disk Drive Specification Ver 3.0 defines that the version
  of extension in AH would be 30h.
  Correct the check for that to be >=30h instead of >3h.

16 years agoMFC: 1.11
marius [Sat, 8 Mar 2008 19:33:34 +0000 (19:33 +0000)]
MFC: 1.11

Allow the targeted CPU type to be set via -mcpu instead of
limiting to the hardcoded equivalent of -mcpu=ultrasparc.

PR: 109510

16 years agoRe-update to rev 1.2 of the hptrr driver.
scottl [Sat, 8 Mar 2008 18:16:32 +0000 (18:16 +0000)]
Re-update to rev 1.2 of the hptrr driver.

16 years agoMFC:
bz [Sat, 8 Mar 2008 17:01:27 +0000 (17:01 +0000)]
MFC:
  rev. 1.372
   Fix indentation (whitespace changes only).

  rev. 1.373
   Some "cleanup" of tcp_mss():
   - Move the assigment of the socket down before we first need it.
     No need to do it at the beginning and then drop out the function
     by one of the returns before using it 100 lines further down.
   - Use t_maxopd which was assigned the "tcp_mssdflt" for the corrrect
     AF already instead of another #ifdef ? : #endif block doing the same.
   - Remove an unneeded (duplicate) assignment of mss to t_maxseg just before
     we possibly change mss and re-do the assignment without using t_maxseg
     in between.

16 years agoMFC: rev. 1.29 key.c, 1.6 key_debug.c
bz [Sat, 8 Mar 2008 16:58:21 +0000 (16:58 +0000)]
MFC: rev. 1.29 key.c, 1.6 key_debug.c

 Fix bugs when allocating and passing information of current lifetime and
 soft lifetime [1] introduced in rev. 1.21 of key.c.

 Along with that, fix a related problem in key_debug
 printing the correct data.
 While there replace a printf by panic in a sanity check.

PR: 120751
Submitted by: Kazuaki ODA (kazuaki aliceblue.jp) [1]

16 years agoMFC r1.12:
rpaulo [Sat, 8 Mar 2008 14:14:35 +0000 (14:14 +0000)]
MFC r1.12:
  Validate the id16 values gathered from ACPI (previously a TODO
  item).
  Style changes by me and njl.

  Submitted by:    Takeharu KATO <takeharu1219 at ybb.ne.jp>
  PR:              119350

16 years agoRevert powerpc scheduler change for now. This change should be
delphij [Sat, 8 Mar 2008 09:38:18 +0000 (09:38 +0000)]
Revert powerpc scheduler change for now. This change should be
done after necessary ULE changes to be MFC'ed.

Pointed out by: peter

16 years agoMFC termcap changes for the END/ENTER keys
rafan [Sat, 8 Mar 2008 05:42:09 +0000 (05:42 +0000)]
MFC termcap changes for the END/ENTER keys

  Log:
  - Remove kH and *6 from xterm. They are defined to the same key as @7 (kp_end).
    As ncurses has the limitation that it returns the first matched key symbol,
    you can not use END in ncurses based program, like mutt, with xterm.
  - Add @8 (kp_enter) definition for xterm so you can use ENTER in xterm with
    ncurses based program.

  I also found that NetBSD's xterm does the same thing.

PR:             100150
Reported by:    Arseny Nasokin <tarc at tarc.po.cs.msu.su>
Discussed with: Thomas Dickey, Ulrich Spoerlein <uspoerlein at gmail.com>
Reviewed by:    freebsd-arch@

16 years agoMFC revision 1.108
delphij [Sat, 8 Mar 2008 01:00:39 +0000 (01:00 +0000)]
MFC revision 1.108
date: 2008/01/30 22:11:59;  author: delphij;  state: Exp;  lines: +2 -2
Fix two typos.

16 years agoMFC revision 1.14
delphij [Sat, 8 Mar 2008 00:54:27 +0000 (00:54 +0000)]
MFC revision 1.14
date: 2008/01/29 00:20:00;  author: delphij;  state: Exp;  lines: +1 -1
Don't coredump when executed with -o.

16 years agoMerge from RELENG_7_0: Teach pkg_add(1) about 6.3-RELEASE, 7.0-RELEASE
delphij [Sat, 8 Mar 2008 00:04:57 +0000 (00:04 +0000)]
Merge from RELENG_7_0: Teach pkg_add(1) about 6.3-RELEASE, 7.0-RELEASE
and 7-STABLE.

16 years agoMFC: Switch to use ULE as default scheduler on amd64, i386 and powerpc
delphij [Fri, 7 Mar 2008 23:09:10 +0000 (23:09 +0000)]
MFC: Switch to use ULE as default scheduler on amd64, i386 and powerpc
architectures.

16 years agoMFC: Merge malloc(3) improvements and fixes. The highlights are:
jasone [Fri, 7 Mar 2008 22:39:39 +0000 (22:39 +0000)]
MFC: Merge malloc(3) improvements and fixes.  The highlights are:

* Avoid re-zeroing memory in calloc() when possible.

* Use pthread mutexes where possible instead of libc "spinlocks", and
  actually spin some during contention before blocking.

* Implement dynamic load balancing of thread-->arena mapping.

* Avoid floating point math in order to avoid increased context switch
  overhead for applications that otherwise would not use floating point
  math.

* Restructure how sbrk() and mmap() are used to acquire memory mappings.
  This provides a way to force malloc to only use sbrk(), which can be
  useful in the context of resource limits.

* Reduce the number of mmap() calls typically necessary when allocating
  a chunk.

* Track dirty unused pages so that they can be purged if they exceed a
  threshold.

* Try to realloc() large objects in place.

* Manage page runs with trees instead of chunk maps, which allows
  logarithmic-time run allocation.

16 years agoMFC: Implement the RB_FOREACH_REVERSE() and RB_PREV() macros. RB_PREV is
jasone [Fri, 7 Mar 2008 22:34:17 +0000 (22:34 +0000)]
MFC: Implement the RB_FOREACH_REVERSE() and RB_PREV() macros.  RB_PREV is
needed by malloc(3).

16 years agoMFC: VIA Padlock changes:
jhb [Fri, 7 Mar 2008 20:19:33 +0000 (20:19 +0000)]
MFC: VIA Padlock changes:
- Read the brand string from VIA/IDT CPUs.
- Add a VIA Padlock feature line in dmesg.
- Support the newer Via C7 core (0x6d0).

16 years agoMFC rev. 1.92-1.93
mav [Fri, 7 Mar 2008 17:58:49 +0000 (17:58 +0000)]
MFC rev. 1.92-1.93
Make session ID generator to use session ID hash.
Make session ID generator thread-safe.
Use more compact LIST instead of TAILQ for session hash.
Add all listening hooks into LIST to simplify searches.
Use ng_findhook() instead of own equal implementation.

16 years agoMFC: Add support for the libalias redirect functionality.
mav [Fri, 7 Mar 2008 17:54:21 +0000 (17:54 +0000)]
MFC: Add support for the libalias redirect functionality.

Submitted by:   Vadim Goncharov <vadim_nuclight@mail.ru>

16 years agoNew errata notes: SCTP needs INET6, kldxref(8) warnings on source
bmah [Fri, 7 Mar 2008 16:32:42 +0000 (16:32 +0000)]
New errata notes:  SCTP needs INET6, kldxref(8) warnings on source
upgrade, device crypto problems on powerpc.

16 years agoMFC rev 1.162 umass.c
remko [Fri, 7 Mar 2008 15:54:41 +0000 (15:54 +0000)]
MFC rev 1.162 umass.c
MFC rev 1.338 usbdevs

  Add support for the VIA USB2IDE bridge [1].

  PR: usb/95173
  Submitted by: Goegele Hannes <diazepam@gmx.net>
  Ben Kelly <bkelly at vadev dot org>
  Tested by: blackend
  Approved by: imp (mentor, blanket for simple patches)
  X-MFC-After: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.340 usbdevs
remko [Fri, 7 Mar 2008 15:26:41 +0000 (15:26 +0000)]
MFC rev 1.340 usbdevs
MFC rev 1.90 uscanner.c

  Add support for the EPSON CX5400 scanner

  PR: usb/120980
  Submitted by: Christophe Etcheverry <cetcheve at gmail dot com>
  MFC after: 3 days
  Approved by: imp (mentor, implicit for trivial changes)

Approved by: imp (mentor, implicit)

16 years agoMFC libfetch from HEAD to RELENG_7
remko [Fri, 7 Mar 2008 15:01:52 +0000 (15:01 +0000)]
MFC libfetch from HEAD to RELENG_7

Approved by: imp (mentor, implicit), DES
Glanced at by: des

16 years agoMFC rev 1.8 drm_pciids.h
remko [Fri, 7 Mar 2008 14:58:50 +0000 (14:58 +0000)]
MFC rev 1.8 drm_pciids.h

   Add support for the 965GM.

   PR:             kern/120978
   Submitted by:   Dominic Fandrey <kamikaze at bsdforen dot de>
   Approved by:    imp (mentor, implicit), anholt (drm maintainer)
   MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC:
scf [Thu, 6 Mar 2008 15:14:36 +0000 (15:14 +0000)]
MFC:
Replace the use of warnx() with direct output to stderr using _write().
This reduces the size of a statically-linked binary by approximately 100KB
in a trivial "return (0)" test application.  readelf -S was used to verify
that the .text section was reduced and that using strlen() saved a few
more bytes over using sizeof().  Since the section of code is only called
when environ is corrupt (program bug), I went with fewer bytes over fewer
cycles.

I made minor edits to the submitted patch to make the output resemble
warnx().

    src/lib/libc/stdlib/getenv.c: rev 1.12 -> 1.13

Submitted by: kib bz
Approved by: wes (mentor)

16 years agoMFH: 1.30
ghelmer [Thu, 6 Mar 2008 15:02:05 +0000 (15:02 +0000)]
MFH: 1.30

Fix truncation of lines at LINE_MAX characters by dynamically
extending line buffers.

PR: bin/76578

16 years agoMFC: rev. 1.32
mtm [Thu, 6 Mar 2008 14:13:11 +0000 (14:13 +0000)]
MFC: rev. 1.32
Add the -M command-line option, which will set home directory
permissions. Works both in interactive or batch mode. This is
a heavily modified version of the patch submitted in the PR.

PR: bin/105060

16 years agoMFC: rev. 1.17
brueffer [Thu, 6 Mar 2008 07:20:53 +0000 (07:20 +0000)]
MFC: rev. 1.17

The Sony i.LINK (CXD1947) is _not_ supported.

16 years agoMFC revision 1.269: Fix sending trailers in sendfile(2).
cperciva [Thu, 6 Mar 2008 05:41:45 +0000 (05:41 +0000)]
MFC revision 1.269: Fix sending trailers in sendfile(2).

16 years agoMFC revision 1.5
delphij [Thu, 6 Mar 2008 01:05:30 +0000 (01:05 +0000)]
MFC revision 1.5
date: 2008/02/16 00:16:49;  author: delphij;  state: Exp;  lines: +2 -1
Allow underscore in domain names while resolving.  While having underscore
is a violation of RFC 1034 [STD 13], it is accepted by certain name servers
as well as other popular operating systems' resolver library.

Bugs are mine.

Obtained from:  ume

16 years agoMFC: Make netstat -rn more resilient to having the routing table change out
jhb [Wed, 5 Mar 2008 21:19:25 +0000 (21:19 +0000)]
MFC: Make netstat -rn more resilient to having the routing table change out
from under it while running.

16 years agoMFC: Mark the syscons video spin mutex as recursable.
jhb [Wed, 5 Mar 2008 21:14:06 +0000 (21:14 +0000)]
MFC: Mark the syscons video spin mutex as recursable.

16 years agoMFC: Mark sleepqueue chain spin mutexes as recursable.
jhb [Wed, 5 Mar 2008 21:12:49 +0000 (21:12 +0000)]
MFC: Mark sleepqueue chain spin mutexes as recursable.

16 years agoMFC: Add a couple of assertions and KTR logging to thread_lock_flags().
jhb [Wed, 5 Mar 2008 21:11:54 +0000 (21:11 +0000)]
MFC: Add a couple of assertions and KTR logging to thread_lock_flags().

16 years agoMFC: Use RTFREE_LOCKED() instead of rtfree() when releasing a reference on
jhb [Wed, 5 Mar 2008 20:33:46 +0000 (20:33 +0000)]
MFC: Use RTFREE_LOCKED() instead of rtfree() when releasing a reference on
the 'rt' route in rtredirect().

16 years agoMFC: Consolidate the code to generate a new XID for a NFS request.
jhb [Wed, 5 Mar 2008 19:58:07 +0000 (19:58 +0000)]
MFC: Consolidate the code to generate a new XID for a NFS request.

16 years agoMFC rev. 1.63-1.68
mav [Tue, 4 Mar 2008 12:45:48 +0000 (12:45 +0000)]
MFC rev. 1.63-1.68
Document -instance and -globalport options.
Note that the punch_fw option does not work in securelevel 3.

16 years agoMFC:
piso [Tue, 4 Mar 2008 12:07:34 +0000 (12:07 +0000)]
MFC:

Add table/tablearg support to ipfw's nat.
Fix display of nat range.
Fix display of multiple nat rules.
Whitespace elimination.

sbin/ipfw/ipfw2.c: rev. 1.115, 1.116 and 1.117
sbin/ipfw/ipfw.8: rev. 1.210
sys/netinet/ip_fw2.c: rev. 1.181

16 years agoMFC: rev. 1.5
brueffer [Tue, 4 Mar 2008 06:09:13 +0000 (06:09 +0000)]
MFC: rev. 1.5

Move the HARDWARE section below the DESCRIPTION section, like it is
everywhere else.

16 years agoMFC: 1.51 - better recover from unknown encoding found
ache [Mon, 3 Mar 2008 11:51:30 +0000 (11:51 +0000)]
MFC: 1.51 - better recover from unknown encoding found
(not by core dump)

16 years agoMFC: rev 1.65.
akiyama [Sun, 2 Mar 2008 13:07:03 +0000 (13:07 +0000)]
MFC: rev 1.65.
o Add module event handler.
o Update copyright year.

16 years agoMFC r1.174:
philip [Sun, 2 Mar 2008 11:33:54 +0000 (11:33 +0000)]
MFC r1.174:

    Zero sc->vnode if mdsetcred() fails.

    This fixes the panic which happens when mdcreate_vnode() calls vn_close()
    and mddestroy() calls it again further down the error handling path.

16 years agoMFC: Note, as required by our agreement with IEEE/The Open Group, that
philip [Sat, 1 Mar 2008 16:17:30 +0000 (16:17 +0000)]
MFC: Note, as required by our agreement with IEEE/The Open Group, that
     the message queue manual pages excerpt the POSIX standard.

16 years agoMerge TODO:1.6 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 15:43:00 +0000 (15:43 +0000)]
Merge TODO:1.6 from HEAD to RELENG_7:

  Add "Make MPSAFE" to the Coda todo list.

16 years agoMerge _bus.h:1.2 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 15:42:23 +0000 (15:42 +0000)]
Merge _bus.h:1.2 from HEAD to RELENG_7:

  Remove errant % in license comment.

16 years agoMerge ixp425.c:1.9 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 15:42:01 +0000 (15:42 +0000)]
Merge ixp425.c:1.9 from HEAD to RELENG_7:

  On the ixp425, when we fail to initialize the memory rman instance, the
  panic message should read "memory", not "IRQ".

16 years agoMerge uipc_sockbuf.c:1.176, uipc_socket.c:1.305, socketvar.h:1.162 from
rwatson [Sat, 1 Mar 2008 15:40:53 +0000 (15:40 +0000)]
Merge uipc_sockbuf.c:1.176, uipc_socket.c:1.305, socketvar.h:1.162 from
HEAD to RELENG_7:

  Further clean up sorflush:

  - Expose sbrelease_internal(), a variant of sbrelease() with no
    expectations about the validity of locks in the socket buffer.
  - Use sbrelease_internel() in sorflush(), and as a result avoid
    initializing and destroying a socket buffer lock for the temporary
    stack copy of the actual buffer, asb.
  - Add a comment indicating why we do what we do, and remove an XXX
    since things have gotten less ugly in sorflush() lately.

  This makes socket close cleaner, and possibly also marginally faster.

16 years agoMerge mac_mls.c:1.99 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 11:55:11 +0000 (11:55 +0000)]
Merge mac_mls.c:1.99 from HEAD to RELENG_7:

  Properly return the error from mls_subject_privileged() in the ifnet
  relabel check for MLS rather than returning 0 directly.

  This problem didn't result in a vulnerability currently as the central
  implementation of ifnet relabeling also checks for UNIX privilege, and
  we currently don't guarantee containment for the root user in mac_mls,
  but we should be using the MLS definition of privilege as well as the
  UNIX definition in anticipation of supporting root containment at some
  point.

  Submitted by:   Zhouyi Zhou <zhouzhouyi at gmail dot com>
  Sponsored by:   Google SoC 2007

16 years agoMerge uipc_usrreq.c:1.212 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 11:51:12 +0000 (11:51 +0000)]
Merge uipc_usrreq.c:1.212 from HEAD to RELENG_7:

  Remove "lock pushdown" todo item in comment -- I did that for 7.0.

16 years agoMerge uipc_usrreq.c:1.211 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 11:50:45 +0000 (11:50 +0000)]
Merge uipc_usrreq.c:1.211 from HEAD to RELENG_7:

  Correct typos in comments.

16 years agoMerge tcp_usrreq.c:1.166 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 11:50:00 +0000 (11:50 +0000)]
Merge tcp_usrreq.c:1.166 from HEAD to RELENG_7:

  In tcp_ctloutput(), don't hold the inpcb lock over sooptcopyin(), rather,
  drop the lock and then re-acquire it, revalidating TCP connection state
  assumptions when we do so.  This avoids a potential lock order reversal
  (and potential deadlock, although none have been reported) due to the
  inpcb lock being held over a page fault.

  PR:             102752
  Reviewed by:    bz
  Reported by:    Václav Haisman <v dot haisman at sh dot cvut dot cz>

16 years agoMerge netisr.h:1.34 from HEAD to RELENG_7:
rwatson [Sat, 1 Mar 2008 11:44:30 +0000 (11:44 +0000)]
Merge netisr.h:1.34 from HEAD to RELENG_7:

  Update netisr comment for the SMPng world order: netisr is no longer
  implemented using the ISR facility, and cannot be triggered by calling
  splnet()/splx().

16 years agoBreak up a long sentence to make more grammatical sense and be easier
bmah [Sat, 1 Mar 2008 04:10:20 +0000 (04:10 +0000)]
Break up a long sentence to make more grammatical sense and be easier
to read.

Problem pointed out by: ceri

16 years agoNew 7.0 post-release errata: tcpdump(1) TX/RX printing issue,
bmah [Fri, 29 Feb 2008 23:09:41 +0000 (23:09 +0000)]
New 7.0 post-release errata:  tcpdump(1) TX/RX printing issue,
Linuxulator mmap(2) issue, re(4) data corruption issue, TCP options
issue, page footer in release documentation, wrong KDE version number.

Reviewed by: kensmith
Submitted by: a cast of several