]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoStyle: reword comment.
ache [Wed, 20 Jan 2010 11:59:46 +0000 (11:59 +0000)]
Style: reword comment.

Submitted by:   bde

14 years agoWhen traced process is about to receive the signal, the process is
kib [Wed, 20 Jan 2010 11:58:04 +0000 (11:58 +0000)]
When traced process is about to receive the signal, the process is
stopped and debugger may modify or drop the signal. After the changes to
keep process-targeted signals on the process sigqueue, another thread
may note the old signal on the queue and act before the thread removes
changed or dropped signal from the process queue. Since process is
traced, it usually gets stopped. Or, if the same signal is delivered
while process was stopped, the thread may erronously remove it,
intending to remove the original signal.

Remove the signal from the queue before notifying the debugger. Restore
the siginfo to the head of sigqueue when signal is allowed to be
delivered to the debugee, using newly introduced KSI_HEAD ksiginfo_t
flag. This preserves required order of delivery. Always restore the
unchanged signal on the curthread sigqueue, not to the process queue,
since the thread is about to get it anyway, because sigmask cannot be
changed.

Handle failure of reinserting the siginfo into the queue by falling
back to sq_kill method, calling sigqueue_add with NULL ksi.

If debugger changed the signal to be delivered, use sigqueue_add()
with NULL ksi instead of only setting sq_signals bit.

Reported by: Gardner Bell <gbell72 rogers com>
Analyzed and first version of fix by: Tijl Coosemans <tijl coosemans org>
PR: 142757
Reviewed by: davidxu
MFC after: 2 weeks

14 years agoFor alphasort() add reference to strcoll(3)
ache [Wed, 20 Jan 2010 11:55:14 +0000 (11:55 +0000)]
For alphasort() add reference to strcoll(3)

14 years agoTry a privileged port for binding whenever possible because the
hrs [Wed, 20 Jan 2010 09:29:07 +0000 (09:29 +0000)]
Try a privileged port for binding whenever possible because the
ypbind daemon requires the ypserv daemon is running on a
privileged port.

Reported by: Andrzej Tobola

14 years agoStyle: rename internal function to opendir_compar()
ache [Wed, 20 Jan 2010 07:36:29 +0000 (07:36 +0000)]
Style: rename internal function to opendir_compar()

Pointed by:     bde

14 years agoComplain if freelist queue sizes are significantly less than desired.
np [Wed, 20 Jan 2010 07:28:14 +0000 (07:28 +0000)]
Complain if freelist queue sizes are significantly less than desired.

MFC after: 1 day

14 years agoStyle: remove extra empty line in the comment.
ache [Wed, 20 Jan 2010 07:27:56 +0000 (07:27 +0000)]
Style: remove extra empty line in the comment.

Pointed by:     bde

14 years agoFix for a cxgb(4) panic. cxgb_ioctl can be called by the IP and IPv6
np [Wed, 20 Jan 2010 03:40:43 +0000 (03:40 +0000)]
Fix for a cxgb(4) panic.  cxgb_ioctl can be called by the IP and IPv6
layers with non-sleepable locks held.  Don't (potentially) sleep in
those situations.

14 years agoAdd a new option, -P, which reverts newsyslog(8) to the old behavior,
delphij [Wed, 20 Jan 2010 01:07:38 +0000 (01:07 +0000)]
Add a new option, -P, which reverts newsyslog(8) to the old behavior,
which stops to proceed further, as it is possible that processes which
fails to create PID file get screwed by rotation.

Requested by: stas
MFC after: 2 weeks
X-MFC with: r200806

14 years agoRevert r202447 by re-exposing the old uname(3) function.
ed [Tue, 19 Jan 2010 23:07:12 +0000 (23:07 +0000)]
Revert r202447 by re-exposing the old uname(3) function.

It makes hardly any sense to expose a symbol which should only be
provided for binary compatibility, but it seems we don't have a lot of
choice here. There are many autoconf scripts out there that try to
create a binary that links against the old symbol to see whether
uname(3) is present. These scripts fail to detect uname(3) now.

It should be noted that the behaviour we implement is not against the
standards:

| The following shall be declared as a function and may also be defined
| as a macro:
|
| int uname(struct utsname *);

14 years agoWe don't support isdn devices anymore (since May 2008).
brueffer [Tue, 19 Jan 2010 22:44:29 +0000 (22:44 +0000)]
We don't support isdn devices anymore (since May 2008).

PR: 142970
Submitted by: Matthias Meyser <Meyser@xenet.de>
MFC after: 1 week

14 years agoSort NDHASGIANT.9 link properly.
jhb [Tue, 19 Jan 2010 20:36:15 +0000 (20:36 +0000)]
Sort NDHASGIANT.9 link properly.

14 years agoFix portability to 64 bit platforms.
fanf [Tue, 19 Jan 2010 20:35:44 +0000 (20:35 +0000)]
Fix portability to 64 bit platforms.
printf("%.*s",i,s) expects an int not a ptrdiff_t

Thanks to bf1783 (at) googlemail.com for the bug report.

14 years agoMake last(1) display the full log file.
ed [Tue, 19 Jan 2010 19:53:05 +0000 (19:53 +0000)]
Make last(1) display the full log file.

I must have misread when I ported the original last(1) source code.
Instead of only processing the last 1024 entries, it reads them in in
chucks of 1024 entries at a time.

Unfortunately we cannot walk through the log file in reverse order,
which means we have to allocate a piece of memory to hold all the
entries. Call realloc() for each 128 entries we read.

Reported by: Andrzej Tobola <ato iem pw edu pl>

14 years agoUpdate to 4.6.
delphij [Tue, 19 Jan 2010 18:45:29 +0000 (18:45 +0000)]
Update to 4.6.

Note: the -V option from OpenBSD is implemented using setfib(2) on FreeBSD.

MFC after: 2 weeks

14 years agoSync unifdefall with upstream. It no longer relies entirely on $PATH
fanf [Tue, 19 Jan 2010 18:18:15 +0000 (18:18 +0000)]
Sync unifdefall with upstream. It no longer relies entirely on $PATH
to find unifdef, in order to support running the test suite before
installing.

14 years agoAdd a -o outfile option, which can be used to specify an output file. The
fanf [Tue, 19 Jan 2010 18:13:54 +0000 (18:13 +0000)]
Add a -o outfile option, which can be used to specify an output file.  The
file can safely be the same as the input file.  Idea from IRIX unifdef(1).
This version fixes a bug in the NetBSD unifdef which refuses to
write to a -o outfile which does not exist.

Obtained from: NetBSD

14 years agoMove the examples for the 'hints' and 'env' keywords from various GENERIC
jhb [Tue, 19 Jan 2010 17:20:34 +0000 (17:20 +0000)]
Move the examples for the 'hints' and 'env' keywords from various GENERIC
kernel configs into NOTES.

Reviewed by: imp

14 years agoBack out the change to Makefile made in r202628.
ed [Tue, 19 Jan 2010 15:34:16 +0000 (15:34 +0000)]
Back out the change to Makefile made in r202628.

It was just a local modification to build the i386 and amd64 more
quickly.

14 years agoRecommit r193732:
ed [Tue, 19 Jan 2010 15:31:18 +0000 (15:31 +0000)]
Recommit r193732:

  Remove __gnu89_inline.

  Now that we use C99 almost everywhere, just use C99-style in the pmap
  code. Since the pmap code is the only consumer of __gnu89_inline, remove
  it from cdefs.h as well. Because the flag was only introduced 17 months
  ago, I don't expect any problems.

  Reviewed by:    alc

It was backed out, because it prevented us from building kernels using a
7.x compiler. Now that most people use 8.x, there is nothing that holds
us back. Even if people run 7.x, they should be able to build a kernel
if they run `make kernel-toolchain' or `make buildworld' first.

14 years agoAdd missing DPADD and fix whitespace.
des [Tue, 19 Jan 2010 13:31:57 +0000 (13:31 +0000)]
Add missing DPADD and fix whitespace.

Submitted by: ru

14 years agoRemoved NO_UNDEF.
ru [Tue, 19 Jan 2010 11:42:15 +0000 (11:42 +0000)]
Removed NO_UNDEF.

Nudged by: trasz

14 years agoAdd HTTP digest authentication.
des [Tue, 19 Jan 2010 10:19:55 +0000 (10:19 +0000)]
Add HTTP digest authentication.

Submitted by: Jean-Francois Dockes <jf@dockes.org>
Forgotten by: des (repeatedly)

14 years agoUse the iflladdr_event event to keep the mac address on the vap in sync with
thompsa [Tue, 19 Jan 2010 05:00:57 +0000 (05:00 +0000)]
Use the iflladdr_event event to keep the mac address on the vap in sync with
the parent wirless interface. If the user passed in a mac address or it was
autogenerated then flag this to avoid trashing it on update.

This will fix wlan+lagg in a post vap world.

14 years agoDo not hold the lock over if_setlladdr() as it calls into the interface driver
thompsa [Tue, 19 Jan 2010 04:29:42 +0000 (04:29 +0000)]
Do not hold the lock over if_setlladdr() as it calls into the interface driver
init routine.

14 years agoadds a hardware specific configuration file for uath(4).
weongyo [Tue, 19 Jan 2010 01:33:56 +0000 (01:33 +0000)]
adds a hardware specific configuration file for uath(4).

Pointed by: sam
Reviewed by: imp, thompsa

14 years agoProduct ID of D-Link DWA-120 after loading the firmware is incorrect.
weongyo [Tue, 19 Jan 2010 01:26:40 +0000 (01:26 +0000)]
Product ID of D-Link DWA-120 after loading the firmware is incorrect.

14 years agoremoves a hack to attach TRENDnet TEW-504UB/EU that I think this issue
weongyo [Tue, 19 Jan 2010 01:11:27 +0000 (01:11 +0000)]
removes a hack to attach TRENDnet TEW-504UB/EU that I think this issue
is solved with r202607.  Now idProduct of all uath(4) devices should be
decreased after loading the firmware.

14 years agoFixes a firmware bug that in some devices (e.g. Netgear WG111T or
weongyo [Tue, 19 Jan 2010 01:04:44 +0000 (01:04 +0000)]
Fixes a firmware bug that in some devices (e.g. Netgear WG111T or
TRENDnet TEW-504UB/EU) idProduct didn't be decreased after loading the
firmware.

Pointed by: Steven Friedrich <freebsd at insightbb.com>
Reviewed by: sam

14 years agoMFV of tzdata2010a:
edwin [Mon, 18 Jan 2010 23:34:23 +0000 (23:34 +0000)]
MFV of tzdata2010a:

Administrative only: Fix AT fields for Asia/Dhaka

14 years agoReally disable wtmp logging when chrooting.
ed [Mon, 18 Jan 2010 23:28:25 +0000 (23:28 +0000)]
Really disable wtmp logging when chrooting.

Also perform a small cleanup to ftpd_logwtmp(). Just use a NULL
parameter for the username to indicate a logout, instead of an empty
string.

Reported by: Alexey Shuvaev <shuvaev physik uni-wuerzburg de>

14 years agoInclude unistd.h for read(), write() and stdlib.h for exit().
wkoszek [Mon, 18 Jan 2010 23:13:22 +0000 (23:13 +0000)]
Include unistd.h for read(), write() and stdlib.h for exit().
Bump WARNS to 5 while being here.

14 years agoSmall cleanup while being here:
wkoszek [Mon, 18 Jan 2010 23:09:07 +0000 (23:09 +0000)]
Small cleanup while being here:
- sort includes
- remove usage(), since it seems to come from older version
  of the KLD
- remove unnecessary variable
- mark argc/argv as unused

Bring WARNS = 5 to the Makefile.

14 years agoInclude stdlib.h for exit(3) and unistd.h for syscall(2). This makes
wkoszek [Mon, 18 Jan 2010 23:04:38 +0000 (23:04 +0000)]
Include stdlib.h for exit(3) and unistd.h for syscall(2). This makes
this program to compile cleanly.

14 years agoSmall fix for making this KLD to compile.
wkoszek [Mon, 18 Jan 2010 22:59:53 +0000 (22:59 +0000)]
Small fix for making this KLD to compile.

14 years agoLet us to use our libusb(3) in Linuxolator.
wkoszek [Mon, 18 Jan 2010 22:46:06 +0000 (22:46 +0000)]
Let us to use our libusb(3) in Linuxolator.

With this change, Linux binaries can work with our libusb(3) when
it's compiled against our header files on GNU/Linux system -- this
solves the problem with differences between /dev layouts.

With ported libusb(3), I am able to use my USB JTAG cable with Linux
binaries that support it.

Reviewed by: thompsa

14 years agoUndo r169961, removing WITH_GCC3, added as a temporary workaround three
trasz [Mon, 18 Jan 2010 21:56:08 +0000 (21:56 +0000)]
Undo r169961, removing WITH_GCC3, added as a temporary workaround three
years ago.

14 years agoDeclare a new EVENTHANDLER called iflladdr_event which signals that the L2
thompsa [Mon, 18 Jan 2010 20:34:00 +0000 (20:34 +0000)]
Declare a new EVENTHANDLER called iflladdr_event which signals that the L2
address on an interface has changed. This lets stacked interfaces such as
vlan(4) detect that their lower interface has changed and adjust things in
order to keep working. Previously this situation broke at least vlan(4) and
lagg(4) configurations.

The EVENTHANDLER_INVOKE call was not placed within if_setlladdr() due to the
risk of a loop.

PR: kern/142927
Submitted by: Nikolay Denev

14 years agoAdd epic(4) also here.
marius [Mon, 18 Jan 2010 20:25:29 +0000 (20:25 +0000)]
Add epic(4) also here.

MFC after: 3 days

14 years agoAlso output stripeoffset for consumer even if stripesize is zero, while
delphij [Mon, 18 Jan 2010 19:39:55 +0000 (19:39 +0000)]
Also output stripeoffset for consumer even if stripesize is zero, while
stripeoffset is non-zero.

Pointed out by: mav

14 years agofix a comment typo
avg [Mon, 18 Jan 2010 19:10:14 +0000 (19:10 +0000)]
fix a comment typo

MFC after: 3 days

14 years agoRevert parts of r202283:
lulf [Mon, 18 Jan 2010 19:09:16 +0000 (19:09 +0000)]
Revert parts of r202283:
- Return EOPNOTSUPP before EROFS to be consistent with other filesystems.
- Fix setting of the nodump flag for users without PRIV_VFS_SYSFLAGS privilege.

Submitted by: jh@

14 years agoRemove a dead initialization.
ed [Mon, 18 Jan 2010 18:58:03 +0000 (18:58 +0000)]
Remove a dead initialization.

Spotted by: scan-build (uqs)

14 years agoUpdate the example named.conf file to answer locally for the newly
dougb [Mon, 18 Jan 2010 18:37:47 +0000 (18:37 +0000)]
Update the example named.conf file to answer locally for the newly
released IPv4 documentation ranges (http://tools.ietf.org/html/rfc5737)
and catch up to the IPv6 documentation range and domain names that 5737
also references.

14 years agoAdd a warning if we're inw'ing from an odd address. This could happen
imp [Mon, 18 Jan 2010 17:53:44 +0000 (17:53 +0000)]
Add a warning if we're inw'ing from an odd address.  This could happen
due to a bug and might be the real basis for the cardbus workaround
hack.

14 years agoFix indentation nit.
imp [Mon, 18 Jan 2010 17:52:57 +0000 (17:52 +0000)]
Fix indentation nit.

14 years agoAllow the CTAGS to be set to something other than "gtags" or "ctags",
ru [Mon, 18 Jan 2010 15:58:02 +0000 (15:58 +0000)]
Allow the CTAGS to be set to something other than "gtags" or "ctags",
but assume it supports a ctags(1)-compatible syntax.

PR: 46676
Submitted by: Lyndon Nerenberg
MFC after: 3 days

14 years agoIf CTAGS is not set or set to something other than "ctags" or "gtags",
ru [Mon, 18 Jan 2010 15:41:55 +0000 (15:41 +0000)]
If CTAGS is not set or set to something other than "ctags" or "gtags",
"cleandepend" was not removing the .depend file; fixed.

PR: 126747
MFC after: 3 days

14 years agoPrint sizes up to INT64_MAX in md_prthumanval().
jh [Mon, 18 Jan 2010 14:07:41 +0000 (14:07 +0000)]
Print sizes up to INT64_MAX in md_prthumanval().

PR: bin/125365
Approved by: trasz (mentor)
MFC after: 2 weeks

14 years agoDouble checking my commit I found that comment saying that
ache [Mon, 18 Jan 2010 13:44:44 +0000 (13:44 +0000)]
Double checking my commit I found that comment saying that
POSIX 2008 and XSI 7require strcoll() for opendir() is not true.
I can't find such requirement in POSIX 2008 and XSI 7.

So, back out that part of my commit, returning old strcmp(), and remove
this misleading comment.

14 years agoacpi_ec: remove redundant acpi_disabled check in probe method
avg [Mon, 18 Jan 2010 11:33:58 +0000 (11:33 +0000)]
acpi_ec: remove redundant acpi_disabled check in probe method

MFC after: 4 days

14 years agoLet pam_lastlog use random ut_id's.
ed [Mon, 18 Jan 2010 11:29:51 +0000 (11:29 +0000)]
Let pam_lastlog use random ut_id's.

By using random values for ut_id, not based on the TTY name, it is
possible to run for example login(1) multiple times on the same TTY,
without overwriting any previous records.

The output of w(1) will then be as follows:

| 12:26PM  up 2 days,  2:31, 5 users, load averages: 0.01, 0.03, 0.03
| USER       TTY      FROM                      LOGIN@  IDLE WHAT
| ed         pts/2    mekker.80386.nl          12:26PM     - w
| root       pts/2    -                        12:26PM     - w
| root       pts/2    -                        12:26PM     - w
| root       pts/2    -                        12:26PM     - w

Approved by: des

14 years agoAlso let getent(1) print values of ut_pid.
ed [Mon, 18 Jan 2010 10:50:25 +0000 (10:50 +0000)]
Also let getent(1) print values of ut_pid.

14 years agoacpi_ec: clean up 'private' ivar when freeing memory to which it points
avg [Mon, 18 Jan 2010 10:30:11 +0000 (10:30 +0000)]
acpi_ec: clean up 'private' ivar when freeing memory to which it points

This is not only a prudent thing to do, but also makes sure that probe
method is not confused by non-NULL 'private', if the previous attach
attempt fails for any reason.

PR: kern/142561
Tested by: Alex Goncharov <alex-goncharov@comcast.net>
MFC after: 4 days

14 years agopreserve errno when processing error cases.
davidxu [Mon, 18 Jan 2010 10:29:04 +0000 (10:29 +0000)]
preserve errno when processing error cases.

14 years agoa) Use strcoll() in opendir() and alphasort() as POSIX 2008 requires.
ache [Mon, 18 Jan 2010 10:17:51 +0000 (10:17 +0000)]
a) Use strcoll() in opendir() and alphasort() as POSIX 2008 requires.
   It also matches now how our 'ls' works for years.

b) Remove comment expressed 2 fears:
 1) One just simple describe how strcoll() works in _any_ context,
 not for directories only. Are we plan to remove strcoll() from everything
 just because it is little more complex than strcmp()? I doubt, and
 directories give nothing different here. Moreover, strcoll() used
 in 'ls' for years and nobody complaints yet.

 2) Plain wrong statement about undefined strcoll() behaviour. strcoll()
 always gives predictable results, falling back to strcmp() on any
 trouble, see strcoll(3).

No objections from -current list discussion.

14 years agoAdd command-line option -dev to set the default value of the currdev
marcel [Mon, 18 Jan 2010 06:48:24 +0000 (06:48 +0000)]
Add command-line option -dev to set the default value of the currdev
variable. This is to be used by the EFI boot manager.

While here, re-factor the code a little bit and bump the version to
2.1.

14 years ago- Allow clock subsystem to be compiled without the apic support [0]
attilio [Sun, 17 Jan 2010 23:23:35 +0000 (23:23 +0000)]
- Allow clock subsystem to be compiled without the apic support [0]
- ATPIC, on pc98 is never defined somewhere, differently from i386.
  Turn its compilation to be conditional as i386 does. [1]

[0] Reported by: nyan
[1] Submitted by: nyan

14 years agoRaise WARNS for various tools where possible.
ed [Sun, 17 Jan 2010 21:56:27 +0000 (21:56 +0000)]
Raise WARNS for various tools where possible.

Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch>

14 years agoMute some (hidden) warnings about old-style function definitions.
ed [Sun, 17 Jan 2010 21:53:41 +0000 (21:53 +0000)]
Mute some (hidden) warnings about old-style function definitions.

Submitted by: Marius NĂ¼nnerich <marius nuenneri ch>

14 years agoPerform several small cleanups to the utmpx code.
ed [Sun, 17 Jan 2010 21:40:05 +0000 (21:40 +0000)]
Perform several small cleanups to the utmpx code.

- Massively reduce BSS usage. Let futx_to_utx() dynamically allocate the
  structure. There is only a very small amount of applications out there
  that needs to use the utmpx database. Wasting 1 KB on unused
  structures makes little sense.

- Just let getutxid() search for matching ut_id's for any *PROCESS-type.
  This makes the code a bit more future-proof.

- Fix a POSIX-mistake: when reading POSIX and the OpenSolaris
  implementation, getutxline() must return USER_PROCESS and
  LOGIN_PROCESS records whose ut_lines match. When reading POSIX, it
  seems LOGIN_PROCESS should not use ut_line at the first place. I have
  reported this issue.

14 years agoWhen a vnode-backed vm object is referenced, it increments the vnode
kib [Sun, 17 Jan 2010 21:26:14 +0000 (21:26 +0000)]
When a vnode-backed vm object is referenced, it increments the vnode
reference count, and decrements it on dereference. If referenced object
is deallocated, object type is reset to OBJT_DEAD. Consequently, all
vnode references that are owned by object references are never released.
vunref() the vnode in vm object deallocation code for OBJT_VNODE
appropriate number of times to prevent leak.

Add an assertion to the vm_pageout() to make sure that we never get
reference on the vnode but then do not execute code to release it.

In collaboration with: pho
Reviewed by: alc
MFC after: 3 weeks

14 years agoAdd new function vunref(9) that decrements vnode use count (and hold
kib [Sun, 17 Jan 2010 21:24:27 +0000 (21:24 +0000)]
Add new function vunref(9) that decrements vnode use count (and hold
count) while vnode is exclusively locked.

The code for vput(9), vrele(9) and vunref(9) is merged.

In collaboration with: pho
Reviewed by: alc
MFC after: 3 weeks

14 years agoAdd forgotten break; keyword to getutxid().
ed [Sun, 17 Jan 2010 21:00:29 +0000 (21:00 +0000)]
Add forgotten break; keyword to getutxid().

We should not fall through to the ut_id comparison. Only ut_type should
be compared when using OLD_TIME, NEW_TIME, BOOT_TIME or SHUTDOWN_TIME.

14 years agoGet rid of a lot of duplicated code for NR-SACK handle.
tuexen [Sun, 17 Jan 2010 21:00:28 +0000 (21:00 +0000)]
Get rid of a lot of duplicated code for NR-SACK handle.
Generalize the SACK to code handle also NR-SACKs.

14 years agoBug fix: If the allocation of a socket failed and we
rrs [Sun, 17 Jan 2010 19:47:59 +0000 (19:47 +0000)]
Bug fix: If the allocation of a socket failed and we
freed the inpcb, it was possible to not set the
proper flags on the pcb (i.e. the socket is not there).
This is HIGHLY unlikely since no one else should be
able to find the socket.. but for consistency we
do the proper loop thing to make sure that we
mark the socket as gone on the PCB.

14 years agoUnbreak builds with _FREEFALL_CONFIG=yes, by forcing a lower WARNS
marcel [Sun, 17 Jan 2010 19:47:42 +0000 (19:47 +0000)]
Unbreak builds with _FREEFALL_CONFIG=yes, by forcing a lower WARNS
level in that case.

14 years agoPulls out another leaked windows ifdef that somehow
rrs [Sun, 17 Jan 2010 19:40:21 +0000 (19:40 +0000)]
Pulls out another leaked windows ifdef that somehow
made its way through the scrubber.

14 years agoThis change syncs up the socketAPI stream-reset
rrs [Sun, 17 Jan 2010 19:35:38 +0000 (19:35 +0000)]
This change syncs up the socketAPI stream-reset
values to match those in linux and the I-D
just released to the IETF.

14 years agoSmall fixes.
brueffer [Sun, 17 Jan 2010 19:33:32 +0000 (19:33 +0000)]
Small fixes.

14 years agoMore leaked ifdefs for APPLE and its mobility stuff.
rrs [Sun, 17 Jan 2010 19:24:30 +0000 (19:24 +0000)]
More leaked ifdefs for APPLE and its mobility stuff.

14 years agoRemove another set of "leaked" ifdefs that somehow found
rrs [Sun, 17 Jan 2010 19:21:50 +0000 (19:21 +0000)]
Remove another set of "leaked" ifdefs that somehow found
their way into FreeBSD.

14 years agoRemove strange APPLE define that leaked
rrs [Sun, 17 Jan 2010 19:17:16 +0000 (19:17 +0000)]
Remove strange APPLE define that leaked
through the scrubber scripts. Scripts are
now fixed so this won't happen again.

14 years agoFix a regression that was introduced in r191882.
ed [Sun, 17 Jan 2010 17:52:35 +0000 (17:52 +0000)]
Fix a regression that was introduced in r191882.

I changed login_tty() to only work when the application is not a session
leader yet. This works fine for applications in the base system, but it
turns out various applications call this function after daemonizing,
which means they already use their own session.

If setsid() fails, just call tcsetsid() on the current session.
tcsetsid() will already perform proper security checks.

Reported by: Oliver Lehmann
MFC after: 1 week

14 years agoSimplify ttyslot(3).
ed [Sun, 17 Jan 2010 15:43:14 +0000 (15:43 +0000)]
Simplify ttyslot(3).

After comparing how other systems deal with utmp/utmpx, I noticed many
systems don't even care about ttyslot(3) anymore, since utmpx doesn't
use TTY slots anyway. We don't provide any tools to access old utmp
files anymore, so there is no use in letting applications write to a
proper offset within the utmp file.

Just let ttyslot(3) always return 0, which seems to be the default
behaviour on operating systems like Linux as well.

14 years agoGarbage collect references to the no longer implemented tcp_fasttimo().
bz [Sun, 17 Jan 2010 13:07:52 +0000 (13:07 +0000)]
Garbage collect references to the no longer implemented tcp_fasttimo().

Discussed with: rwatson
MFC after: 5 days

14 years agoAdd ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control
bz [Sun, 17 Jan 2010 12:57:11 +0000 (12:57 +0000)]
Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control
whether to use source address selection (default) or the primary
jail address for unbound outgoing connections.

This is intended to be used by people upgrading from single-IP
jails to multi-IP jails but not having to change firewall rules,
application ACLs, ... but to force their connections (unless
otherwise changed) to the primry jail IP they had been used for
years, as well as for people prefering to implement similar policies.

Note that for IPv6, if configured incorrectly, this might lead to
scope violations, which single-IPv6 jails could as well, as by the
design of jails. [1]

Reviewed by: jamie, hrs (ipv6 part)
Pointed out by: hrs [1]
MFC After: 2 weeks
Asked for by: Jase Thew (bazerka beardz.net)

14 years agoImplement an "-x" option to cp(1), for compatibility with Linux and
gavin [Sun, 17 Jan 2010 09:37:31 +0000 (09:37 +0000)]
Implement an "-x" option to cp(1), for compatibility with Linux and
feature parity with du(1) and similar:  When set, cp(1) will not traverse
mount points.

Initial patch by:       Graham J Lee   leeg teaching.physics.ox.ac.uk

PR: bin/88056
Initial patch by: Graham J Lee   leeg teaching.physics.ox.ac.uk
Approved by: ed (mentor)
MFC after: 1 month

14 years agoRemove the rules using 'me6'. Now, 'me' matches both any IPv6 address
ume [Sun, 17 Jan 2010 08:41:07 +0000 (08:41 +0000)]
Remove the rules using 'me6'.  Now, 'me' matches both any IPv6 address
and any IPv4 address configured on an interface in the system.

Reviewed by: David Horn <dhorn2000__at__gmail.com>, luigi, qingli
MFC after: 2 weeks

14 years agoChange 'me' to match any IPv6 address configured on an interface in
ume [Sun, 17 Jan 2010 08:39:48 +0000 (08:39 +0000)]
Change 'me' to match any IPv6 address configured on an interface in
the system as well as any IPv4 address.

Reviewed by: David Horn <dhorn2000__at__gmail.com>, luigi, qingli
MFC after: 2 weeks

14 years agoCorrect a typo (when we talk about offset, it should
delphij [Sun, 17 Jan 2010 08:12:28 +0000 (08:12 +0000)]
Correct a typo (when we talk about offset, it should
be offset, not size).

Submitted by: pluknet at gmail com

14 years agoStripe offset may be usable even without stripe size known,
delphij [Sun, 17 Jan 2010 08:10:37 +0000 (08:10 +0000)]
Stripe offset may be usable even without stripe size known,
so give the output when either is non-zero.

Suggested by: mav

14 years agoExpose stripe offset and stripe size through libgeom and geom(8) userland
delphij [Sun, 17 Jan 2010 06:20:30 +0000 (06:20 +0000)]
Expose stripe offset and stripe size through libgeom and geom(8) userland
utilities.

Reviewed by: pjd, mav (earlier version)

14 years agoUpdate the sparc64 hardware list regarding machines that will be supported
marius [Sat, 16 Jan 2010 20:51:33 +0000 (20:51 +0000)]
Update the sparc64 hardware list regarding machines that will be supported
by 7.3-RELEASE.

Approved by: blackend
MFC after: 3 days

14 years agoUpdate files to remove when MK_ZFS=no.
antoine [Sat, 16 Jan 2010 20:42:50 +0000 (20:42 +0000)]
Update files to remove when MK_ZFS=no.

14 years agoUpdate files to remove when MK_CDDL=no.
antoine [Sat, 16 Jan 2010 20:40:12 +0000 (20:40 +0000)]
Update files to remove when MK_CDDL=no.

14 years agoAdd files to remove when MK_CALENDAR=no.
antoine [Sat, 16 Jan 2010 20:36:27 +0000 (20:36 +0000)]
Add files to remove when MK_CALENDAR=no.

14 years agoGet rid of support of an old version of the SCTP-AUTH draft.
tuexen [Sat, 16 Jan 2010 20:04:17 +0000 (20:04 +0000)]
Get rid of support of an old version of the SCTP-AUTH draft.
Get rid of unused MD5 code.

MFC after: 1 week

14 years agoDo not build netgraph kernel modules if WITHOUT_NETGRAPH is set in src.conf
antoine [Sat, 16 Jan 2010 17:08:22 +0000 (17:08 +0000)]
Do not build netgraph kernel modules if WITHOUT_NETGRAPH is set in src.conf

Submitted by: bf
MFC after: 2 weeks

14 years agoUnexpose the old uname(3) function.
ed [Sat, 16 Jan 2010 17:05:27 +0000 (17:05 +0000)]
Unexpose the old uname(3) function.

Nowadays uname(3) is an inline function around __xuname(3). Prevent
linkage of new binaries against this compatibility function, similar to
what I did with ttyslot(3).

14 years agoFix HISTORY section to detail the history of the driver, not the man page.
gavin [Sat, 16 Jan 2010 14:33:22 +0000 (14:33 +0000)]
Fix HISTORY section to detail the history of the driver, not the man page.

Approved by: ed (mentor, implicit)

14 years agoFix loader.conf(5) Xref
gavin [Sat, 16 Jan 2010 14:32:02 +0000 (14:32 +0000)]
Fix loader.conf(5) Xref

Approved by: ed (mentor, implicit)

14 years agoXref sysctl(3)
gavin [Sat, 16 Jan 2010 14:31:01 +0000 (14:31 +0000)]
Xref sysctl(3)

Approved by: ed (mentor)

14 years agoregen
antoine [Sat, 16 Jan 2010 12:27:15 +0000 (12:27 +0000)]
regen

MFC after: 2 weeks

14 years agoUnbreak the build for pc98. Specify the newly introduced, for ia32,
attilio [Sat, 16 Jan 2010 12:24:12 +0000 (12:24 +0000)]
Unbreak the build for pc98. Specify the newly introduced, for ia32,
DEV_ATPIC also for pc98.

Pointy hat to: me

14 years agoUnbreak world WITHOUT_NETGRAPH.
antoine [Sat, 16 Jan 2010 12:20:26 +0000 (12:20 +0000)]
Unbreak world WITHOUT_NETGRAPH.

PR: 137487
Submitted by: bf (previous version)
No objections: net@
MFC after: 2 weeks

14 years agoAdd gmountver, disk mount verification GEOM class.
trasz [Sat, 16 Jan 2010 09:52:49 +0000 (09:52 +0000)]
Add gmountver, disk mount verification GEOM class.

Note that due to e.g. write throttling ('wdrain'), it can stall all the disk
I/O instead of just the device it's configured for.  Using it for removable
media is therefore not a good idea.

Reviewed by: pjd (earlier version)

14 years agoAmazingly we've been freeing a handle and using that which it refers to
mjacob [Fri, 15 Jan 2010 20:08:08 +0000 (20:08 +0000)]
Amazingly we've been freeing a handle and using that which it refers to
for years. Bad!

MFC after: 1 week

14 years agoManpage for the siba(4) Sonic Inc. Silicon Backplane driver.
brueffer [Fri, 15 Jan 2010 19:34:40 +0000 (19:34 +0000)]
Manpage for the siba(4) Sonic Inc. Silicon Backplane driver.

Submitted by: weongyo

14 years agoDon't free mbuf chains when bge(4) fails to collapse the mbuf
yongari [Fri, 15 Jan 2010 17:55:18 +0000 (17:55 +0000)]
Don't free mbuf chains when bge(4) fails to collapse the mbuf
chains. This part of code is to enhance performance so failing the
collapsing should not free TX frames. Otherwise bge(4) will
unnecessarily drop frames which in turn can freeze the network
connection.

Reported by: Igor Sysoev (is <> rambler-co dot ru)
Tested by: Igor Sysoev (is <> rambler-co dot ru)