]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd age(4) to the list of drivers use the miibus interface.
yongari [Mon, 19 May 2008 02:10:39 +0000 (02:10 +0000)]
Add age(4) to the list of drivers use the miibus interface.

16 years agoAdd age(4) to the list of drivers supporting ALTQ.
yongari [Mon, 19 May 2008 02:06:39 +0000 (02:06 +0000)]
Add age(4) to the list of drivers supporting ALTQ.

16 years agoAdd age(4) to the list of devices supporting full VLAN processing
yongari [Mon, 19 May 2008 02:03:52 +0000 (02:03 +0000)]
Add age(4) to the list of devices supporting full VLAN processing
in hardware.

16 years agoAdd man page for age(4).
yongari [Mon, 19 May 2008 02:00:16 +0000 (02:00 +0000)]
Add man page for age(4).
brueffer fixed various nits in the document.

Reviewed by: brueffer

16 years agoHook up age(4) to the build.
yongari [Mon, 19 May 2008 01:53:47 +0000 (01:53 +0000)]
Hook up age(4) to the build.

16 years agoAdd age(4), a driver for Attansic/Atheros L1 gigabit ethernet
yongari [Mon, 19 May 2008 01:39:59 +0000 (01:39 +0000)]
Add age(4), a driver for Attansic/Atheros L1 gigabit ethernet
controller. L1 has several threshold/timer registers and they
seem to require careful tuned parameters to get best
performance. Datasheet for L1 is not available to open source
driver writers so age(4) focus on stability and correctness of
basic Tx/Rx operation. ATM the performance of age(4) is far from
optimal which in turn means there are mis-programmed registers or
incorrectly configured registers.
Currently age(4) supports all known hardware assistance including
  - MSI support.
  - TCP Segmentation Offload.
  - Hardware VLAN tag insertion/stripping.
  - TCP/UDP checksum offload.
  - Interrupt moderation.
  - Hardware statistics counter support.
  - Jumbo frame support.
  - WOL support.

L1 gigabit ethernet controller is mainly found on ASUS
motherboards. Note, it seems that there are other variants of
hardware as known as L2(Fast ethernet) and newer gigabit ethernet
(AR81xx) from Atheros. These are not supported by age(4) and
requires a seperate driver. Big thanks to all people who reported
feedback or tested patches.

Tested by: kevlo, bsam, Francois Ranchin < fyr AT fyrou DOT net >
Thomas Nystroem < thn AT saeab DOT se >
Roman Pogosyan < asternetadmin AT gmail DOT com >
Derek Tattersal < dlt AT mebtel DOT net >
Oliver Seitz < karlkiste AT yahoo DOT com >

16 years agoConnect atphy(4) to the build.
yongari [Mon, 19 May 2008 01:18:02 +0000 (01:18 +0000)]
Connect atphy(4) to the build.

16 years agoAdd Attansic/Atheros F1 PHY driver.
yongari [Mon, 19 May 2008 01:12:10 +0000 (01:12 +0000)]
Add Attansic/Atheros F1 PHY driver.

16 years ago- Assert that we don't send new provider event for a provider which has
pjd [Sun, 18 May 2008 22:50:50 +0000 (22:50 +0000)]
- Assert that we don't send new provider event for a provider which has
  G_PF_WITHER flag set.
- Fix typo in assertion condition (sorry, but I forgot who report that).

16 years agoRemove some DTrace hook definitions that are now in dtrace_bsd.h
jb [Sun, 18 May 2008 22:11:47 +0000 (22:11 +0000)]
Remove some DTrace hook definitions that are now in dtrace_bsd.h
which contains all the hook definitions rather than splattering
them all over the header files.

The definitions are only valid when the KDTRACE_HOOKS kernel
option is defined, so other kernel sources have no need to
see them.

16 years agoAdd sysinit levels for DTrace.
jb [Sun, 18 May 2008 22:10:10 +0000 (22:10 +0000)]
Add sysinit levels for DTrace.

16 years agoPlay nice with DDB pager.
pjd [Sun, 18 May 2008 21:13:10 +0000 (21:13 +0000)]
Play nice with DDB pager.

Educated by: jhb's BSDCan presentation

16 years agoBe more friendly for DDB pager.
pjd [Sun, 18 May 2008 21:08:12 +0000 (21:08 +0000)]
Be more friendly for DDB pager.

Educated by: jhb's BSDCan presentation

16 years agoAdd the hooks for the extra data that DTrace allocates for struct thread
jb [Sun, 18 May 2008 19:50:43 +0000 (19:50 +0000)]
Add the hooks for the extra data that DTrace allocates for struct thread
and struct proc.

Add a field to struct thread to stash the error variable (or returned
status) from the last syscall so that it is available during a
DTrace probe.

16 years agoAdd a couple of files which depend of the KDTRACE_HOOKS option.
jb [Sun, 18 May 2008 19:47:49 +0000 (19:47 +0000)]
Add a couple of files which depend of the KDTRACE_HOOKS option.

The syscall names are required by KDTRACE_HOOKS too.

And the unzip

16 years agoAdd support for the DTrace struct proc and struct thread extended
jb [Sun, 18 May 2008 19:43:52 +0000 (19:43 +0000)]
Add support for the DTrace struct proc and struct thread extended
data via ctor and dtor event handlers.

The size of the extra data is allocated opaquely and this file
contains a function which the dtrace module can call to check
that the kernel supports at least the amount of data that it needs.

This file is optionally compiled into nthe kernel if the KDTRACE_HOOKS
kernel option is defined.

16 years agoAdd kernel support for the Statically Defined Trace provider.
jb [Sun, 18 May 2008 19:32:36 +0000 (19:32 +0000)]
Add kernel support for the Statically Defined Trace provider.

This is BSD licensed code written specifically for FreeBSD.

It initialises using SYSINIT so that the SDT provider, probe and
argument description linkage is done whenever a module is loaded,
regardless of whether the DTrace modules are loaded or not.

This file is optionally compiled into the kernel if the KDTRACE_HOOKS
option is defined.

16 years agoAdd two kernel options:
jb [Sun, 18 May 2008 19:28:51 +0000 (19:28 +0000)]
Add two kernel options:

- KDTRACE_HOOKS for the shim layer of hooks which separate BSD licensed
                code from CDDL code.
- DDB_CTF       for the code that parses the CTF (compact C type format)
                data for use by the DTrace Function Boundary Trace
                provider and (possibly) ddb if we plan to do that.

16 years agodevctl_process_running(): Check for devsoftc.inuse == 1 instead of
rpaulo [Sun, 18 May 2008 13:55:51 +0000 (13:55 +0000)]
devctl_process_running(): Check for devsoftc.inuse == 1 instead of
devsoftc.async_proc != NULL because the latter might not be true
sometimes.
This way /etc/rc.suspend gets executed.

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

16 years agoRemove the unknown device that is breaking the tinderbox build.
jb [Sun, 18 May 2008 11:08:26 +0000 (11:08 +0000)]
Remove the unknown device that is breaking the tinderbox build.

16 years agoAdd myself.
rpaulo [Sun, 18 May 2008 11:05:41 +0000 (11:05 +0000)]
Add myself.

16 years agoSimple testing program for *at family of syscalls.
rdivacky [Sun, 18 May 2008 08:34:04 +0000 (08:34 +0000)]
Simple testing program for *at family of syscalls.

Approved by: kib (mentor)

16 years agoAdd SIGINFO (and for portability to SIGINFO-lacking systems, SIGUSR1)
cperciva [Sun, 18 May 2008 06:24:47 +0000 (06:24 +0000)]
Add SIGINFO (and for portability to SIGINFO-lacking systems, SIGUSR1)
handling to bsdtar.  When writing archives (including copying via the
@archive directive) a line is output to stderr indicating what is being
done (adding or copying), the path, and how far through the file we are;
extracting currently does not report progress within each file, but
this is likely to happen eventually.

Discussed with: kientzle
Obtained from: tarsnap

16 years agoRetire pmap_addr_hint(). It is no longer used.
alc [Sun, 18 May 2008 04:16:57 +0000 (04:16 +0000)]
Retire pmap_addr_hint().  It is no longer used.

16 years agoAdd support for the Epson 4800 scanner.
remko [Sun, 18 May 2008 03:07:40 +0000 (03:07 +0000)]
Add support for the Epson 4800 scanner.

PR: 118391
Submitted by: "Pedro F. Giffuni" <giffunip at tutopia dot com>
Approved by: imp (mentor, implicit)
MFC after: 3 days
Committed at: BSDCan 2008

16 years agoMove the wait for a default route to rc.d/routing. Once we test for
brooks [Sun, 18 May 2008 02:57:54 +0000 (02:57 +0000)]
Move the wait for a default route to rc.d/routing.  Once we test for
non-dhcp interfaces to negotiate/associate this will make more sense.

This also correctly gets run after both devd and netif are run so it has
a chance of working.

16 years agoResort the if_ti driver to match the PCI Network cards instead of placing
remko [Sat, 17 May 2008 23:50:00 +0000 (23:50 +0000)]
Resort the if_ti driver to match the PCI Network cards instead of placing
it under the mii devices list.

PR: kern/123147
Submitted by: gavin
Approved by: imp (mentor, implicit)
MFC after: 3 days

16 years agoIn order to map device memory using superpages, mmap(2) must find a
alc [Sat, 17 May 2008 19:32:48 +0000 (19:32 +0000)]
In order to map device memory using superpages, mmap(2) must find a
superpage-aligned virtual address for the mapping.  Revision 1.65
implemented an overly simplistic and generally ineffectual method for
finding a superpage-aligned virtual address.  Specifically, it rounds
the virtual address corresponding to the end of the data segment up to
the next superpage-aligned virtual address.  If this virtual address
is unallocated, then the device will be mapped using superpages.
Unfortunately, in modern times, where applications like the X server
dynamically load much of their code, this virtual address is already
allocated.  In such cases, mmap(2) simply uses the first available
virtual address, which is not necessarily superpage aligned.

This revision changes mmap(2) to use a more robust method,
specifically, the VMFS_ALIGNED_SPACE option that is now implemented by
vm_map_find().

16 years agoPreset a device object's alignment ("pg_color") based upon the
alc [Sat, 17 May 2008 16:26:34 +0000 (16:26 +0000)]
Preset a device object's alignment ("pg_color") based upon the
physical address of the device's memory.  This enables
pmap_align_superpage() to propose a virtual address for mapping the
device memory that permits the use of superpage mappings.

16 years agoAdd support for specifying which INDEX files to build via portsnap.conf.
cperciva [Sat, 17 May 2008 16:26:27 +0000 (16:26 +0000)]
Add support for specifying which INDEX files to build via portsnap.conf.

Requested by: brooks
Reminded by: brooks, about halfway through his BSDCan talk

16 years agoAdd --keep-newer-files option (as in GNU tar: When in -x mode, ignore
cperciva [Sat, 17 May 2008 15:55:29 +0000 (15:55 +0000)]
Add --keep-newer-files option (as in GNU tar: When in -x mode, ignore
files if the existing file is newer than the archive entry).

Currently if any files are ignored, bsdtar will exit with a non-zero
exit status; this is likely to change in the future, but requires some
API changes in libarchive.

Discussed with: kientzle
Obtained from: tarsnap

16 years agoRemove last bits of OS adaptation code from the IPSec code.
gnn [Sat, 17 May 2008 04:00:11 +0000 (04:00 +0000)]
Remove last bits of OS adaptation code from the IPSec code.

Reviewed By: bz

16 years agoThe if_check() function performed three actions:
brooks [Sat, 17 May 2008 03:38:13 +0000 (03:38 +0000)]
The if_check() function performed three actions:
 - verified that the ifp->if_snd.ifq_mtx was initalized for
   all attached interfaces.  This was pointless because it was
   initalized for all interfaces in if_attach() so I've removed it.
 - Checked that ifp->if_snd.ifq_maxlen is initalized and set it to
   ifqmaxlen if unset.  This makes more sense in if_attach() so
   I moved it there.
 - The first call of if_slowtimo().  Delete if_check() and call
   if_slowtimo() directly from the SYSINIT().

16 years agoAdd the DTrace kernel module makefiles.
jb [Sat, 17 May 2008 02:31:19 +0000 (02:31 +0000)]
Add the DTrace kernel module makefiles.

16 years agoAdd the DTrace shim layer definitions.
jb [Sat, 17 May 2008 02:16:58 +0000 (02:16 +0000)]
Add the DTrace shim layer definitions.

All shim hooks are defined here. This is the interface between BSD
code in FreeBSD and CDDL code from OpenSolaris.

The hooks defined here are pre-processed out from the source files
when the KDTRACE_HOOKS kernel option isn't defined.

16 years agoAdd the statically defined tracing header.
jb [Sat, 17 May 2008 02:14:19 +0000 (02:14 +0000)]
Add the statically defined tracing header.

Note that this implementation differs from the one in OpenSolaris, so
it is BSD licensed and can be included anywhere.

The kernel definitions defined here are dependent on the kernel option
KDTRACE_HOOKS so that macros added to the sources are pre-processed
out completely when the DTrace kernel hooks aren't compiled in.

16 years agoAdd the DTrace test makefile for the test suite distributed in OpenSolaris.
jb [Sat, 17 May 2008 02:09:48 +0000 (02:09 +0000)]
Add the DTrace test makefile for the test suite distributed in OpenSolaris.

16 years agoFix and speedup timestamp calculations which is roughly based on the patch in
markus [Fri, 16 May 2008 22:31:17 +0000 (22:31 +0000)]
Fix and speedup timestamp calculations which is roughly based on the patch in
the mentioned PR:

- bounds check time->month as it is used as an array index
- fix usage of time->month as array index (month is 1-12)
- fix calculation based on time->day (day is 1-31)
- fix the speedup code as it doesn't calculate correct timestamps before
  the year 2000 and reduce the number of calculation in the year-by-year code
- speedup month calculations by replacing the array content with cumulative
  values
- add microseconds calculation
- fix an endian problem

PR: kern/97786
Submitted by: Andriy Gapon <avg@topspin.kiev.ua>
Reviewed by: scottl (earlier version)
Approved by: emax (mentor)
MFC after: 1 week

16 years agoRetire some stale alpha references.
jhb [Fri, 16 May 2008 20:09:29 +0000 (20:09 +0000)]
Retire some stale alpha references.

16 years agoAdd support for the Nikon D300 camera
remko [Fri, 16 May 2008 19:47:15 +0000 (19:47 +0000)]
Add support for the Nikon D300 camera

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

16 years agoThis is driver version 1.4.4 of the Intel ixgbe driver.
jfv [Fri, 16 May 2008 18:46:30 +0000 (18:46 +0000)]
This is driver version 1.4.4 of the Intel ixgbe driver.
  -It has new hardware support
  -It uses a new method of TX cleanup called Head Write Back
  -It includes the provisional generic TCP LRO feature contributed
   by Myricom and made general purpose by me. This should move into
   the stack upon approval but for this driver drop its in here.
  -Also bug fixes and etc...

MFC in a week if no serious issues arise.

16 years agoAttempt to improve convergence of POSIX semaphore code with style(9).
rwatson [Fri, 16 May 2008 18:10:07 +0000 (18:10 +0000)]
Attempt to improve convergence of POSIX semaphore code with style(9).

MFC after: 3 days

16 years agoTeach truss about 32-bit FreeBSD and Linux binaries on amd64. Some
jhb [Fri, 16 May 2008 15:34:06 +0000 (15:34 +0000)]
Teach truss about 32-bit FreeBSD and Linux binaries on amd64.  Some
additional work is needed to handle ABI-specific syscall argument parsing,
but this gets the basic tracing working.

MFC after: 1 week

16 years agoFix RID calculation. The RID is really the BAR for PCI cards,
marcel [Fri, 16 May 2008 14:57:48 +0000 (14:57 +0000)]
Fix RID calculation. The RID is really the BAR for PCI cards,
so the index needs to be translated into an offset. While we
did add the offset (0x10), we forgot to account for the width.

Tested by: Thomas Vogt
MFC after: 3 days

16 years agoRemoved unused assembly offsets for structures digging.
attilio [Fri, 16 May 2008 13:23:47 +0000 (13:23 +0000)]
Removed unused assembly offsets for structures digging.

16 years ago- The names of the months and the days are in lowercase according to the
gabor [Fri, 16 May 2008 12:50:15 +0000 (12:50 +0000)]
- The names of the months and the days are in lowercase according to the
  Hungarian spelling, change them accordingly

Requested by: Janos Mohacsi <mohacsi@niif.hu>

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

Reported by: Emil Mikulic

16 years agoDocument BOOTP_BLOCKSIZE.
benno [Fri, 16 May 2008 06:50:40 +0000 (06:50 +0000)]
Document BOOTP_BLOCKSIZE.

16 years agoAllow the block size used when booting over NFS to be overridden. It defaults
benno [Fri, 16 May 2008 06:27:03 +0000 (06:27 +0000)]
Allow the block size used when booting over NFS to be overridden.  It defaults
to 8192 bytes which is the size currently used.

16 years agoClarify that "ante meridiem" and "post meridiem" mean the same thing
grog [Fri, 16 May 2008 04:33:04 +0000 (04:33 +0000)]
Clarify that "ante meridiem" and "post meridiem" mean the same thing
as the more commonly used "a.m." and "p.m.".

Tripped over by:  Callum Gibson.

MFC after:  2 weeks

16 years agoThe beacon miss notification must run without locks held has it calls back into
thompsa [Fri, 16 May 2008 04:15:54 +0000 (04:15 +0000)]
The beacon miss notification must run without locks held has it calls back into
wpi_raw_xmit();

16 years agoSpelling and capitalization fixes.
scf [Fri, 16 May 2008 03:13:36 +0000 (03:13 +0000)]
Spelling and capitalization fixes.

MFC after: 3 days

16 years agoLO_ENROLLPEND is no more existing so just axe it (it was left out by the
attilio [Fri, 16 May 2008 02:09:13 +0000 (02:09 +0000)]
LO_ENROLLPEND is no more existing so just axe it (it was left out by the
original commit axing it).

16 years agoMake this c++ compatible.
dfr [Fri, 16 May 2008 02:06:10 +0000 (02:06 +0000)]
Make this c++ compatible.

PR: 87726

16 years agolockinit() can't accept LK_EXCLUSIVE as an initializaiton flag, so just
attilio [Thu, 15 May 2008 21:39:25 +0000 (21:39 +0000)]
lockinit() can't accept LK_EXCLUSIVE as an initializaiton flag, so just
drop it.

Reported by: Josh Carroll <josh dot carroll at gmail dot com>
Submitted by: jhb

16 years ago- Const'ify firmware and lookup-tables.
marius [Thu, 15 May 2008 20:27:18 +0000 (20:27 +0000)]
- 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 agoUpdate the kernel to count the number of mbufs and clusters
gnn [Thu, 15 May 2008 20:18:44 +0000 (20:18 +0000)]
Update the kernel to count the number of mbufs and clusters
(all types) used per socket buffer.

Add support to netstat to print out all of the socket buffer
statistics.

Update the netstat manual page to describe the new -x flag
which gives the extended output.

Reviewed by: rwatson, julian

16 years ago- Embed the recursion counter for any locking primitive directly in the
attilio [Thu, 15 May 2008 20:10:06 +0000 (20:10 +0000)]
- Embed the recursion counter for any locking primitive directly in the
  lock_object, using an unified field called lo_data.
- Replace lo_type usage with the w_name usage and at init time pass the
  lock "type" directly to witness_init() from the parent lock init
  function.  Handle delayed initialization before than
  witness_initialize() is called through the witness_pendhelp structure.
- Axe out LO_ENROLLPEND as it is not really needed.  The case where the
  mutex init delayed wants to be destroyed can't happen because
  witness_destroy() checks for witness_cold and panic in case.
- In enroll(), if we cannot allocate a new object from the freelist,
  notify that to userspace through a printf().
- Modify the depart function in order to return nothing as in the current
  CVS version it always returns true and adjust callers accordingly.
- Fix the witness_addgraph() argument name prototype.
- Remove unuseful code from itismychild().

This commit leads to a shrinked struct lock_object and so smaller locks,
in particular on amd64 where 2 uintptr_t (16 bytes per-primitive) are
gained.

Reviewed by: jhb

16 years agoChange a use of u_int32_t to uint32_t.
brooks [Thu, 15 May 2008 20:04:36 +0000 (20:04 +0000)]
Change a use of u_int32_t to uint32_t.

PR: bin/93172
Submitted by: Robert Millan <rmh at aybabtu dot com>
MFC after: 1 week

16 years agoTest the expansion of $LINENO.
stefanf [Thu, 15 May 2008 19:58:44 +0000 (19:58 +0000)]
Test the expansion of $LINENO.

16 years agoExpand $LINENO to the current line number. This is required by SUSv3's "User
stefanf [Thu, 15 May 2008 19:55:27 +0000 (19:55 +0000)]
Expand $LINENO to the current line number.  This is required by SUSv3's "User
Portability Utilities" option.

Often configure scripts generated by the autotools test if $LINENO works and
refuse to use /bin/sh if not.

Package test run by: pav

16 years agoAdd definition for OM_uint64.
dfr [Thu, 15 May 2008 19:55:19 +0000 (19:55 +0000)]
Add definition for OM_uint64.

Submitted by: tmclaugh

16 years agogetopt.c is public domain. Add a comment to that effect.
brooks [Thu, 15 May 2008 19:27:52 +0000 (19:27 +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
MFC after: 3 days

16 years agoDon't call vm_reserv_alloc_page() on device-backed objects. Otherwise, the
alc [Thu, 15 May 2008 18:52:31 +0000 (18:52 +0000)]
Don't call vm_reserv_alloc_page() on device-backed objects.  Otherwise, the
system may panic because there is no reservation structure corresponding to
the physical address of the device memory.

Reported by: Giorgos Keramidas

16 years agoAdd the ability to do all read, all write, or random read/write.
adrian [Thu, 15 May 2008 16:10:55 +0000 (16:10 +0000)]
Add the ability to do all read, all write, or random read/write.

16 years agoAdd new heimdal-1.1 library.
dfr [Thu, 15 May 2008 15:28:18 +0000 (15:28 +0000)]
Add new heimdal-1.1 library.

16 years agoImprove the virtual scrolling mechanism to make middle clicking less
philip [Thu, 15 May 2008 15:05:02 +0000 (15:05 +0000)]
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.

PR: bin/120186
Submitted by: Aragon Gouveia <aragon -at- phat.za.net>
MFC after: 3 days

16 years agoAdd support for /conf/T/M/remount_optional.
bms [Thu, 15 May 2008 11:00:23 +0000 (11:00 +0000)]
Add support for /conf/T/M/remount_optional.

The rc.initdiskless functionality is used by NanoBSD to allow configuration
files to live on a separate configuration slice, which acts as NVRAM, whilst
the system image is mounted read-only.

Normally, if the remount command fails during boot, this is regarded as
a fatal error. If /conf/T/M/remount_optional is present, this error is
non-fatal. If the file is not present, the default behaviour is unchanged.

This is very useful for people building live CD images using FreeBSD,
where the NVRAM lives somewhere completely differently from the system image,
and may be present on removable media which is not present during the
initial boot.

16 years agoTypo
bms [Thu, 15 May 2008 10:51:30 +0000 (10:51 +0000)]
Typo

16 years agoMake the meaning of the %A format specifier, as passed to
bms [Thu, 15 May 2008 10:47:14 +0000 (10:47 +0000)]
Make the meaning of the %A format specifier, as passed to
LD_TRACE_LOADED_OBJECTS_FMT[12], more obvious for users like me.

16 years agoAdd an example of how to use ldd -f.
bms [Thu, 15 May 2008 10:43:11 +0000 (10:43 +0000)]
Add an example of how to use ldd -f.

16 years agoAdd the hx509 error table.
dfr [Thu, 15 May 2008 08:53:31 +0000 (08:53 +0000)]
Add the hx509 error table.

16 years agoFix a panic when it occurred during initializing the ndis driver because
weongyo [Thu, 15 May 2008 04:29:28 +0000 (04:29 +0000)]
Fix a panic when it occurred during initializing the ndis driver because
it try to read network address through ifnet structure which is NULL
until the ndis driver's initialization is finished.

Reviewed by: thompsa

16 years agoGo back to using the process command name (p_comm) for the file name and
jhb [Thu, 15 May 2008 03:07:34 +0000 (03:07 +0000)]
Go back to using the process command name (p_comm) for the file name and
command line arguments stored in the note at the beginning of a core dump
instead of the current thread name.

Reviewed by: julian

16 years agoFix for a bug I introduced when I cleaned up atacontrol: Don't terminate
phk [Thu, 15 May 2008 01:25:29 +0000 (01:25 +0000)]
Fix for a bug I introduced when I cleaned up atacontrol:  Don't terminate
if we are listing devices, a controller might legitimately not be there.

Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>

16 years agoMove speaker a lot closer to style(9)
phk [Thu, 15 May 2008 01:22:48 +0000 (01:22 +0000)]
Move speaker a lot closer to style(9)

Submitted by: Martin Voros <martin_voros@yahoo.com>

16 years agoChange the default value of synchronous_dhclient to NO.
brooks [Thu, 15 May 2008 01:06:10 +0000 (01:06 +0000)]
Change the default value of synchronous_dhclient to NO.

To preserve the existing behavior of etc/rc.d/netif, add code to wait
up to if_up_delay seconds (30 seconds by default) for a default route to
be configured if there are any dhcp interfaces.  This should be extended
to test that the interface is actually up.

X-MFC after:

16 years agoFix last commit and call childif_destroy() correctly.
brooks [Thu, 15 May 2008 00:08:02 +0000 (00:08 +0000)]
Fix last commit and call childif_destroy() correctly.

16 years agoDon't print the interface status if we only create child or destroy
brooks [Wed, 14 May 2008 23:53:39 +0000 (23:53 +0000)]
Don't print the interface status if we only create child or destroy
interfaces.

Correctly return status from childif_create().

16 years agoPopulate usage()
phk [Wed, 14 May 2008 23:29:02 +0000 (23:29 +0000)]
Populate usage()

Submitted by:   Jaakko Heinonen <jh@saunalahti.fi>

16 years agoImprove the integration of BCM5906[M] support:
marius [Wed, 14 May 2008 21:00:27 +0000 (21:00 +0000)]
Improve the integration of BCM5906[M] support:
- Rename BGE_FLAG_EEPROM to BGE_FLAG_EADDR to underline it's absence means
  "there's no chip containing an Ethernet address fitted to the BGE chip
  so we have to get it from the firmware instead" rather than "there's no
  EEPROM, but maybe NVRAM or something else".
- Don't treat BCM5906[M] generally like chips w/o BGE_FLAG_EADDR set, just
  in the two cases really necessary. This gets us line with the original
  patch for DragonFlyBSD.
- For sparc64 restore the intended behavior of obtaining the Ethernet
  address from the firmware in case BGE_FLAG_EADDR is not set, even for
  BCM5906[M].
- Fix some style(9) bugs introduced with rev. 1.208 of if_bge.c

Approved by: jhb
Additional testing by: Thomas Nystroem (BCM5906)

16 years agoClean up cpp logic and comments.
jasone [Wed, 14 May 2008 18:33:13 +0000 (18:33 +0000)]
Clean up cpp logic and comments.

16 years agoAdd support for bzip2-compressed manpages.
ru [Wed, 14 May 2008 17:18:12 +0000 (17:18 +0000)]
Add support for bzip2-compressed manpages.

PR: bin/120730
Submitted by: ighighi AT gmail DOT com
MFC after: 1 week

16 years agoAdd an ability to run man(1) on local files (the argument should
ru [Wed, 14 May 2008 17:08:31 +0000 (17:08 +0000)]
Add an ability to run man(1) on local files (the argument should
contain a `/' character); based on the submission in the PR.

PR: bin/120730
MFC after: 1 week

16 years agoMake -t <tty> optional in server mode. If not specified use stdin/stdout.
emax [Wed, 14 May 2008 16:47:30 +0000 (16:47 +0000)]
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>
MFC after: 3 days

16 years agoAdd the devctl notifications for the cdev create/destroy events.
kib [Wed, 14 May 2008 14:29:54 +0000 (14:29 +0000)]
Add the devctl notifications for the cdev create/destroy events.

Based on the submission by: Andriy Gapon <avg icyb net ua>
MFC after: 2 weeks

16 years agostyle(9): remove FreeBSD CVS ID from the initial license comment.
rpaulo [Wed, 14 May 2008 10:02:25 +0000 (10:02 +0000)]
style(9): remove FreeBSD CVS ID from the initial license comment.

MFC after: 1 day

16 years agoActually, don't rely on the unsafe MAX() macro. Use imax() as provided
rpaulo [Wed, 14 May 2008 09:57:21 +0000 (09:57 +0000)]
Actually, don't rely on the unsafe MAX() macro. Use imax() as provided
in the PR patch.

Pointed out by: bde
PR: 123542

16 years agoFix pstat behaviour when using coredumps. The reference to tp was
remko [Wed, 14 May 2008 00:22:57 +0000 (00:22 +0000)]
Fix pstat behaviour when using coredumps. The reference to tp was
incorrect and should have been poining to &tty, tp is a virtual
address from the coredump, while we should obtain the address through
the tty struct.

Approved by: imp (mentor, implicit trivial changes)
MFC after: 1 week
Submitted by: Ed Schouten (ed at 80836 dot nl)

16 years agoAdd a -8 switch to syslogd to prevent it from mangling 8-bit data.
brian [Wed, 14 May 2008 00:22:21 +0000 (00:22 +0000)]
Add a -8 switch to syslogd to prevent it from mangling 8-bit data.

16 years agoFix #2.
adrian [Tue, 13 May 2008 23:24:06 +0000 (23:24 +0000)]
Fix #2.

16 years agoFix whitespace bug introduced a couple commits ago.
adrian [Tue, 13 May 2008 23:07:42 +0000 (23:07 +0000)]
Fix whitespace bug introduced a couple commits ago.

16 years agoBSDCan update #2.
adrian [Tue, 13 May 2008 22:46:13 +0000 (22:46 +0000)]
BSDCan update #2.

16 years agoBSDCan calendar file update #1.
adrian [Tue, 13 May 2008 22:27:32 +0000 (22:27 +0000)]
BSDCan calendar file update #1.

16 years agoBump modification date.
remko [Tue, 13 May 2008 21:51:35 +0000 (21:51 +0000)]
Bump modification date.

16 years agoThe first of thirteen patches by Ed that resolves a documentation
remko [Tue, 13 May 2008 21:51:02 +0000 (21:51 +0000)]
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 agoDon't let hacksync() call bus_dmamap_sync(9) on DMA maps which
marius [Tue, 13 May 2008 20:58:08 +0000 (20:58 +0000)]
Don't let hacksync() call bus_dmamap_sync(9) on DMA maps which
are not initialized. This fixes a panic on sparc64 where calling
bus_dmamap_sync(9) on NULL DMA maps is fatal.

Approved by: sam

16 years agoRegen.
rdivacky [Tue, 13 May 2008 20:02:26 +0000 (20:02 +0000)]
Regen.

Approved by: kib (mentor)

16 years agoImplement robust futexes. Most of the code is modelled after
rdivacky [Tue, 13 May 2008 20:01:27 +0000 (20:01 +0000)]
Implement robust futexes. Most of the code is modelled after
what Linux does. This is because robust futexes are mostly
userspace thing which we cannot alter. Two syscalls maintain
pointer to userspace list and when process exits a routine
walks this list waking up processes sleeping on futexes
from that list.

Reviewed by: kib (mentor)
MFC after: 1 month

16 years agoFrom the OpenBSD commit log :
cognet [Tue, 13 May 2008 14:00:09 +0000 (14:00 +0000)]
From the OpenBSD commit log :
Add support for the Apple USB Ethernet adapter.
Work around the "latch in at the first working PHY address hack",
that fails for this adapter because it returns 0xffff when reading
from lower PHY addresses. Also add more debugging printfs

Obtained from: OpenBSD
MFC After: 3 days