]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoTeach dhclient(8) about net80211 link (association) status.
Jung-uk Kim [Wed, 5 Dec 2007 17:13:45 +0000 (17:13 +0000)]
Teach dhclient(8) about net80211 link (association) status.

Reviewed by: brooks
MFC after: 3 days

16 years agoPut stock 6.1.5 file into HEAD.
David E. O'Brien [Wed, 5 Dec 2007 16:57:05 +0000 (16:57 +0000)]
Put stock 6.1.5 file into HEAD.

16 years agoNot sure why mbr deleted this file - its useful.
David E. O'Brien [Wed, 5 Dec 2007 16:56:42 +0000 (16:56 +0000)]
Not sure why mbr deleted this file - its useful.

16 years agoTeach Amd how to unmount.
David E. O'Brien [Wed, 5 Dec 2007 16:50:48 +0000 (16:50 +0000)]
Teach Amd how to unmount.

16 years agoAccidently created the file with the wrong name.
David E. O'Brien [Wed, 5 Dec 2007 16:49:16 +0000 (16:49 +0000)]
Accidently created the file with the wrong name.

16 years ago'amu_autofs_prot.h'
David E. O'Brien [Wed, 5 Dec 2007 16:47:52 +0000 (16:47 +0000)]
'amu_autofs_prot.h'

16 years agoAdjust for new files added to 6.1.5, and files retired from 6.0.10p1.
David E. O'Brien [Wed, 5 Dec 2007 16:40:05 +0000 (16:40 +0000)]
Adjust for new files added to 6.1.5, and files retired from 6.0.10p1.
Also TCP Wrappers is now supported.
Also tweak the MK_HESIOD.

16 years agoUpdate for version 6.1.5.
David E. O'Brien [Wed, 5 Dec 2007 16:38:29 +0000 (16:38 +0000)]
Update for version 6.1.5.

16 years agoWe now have to use part of the vendor supplied xdr_func.c.
David E. O'Brien [Wed, 5 Dec 2007 16:27:03 +0000 (16:27 +0000)]
We now have to use part of the vendor supplied xdr_func.c.
util renamed to strutil to be more clear of its purpose.

16 years agoThese now need to link with libamu.
David E. O'Brien [Wed, 5 Dec 2007 16:25:43 +0000 (16:25 +0000)]
These now need to link with libamu.

16 years agoAdd new BUILD_* knobs, and switch our definition & setting of BUILD_*
David E. O'Brien [Wed, 5 Dec 2007 16:23:34 +0000 (16:23 +0000)]
Add new BUILD_* knobs, and switch our definition & setting of BUILD_*
and configured settings.

16 years agoAutoconf would have created a symlink from conf/autofs/autofs_default.h
David E. O'Brien [Wed, 5 Dec 2007 16:21:44 +0000 (16:21 +0000)]
Autoconf would have created a symlink from conf/autofs/autofs_default.h
to autoamu_autofs_prot.h.  It is easier to just create shell header within
the Bmake framework.

For now it's a stub - fill out when we know our Autofs direction.

16 years ago2005-05-28 Erez Zadok <ezk@cs.sunysb.edu>
David E. O'Brien [Wed, 5 Dec 2007 16:18:44 +0000 (16:18 +0000)]
2005-05-28  Erez Zadok  <ezk@cs.sunysb.edu>
* libamu/alloca.c: remove file from distro.

16 years ago2005-10-02 Erez Zadok <ezk@cs.sunysb.edu>
David E. O'Brien [Wed, 5 Dec 2007 16:16:56 +0000 (16:16 +0000)]
2005-10-02  Erez Zadok  <ezk@cs.sunysb.edu>
* libamu/strutil.c: rename from util.c to explain better purpose
of file.

16 years ago2005-03-05 Ion Badulescu <ionut@moisil.badula.org>
David E. O'Brien [Wed, 5 Dec 2007 16:05:26 +0000 (16:05 +0000)]
2005-03-05  Ion Badulescu  <ionut@moisil.badula.org>
* amd/amfs_inherit.c: removed, dead code

16 years agoInclude support for FreeBSD's <fs/msdosfs/msdosfsmount.h>.
David E. O'Brien [Wed, 5 Dec 2007 16:03:52 +0000 (16:03 +0000)]
Include support for FreeBSD's <fs/msdosfs/msdosfsmount.h>.
Also <ufs/ufs/ufsmount.h> is safe to use.

16 years agoMerge rev. 1.7 (change mounting directory to match traditional FreeBSD
David E. O'Brien [Wed, 5 Dec 2007 16:00:42 +0000 (16:00 +0000)]
Merge rev. 1.7 (change mounting directory to match traditional FreeBSD
/etc/defaults/rc.conf) into 6.1.5.

16 years agoMerge the 6.0.10p1 -> 6.1.5 changes into our manpages.
David E. O'Brien [Wed, 5 Dec 2007 15:59:34 +0000 (15:59 +0000)]
Merge the 6.0.10p1 -> 6.1.5 changes into our manpages.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174294,
David E. O'Brien [Wed, 5 Dec 2007 15:48:03 +0000 (15:48 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174294,
which included commits to RCS files with non-trunk default branches.

16 years agoVirgin import of AMD (am-utils) v6.1.5
David E. O'Brien [Wed, 5 Dec 2007 15:48:03 +0000 (15:48 +0000)]
Virgin import of AMD (am-utils) v6.1.5

Sponsored by: Juniper Networks

16 years agoTemporarily disable amd for import.
David E. O'Brien [Wed, 5 Dec 2007 15:35:25 +0000 (15:35 +0000)]
Temporarily disable amd for import.

16 years ago- Puts default limits on 4k/9k and 16k zones for mbufs all based
Randall Stewart [Wed, 5 Dec 2007 15:29:44 +0000 (15:29 +0000)]
- Puts default limits on 4k/9k and 16k zones for mbufs all based
  on 1/2 of each of the successive limits tied to the limit for
  2k clusters.
- Adds real functionality in so that doing a sysctl to change these
  actually changes them :-)

MFC after: 1 week

16 years agoDelete from the vendor brach a few things that are dead on head.
David E. O'Brien [Wed, 5 Dec 2007 14:20:32 +0000 (14:20 +0000)]
Delete from the vendor brach a few things that are dead on head.
(they should have been removed here instead of on HEAD in the first place...)

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174289,
David E. O'Brien [Wed, 5 Dec 2007 14:20:32 +0000 (14:20 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174289,
which included commits to RCS files with non-trunk default branches.

16 years agoRevise the markup.
Ruslan Ermilov [Wed, 5 Dec 2007 12:29:26 +0000 (12:29 +0000)]
Revise the markup.

16 years agoBring in support for: Marvell Yukon 8039
Remko Lodder [Wed, 5 Dec 2007 09:41:58 +0000 (09:41 +0000)]
Bring in support for: Marvell Yukon 8039

PR: 118401
Submitted by: Skip Ford <skip at menantico dot com>
Approved by: imp (mentor), yongari
MFC After: 3 days

16 years agoUse curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,
Konstantin Belousov [Wed, 5 Dec 2007 09:34:04 +0000 (09:34 +0000)]
Use curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,
when applicable.

Aquire Giant slightly later for vnlru.

In the syncer, aquire the Giant only when a vnode belongs to the
non-MPsafe fs.

In both speedup_syncer() and syncer_shutdown(), remove the syncer thread from
the lbolt sleep queue after the syncer state is modified, not before.

Herded by: attilio
Tested by: Peter Holm
Reviewed by: ups
MFC after: 1 week

16 years agoStop serial console and gdb serial port from getting all screwed up.
Julian Elischer [Wed, 5 Dec 2007 05:16:56 +0000 (05:16 +0000)]
Stop serial console and gdb serial port from getting all screwed up.
PR: 65278
MFC in: 3 days
Submitted by: ups@

16 years agoIn nmount(), internally convert the mount option: "rdonly" to "ro".
Craig Rodrigues [Wed, 5 Dec 2007 03:26:14 +0000 (03:26 +0000)]
In nmount(), internally convert the mount option: "rdonly" to "ro".
This makes updates mounts such as:
 "mount -u -o rdonly" work more like, "mount -u -o ro".

References to "-o rdonly" were changed to "-o ro" in revision 1.60 of
the mount(8) man page,
but some people still like to use "-o rdonly" since it was documented
in earlier versions of FreeBSD.

Requested by: rwatson
MFC after: 1 week

16 years agoApply a workaround for the unkillable jail problem where some devices created
Andrew Thompson [Wed, 5 Dec 2007 01:22:03 +0000 (01:22 +0000)]
Apply a workaround for the unkillable jail problem where some devices created
within the jail are never freed. si_cred is only used by the MAC framework so
make the cred reference conditional on it being compiled in, this is not a fix
and will need to be reviewed for any new consumers of si_cred.

This will quell some user complaint when using jails with a default kernel.

Reviewed by: rwatson
MFC after: 3 days

16 years agoSupport monitor mode where the frame is discarded after bpf and stats processing.
Andrew Thompson [Wed, 5 Dec 2007 00:42:28 +0000 (00:42 +0000)]
Support monitor mode where the frame is discarded after bpf and stats processing.

16 years agoRemove obsolete comment on a way of getting kernel configuration file from
Wojciech A. Koszek [Tue, 4 Dec 2007 21:01:55 +0000 (21:01 +0000)]
Remove obsolete comment on a way of getting kernel configuration file from
INCLUDE_CONFIG_FILE. Make a user to look at what config(8) actually does,
and how can one fetch actual configuration file.

Reported by: many
Reviewed by: cognet (mentor)
Approved by: cognet (mentor)

16 years agoCast address of 'bssid' to uint8_t since printf() expects to get unsigned
Wojciech A. Koszek [Tue, 4 Dec 2007 20:48:32 +0000 (20:48 +0000)]
Cast address of 'bssid' to uint8_t since printf() expects to get unsigned
argument in %6D case.

Submitted by: thompsa
Compile-tested: wkoszek
Reviewed by: cognet (mentor)
Approved by: cognet (mentor)

16 years agoCast 'data' to 'u_char', as printf() requires this type to be unsigned. This
Wojciech A. Koszek [Tue, 4 Dec 2007 20:33:58 +0000 (20:33 +0000)]
Cast 'data' to 'u_char', as printf() requires this type to be unsigned. This
is what gcc3 complains about.

Without this change, it's impossible to build the kernel with gcc3.

Tested by: cognet@ (mentor)
Approved by: cognet@ (mentor)

16 years agoRemove redundant checks for msgsnd(3) and msgrcv(3).
Jung-uk Kim [Tue, 4 Dec 2007 20:25:41 +0000 (20:25 +0000)]
Remove redundant checks for msgsnd(3) and msgrcv(3).
COMPAT_IA32 (implicitly) requires SYSVSEM, SYSVSHM and SYSVMSG in kernel.

Pointed out by: jhb

16 years agoExplicitly initialize 'ret' to 0'. It lets one to build tmpfs from the
Wojciech A. Koszek [Tue, 4 Dec 2007 20:20:59 +0000 (20:20 +0000)]
Explicitly initialize 'ret' to 0'. It lets one to build tmpfs from the
latest source tree with older compiler--gcc3.

Approved by: cognet (mentor)

16 years ago- More fixes for the non-blocking msg send, had the skip of the pre-block
Randall Stewart [Tue, 4 Dec 2007 20:20:42 +0000 (20:20 +0000)]
- More fixes for the non-blocking msg send, had the skip of the pre-block
  test incorrect.
- Fix the initial buf calculation to be more friendly, calc is the same
  but we use different variable to make it easier amongst the different
  code versions.

MFC after: 1 week

16 years agoExplicitly initialize 'error' to 0 (two places). It lets one to build tmpfs
Wojciech A. Koszek [Tue, 4 Dec 2007 20:14:15 +0000 (20:14 +0000)]
Explicitly initialize 'error' to 0 (two places). It lets one to build tmpfs
from the latest source tree with older compiler--gcc3.

Reviewed by: kib@ (on freebsd-current@)
Approved by: cognet@ (mentor)

16 years agoIncrement __FreeBSD_version on account of changes to the jumbo frames
Alan Cox [Tue, 4 Dec 2007 17:57:41 +0000 (17:57 +0000)]
Increment __FreeBSD_version on account of changes to the jumbo frames
allocator.  (See revision 1.35 of kern/kern_mbuf.c.)

Requested by: Andrew Gallatin

16 years ago- Opps, signedness issue with one of the new var's (this is an issue
Randall Stewart [Tue, 4 Dec 2007 14:47:39 +0000 (14:47 +0000)]
- Opps, signedness issue with one of the new var's (this is an issue
  mainly in apple but with the right -Wall it could effect us too).

MFC after: 1 week

16 years ago- Found a problem in non-blocking sends. When
Randall Stewart [Tue, 4 Dec 2007 14:41:48 +0000 (14:41 +0000)]
- Found a problem in non-blocking sends. When
  sending, once the locks are all unlocked to
  do the copy's in, its possible that other
  events could then raise the number of bytes
  outstanding pushing it so not all the message
  would fit. This would then cause us to send
  only part of the message. This fix makes it
  so we keep a "reserved" amount that can be
  kept in mind when making calculations to send.
- rcv msg args with a NULL/NULL for to/tolen will return an error incorrectly
  for the 1-2-1 model.
- We were not doing 0 len return correctly and not setting cantrcv more
  correctly. Previouly we "fixed" this area by taking out the socantrcv
  since we then could not get the data out. The correct rix is to still
  flag the socket but alow a by-pass route to continue to read until
  all data is consumed.

MFC after: 1 week

16 years agoFor the sake of convenience, print the name of the network interface
Yaroslav Tykhiy [Tue, 4 Dec 2007 13:01:12 +0000 (13:01 +0000)]
For the sake of convenience, print the name of the network interface
IPv4 address duplication was detected on.

Idea by: marck

16 years ago- Explicitly verify if all needed libs were found by ldd(1). Do so
Yaroslav Tykhiy [Tue, 4 Dec 2007 12:55:27 +0000 (12:55 +0000)]
- Explicitly verify if all needed libs were found by ldd(1).  Do so
  through scanning its output as ldd(1) returns a non-zero status only
  for really abnormal conditions such as an improper file format.
  Now cp(1) won't get bogus "not" and "found" arguments if a lib
  is missing. [1]

- Don't guess if an element of a complex pipeline is assigned to the main
  shell or a sub-shell.  Namely use stdio, not vars, to pass lists out from
  loops.  If using vars, there's the risk that a loop will run in a sub-shell
  and the list won't make it to the main shell.  It appears that braces and
  parens give only limited control over the issue while stdio always works
  as intended.  Apply this solution to both $progs and $libs for consistency,
  although I've failed to go without it only in the $libs part.

Requested by: emaste [1]

16 years agoFix the ABI change of the signal delivered on the access to the page
Konstantin Belousov [Tue, 4 Dec 2007 12:33:03 +0000 (12:33 +0000)]
Fix the ABI change of the signal delivered on the access to the page
with insufficient protection mode.

For the i386 and amd64, create the tunable, machdep.prot_fault_translation,
with the following behaviour:
0 = autodetect the signal to be delivered on KERN_PROTECTION_FAILURE
    from vm_fault based on the ELF OSABI note:
no note or __FreeBSD_version < 700004 - SIGBUS/BUS_PAGE_FAULT
note, and __FreeBSD_version >= 700004 - SIGSEGV/SEGV_ACCERR
1 = always SIGBUS/BUS_PAGE_FAULT
2 = always SIGSEGV/SEGV_ACCERR

This would do mostly automatic correction of ABI breakage, with the exception
of the untaged binaries for 7-CURRENT/RELENG_7 before the note is fixed. For
them, sysctl would allow to run the binary with manual settings.

Discussed with: portmgr (kris)
PR: kern/118304
MFC after: 3 days

16 years agoImplement fetching of the __FreeBSD_version from the ELF ABI-tag note.
Konstantin Belousov [Tue, 4 Dec 2007 12:28:07 +0000 (12:28 +0000)]
Implement fetching of the __FreeBSD_version from the ELF ABI-tag note.
The value is read into the p_osrel member of the struct proc. p_osrel
is set to 0 for the binaries without the note.

MFC after: 3 days

16 years agoCheck for the program headers alignment of the ELF images before
Konstantin Belousov [Tue, 4 Dec 2007 12:21:27 +0000 (12:21 +0000)]
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.

Reviewed by: marcel, marius (also tested on sparc64, thanks !)
MFC after: 3 days

16 years agoThe __used (== __attribute__((__used)) ) silences the warning produced
Konstantin Belousov [Tue, 4 Dec 2007 12:18:43 +0000 (12:18 +0000)]
The __used (== __attribute__((__used)) ) silences the warning produced
by unreferenced symbol. Apply __used instead of rev. 1.5.

Requested by: kan

16 years agoCorrect an error under COUNT_IPIS within pmap_lazyfix_action(): Increment
Alan Cox [Tue, 4 Dec 2007 09:06:08 +0000 (09:06 +0000)]
Correct an error under COUNT_IPIS within pmap_lazyfix_action(): Increment
the counter that the pointer refers to, not the pointer.

MFC after: 3 days

16 years agoStyle change: Use NULL rather than 0 where appropriate.
Alan Cox [Tue, 4 Dec 2007 08:17:04 +0000 (08:17 +0000)]
Style change: Use NULL rather than 0 where appropriate.

16 years agoFix SACK negotiation that was broken in rev 1.105.
Mike Silbersack [Tue, 4 Dec 2007 07:11:13 +0000 (07:11 +0000)]
Fix SACK negotiation that was broken in rev 1.105.

Before this fix, FreeBSD would negotiate SACK on outgoing
connections, but would always fail to negotiate it on incoming
connections.

Discovered by: James Healy and Lawrence Stewart
Submitted by: James Healy and Lawrence Stewart
MFC after: 3 days

16 years agoIntroduce an UMA backend page allocator for the jumbo frame zones that
Alan Cox [Tue, 4 Dec 2007 07:06:08 +0000 (07:06 +0000)]
Introduce an UMA backend page allocator for the jumbo frame zones that
allocates physically contiguous memory.

MFC after: 3 months
Requested and reviewed by: Kip Macy
Tested by: Andrew Gallatin and Pyun YongHyeon

16 years agoIf a Zip entry has the "length at end" flag set, then just ignore
Tim Kientzle [Tue, 4 Dec 2007 06:32:12 +0000 (06:32 +0000)]
If a Zip entry has the "length at end" flag set, then just ignore
a length field of zero; it does not mean the body is empty.

Thanks to: Lapo Luchini for sending me a JAR archive that demonstrated this bug
MFC after: 3 days

16 years agoupdate copyrights
Sam Leffler [Tue, 4 Dec 2007 05:52:58 +0000 (05:52 +0000)]
update copyrights

16 years agoupdate copyright's
Sam Leffler [Tue, 4 Dec 2007 05:52:01 +0000 (05:52 +0000)]
update copyright's

16 years agoWhen compiled with the combination of flags used to build crunched
Ken Smith [Tue, 4 Dec 2007 02:22:35 +0000 (02:22 +0000)]
When compiled with the combination of flags used to build crunched
binaries for the fixit floppy bin/ed/main.c causes a gcc warning
message about argc possibly being clobbered by longjmp or vfork.
We have threatened to ditch floppies for 8.0 but I don't want to
do quite that much rototilling yet so for now turn off -Werror while
building ed (and everything else) for the fixit floppy.

Thanks to jb for pointing out NO_WERROR.

16 years agoMFV of tzdata2007j
Edwin Groothuis [Tue, 4 Dec 2007 00:30:07 +0000 (00:30 +0000)]
MFV of tzdata2007j

Timezone data changes in this import:
- Add America/St_Barthelemy (BL) and America/Marigot (MF)
- Venezuela will move to -4:30 on 9 December 2007 instead of 31 December 2007

MFCs will be done after the code freezes have stopped.

16 years agoUpdate with data from Newsletter VI-1 2007-09-21:
Edwin Groothuis [Tue, 4 Dec 2007 00:20:57 +0000 (00:20 +0000)]
Update with data from Newsletter VI-1 2007-09-21:

    Added SAINT BARTHELEMY (BL) and SAINT MARTIN (MF).

This allows an MFV of src/share/zoneinfo which uses these two new codes.

16 years agoImplement functions required by some ndis drivers.
Andrew Thompson [Mon, 3 Dec 2007 23:43:58 +0000 (23:43 +0000)]
Implement functions required by some ndis drivers.

 NdisIMCopySendPerPacketInfo [1]
 KeQuerySystemTime [1]
 KeTickCount [1]
 strncat [1]
 KeBugCheckEx

Submitted by: Marcin Simonides [1]

16 years agoRemove compatibilty defines to simplify reading the code, this is around 10% of
Andrew Thompson [Mon, 3 Dec 2007 21:51:28 +0000 (21:51 +0000)]
Remove compatibilty defines to simplify reading the code, this is around 10% of
the total LOC. These are mostly for the 6.x branch and it will be easier to
cherrypick any changes (if at all).

16 years agoDisplay per-thread command line in TDNAME field for -k and -t; if
Robert Watson [Mon, 3 Dec 2007 21:21:15 +0000 (21:21 +0000)]
Display per-thread command line in TDNAME field for -k and -t; if
no per-thread name is available or the name is identical to the
process name, display "-" instead.  Very slightly shrink the COMM
entry to make a bit more room, although this doesn't help with
stack traces much.

Suggested by: thompsa

16 years agoMake sure we set the locale to "C" when testing thousands' separator
David Schultz [Mon, 3 Dec 2007 17:48:55 +0000 (17:48 +0000)]
Make sure we set the locale to "C" when testing thousands' separator
support, rather than just "", which refers to the system default based
on the environment.

16 years agoMerge BIND 9.4.2 into main chunk.
Hajimu UMEMOTO [Mon, 3 Dec 2007 15:13:44 +0000 (15:13 +0000)]
Merge BIND 9.4.2 into main chunk.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174223,
Hajimu UMEMOTO [Mon, 3 Dec 2007 15:07:58 +0000 (15:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174223,
which included commits to RCS files with non-trunk default branches.

16 years agoVendor import of BIND 9.4.2
Hajimu UMEMOTO [Mon, 3 Dec 2007 15:07:58 +0000 (15:07 +0000)]
Vendor import of BIND 9.4.2

16 years agoWhen a symbol name can't be resolved, return "??" as the name, rather
Robert Watson [Mon, 3 Dec 2007 14:44:35 +0000 (14:44 +0000)]
When a symbol name can't be resolved, return "??" as the name, rather
than "Unknown func", in order to avoid putting spaces in what ideally
is a string separated by white space.

16 years agoSince jb@ fixed the type of dd_lock in <dirent.h>, these casts are no
Dag-Erling Smørgrav [Mon, 3 Dec 2007 14:33:51 +0000 (14:33 +0000)]
Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are no
longer required.

16 years agoFix audio playback aborted with SNDCTL_DSP_SETTRIGGER, affecting
Ariff Abdullah [Mon, 3 Dec 2007 14:26:56 +0000 (14:26 +0000)]
Fix audio playback aborted with SNDCTL_DSP_SETTRIGGER, affecting
PortAudio version 19.

PR: kern/118395
Submitted by: Henrik Gulbrandsen <henrik at gulbra dot net>
MFC after: 3 days

16 years agoDo not allow the SNPSTTY ioctl for the snoop device that has a tty
Konstantin Belousov [Mon, 3 Dec 2007 14:02:27 +0000 (14:02 +0000)]
Do not allow the SNPSTTY ioctl for the snoop device that has a tty
attached. Otherwise, the snp->snp_tty would be overwritten, while the
tty line discipline still set to the snpdisc. Then snplwrite() causes
panic because ttytosnp() cannot find the snp.

MFC after: 1 week

16 years agoRestore the branding of the ELF executables. The structure was optimized out.
Konstantin Belousov [Mon, 3 Dec 2007 13:21:21 +0000 (13:21 +0000)]
Restore the branding of the ELF executables. The structure was optimized out.

MFC after: 3 days

16 years agoCatch up pc98 for i386 stack(9) changes:
Robert Watson [Mon, 3 Dec 2007 11:38:28 +0000 (11:38 +0000)]
Catch up pc98 for i386 stack(9) changes:

  Add stub stack.h for pc98 that includes i386 pc98.

  Add i386 stack_machdep.c to files.pc98.

Spotted by: tinderbox

16 years agoAdd callchain parsing to -lpmc.
Joseph Koshy [Mon, 3 Dec 2007 11:15:46 +0000 (11:15 +0000)]
Add callchain parsing to -lpmc.

Sponsored by: FreeBSD Foundation and Google Inc.

16 years agoAdd userland definitions for parsing callchain records.
Joseph Koshy [Mon, 3 Dec 2007 11:11:08 +0000 (11:11 +0000)]
Add userland definitions for parsing callchain records.

Sponsored by: FreeBSD Foundation and Google Inc.

16 years agoReplace a spurious cross-reference to hwpmc(4) with correct text.
Joseph Koshy [Mon, 3 Dec 2007 10:59:23 +0000 (10:59 +0000)]
Replace a spurious cross-reference to hwpmc(4) with correct text.

16 years agozic(8) should exit the loop when the end of the string is reached due
Kevin Lo [Mon, 3 Dec 2007 10:45:44 +0000 (10:45 +0000)]
zic(8) should exit the loop when the end of the string is reached due
to the call to error(). The problem found by doing fuzz testing.

MFC after: 3 days

16 years agoWhen printing the contents of a HWPMC log in human readable form:
Joseph Koshy [Mon, 3 Dec 2007 10:29:49 +0000 (10:29 +0000)]
When printing the contents of a HWPMC log in human readable form:
- Print a warning if the version number recorded in the log is not what the
  tool expects.
- Print a tidier error message when an unrecognized event is encountered
  in the log.
- Don't print a spurious 'Unknown error: 0' when exiting after a parse
  error.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174206,
Doug Barton [Mon, 3 Dec 2007 08:26:34 +0000 (08:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174206,
which included commits to RCS files with non-trunk default branches.

16 years agoUpdate this file so that BIND on ARM can actually work. I quote:
Doug Barton [Mon, 3 Dec 2007 08:26:34 +0000 (08:26 +0000)]
Update this file so that BIND on ARM can actually work. I quote:

The problem was, isc_atomic_cmpxchg() is almost like our
atomic_cmpset_32(), except it expects the old value to be
returned, whereas our atomic_cmpset_32 returns 1 on success,
or 0 on failure. So I re-implemented something suitable.

Submitted by: cognet
Reviewed by: bsdimp

16 years agoTests for rounding, and for the leading 0's bug.
David Schultz [Mon, 3 Dec 2007 07:18:47 +0000 (07:18 +0000)]
Tests for rounding, and for the leading 0's bug.

16 years agoIn scanf, round according to the current rounding mode.
David Schultz [Mon, 3 Dec 2007 07:17:33 +0000 (07:17 +0000)]
In scanf, round according to the current rounding mode.

16 years agoAlways honor promiscuous flag prior to programming Rx multicast
Pyun YongHyeon [Mon, 3 Dec 2007 01:28:08 +0000 (01:28 +0000)]
Always honor promiscuous flag prior to programming Rx multicast
filter. This fixes a regression introduced in rev 1.89.

PR: 114632
MFC after: 3 days

16 years agoConnect procstat(1) to the build.
Robert Watson [Sun, 2 Dec 2007 23:32:03 +0000 (23:32 +0000)]
Connect procstat(1) to the build.

16 years agoAdd procstat(1), a process inspection utility. This provides both some
Robert Watson [Sun, 2 Dec 2007 23:31:45 +0000 (23:31 +0000)]
Add procstat(1), a process inspection utility.  This provides both some
of the missing functionality from procfs(4) and new functionality for
monitoring and debugging specific processes.  procstat(1) operates in
the following modes:

  -b  Display binary information for the process.
  -c  Display command line arguments for the process.
  -f  Display file descriptor information for the process.
  -k  Display the stacks of kernel threads in the process.
  -s  Display security credential information for the process.
  -t  Display thread information for the process.
  -v  Display virtual memory mappings for the process.

Further revision and modes are expected.

Testing, ideas, etc: cognet, sam, Skip Ford <skip at menantico dot com>
Wesley Shields <wxs at atarininja dot org>

16 years agoOne more glue update for BIND 9.4.2
Doug Barton [Sun, 2 Dec 2007 22:21:30 +0000 (22:21 +0000)]
One more glue update for BIND 9.4.2

16 years agoAdd another new sysctl in support of the forthcoming procstat(1) to
Robert Watson [Sun, 2 Dec 2007 21:52:18 +0000 (21:52 +0000)]
Add another new sysctl in support of the forthcoming procstat(1) to
support its -k argument:

kern.proc.kstack - dump the kernel stack of a process, if debugging
  is permitted.

This sysctl is present if either "options DDB" or "options STACK" is
compiled into the kernel.  Having support for tracing the kernel
stacks of processes from user space makes it much easier to debug
(or understand) specific wmesg's while avoiding the need to enter
DDB in order to determine the path by which a process came to be
blocked on a particular wait channel or lock.

16 years agoRemove duplicate $FreeBSD$ tag.
Robert Watson [Sun, 2 Dec 2007 21:07:49 +0000 (21:07 +0000)]
Remove duplicate $FreeBSD$ tag.

16 years agoBreak out stack(9) from ddb(4):
Robert Watson [Sun, 2 Dec 2007 20:40:35 +0000 (20:40 +0000)]
Break out stack(9) from ddb(4):

- Introduce per-architecture stack_machdep.c to hold stack_save(9).
- Introduce per-architecture machine/stack.h to capture any common
  definitions required between db_trace.c and stack_machdep.c.
- Add new kernel option "options STACK"; we will build in stack(9) if it is
  defined, or also if "options DDB" is defined to provide compatibility
  with existing users of stack(9).

Add new stack_save_td(9) function, which allows the capture of a stacktrace
of another thread rather than the current thread, which the existing
stack_save(9) was limited to.  It requires that the thread be neither
swapped out nor running, which is the responsibility of the consumer to
enforce.

Update stack(9) man page.

Build tested: amd64, arm, i386, ia64, powerpc, sparc64, sun4v
Runtime tested: amd64 (rwatson), arm (cognet), i386 (rwatson)

16 years agoProvide unqiue malloc types instead of using M_DEVBUF.
Scott Long [Sun, 2 Dec 2007 19:54:45 +0000 (19:54 +0000)]
Provide unqiue malloc types instead of using M_DEVBUF.

16 years agoRefactor completion handlers so that they can be combined into a single
Scott Long [Sun, 2 Dec 2007 19:50:01 +0000 (19:50 +0000)]
Refactor completion handlers so that they can be combined into a single
function.  Add missing locking.

16 years agoThese files are not part of the distribution.
Doug Barton [Sun, 2 Dec 2007 19:21:31 +0000 (19:21 +0000)]
These files are not part of the distribution.

Brought to you by: PEBCAK

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174190,
Doug Barton [Sun, 2 Dec 2007 19:17:26 +0000 (19:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174190,
which included commits to RCS files with non-trunk default branches.

16 years agoThis file is no longer in BIND 9.4.2
Doug Barton [Sun, 2 Dec 2007 19:17:26 +0000 (19:17 +0000)]
This file is no longer in BIND 9.4.2

16 years agoUpdate glue for BIND 9.4.2
Doug Barton [Sun, 2 Dec 2007 19:13:58 +0000 (19:13 +0000)]
Update glue for BIND 9.4.2

16 years agoVendor import of BIND 9.4.2
Doug Barton [Sun, 2 Dec 2007 19:10:41 +0000 (19:10 +0000)]
Vendor import of BIND 9.4.2

16 years agoThis commit was generated by cvs2svn to compensate for changes in r174187,
Doug Barton [Sun, 2 Dec 2007 19:10:41 +0000 (19:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r174187,
which included commits to RCS files with non-trunk default branches.

16 years agoMake a pass at style.9 compliance
Scott Long [Sun, 2 Dec 2007 18:48:17 +0000 (18:48 +0000)]
Make a pass at style.9 compliance

16 years agoFix a typo that was hidden by AMR_DEBUG.
Scott Long [Sun, 2 Dec 2007 18:47:31 +0000 (18:47 +0000)]
Fix a typo that was hidden by AMR_DEBUG.

16 years agoFix printf format bugs that where hidden by AMR_DEBUG.
Scott Long [Sun, 2 Dec 2007 18:45:37 +0000 (18:45 +0000)]
Fix printf format bugs that where hidden by AMR_DEBUG.

16 years agoThe AR_SCSI_PASSTHROUGH conditional no longer exists, remove it from the
Scott Long [Sun, 2 Dec 2007 18:39:38 +0000 (18:39 +0000)]
The AR_SCSI_PASSTHROUGH conditional no longer exists, remove it from the
makefile.

16 years agoHeadphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.
Ariff Abdullah [Sun, 2 Dec 2007 16:38:28 +0000 (16:38 +0000)]
Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.

Tested by: Liyu, She

16 years agoFix a potential bug in pmap :
Olivier Houchard [Sun, 2 Dec 2007 15:26:30 +0000 (15:26 +0000)]
Fix a potential bug in pmap :
We used to allocate the domains 0-14 for userland, and leave the domain 15
for the kernel. Now supersections requires the use of domain 0, so we
switched the kernel domain to 0, and use 1-15 for userland.
How it's done currently, the kernel domain could be allocated for a
userland process.
So switch back to the previous way we did things, set the first available
domain to 0, and just add 1 to get the real domain number in the struct pmap.

Reported by: Mark Tinguely <tinguely AT casselton DOT net>
MFC After: 3 days