]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoIn function pthread_condattr_getpshared, store result correctly.
David Xu [Fri, 1 Aug 2008 01:21:49 +0000 (01:21 +0000)]
In function pthread_condattr_getpshared, store result correctly.

PR: kern/126128

15 years agoWe no longer have any local changes here.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:19:13 +0000 (01:19 +0000)]
We no longer have any local changes here.

15 years agoConsistently set svn:eol-style.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:13:41 +0000 (01:13 +0000)]
Consistently set svn:eol-style.

15 years agoTag expansion is no longer needed (svn handles them correctly).
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:05:27 +0000 (01:05 +0000)]
Tag expansion is no longer needed (svn handles them correctly).
Add svn command to diff against vendor branch.

15 years agoThis is no longer needed.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:04:52 +0000 (01:04 +0000)]
This is no longer needed.

15 years agoCleanup.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 01:00:34 +0000 (01:00 +0000)]
Cleanup.

15 years agoImplement ratelimiting for debug messages. For now, allow at most
Maksim Yevmenkin [Fri, 1 Aug 2008 00:36:43 +0000 (00:36 +0000)]
Implement ratelimiting for debug messages. For now, allow at most
one message per second. In the future might add a sysctl knob for
each socket family to fine tune this.

MFC after: 1 week

15 years agoUgh. Set svn:mergeinfo correctly.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 00:34:37 +0000 (00:34 +0000)]
Ugh.  Set svn:mergeinfo correctly.

15 years agoCatch up with reality.
Dag-Erling Smørgrav [Fri, 1 Aug 2008 00:28:50 +0000 (00:28 +0000)]
Catch up with reality.

15 years agoRevert an old hack I put in to replace S/Key with OPIE. We haven't used
Dag-Erling Smørgrav [Fri, 1 Aug 2008 00:27:48 +0000 (00:27 +0000)]
Revert an old hack I put in to replace S/Key with OPIE.  We haven't used
that code in ages - we use pam_opie(8) instead - so this is a NOP.

15 years agoIncrease maximum input queue size limit for raw Bluetooth HCI sockets.
Maksim Yevmenkin [Fri, 1 Aug 2008 00:16:40 +0000 (00:16 +0000)]
Increase maximum input queue size limit for raw Bluetooth HCI sockets.

MFC after: 3 days

15 years agoFix locking bug, i.e. lock "wildcard" matched pcb before return.
Maksim Yevmenkin [Fri, 1 Aug 2008 00:13:32 +0000 (00:13 +0000)]
Fix locking bug, i.e. lock "wildcard" matched pcb before return.

15 years agoAdd missing #include for strlen()
Dag-Erling Smørgrav [Thu, 31 Jul 2008 23:33:26 +0000 (23:33 +0000)]
Add missing #include for strlen()

15 years agounset TARGET_CPUTYPE and TARGET_BIG_ENDIAN when building the kernel
Sam Leffler [Thu, 31 Jul 2008 23:04:00 +0000 (23:04 +0000)]
unset TARGET_CPUTYPE and TARGET_BIG_ENDIAN when building the kernel
to silence compiler complaints when cross-building

Reviewed by: phk
MFC after: 2 weeks

15 years agoEnhance pmap_change_attr(). Specifically, avoid 2MB page demotions, cache
Alan Cox [Thu, 31 Jul 2008 22:45:28 +0000 (22:45 +0000)]
Enhance pmap_change_attr().  Specifically, avoid 2MB page demotions, cache
mode changes, and cache and TLB invalidation when some or all of the
specified range is already mapped with the specified cache mode.

Submitted by: Magesh Dhasayyan

15 years agoAdd some tests for acos*(), asin*(), atan*(), and atan2*().
David Schultz [Thu, 31 Jul 2008 22:43:38 +0000 (22:43 +0000)]
Add some tests for acos*(), asin*(), atan*(), and atan2*().

15 years agoAdd implementations of acosl(), asinl(), atanl(), atan2l(),
David Schultz [Thu, 31 Jul 2008 22:41:26 +0000 (22:41 +0000)]
Add implementations of acosl(), asinl(), atanl(), atan2l(),
and cargl().

Reviewed by: bde
sparc64 testing resources from: remko

15 years agoOops, restore the recent changes to make startup messages quieter.
John Baldwin [Thu, 31 Jul 2008 22:13:14 +0000 (22:13 +0000)]
Oops, restore the recent changes to make startup messages quieter.

15 years agoParse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.conf
John Baldwin [Thu, 31 Jul 2008 21:57:35 +0000 (21:57 +0000)]
Parse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.conf
if it exists.  This mirrors similar behavior for /boot/loader.conf and
/etc/rc.conf.

Obtained from: Yahoo!
MFC after: 1 week

15 years agoIn mac_bsdextended's auditctl and acct policy access control checks,
Robert Watson [Thu, 31 Jul 2008 20:49:12 +0000 (20:49 +0000)]
In mac_bsdextended's auditctl and acct policy access control checks,
return success if the passed vnode pointer is NULL (rather than
panicking).  This can occur if either audit or accounting are
disabled while the policy is running.

Since the swapoff control has no real relevance to this policy,
which is concerned about intent to write rather than water under the
bridge, remove it.

PR:             kern/126100
Reported by:    Alan Amesbury <amesbury at umn dot edu>
MFC after:      3 days

15 years agoremove socketvar.h, add more selective includes
Kip Macy [Thu, 31 Jul 2008 20:28:58 +0000 (20:28 +0000)]
remove socketvar.h, add more selective includes

15 years agomove sockbuf locking macros in to sockbuf.h
Kip Macy [Thu, 31 Jul 2008 20:27:50 +0000 (20:27 +0000)]
move sockbuf locking macros in to sockbuf.h

15 years agoAdd thr_pread_{int,long,ptr} and thr_pwrite_{int,long,ptr} to
Marcel Moolenaar [Thu, 31 Jul 2008 20:25:52 +0000 (20:25 +0000)]
Add thr_pread_{int,long,ptr} and thr_pwrite_{int,long,ptr} to
help abstract the sizes and endianness of the primary types of
the target.  These currently use the native characteristics.

15 years agoSet WARNS=1.
David Schultz [Thu, 31 Jul 2008 20:11:37 +0000 (20:11 +0000)]
Set WARNS=1.

I believe I've committed all the bits necessary to make this compile
on all supported architectures. :crosses fingers:

15 years agoThe high part of the mantissa is 64 bits on sparc64.
David Schultz [Thu, 31 Jul 2008 20:09:47 +0000 (20:09 +0000)]
The high part of the mantissa is 64 bits on sparc64.

15 years agoAs in other parts of libm, mark a few constants as volatile to prevent
David Schultz [Thu, 31 Jul 2008 19:57:50 +0000 (19:57 +0000)]
As in other parts of libm, mark a few constants as volatile to prevent
spurious optimizations. gcc doesn't support FENV_ACCESS, so when it
folds constants, it assumes that the rounding mode is always the
default and floating point exceptions never matter.

15 years agoTry to make this code slightly less painful to read.
Dag-Erling Smørgrav [Thu, 31 Jul 2008 17:15:21 +0000 (17:15 +0000)]
Try to make this code slightly less painful to read.

15 years agoCurrently, BSM audit pathname token generation for chrooted or jailed
Christian S.J. Peron [Thu, 31 Jul 2008 16:57:41 +0000 (16:57 +0000)]
Currently, BSM audit pathname token generation for chrooted or jailed
processes are not producing absolute pathname tokens.  It is required
that audited pathnames are generated relative to the global root mount
point.  This modification changes our implementation of audit_canon_path(9)
and introduces a new function: vn_fullpath_global(9) which performs a
vnode -> pathname translation relative to the global mount point based
on the contents of the name cache.  Much like vn_fullpath,
vn_fullpath_global is a wrapper function which called vn_fullpath1.

Further, the string parsing routines have been converted to use the
sbuf(9) framework.  This change also removes the conditional acquisition
of Giant, since the vn_fullpath1 method will not dip into file system
dependent code.

The vnode locking was modified to use vhold()/vdrop() instead the vref()
and vrele().  This will modify the hold count instead of modifying the
user count.  This makes more sense since it's the kernel that requires
the reference to the vnode.  This also makes sure that the vnode does not
get recycled we hold the reference to it. [1]

Discussed with: rwatson
Reviewed by: kib [1]
MFC after: 2 weeks

15 years agoCleanup for WARNS 3.
Marcel Moolenaar [Thu, 31 Jul 2008 16:26:58 +0000 (16:26 +0000)]
Cleanup for WARNS 3.

15 years agoMFp4 (//depot/projects/tcpecn/):
Rui Paulo [Thu, 31 Jul 2008 15:10:09 +0000 (15:10 +0000)]
MFp4 (//depot/projects/tcpecn/):

  TCP ECN support. Merge of my GSoC 2006 work for NetBSD.
  TCP ECN is defined in RFC 3168.

Partly reviewed by: dwmalone, silby
Obtained from: NetBSD

15 years agoAdds support for the SCTP_PORT_REUSE option
Randall Stewart [Thu, 31 Jul 2008 11:08:30 +0000 (11:08 +0000)]
Adds support for the SCTP_PORT_REUSE option
Fixes a refcount bug found in the process

Obtained from: With the help of Michael Tuexen

15 years agoFurther synchronization of copyrights, licenses, white space, etc from
Robert Watson [Thu, 31 Jul 2008 09:54:35 +0000 (09:54 +0000)]
Further synchronization of copyrights, licenses, white space, etc from
Apple and from the OpenBSM vendor tree.

Obtained from: Apple Inc., TrustedBSD Project
MFC after: 3 days

15 years agoCleanup for WARNS 2.
Marcel Moolenaar [Thu, 31 Jul 2008 05:25:52 +0000 (05:25 +0000)]
Cleanup for WARNS 2.

15 years agoEliminate recomputation of the PDE by pmap_pde_attr().
Alan Cox [Thu, 31 Jul 2008 04:42:42 +0000 (04:42 +0000)]
Eliminate recomputation of the PDE by pmap_pde_attr().

15 years agoFix LINT
Maksim Yevmenkin [Thu, 31 Jul 2008 03:51:53 +0000 (03:51 +0000)]
Fix LINT

MFC after: 3 months

15 years agoData type fix
Jack F Vogel [Thu, 31 Jul 2008 02:22:53 +0000 (02:22 +0000)]
Data type fix

15 years agoUnbreak the build by creating opt_nfs.h
Paul Saab [Thu, 31 Jul 2008 02:13:36 +0000 (02:13 +0000)]
Unbreak the build by creating opt_nfs.h

15 years agoUnbreak the build by including sys/socketvar.h
Paul Saab [Thu, 31 Jul 2008 01:52:04 +0000 (01:52 +0000)]
Unbreak the build by including sys/socketvar.h

15 years agoAdd a -q[uiet] flag for scripts.
David E. O'Brien [Thu, 31 Jul 2008 00:55:29 +0000 (00:55 +0000)]
Add a -q[uiet] flag for scripts.

15 years agoInclude netinet/tcp_lro.h, unbreak the build
Paul Saab [Wed, 30 Jul 2008 23:54:23 +0000 (23:54 +0000)]
Include netinet/tcp_lro.h, unbreak the build

15 years agoHook up Bluetooth SCO sockets code to the build
Maksim Yevmenkin [Wed, 30 Jul 2008 22:42:17 +0000 (22:42 +0000)]
Hook up Bluetooth SCO sockets code to the build

MFC after: 3 months

15 years agoIntroduce support for Bluetooth SCO sockets. This is based on older
Maksim Yevmenkin [Wed, 30 Jul 2008 22:41:23 +0000 (22:41 +0000)]
Introduce support for Bluetooth SCO sockets. This is based on older
code that was revisted.

MFC after: 3 months

15 years agoAdd igb driver to the default kernel
Jack F Vogel [Wed, 30 Jul 2008 22:30:49 +0000 (22:30 +0000)]
Add igb driver to the default kernel

15 years agoAdd igb to the default kernel
Jack F Vogel [Wed, 30 Jul 2008 22:27:38 +0000 (22:27 +0000)]
Add igb to the default kernel

MFC after:ASAP

15 years agoChange Makefile to reflect new directory structure
Jack F Vogel [Wed, 30 Jul 2008 22:06:38 +0000 (22:06 +0000)]
Change Makefile to reflect new directory structure

MFC after:ASAP

15 years agoChange to build module with new directory tree
Jack F Vogel [Wed, 30 Jul 2008 22:05:06 +0000 (22:05 +0000)]
Change to build module with new directory tree

MFC after:ASAP

15 years agoAlter kernel build to work with new dev/e1000 structure.
Jack F Vogel [Wed, 30 Jul 2008 22:01:32 +0000 (22:01 +0000)]
Alter kernel build to work with new dev/e1000 structure.
This makes both em and igb, or either alone build and
work in the static kernel.

MFC after:ASAP

15 years agoMerge of the source for igb and em into dev/e1000, this
Jack F Vogel [Wed, 30 Jul 2008 21:56:53 +0000 (21:56 +0000)]
Merge of the source for igb and em into dev/e1000, this
proved to be necessary to make the static drivers work
in EITHER/OR or BOTH configurations. Modules will still
build in sys/modules/igb or em as before.

This also updates the igb driver for support for the 82576
adapter, adds shared code fixes, and etc....

MFC after: ASAP

15 years agoOne more whitespace nit.
John Baldwin [Wed, 30 Jul 2008 21:23:32 +0000 (21:23 +0000)]
One more whitespace nit.

15 years agoAdd a regression test for r181017.
Stefan Farfeleder [Wed, 30 Jul 2008 21:18:52 +0000 (21:18 +0000)]
Add a regression test for r181017.

Submitted by: simon

15 years agoAdd POSIX -p flag to make(1).
Ed Schouten [Wed, 30 Jul 2008 21:18:38 +0000 (21:18 +0000)]
Add POSIX -p flag to make(1).

This article [1] describes the -p flag for make(1):

Write to standard output the complete set of macro definitions and
target descriptions. The output format is unspecified.

We already support a similar flag (-d g1), but unlike -p, it still
executes commands. Our implementation just turns it into -d g1, but also
sets flag `printGraphOnly', which will cause make(1) to skip execution.

[1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html

Reviewed by: imp
PR: standards/99960

15 years agoA few more whitespace fixes.
John Baldwin [Wed, 30 Jul 2008 21:18:08 +0000 (21:18 +0000)]
A few more whitespace fixes.

15 years agoIf the kernel has run out of metadata for swap, then explicitly panic()
John Baldwin [Wed, 30 Jul 2008 21:12:15 +0000 (21:12 +0000)]
If the kernel has run out of metadata for swap, then explicitly panic()
instead of emitting a warning before deadlocking.

MFC after: 1 month

15 years agoWhitespace tweak.
John Baldwin [Wed, 30 Jul 2008 21:07:56 +0000 (21:07 +0000)]
Whitespace tweak.

15 years agoPass the correct flags to expandarg() for NFROMFD and NTOFD. This fixes a
Stefan Farfeleder [Wed, 30 Jul 2008 21:07:04 +0000 (21:07 +0000)]
Pass the correct flags to expandarg() for NFROMFD and NTOFD.  This fixes a
segmentation fault when the argument expands to an empty string.

Reported by: simon
MFC after: 3 weeks

15 years agoTrim some noise from some #ifdef's. This had leaked into the compat32
John Baldwin [Wed, 30 Jul 2008 21:01:51 +0000 (21:01 +0000)]
Trim some noise from some #ifdef's.  This had leaked into the compat32
support for bpf(4) due to hacks in the Y! tree for a truss32 binary
(since superseded by native support for 32-bit binaries in truss itself).

MFC after: 1 week

15 years agofix includes for post sockbuf re-factor
Kip Macy [Wed, 30 Jul 2008 20:08:34 +0000 (20:08 +0000)]
fix includes for post sockbuf re-factor

15 years agoUse single byte read and write operations to toggle the BIOS and OS
John Baldwin [Wed, 30 Jul 2008 19:16:53 +0000 (19:16 +0000)]
Use single byte read and write operations to toggle the BIOS and OS
semaphores rather than 4 byte operations.

MFC after: 1 month

15 years agoThe original adduser/rmuser scripts in Perl used to modify the PATH
John Baldwin [Wed, 30 Jul 2008 18:37:21 +0000 (18:37 +0000)]
The original adduser/rmuser scripts in Perl used to modify the PATH
setting.  When the scripts were converted to Bourne shell, this was
removed.  The adduser script was changed to use an explicit path for
the pw(8) command so that /usr/sbin did not have to be in the user's
PATH.  The rmuser script continued to assume that /usr/sbin was in the
user's path, however.  This fixes the rmuser script to use an explicit
path for pw(8) similar to adduser.

MFC after: 2 weeks

15 years agoThe behaviour of the lockmgr going back at least to the 4.4BSD-Lite2 was
Konstantin Belousov [Wed, 30 Jul 2008 18:16:06 +0000 (18:16 +0000)]
The behaviour of the lockmgr going back at least to the 4.4BSD-Lite2 was
to downgrade the exclusive lock to shared one when exclusive lock owner
requested shared lock. New lockmgr panics instead.

The vnode_pager_lock function requests shared lock on the vnode backing
the OBJT_VNODE, and can be called when the current thread already holds
an exlcusive lock on the vnode. For instance, it happens when handling
page fault from the VOP_WRITE() uiomove that writes to the file, with
the faulted in page fetched from the vm object backed by the same file.
We then get the situation described above.

Verify whether the vnode is already exclusively locked by the curthread
and request recursed exclusive vnode lock instead of shared, if true.

Reported by: gallatin
Discussed with: attilio

15 years agoThis updates the ixgbe driver to Intel internal version 1.4.7
Jack F Vogel [Wed, 30 Jul 2008 18:15:18 +0000 (18:15 +0000)]
This updates the ixgbe driver to Intel internal version 1.4.7
Shared code changes, core driver fixes, vlan event/filter support

Also Kip Macy's fix to allow any number of queues, thanks Kip!

15 years agoSet all of the "optimum performance" PHY registers for the 15D parts as
John Baldwin [Wed, 30 Jul 2008 17:28:49 +0000 (17:28 +0000)]
Set all of the "optimum performance" PHY registers for the 15D parts as
well as the 15C since it seems to be required in practice.  The Linux
natsemi.c driver mostly does this as well.

PR: kern/112179
Submitted by: Mark Willson  mark - hydrus org uk
MFC after: 1 week

15 years agoSIS_SETBIT() already does a read/modify/write operation, so there isn't
John Baldwin [Wed, 30 Jul 2008 17:21:32 +0000 (17:21 +0000)]
SIS_SETBIT() already does a read/modify/write operation, so there isn't
a reason to read the register twice.

MFC after: 1 week

15 years agocorrect description of how to clear a desired channel
Sam Leffler [Wed, 30 Jul 2008 16:22:52 +0000 (16:22 +0000)]
correct description of how to clear a desired channel

Pointed out by: Chris Buechler
MFC after: 1 week

15 years agoAccording to a proposed Norwegian standard for alphabetization of which
Dag-Erling Smørgrav [Wed, 30 Jul 2008 15:37:13 +0000 (15:37 +0000)]
According to a proposed Norwegian standard for alphabetization of which
I've obtained a draft, <u:> is indeed equivalent to u (to my surprise),
and <th> sorts immediately after z.

The correct ordering is algorithmic (based on the EOR) and can not be
accurately represented as a table.

15 years agoRemove the use of lbolt from the VFS syncer.
Ed Schouten [Wed, 30 Jul 2008 12:39:18 +0000 (12:39 +0000)]
Remove the use of lbolt from the VFS syncer.

It seems we only use `lbolt' inside the VFS syncer and the TTY layer
now.  Because I'm planning to replace the TTY layer next month, there's
no reason to keep `lbolt' if it's only used in a single thread inside
the kernel.

Because the syncer code wanted to wake up the syncer thread before the
timeout, it called sleepq_remove(). Because we now just use a condvar(9)
with a timeout value of `hz', we can wake it up using cv_broadcast()
without waking up any unrelated threads.

Reviewed by: phk

15 years agoDon't make subr_clist.c depend on the TTY layer.
Ed Schouten [Wed, 30 Jul 2008 12:32:42 +0000 (12:32 +0000)]
Don't make subr_clist.c depend on the TTY layer.

After the import of the new TTY layer, the TTY_QUOTE definition will not
be present anymore. To make sure clists will still work as expected,
introduce an internal definition called QUOTEMASK.

Maybe we can decide to remove the quote bits entirely, but we still have
to look into this. There may be drivers that still use the quote bits.

Obtained from: //depot/projects/mpsafetty

15 years agoUpdate routed to use the RFC 3678 protocol-independent multicast API. Use
Poul-Henning Kamp [Wed, 30 Jul 2008 11:56:15 +0000 (11:56 +0000)]
Update routed to use the RFC 3678 protocol-independent multicast API. Use
IP_MULTICAST_IF with struct ip_mreqn (obtained from Linux) to tell the
stack which interface index to use for sending IPv4 datagrams.

Submitted by: bms
Tested by: phk

15 years agoBring back the save/restore of the %ds, %es, %fs and %gs registers for
Konstantin Belousov [Wed, 30 Jul 2008 11:30:55 +0000 (11:30 +0000)]
Bring back the save/restore of the %ds, %es, %fs and %gs registers for
the 32bit images on amd64.

Change the semantic of the PCB_32BIT pcb flag to request the context
switch code to operate on the segment registers. Its previous meaning
of saving or restoring the %gs base offset is assigned to the new
PCB_GS32BIT flag.

FreeBSD 32bit image activator sets the PCB_32BIT flag, while Linux 32bit
emulation sets PCB_32BIT | PCB_GS32BIT.

Reviewed by: peter
MFC after: 2 weeks

15 years agoAdopt the slightly weaker consistency locking approach used in IPv4 raw
Robert Watson [Wed, 30 Jul 2008 09:26:27 +0000 (09:26 +0000)]
Adopt the slightly weaker consistency locking approach used in IPv4 raw
sockets for IPv6 raw sockets: separately lock the inpcb for determining
the destination address for a connect()'d raw socket at the rip6_send()
layer, and then re-acquire the inpcb lock in the rip6_output() layer to
query other options on the socket.  Previously, the global raw IP socket
lock was used, which while correct and marginally more consistent, could
add significantly to global raw IP socket lock contention.

MFC after: 1 week

15 years agoFix alignment of the cmsg buffer by placing it in a union with a struct
Dag-Erling Smørgrav [Wed, 30 Jul 2008 09:16:46 +0000 (09:16 +0000)]
Fix alignment of the cmsg buffer by placing it in a union with a struct
cmsghdr.  Derived from upstream patch.

Submitted by: cognet
MFC after: 2 weeks

15 years agoMfP4: Preserve permissions by default.
Tim Kientzle [Wed, 30 Jul 2008 03:35:45 +0000 (03:35 +0000)]
MfP4: Preserve permissions by default.

In particular, this fixes the oddity that -dumpl would apply
umask to copied dirs (which are created in the target tree)
but not to "copied" files (which are only linked).  After
this change:

$ ls -ld a a/b a/b/c
d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c
$ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o
$ cd o
$ ls -ld a a/b a/b/c
d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c

15 years agostyle(9) specifies that case statements are not indented.
Sean Farley [Wed, 30 Jul 2008 03:34:23 +0000 (03:34 +0000)]
style(9) specifies that case statements are not indented.

15 years agoAdd my entry with a pointer to garga (mentor)
Robert Noland [Wed, 30 Jul 2008 01:05:13 +0000 (01:05 +0000)]
Add my entry with a pointer to garga (mentor)

Approved by: garga (mentor)

15 years agoChange the type of psaddr_t from void* to uintptr_t. A pointer
Marcel Moolenaar [Wed, 30 Jul 2008 00:59:19 +0000 (00:59 +0000)]
Change the type of psaddr_t from void* to uintptr_t. A pointer
type cannot be made wider to allow ILP32 platforms to target
LP64 platforms.

15 years agoUnbreak build.
Pyun YongHyeon [Wed, 30 Jul 2008 00:39:25 +0000 (00:39 +0000)]
Unbreak build.
Remove nfe(4). The driver applies to i386/amd64 only.

15 years agoFree the correct buffer list on failure.
Andrew Thompson [Wed, 30 Jul 2008 00:38:10 +0000 (00:38 +0000)]
Free the correct buffer list on failure.

15 years agoClarify which route property routed(8) looks at.
Poul-Henning Kamp [Tue, 29 Jul 2008 23:22:06 +0000 (23:22 +0000)]
Clarify which route property routed(8) looks at.

15 years ago remove redundant ifdef ... lol
Kip Macy [Tue, 29 Jul 2008 23:00:54 +0000 (23:00 +0000)]
 remove redundant ifdef ... lol

15 years agofix build by forward declaring thread and hiding socket buffer definitions from user...
Kip Macy [Tue, 29 Jul 2008 23:00:00 +0000 (23:00 +0000)]
fix build by forward declaring thread and hiding socket buffer definitions from user code

15 years agoUnbreak the build by protecting kernel-only functions with #ifdef _KERNEL.
Olivier Houchard [Tue, 29 Jul 2008 21:48:01 +0000 (21:48 +0000)]
Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL.

15 years agoFix build
Maksim Yevmenkin [Tue, 29 Jul 2008 21:20:03 +0000 (21:20 +0000)]
Fix build

15 years agoWhen copying in and out current ICMPv6 filters on a raw IPv6 socket,
Robert Watson [Tue, 29 Jul 2008 19:37:16 +0000 (19:37 +0000)]
When copying in and out current ICMPv6 filters on a raw IPv6 socket,
lock the inpcb and use a local stack variable to copy to/from userspace
so that sooptcopyin()/sooptcopyout() aren't called while holding an
rwlock.

While here, fix a bug in which a failed sooptcopyin() might lead to
partially consistent ICMPv6 filters on the socket by not ignoring the
error returned by sooptcopyin().

MFC after: 2 weeks

15 years agoRemove extra comment that snuck in in last commit.
Robert Watson [Tue, 29 Jul 2008 18:38:37 +0000 (18:38 +0000)]
Remove extra comment that snuck in in last commit.

15 years agoAdd a simple ICMPv6 filter test for IPv6 raw sockets: determine that
Robert Watson [Tue, 29 Jul 2008 18:33:56 +0000 (18:33 +0000)]
Add a simple ICMPv6 filter test for IPv6 raw sockets: determine that
the default ICMPv6 filter is pass all, test that we can set it to block
all and restore to pass all.  No attempt is made to test that the
filtering works, just that we can get and set it.

15 years agoSince we fail IPv6 raw socket allocation if inp->in6p_icmp6filt can't
Robert Watson [Tue, 29 Jul 2008 18:09:46 +0000 (18:09 +0000)]
Since we fail IPv6 raw socket allocation if inp->in6p_icmp6filt can't
be allocated, there's no need to conditionize use and freeing of it
later.

MFC after: 1 week

15 years agoFix build
Maksim Yevmenkin [Tue, 29 Jul 2008 17:02:00 +0000 (17:02 +0000)]
Fix build

15 years agoConvert popen()'s `pidlist' to a SLIST, for consistency.
Ed Schouten [Tue, 29 Jul 2008 16:29:59 +0000 (16:29 +0000)]
Convert popen()'s `pidlist' to a SLIST, for consistency.

I guess the original author of the popen() code didn't want to use our
<sys/queue.h> macro's, because the single linked list macro's didn't
offer O(1) deletion. Because I introduced SLIST_REMOVE_NEXT() some time
ago, we can now use the macro's here.

By converting the code to an SLIST, it is more consistent with other
parts of the C library and the operating system.

Reviewed by: csjp
Approved by: philip (mentor, implicit)

15 years agoAdd --no-preserve-owner, which seems to be required by some ports.
Tim Kientzle [Tue, 29 Jul 2008 15:23:31 +0000 (15:23 +0000)]
Add --no-preserve-owner, which seems to be required by some ports.

Thanks to: Erwin Lansing

15 years agoIn the previous commit, no_NO should have been replaced with nb_NO in the
Dag-Erling Smørgrav [Tue, 29 Jul 2008 11:32:42 +0000 (11:32 +0000)]
In the previous commit, no_NO should have been replaced with nb_NO in the
LOCALES list.  Since no_NO was still in LOCALES, make tried to build the
corresponding .out files, but couldn't since the .src files were gone.  I
did not notice this because I still had the old .out files in my .OBJDIR.
Thanks to kib@ for the heads-up.

15 years agoMarginally decomplicate set/getsockopt code in ip6_output.c by simply
Robert Watson [Tue, 29 Jul 2008 09:31:03 +0000 (09:31 +0000)]
Marginally decomplicate set/getsockopt code in ip6_output.c by simply
using the passed arguments explicitly and unconditionally rather than
testing them and calling panic().  The result is the same but easier
to read.

MFC after: 3 days

15 years agoFix build breakage - kthread_exit() in 8 now has no arguments
Randall Stewart [Tue, 29 Jul 2008 09:30:50 +0000 (09:30 +0000)]
Fix build breakage - kthread_exit() in 8 now has no arguments
MFC after: 1 week

15 years ago- Out with some printfs.
Randall Stewart [Tue, 29 Jul 2008 09:06:35 +0000 (09:06 +0000)]
- Out with some printfs.
- Fix a initialization of last_tsn_used
- Fix handling of mapped IPv4 addresses
Obtained from: Michael Tuexen and I :-)
MFC after: 1 week

15 years agostyle(9) - space after keywords, don't indent case.
Pyun YongHyeon [Tue, 29 Jul 2008 09:02:00 +0000 (09:02 +0000)]
style(9) - space after keywords, don't indent case.

15 years agoCache PCI vendor/device ids to avoid unnecessary PCI configuration
Pyun YongHyeon [Tue, 29 Jul 2008 08:49:36 +0000 (08:49 +0000)]
Cache PCI vendor/device ids to avoid unnecessary PCI configuration
space access in device probe.
Also nuke referencing softc in device probe.

15 years agos/printf/device_printf/g
Pyun YongHyeon [Tue, 29 Jul 2008 08:32:29 +0000 (08:32 +0000)]
s/printf/device_printf/g
Don't hard code function name in device_printf() and use __func__.
While I'm here nuke bfe_unit in softc as it's not needed anymore.

15 years agoMacbook [Pro] keyboards in AZERTY don't need shift to get to '~'.
Ollivier Robert [Tue, 29 Jul 2008 08:07:27 +0000 (08:07 +0000)]
Macbook [Pro] keyboards in AZERTY don't need shift to get to '~'.

MFC after: 3 days

15 years agoFactor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers.
Kip Macy [Tue, 29 Jul 2008 07:45:05 +0000 (07:45 +0000)]
Factor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers.

Reviewed by: rwatson
MFC after: 3 days

15 years agoModified release notes: Add one more name to credits on KSE item.
Bruce A. Mah [Tue, 29 Jul 2008 04:23:18 +0000 (04:23 +0000)]
Modified release notes:  Add one more name to credits on KSE item.

Submitted by: jhb@
Reviewed by: brooks@

15 years agoAdd missing jme(4), msk(4), nfe(4), re(4) and stge(4) in NOTES and
Pyun YongHyeon [Tue, 29 Jul 2008 01:15:11 +0000 (01:15 +0000)]
Add missing jme(4), msk(4), nfe(4), re(4) and stge(4) in NOTES and
ensure that LINT builds include these devices.

Reported by: Peter Jeremy