]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoRewrite the format of pirtool output to match what the kernel currently
bms [Thu, 9 Nov 2006 11:39:34 +0000 (11:39 +0000)]
Rewrite the format of pirtool output to match what the kernel currently
prints out if bootverbose is set. This is to facilitate the code being
removed from the kernel at a later date.

While we're here, fix the __packed structures, and add some other
PCI interrupt router IDs.

Submitted by: jhb (with some tweaks)
MFC after: 3 weeks

17 years agoAdd an entry for PT_GETLWPLIST.
trhodes [Thu, 9 Nov 2006 11:27:18 +0000 (11:27 +0000)]
Add an entry for PT_GETLWPLIST.

Nudged by: jhb
Reviewed by: davidxu

17 years agoEnable ata and atapicd now those work on sun4v.
jb [Thu, 9 Nov 2006 08:49:13 +0000 (08:49 +0000)]
Enable ata and atapicd now those work on sun4v.

17 years agoAdd a stub of bios_addsmapdata(). PC98 does not have BIOS SMAP.
nyan [Thu, 9 Nov 2006 08:28:02 +0000 (08:28 +0000)]
Add a stub of bios_addsmapdata().  PC98 does not have BIOS SMAP.

17 years agoMFi386: revisions from 1.39 to 1.43.
nyan [Thu, 9 Nov 2006 08:05:51 +0000 (08:05 +0000)]
MFi386: revisions from 1.39 to 1.43.

17 years agoMFi386: revisions 1.634 and 1.639.
nyan [Thu, 9 Nov 2006 08:03:37 +0000 (08:03 +0000)]
MFi386: revisions 1.634 and 1.639.

17 years agoAdd a new address cache type called sticky. On an interface marked sticky any
thompsa [Thu, 9 Nov 2006 06:32:38 +0000 (06:32 +0000)]
Add a new address cache type called sticky. On an interface marked sticky any
address learned by the bridge is made permanent, the address will not age out
and most importantly will not migrate to another interface.

This can be used to stop mac address poisoning or clients roaming in much the
same way as static entries without the hassle of preloading the table.

17 years agoRemove unused structures.
kevlo [Thu, 9 Nov 2006 02:19:30 +0000 (02:19 +0000)]
Remove unused structures.

Reviewed by: cognet and imp
Approved by: cognet and imp

17 years agoCleanup: we always have to use __error() now, and we shouldn't provide a
cognet [Thu, 9 Nov 2006 01:28:16 +0000 (01:28 +0000)]
Cleanup: we always have to use __error() now, and we shouldn't provide a
errno symbol, so completely remove the !_REENTRANT case.

Spotted out by: ru

17 years agomove panic_bad_hcall to its use site in support.S in attempt to un-break the
kmacy [Wed, 8 Nov 2006 22:16:05 +0000 (22:16 +0000)]
move panic_bad_hcall to its use site in support.S in attempt to un-break the
tinderbox

17 years agoFix for ithread interrupt handling. Don't reset the interrupt vector until
kmacy [Wed, 8 Nov 2006 22:09:58 +0000 (22:09 +0000)]
Fix for ithread interrupt handling. Don't reset the interrupt vector until
after the interrupt has been handled. Also move panic_bad_hcall to local to
avoid complaints from the linker on the tinderbox.

Approved by: scottl (substituting for mentor rwatson)

17 years agoThe NETSMBCRYPTO option has long gone.
ru [Wed, 8 Nov 2006 21:45:45 +0000 (21:45 +0000)]
The NETSMBCRYPTO option has long gone.

17 years agoRemove a forgotten file.
ru [Wed, 8 Nov 2006 21:29:20 +0000 (21:29 +0000)]
Remove a forgotten file.

17 years agoadd missing bits for crypto support
sam [Wed, 8 Nov 2006 20:51:01 +0000 (20:51 +0000)]
add missing bits for crypto support

MFC after: 1 week

17 years agoI misplaced the assertion that was added to vm_page_startup() in the
alc [Wed, 8 Nov 2006 19:11:54 +0000 (19:11 +0000)]
I misplaced the assertion that was added to vm_page_startup() in the
previous change.  Correct its placement.

17 years agoSimplify the construction of the free queues in vm_page_startup(). Add
alc [Wed, 8 Nov 2006 18:43:47 +0000 (18:43 +0000)]
Simplify the construction of the free queues in vm_page_startup().  Add
an assertion to test a hypothesis concerning other redundant computation
in vm_page_startup().

17 years agoNew release note: SA-06:24.libarchive (+MFC).
bmah [Wed, 8 Nov 2006 17:22:55 +0000 (17:22 +0000)]
New release note:  SA-06:24.libarchive (+MFC).

17 years agoDon't always print a space character in show_stat(), since a space
bde [Wed, 8 Nov 2006 15:15:05 +0000 (15:15 +0000)]
Don't always print a space character in show_stat(), since a space
shouldn't be printed after the last column.  This restores the
formatting to 79 columns.

17 years agoFix infinite loop in corrupt archives handling in libarchive(3).
simon [Wed, 8 Nov 2006 14:03:50 +0000 (14:03 +0000)]
Fix infinite loop in corrupt archives handling in libarchive(3).

Reported by: rink
Submitted by: kientzle
Security: FreeBSD-SA-06:24.libarchive

17 years agoMake the generated oid.h dependend on the Makefile. The Makefile defines
harti [Wed, 8 Nov 2006 10:36:57 +0000 (10:36 +0000)]
Make the generated oid.h dependend on the Makefile. The Makefile defines
the symbols to be extracted from the MIB and if that list of symbols is
changed, oid.h should be re-generated.

17 years agoo Fix a couple of obvious typos.
maxim [Wed, 8 Nov 2006 09:09:07 +0000 (09:09 +0000)]
o Fix a couple of obvious typos.

17 years agoMFamd64/ia64/i386/sun4v
alc [Wed, 8 Nov 2006 06:31:28 +0000 (06:31 +0000)]
MFamd64/ia64/i386/sun4v
  Use cnt.v_page_count, the actual count of available physical pages,
  instead of vm_page_array_size to compute the maximum number of pv
  entries.

17 years agoEnsure that the page's oflags field is initialized by contigmalloc().
alc [Wed, 8 Nov 2006 06:23:29 +0000 (06:23 +0000)]
Ensure that the page's oflags field is initialized by contigmalloc().

17 years ago/boot/skiload.help has been eliminated on ia64.
marcel [Wed, 8 Nov 2006 03:23:49 +0000 (03:23 +0000)]
/boot/skiload.help has been eliminated on ia64.

17 years agoIncreate cnt.v_intr on interrupt.
cognet [Wed, 8 Nov 2006 01:32:24 +0000 (01:32 +0000)]
Increate cnt.v_intr on interrupt.

17 years ago-Fixes first of all the getcred on IPv6 and V4. The
rrs [Wed, 8 Nov 2006 00:21:13 +0000 (00:21 +0000)]
-Fixes first of all the getcred on IPv6 and V4. The
 copy's were incorrect and so was the locking.
-A bug was also found that would create a race and
 panic when an abort arrived on a socket being read
 from.
-Also fix the reader to get MSG_TRUNC when a partial
 delivery is aborted.
-Also addresses a couple of coverity caught error path
 memory leaks and a couple of other valid complaints
Approved by: gnn

17 years agoFix typos in comments.
ceri [Tue, 7 Nov 2006 23:54:14 +0000 (23:54 +0000)]
Fix typos in comments.

17 years agoUse z modifier for size_t and ssize_t.
jkim [Tue, 7 Nov 2006 23:28:30 +0000 (23:28 +0000)]
Use z modifier for size_t and ssize_t.

17 years agoXPT_GET_TRAN_SETTINGS can fail- so check for an error and
mjacob [Tue, 7 Nov 2006 23:06:00 +0000 (23:06 +0000)]
XPT_GET_TRAN_SETTINGS can fail- so check for an error and
don't blindly assume it succeeded.

17 years agoFix expanding of quoted positional parameters in case patterns.
stefanf [Tue, 7 Nov 2006 22:46:13 +0000 (22:46 +0000)]
Fix expanding of quoted positional parameters in case patterns.

Obtained from: NetBSD (expand.c 1.58 and 1.59)
Submitted by: Paul Jarc
PR: 56147

17 years agoIdentify the xscale 81342.
cognet [Tue, 7 Nov 2006 22:36:57 +0000 (22:36 +0000)]
Identify the xscale 81342.

17 years agoIn the ARM_USE_SMALL_ALLOC case, vm_page_t may have an address < KERNBASE,
cognet [Tue, 7 Nov 2006 22:35:30 +0000 (22:35 +0000)]
In the ARM_USE_SMALL_ALLOC case, vm_page_t may have an address < KERNBASE,
so adjust the KASSERT to reflect this.

17 years agoSpelling.
ru [Tue, 7 Nov 2006 21:57:18 +0000 (21:57 +0000)]
Spelling.

17 years agoLine up memory amount reporting that got broken when s/real/usable/.
ru [Tue, 7 Nov 2006 21:55:39 +0000 (21:55 +0000)]
Line up memory amount reporting that got broken when s/real/usable/.

17 years agoStyle cleanups to the sctp_* syscall functions.
andre [Tue, 7 Nov 2006 21:28:12 +0000 (21:28 +0000)]
Style cleanups to the sctp_* syscall functions.

17 years agoFix TFTP NAT support by making sure the appropriate fingerprinting checks
marcus [Tue, 7 Nov 2006 21:06:48 +0000 (21:06 +0000)]
Fix TFTP NAT support by making sure the appropriate fingerprinting checks
are done.

Reviewed by: piso

17 years agoSimplify operations with sync_mtx in sched_sync():
jhb [Tue, 7 Nov 2006 19:45:05 +0000 (19:45 +0000)]
Simplify operations with sync_mtx in sched_sync():
- Don't drop the lock just to reacquire it again to check rushjob, this
  only wastes time.
- Use msleep() to drop the mutex while sleeping instead of explicitly
  unlocking around tsleep.

Reviewed by: pjd

17 years ago- Don't bother to include IDs of PCnet chips which are not supported
marius [Tue, 7 Nov 2006 19:44:41 +0000 (19:44 +0000)]
- Don't bother to include IDs of PCnet chips which are not supported
  by this driver and largely are not even PCI devices in pcn_chipid.
- Use device_printf(9)/if_printf(9) rather than implementing their
  functionality with printf(9).
- Sprinkle some const.

17 years agoDocument the -l option.
ceri [Tue, 7 Nov 2006 19:07:52 +0000 (19:07 +0000)]
Document the -l option.

Reviewed by: brd
Approved by: ru (mentor)

17 years agoFix comment typo and function declaration.
jhb [Tue, 7 Nov 2006 19:07:33 +0000 (19:07 +0000)]
Fix comment typo and function declaration.

17 years agoFix some edge cases in detach (including attach failures):
jhb [Tue, 7 Nov 2006 19:03:42 +0000 (19:03 +0000)]
Fix some edge cases in detach (including attach failures):
- Only call iwi_stop() if we got far enough along in iwi_attach() to
  alloc an ifnet.
- Release the firmware after stopping the interface and detaching the
  ifnet.

MFC after: 1 month
Reviewed by: sam

17 years agoRemove extra forward declare of 'struct sem'.
jhb [Tue, 7 Nov 2006 18:56:48 +0000 (18:56 +0000)]
Remove extra forward declare of 'struct sem'.

Requested by: bde

17 years agoVarious whitespace cleanups.
jhb [Tue, 7 Nov 2006 18:55:51 +0000 (18:55 +0000)]
Various whitespace cleanups.

17 years agoAdd a new 'union l_sigval' to use in place of 'union sigval' in the
jhb [Tue, 7 Nov 2006 18:53:49 +0000 (18:53 +0000)]
Add a new 'union l_sigval' to use in place of 'union sigval' in the
linux siginfo structure.  l_sigval uses a l_uintptr_t for sival_ptr so
that sival_ptr is the right size for linux32 on amd64.  Since no code
currently uses 'lsi_ptr' this is just a cosmetic nit rather than a bug
fix.

17 years agoRemove old XXX comment about possibly adding a print_Intel_info() function
jhb [Tue, 7 Nov 2006 18:48:18 +0000 (18:48 +0000)]
Remove old XXX comment about possibly adding a print_Intel_info() function
to dump CPUID level=2 stuff.  A print_INTEL_info() function that does just
that was added a while ago.

17 years agoRemove duplicate IDTVEC macro definition, it's already defined in
jhb [Tue, 7 Nov 2006 18:46:33 +0000 (18:46 +0000)]
Remove duplicate IDTVEC macro definition, it's already defined in
<machine/intr_machdep.h>.

17 years agohonor nolockd flag in root mount options
sam [Tue, 7 Nov 2006 18:02:45 +0000 (18:02 +0000)]
honor nolockd flag in root mount options

MFC after: 2 weeks

17 years agoAdd my birthdate to the calendar.
laszlof [Tue, 7 Nov 2006 14:35:34 +0000 (14:35 +0000)]
Add my birthdate to the calendar.

Approved by: flz (mentor)

17 years agoAdd atomic_cmpset_acq_32.
cognet [Tue, 7 Nov 2006 11:53:44 +0000 (11:53 +0000)]
Add atomic_cmpset_acq_32.

17 years agoSecond stage of unbreaking thr formatting of the NICE field: decode the
bde [Tue, 7 Nov 2006 10:03:10 +0000 (10:03 +0000)]
Second stage of unbreaking thr formatting of the NICE field: decode the
priority class and use this to:

- print "-" instead of a garbage value for ithreads.  Print "-" instead
  of the unused nice value for kthreads which are (mis)classified as
  PRI_TIMESHARE.  For such threads, the nice value can be set to nonzero
  by root, but it is never used (at least by the 4bsd scheduler).  For
  ithreads, we didn't even print the unused value.

- print "i<priority>" and "r<priority>" instead of a biased "<priority>"
  for idletime and realtime threads,  Here <priority> is the priority
  parameter to idprio/rtprio(1).  Just add the prefix and remove the
  bias for now.  <priority> has been stored indirectly in the kernel
  since 2001/02/12, and even the kernel cannot recover the original
  value in all cases.  Here we need to handle more cases than pri_to_rtp(),
  but actually handle fewer cases, and end up printing garbage after
  a thread changes its current priority while in the kernel.

- for idletime and realtime threads, if they are kthreads then add a prefix
  of "k" to the previous string.

- for idletime and realtime threads, if they in the FIFO scheduling class
  then add a suffix of "F" to the previous string (if it fits; the other
  parts of the string are sure to fit unless <priority> is garbage).

17 years agoAdd support for the HTTP_TIMEOUT environment variable (integer number
cperciva [Tue, 7 Nov 2006 09:18:09 +0000 (09:18 +0000)]
Add support for the HTTP_TIMEOUT environment variable (integer number
of seconds, just like in fetch(1)).

Submitted by: rdivacky

17 years agoAdd priv.h include required to build FAST_IPSEC, which is not present in
rwatson [Tue, 7 Nov 2006 08:58:06 +0000 (08:58 +0000)]
Add priv.h include required to build FAST_IPSEC, which is not present in
LINT due to a conflict with KAME IPSEC.

Submitted by: Pawel Worach <pawel dot worach at gmail dot com>

17 years agoFix the hanging chad if the NEW_TRAN_CODE change and change the
mjacob [Tue, 7 Nov 2006 05:51:40 +0000 (05:51 +0000)]
Fix the hanging chad if the NEW_TRAN_CODE change and change the
qualifier to force async from cur_spi to spi.

17 years agoDon't drop reference to tty in tty_close() if TS_ISOPEN is already cleared.
tegge [Mon, 6 Nov 2006 22:12:43 +0000 (22:12 +0000)]
Don't drop reference to tty in tty_close() if TS_ISOPEN is already cleared.

Reviewed by: bde

17 years agoInstead of re-implementing hton[ls] and friends for each arch, add a new MI
cognet [Mon, 6 Nov 2006 22:07:47 +0000 (22:07 +0000)]
Instead of re-implementing hton[ls] and friends for each arch, add a new MI
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.

Suggested by: bde

17 years agoHandle early errors in kern_sendfile() by introducing a new goto 'out'
andre [Mon, 6 Nov 2006 21:53:19 +0000 (21:53 +0000)]
Handle early errors in kern_sendfile() by introducing a new goto 'out'
label after the sbunlock() part.

This correctly handles calls to sendfile(2) without valid parameters
that was broken in rev. 1.240.

Coverity error: 272162

17 years agoProvide definitions suitable for arm big-endian.
cognet [Mon, 6 Nov 2006 20:49:23 +0000 (20:49 +0000)]
Provide definitions suitable for arm big-endian.

17 years agoSometimes the vty switching has to be delayed; the vty
ru [Mon, 6 Nov 2006 19:06:07 +0000 (19:06 +0000)]
Sometimes the vty switching has to be delayed; the vty
to be switched to is saved in sc->delayed_next_scr and
the actual switch is performed later.  It was possible
to get into the endless loop when attempting to switch
to a closed vty (which is not allowed and beep-alerted
when attempted) and when the visual beep was in effect.
This caused sc->delayed_next_scr to never be reset and
endless attempts to switch to a closed vty and endless
visual beeping.  How to repeat:

- boot into single-user
- run "kbdcontrol -b visual"
- quickly press Alt+F2 two times

PR: kern/68016
X-MFC after: 6.2-RELEASE

17 years agoAdd missing includes of priv.h.
rwatson [Mon, 6 Nov 2006 17:43:10 +0000 (17:43 +0000)]
Add missing includes of priv.h.

17 years agoStyle facelift.
dds [Mon, 6 Nov 2006 15:58:35 +0000 (15:58 +0000)]
Style facelift.
- Reduce the number of global variables
- Make global objects static
- Use bool consistently
- Sort getopt arguments and their processing
- Add function comments
- Change notlast != 0 into !last

17 years agoAdd needed hyphens, note the KTRACE kernel option, bump doc date.
trhodes [Mon, 6 Nov 2006 15:17:50 +0000 (15:17 +0000)]
Add needed hyphens, note the KTRACE kernel option, bump doc date.

PR: 85186
Submitted by: garys

17 years agoRemove sys/uio.h include -- this is no longer required by the extattr
rwatson [Mon, 6 Nov 2006 15:12:43 +0000 (15:12 +0000)]
Remove sys/uio.h include -- this is no longer required by the extattr
system call API.

MFC after: 3 weeks

17 years agoUse a more sensible default of 1 or -1 when only the start and
dds [Mon, 6 Nov 2006 15:11:50 +0000 (15:11 +0000)]
Use a more sensible default of 1 or -1 when only the start and
end values are specified.

PR: bin/68981
Submitted by: Stefan `Sec` Zehl
MFC after: 2 weeks

17 years agoAdd auditd_program variable to defaults, in order to make it more clear
rwatson [Mon, 6 Nov 2006 15:11:24 +0000 (15:11 +0000)]
Add auditd_program variable to defaults, in order to make it more clear
how to change the auditd instance.  When using a port/package-based
OpenBSM, changing the auditd pointer may be desirable.

Obtained from: TrustedBSD Project
MFC after: 3 weeks

17 years agoAdd the examples from the manual page.
dds [Mon, 6 Nov 2006 15:05:03 +0000 (15:05 +0000)]
Add the examples from the manual page.

17 years agoUpdated results for bin/68981
dds [Mon, 6 Nov 2006 15:00:37 +0000 (15:00 +0000)]
Updated results for bin/68981

PR: bin/68981

17 years agoConvert three new suser(9) calls introduced between when the priv(9)
rwatson [Mon, 6 Nov 2006 14:54:06 +0000 (14:54 +0000)]
Convert three new suser(9) calls introduced between when the priv(9)
patch was prepared and committed to priv(9) calls.  Add XXX comments
as, in each case, the semantics appear to differ from the TCP/UDP
versions of the calls with respect to jail, and because cr_canseecred()
is not used to validate the query.

Obtained from: TrustedBSD Project

17 years agoThis changes tracks down the EEOR->NonEEOR mode failure
rrs [Mon, 6 Nov 2006 14:34:21 +0000 (14:34 +0000)]
This changes tracks down the EEOR->NonEEOR mode failure
to wakeup on close of the sender. It basically moves
the return (when the asoc has a reader/writer) further
down and gets the wakeup and assoc appending (of the
PD-API event) moved up before the return.  It also
moves the flag set right before the return so we can
assure only once adding the PD-API events.

Approved by: gnn

17 years agoFix markup.
ru [Mon, 6 Nov 2006 14:28:09 +0000 (14:28 +0000)]
Fix markup.

17 years agoBump document date.
ru [Mon, 6 Nov 2006 14:26:43 +0000 (14:26 +0000)]
Bump document date.

17 years agoDo What I Mean when the user asks for random integers or characters.
dds [Mon, 6 Nov 2006 13:55:11 +0000 (13:55 +0000)]
Do What I Mean when the user asks for random integers or characters.
Up to now jot would fail to generate the last character in the range
or skew the integer distribution in a way that would generate the numbers
in the range's limits with half the probability of the rest.

This modification fixes the program, rather than documenting the
strange behavior, as suggested in docs/54879.

Also, correctly specify the range of random(3).

PR: docs/54879
MFC after: 2 weeks

17 years agoAdd stub entry point implementations of mpo_priv_check and mpo_priv_grant to
rwatson [Mon, 6 Nov 2006 13:45:45 +0000 (13:45 +0000)]
Add stub entry point implementations of mpo_priv_check and mpo_priv_grant to
the mac_stub policy.

Obtained from: TrustedBSD Project

17 years agoSweep kernel replacing suser(9) calls with priv(9) calls, assigning
rwatson [Mon, 6 Nov 2006 13:42:10 +0000 (13:42 +0000)]
Sweep kernel replacing suser(9) calls with priv(9) calls, assigning
specific privilege names to a broad range of privileges.  These may
require some future tweaking.

Sponsored by:           nCircle Network Security, Inc.
Obtained from:          TrustedBSD Project
Discussed on:           arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
                        Alex Lyashkov <umka at sevcity dot net>,
                        Skip Ford <skip dot ford at verizon dot net>,
                        Antoine Brodin <antoine dot brodin at laposte dot net>

17 years agoAdd a new priv(9) kernel interface for checking the availability of
rwatson [Mon, 6 Nov 2006 13:37:19 +0000 (13:37 +0000)]
Add a new priv(9) kernel interface for checking the availability of
privilege for threads and credentials.  Unlike the existing suser(9)
interface, priv(9) exposes a named privilege identifier to the privilege
checking code, allowing more complex policies regarding the granting of
privilege to be expressed.  Two interfaces are provided, replacing the
existing suser(9) interface:

suser(td)                 ->   priv_check(td, priv)
suser_cred(cred, flags)   ->   priv_check_cred(cred, priv, flags)

A comprehensive list of currently available kernel privileges may be
found in priv.h.  New privileges are easily added as required, but the
comments on adding privileges found in priv.h and priv(9) should be read
before doing so.

The new privilege interface exposed sufficient information to the
privilege checking routine that it will now be possible for jail to
determine whether a particular privilege is granted in the check routine,
rather than relying on hints from the calling context via the
SUSER_ALLOWJAIL flag.  For now, the flag is maintained, but a new jail
check function, prison_priv_check(), is exposed from kern_jail.c and used
by the privilege check routine to determine if the privilege is permitted
in jail.  As a result, a centralized list of privileges permitted in jail
is now present in kern_jail.c.

The MAC Framework is now also able to instrument privilege checks, both
to deny privileges otherwise granted (mac_priv_check()), and to grant
privileges otherwise denied (mac_priv_grant()), permitting MAC Policy
modules to implement privilege models, as well as control a much broader
range of system behavior in order to constrain processes running with
root privilege.

The suser() and suser_cred() functions remain implemented, now in terms
of priv_check() and the PRIV_ROOT privilege, for use during the transition
and possibly continuing use by third party kernel modules that have not
been updated.  The PRIV_DRIVER privilege exists to allow device drivers to
check privilege without adopting a more specific privilege identifier.

This change does not modify the actual security policy, rather, it
modifies the interface for privilege checks so changes to the security
policy become more feasible.

Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project
Discussed on: arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
Alex Lyashkov <umka at sevcity dot net>,
Skip Ford <skip dot ford at verizon dot net>,
Antoine Brodin <antoine dot brodin at laposte dot net>

17 years agoAdded PCI ID's for:
rink [Mon, 6 Nov 2006 12:19:43 +0000 (12:19 +0000)]
Added PCI ID's for:

- 0x1065: Intel 82562ET/EZ/GT/GZ PRO/100 VE Ethernet [1], as found on
  Tyan GS14 barebones.
- 0x1094: Intel Pro/100 946GZ (ICH7) Network Connection [2], as found on
  Intel 946GZis motherboards.

[1] Submitted by: myself
[2] Submitted by: Mike Tancsa <mike@sentex.net>
Reviewed by: imp (mentor), jfv
Approved by: imp (mentor)
MFC after: 3 days

17 years agoPrevent freeing wild pointer when bailing out.
takawata [Mon, 6 Nov 2006 12:14:27 +0000 (12:14 +0000)]
Prevent freeing wild pointer when bailing out.

17 years agoSet up the context for the dbbe_trace callback in the ddb. Otherwise,
kib [Mon, 6 Nov 2006 11:10:57 +0000 (11:10 +0000)]
Set up the context for the dbbe_trace callback in the ddb. Otherwise,
trap caused by backtracing would lead to panic.

Noted and reviewed by: bde

17 years agoAvoid negative array indices: an empty string can also be used
dds [Mon, 6 Nov 2006 11:03:43 +0000 (11:03 +0000)]
Avoid negative array indices: an empty string can also be used
to specify a default value.

17 years agoSee also arc4random
dds [Mon, 6 Nov 2006 10:39:49 +0000 (10:39 +0000)]
See also arc4random

PR: docs/54879
MFC after: 2 weeks

17 years agoRestore jot's ability to use a seed for producing a deterministic
dds [Mon, 6 Nov 2006 10:30:29 +0000 (10:30 +0000)]
Restore jot's ability to use a seed for producing a deterministic
sequence of random numbers.
This functionality was lost in revision 1.9 when the random number
generator was switched to arc4random.

PR: docs/54879
MFC after: 2 weeks

17 years agoReplace obscure aliases through pointers with plain variables.
dds [Mon, 6 Nov 2006 09:15:21 +0000 (09:15 +0000)]
Replace obscure aliases through pointers with plain variables.

MFC after: 2 weeks

17 years agoRegress.out is now regress.x.out.
dds [Mon, 6 Nov 2006 08:49:43 +0000 (08:49 +0000)]
Regress.out is now regress.x.out.

17 years agoMerge code in common cases.
dds [Mon, 6 Nov 2006 08:47:41 +0000 (08:47 +0000)]
Merge code in common cases.

Verified by: New regression tests in tools/regression/usr.bin/jot
MFC after: 2 weeks

17 years agoTest the handling of supplied and default parameters.
dds [Mon, 6 Nov 2006 08:39:52 +0000 (08:39 +0000)]
Test the handling of supplied and default parameters.

17 years agoReplace opaque numeric bit flag values with #defined identifiers.
dds [Mon, 6 Nov 2006 07:26:16 +0000 (07:26 +0000)]
Replace opaque numeric bit flag values with #defined identifiers.
While there, add some missing FALLTHROUGH comments.

Verified with: cmp(1) on the executable
MFC after: 2 weeks

17 years agoRemove gratuitous white space change.
obrien [Mon, 6 Nov 2006 02:49:19 +0000 (02:49 +0000)]
Remove gratuitous white space change.

17 years agoAllow one to force with issue with 'TARGET_BIG_ENDIAN'.
obrien [Mon, 6 Nov 2006 02:32:29 +0000 (02:32 +0000)]
Allow one to force with issue with 'TARGET_BIG_ENDIAN'.

17 years agoSwitch default proto to TCP.
obrien [Mon, 6 Nov 2006 01:42:11 +0000 (01:42 +0000)]
Switch default proto to TCP.

17 years agoEliminate documentation references to a non-existent function.
kientzle [Mon, 6 Nov 2006 00:28:46 +0000 (00:28 +0000)]
Eliminate documentation references to a non-existent function.

17 years agoComputing SHLIB_MAJOR is not a good idea. It's really a FreeBSD
kientzle [Mon, 6 Nov 2006 00:24:57 +0000 (00:24 +0000)]
Computing SHLIB_MAJOR is not a good idea.  It's really a FreeBSD
system value that has no real relation to the libarchive version.
(Except, of course, that any ABI breakage will force both to be
incremented.)

17 years agoRemove an unused declaration.
kientzle [Mon, 6 Nov 2006 00:16:40 +0000 (00:16 +0000)]
Remove an unused declaration.

17 years agoChange the type of ar_arg_sockaddr from struct sockaddr to struct
csjp [Mon, 6 Nov 2006 00:15:44 +0000 (00:15 +0000)]
Change the type of ar_arg_sockaddr from struct sockaddr to struct
sockaddr_storage.  This structure is defined in RFC 2553 and is a more
semantically correct structure for holding IP and IP6 sockaddr information.
struct sockaddr is not big enough to hold all the required information for
IP6, resulting in truncated addresses et al when auditing IP6 sockaddr
information.

We also need to assume that the sa->sa_len has been validated before the call to
audit_arg_sockaddr() is made, otherwise it could result in a buffer overflow.
This is being done to accommodate auditing of network related arguments (like
connect, bind et al) that will be added soon.

Discussed with: rwatson
Obtained from: TrustedBSD Project
MFC after: 2 weeks

17 years agoMajor rework of the ia64 loaders. The two primary objectives are:
marcel [Sun, 5 Nov 2006 22:03:04 +0000 (22:03 +0000)]
Major rework of the ia64 loaders. The two primary objectives are:
1. Make libefi portable by removing ia64 specific code and build
   it on i386 and amd64 by default to prevent regressions. These
   changes include fixes and improvements over previous code to
   establish or improve APIs where none existed or when the amount
   of kluging was unacceptably high.
2. Increase the amount of sharing between the efi and ski loaders
   to improve maintainability of the loaders and simplify making
   changes to the loader-kernel handshaking in the future.

The version of the efi and ski loaders are now both changed to 1.2
as user visible improvements and changes have been made.

17 years agoForced commit to document that the following repo copy has been
marcel [Sun, 5 Nov 2006 21:27:43 +0000 (21:27 +0000)]
Forced commit to document that the following repo copy has been
performed:

from: src/sys/boot/efi/libefi/bootinfo.c
to: src/sys/boot/ia64/common/bootinfo.c

from: src/sys/boot/efi/libefi/copy.c
to: src/sys/boot/ia64/common/copy.c

from: src/sys/boot/efi/libefi/devicename.c
to: src/sys/boot/ia64/common/devicename.c

from: src/sys/boot/efi/libefi/elf_freebsd.c
to: src/sys/boot/ia64/common/exec.c

ncvs meister: simon (thanks!)

17 years ago- I forgot to bump a date.
danger [Sun, 5 Nov 2006 20:12:32 +0000 (20:12 +0000)]
- I forgot to bump a date.

Approved by: keramida (mentor), trhodes (mentor) (implicit)

17 years ago- capitalize the first letter of the first word in the sentence
danger [Sun, 5 Nov 2006 20:08:58 +0000 (20:08 +0000)]
- capitalize the first letter of the first word in the sentence

Approved by: trhodes (mentor), keramida (mentor)

17 years ago- add some files to FILES section and provide their description
danger [Sun, 5 Nov 2006 19:37:27 +0000 (19:37 +0000)]
- add some files to FILES section and provide their description
- reference devfs.conf and devfs.rules in SEE ALSO section

Approved by: keramida (mentor), trhodes (mentor)
PR: docs/103347
MFC-after: 3 days

17 years agoFix a typo: "the give login class" to "the given login class."
trhodes [Sun, 5 Nov 2006 19:00:08 +0000 (19:00 +0000)]
Fix a typo: "the give login class" to "the given login class."

PR: 75577
Submitted by: Nobuyuki Koganemaru

17 years agoAdd regression tests for PR 105078.
stefanf [Sun, 5 Nov 2006 18:41:23 +0000 (18:41 +0000)]
Add regression tests for PR 105078.

17 years agoWhen parsing an invalid parameter expansion (eg. ${} or ${foo@bar}) do not
stefanf [Sun, 5 Nov 2006 18:36:05 +0000 (18:36 +0000)]
When parsing an invalid parameter expansion (eg. ${} or ${foo@bar}) do not
issue a syntax error immediately but save the information that it is erroneous
for later when the parameter expansion is actually done.  This means eg. "false
&& ${}" will not generate an error which seems to be required by POSIX.
Include the invalid parameter expansion in the error message (sometimes
abbreviated with ... because recovering it would require a lot of code).

PR: 105078
Submitted by: emaste