]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoMake mdconfig(8) WARNS=6 clean:
jh [Fri, 22 Jan 2010 08:51:58 +0000 (08:51 +0000)]
Make mdconfig(8) WARNS=6 clean:

- Constify geom_config_get() name argument.
- Add void keyword for usage().
- Initialize mdunit to NULL.
- Don't call md_prthumanval() at all if length is NULL.

Approved by: trasz (mentor)

14 years agoTruncate read request rather than returning EIO if the request is
jh [Fri, 22 Jan 2010 08:45:12 +0000 (08:45 +0000)]
Truncate read request rather than returning EIO if the request is
larger than MAXPHYS + 1. This fixes a problem with cat(1) when it
uses a large I/O buffer.

Reported by: Fernando Apesteguía
Suggested by: jilles
Reviewed by: des
Approved by: trasz (mentor)

14 years agoUse [] instead of [0] for flexible arrays.
tuexen [Fri, 22 Jan 2010 07:53:41 +0000 (07:53 +0000)]
Use [] instead of [0] for flexible arrays.

Obtained from: Bruce Cran
MFC after: 1 week

14 years agoEnglish nitpicking.
ed [Fri, 22 Jan 2010 05:19:51 +0000 (05:19 +0000)]
English nitpicking.

Submitted by: jmallett

14 years agoDescribe why pututxline() doesn't entirely conform to standards.
ed [Fri, 22 Jan 2010 05:09:10 +0000 (05:09 +0000)]
Describe why pututxline() doesn't entirely conform to standards.

14 years agoRemove comments about breaking the specification.
ed [Fri, 22 Jan 2010 04:53:08 +0000 (04:53 +0000)]
Remove comments about breaking the specification.

I've discussed this issue with the Austin Group and it will be fixed in
future revisions of the specification. The issue was that ut_line fields
weren't supposed to be valid for LOGIN_PROCESS entries, while
getutxline() would try to match these records anyway.

They also agreed on our way of implementing pututxline() without
getutxid() (which other operating systems also do), but unfortunately
they disagreed with our way of replacing DEAD_PROCESS entries, which is
a pity. The current specification allows the utmpx database to become
infinitely big over time.

See also: http://austingroupbugs.net/view.php?id=213#c378

14 years agoFix a typo in a comment introduced by r202767.
rmacklem [Thu, 21 Jan 2010 21:59:10 +0000 (21:59 +0000)]
Fix a typo in a comment introduced by r202767.

MFC after: 2 weeks

14 years agoFix a new header inclusion.
jkim [Thu, 21 Jan 2010 21:31:39 +0000 (21:31 +0000)]
Fix a new header inclusion.

14 years agoDocument the negnametimeo option for mount_nfs as implemented
rmacklem [Thu, 21 Jan 2010 21:21:00 +0000 (21:21 +0000)]
Document the negnametimeo option for mount_nfs as implemented
by r202767. This is a content change.

MFC after: 2 weeks

14 years agoMerge ACPICA 20100121.
jkim [Thu, 21 Jan 2010 21:14:28 +0000 (21:14 +0000)]
Merge ACPICA 20100121.

14 years agoAdd a timeout for the negative name cache entries in the NFS client.
rmacklem [Thu, 21 Jan 2010 20:57:25 +0000 (20:57 +0000)]
Add a timeout for the negative name cache entries in the NFS client.
This avoids a bogus negative name cache entry from persisting forever
when another client creates an entry with the same name within the
same NFS server time of day clock tick. The mount option negnametimeo
can be used to override the default timeout interval on a
per-mount-point basis. Setting negnametimeo to 0 disables negative
name caching for the mount point.
I also fixed one obvious typo where args.timeo should be
args.maxgrouplist.

Submitted by: jhb (earlier version)
Reviewed by: jhb
MFC after: 2 weeks

14 years agoMakefile cleanups:
delphij [Thu, 21 Jan 2010 17:46:14 +0000 (17:46 +0000)]
Makefile cleanups:

 o Enable building of USD
 o Remove commented out targets
 o Remove WARNS?=6 lines since it's the default

Reviewed by: gabor

14 years agoCorrect a minor mistake in my previous commit.
ed [Thu, 21 Jan 2010 17:26:11 +0000 (17:26 +0000)]
Correct a minor mistake in my previous commit.

getutxent is in category 3, not 5.

14 years agoRemove stale references to utmp(5) and its corresponding filenames.
ed [Thu, 21 Jan 2010 17:25:12 +0000 (17:25 +0000)]
Remove stale references to utmp(5) and its corresponding filenames.

I removed utmp and its manpage, but not other manpages referring to it.

14 years agoRemove libulog from the bootstrap again.
ed [Thu, 21 Jan 2010 16:56:27 +0000 (16:56 +0000)]
Remove libulog from the bootstrap again.

libulog now only provides functions that are used by various packages
from the ports tree, namely the libutempter ones. There is no reason to
link it into the crunch/fixit binaries anymore.

14 years agoCorrect comment typo.
emaste [Thu, 21 Jan 2010 15:01:09 +0000 (15:01 +0000)]
Correct comment typo.

14 years ago- Update Galician catalog
gabor [Thu, 21 Jan 2010 11:36:40 +0000 (11:36 +0000)]
- Update Galician catalog

14 years agoPrint playback channels paths in order of their sequence numbers, not nids.
mav [Thu, 21 Jan 2010 09:11:50 +0000 (09:11 +0000)]
Print playback channels paths in order of their sequence numbers, not nids.

14 years agoFix a bug when printing attributes from multiple files: buflen could be
nwhitehorn [Thu, 21 Jan 2010 03:49:18 +0000 (03:49 +0000)]
Fix a bug when printing attributes from multiple files: buflen could be
longer than the length of the current attribute if the buffer were reused
and previously longer, so bits of the previous, longer attribute would be
written. Fix this by using the actual attribute length.

14 years agoGet rid of redundant setting of interrupt enable bit when restoring the status
neel [Thu, 21 Jan 2010 02:21:31 +0000 (02:21 +0000)]
Get rid of redundant setting of interrupt enable bit when restoring the status
register from the PCB.

Remove a couple of misleading comments while I am here. The comments are
misleading because they imply that interrupts will be enabled after the
status register is restored from the PCB. This is not the case because
the processor is at the exception level (SR_EXL is set).

Approved by: imp (mentor)

14 years ago- Remove unnecessary register writes in activate_device
gonzo [Thu, 21 Jan 2010 00:15:59 +0000 (00:15 +0000)]
- Remove unnecessary register writes in activate_device
    and deactivate_device
- Save state before attaching driver and restore it when
    detaching
- Clear CLK bit after last bit of byte has been sent over
    the bus providing falling edge for last byte in transfer
- Fix several places where CS0 was always assumed
- Add $FreeBSD$ to ar71xxreg.h

14 years ago- Bump __FreeBSD_version for BSDL bc/dc import to deprecate GNU bc/dc
gabor [Wed, 20 Jan 2010 22:45:59 +0000 (22:45 +0000)]
- Bump __FreeBSD_version for BSDL bc/dc import to deprecate GNU bc/dc

Approved by: delphij

14 years agoThe waitpid(2) function needs neither sys/time.h nor sys/resource.h.
pjd [Wed, 20 Jan 2010 22:26:36 +0000 (22:26 +0000)]
The waitpid(2) function needs neither sys/time.h nor sys/resource.h.

14 years agoReplace GNU bc/dc with BSDL versions ported from OpenBSD. They have a good
gabor [Wed, 20 Jan 2010 21:30:52 +0000 (21:30 +0000)]
Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a good
compatibility level with the GNU counterparts and have shown to be mature
enough. For now, the GNU versions aren't removed from the tree, just detached
from the build.

Sponsored by: Google Summer of Code 2008
Portbuild run by: erwin
Approved by: delphij

14 years agoAlso print UNIX timestamps in getent utmpx output.
ed [Wed, 20 Jan 2010 21:12:30 +0000 (21:12 +0000)]
Also print UNIX timestamps in getent utmpx output.

14 years ago- Added a workaround for NC-SI management firmware that would allow
davidch [Wed, 20 Jan 2010 20:33:10 +0000 (20:33 +0000)]
- Added a workaround for NC-SI management firmware that would allow
  frames to be accepted while the driver is resetting the hardware.
  This failure is generally observed when broadcast frames are received
  during driver load and will generate "Unable to write CTX memory"
  errors.
- Small changes to driver flags display.

14 years agoGive the right value when complaining it being wrong.
delphij [Wed, 20 Jan 2010 18:22:56 +0000 (18:22 +0000)]
Give the right value when complaining it being wrong.

Reported by: danfe
MFC after: 3 days

14 years ago- Change the type of nodes_max to u_int and use "%u" format string to
jh [Wed, 20 Jan 2010 16:56:20 +0000 (16:56 +0000)]
- Change the type of nodes_max to u_int and use "%u" format string to
  convert its value. [1]
- Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more
  reasonable than the old four nodes per page (with page size 4096) because
  non-empty regular files always use at least one page. This fixes possible
  overflow in the calculation. [2]
- Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node().

PR: kern/138367
Suggested by: bde [1], Gleb Kurtsou [2]
Approved by: trasz (mentor)

14 years agoSimply ignore unsupported protocols listed in /etc/netconfig and
hrs [Wed, 20 Jan 2010 16:50:13 +0000 (16:50 +0000)]
Simply ignore unsupported protocols listed in /etc/netconfig and
abort only if no transport is available.  This fixes
(INET && !INET6) and (!INET && INET6) case, for example.

14 years agoMake ata_getrev() an optional method by implementing ata_null_getrev().
rpaulo [Wed, 20 Jan 2010 14:29:55 +0000 (14:29 +0000)]
Make ata_getrev() an optional method by implementing ata_null_getrev().
This fixes a bogus '???' boot message on Cambria boards with a CompactFlash
card.

Reviewed by: mav

14 years agoGet rid of unused function MipsTLBInvalidException().
neel [Wed, 20 Jan 2010 14:21:28 +0000 (14:21 +0000)]
Get rid of unused function MipsTLBInvalidException().

Approved by: imp (mentor)

14 years agoMake sure that interrupts are enabled when thread0 is running.
neel [Wed, 20 Jan 2010 14:17:41 +0000 (14:17 +0000)]
Make sure that interrupts are enabled when thread0 is running.

Approved by: imp (mentor)

14 years ago- Add -v argument to `camcontrol identify` command. It makes camcontrol
mav [Wed, 20 Jan 2010 13:31:12 +0000 (13:31 +0000)]
- Add -v argument to `camcontrol identify` command. It makes camcontrol
print full identify data block.
- Improve identify result view and add TRIM support.

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.