]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoBump __FreeBSD_version for scandir(3) and alphasort(3) prototype changes.
kib [Mon, 4 Jan 2010 15:41:16 +0000 (15:41 +0000)]
Bump __FreeBSD_version for scandir(3) and alphasort(3) prototype changes.

14 years agoModernize scandir(3) and alphasort(3) interfaces according to the IEEE
kib [Mon, 4 Jan 2010 15:40:17 +0000 (15:40 +0000)]
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions,
so we better follow too (older glibc used old BSDish alphasort prototype
and corresponding type of the comparision function for scandir). While
there, change the definitions of the functions to ANSI C and fix several
style issues nearby.

Remove requirement for "sys/types.h" include for functions from manpage.

POSIX also requires that alphasort(3) sorts as if strcoll(3) was used,
but leave the strcmp(3) call in the function for now.

Adapt in-tree callers of scandir(3) to new declaration. The fact that
select_sections() from catman(1) could modify supplied struct dirent is
a bug.

PR: standards/142255
MFC after: 2 weeks

14 years agoPG_NOSYNC is called VPO_NOSYNC for long time.
kib [Mon, 4 Jan 2010 14:58:41 +0000 (14:58 +0000)]
PG_NOSYNC is called VPO_NOSYNC for long time.

MFC after: 3 days

14 years agoFix comments.
trasz [Mon, 4 Jan 2010 12:39:42 +0000 (12:39 +0000)]
Fix comments.

14 years agoFix formatting.
obrien [Mon, 4 Jan 2010 11:11:37 +0000 (11:11 +0000)]
Fix formatting.

14 years agoThere are actually 129 tests here.
obrien [Mon, 4 Jan 2010 11:00:12 +0000 (11:00 +0000)]
There are actually 129 tests here.

14 years agoCatch up with UNIX98-style PTY's.
obrien [Mon, 4 Jan 2010 10:59:14 +0000 (10:59 +0000)]
Catch up with UNIX98-style PTY's.

14 years ago'prove -r' isn't as smart as grog thought.
obrien [Mon, 4 Jan 2010 10:58:08 +0000 (10:58 +0000)]
'prove -r' isn't as smart as grog thought.

14 years agoCommitted the wrong version in r201484. This time really fix the "-t"
obrien [Mon, 4 Jan 2010 10:50:17 +0000 (10:50 +0000)]
Committed the wrong version in r201484.  This time really fix the "-t"
functionality.  Per the regression tests (pgrep-t.t & pkill-t.t), "-t"
should accept "v1", which means a plain number should be accepted for
UNIX98-style PTY's.

14 years agoFix the "-t" functionality. Per the regression tests (pgrep-t.t & pkill-t.t),
obrien [Mon, 4 Jan 2010 10:37:07 +0000 (10:37 +0000)]
Fix the "-t" functionality.  Per the regression tests (pgrep-t.t & pkill-t.t),
"-t" should accept "v1", which means a plain number should be accepted for
UNIX98-style PTY's.

14 years agoYou need to be root to run this test.
obrien [Mon, 4 Jan 2010 09:59:18 +0000 (09:59 +0000)]
You need to be root to run this test.

14 years agoAlso cleanup after the test run.
obrien [Mon, 4 Jan 2010 09:57:00 +0000 (09:57 +0000)]
Also cleanup after the test run.

14 years agoDon't process 'lastcomm' if "AUTOMATED" is defined.
obrien [Mon, 4 Jan 2010 09:54:24 +0000 (09:54 +0000)]
Don't process 'lastcomm' if "AUTOMATED" is defined.
The tests for it require manual setup.

14 years agoIt is expected these are chmod +x.
obrien [Mon, 4 Jan 2010 09:50:30 +0000 (09:50 +0000)]
It is expected these are chmod +x.

14 years agoRegression test for r201456.
obrien [Mon, 4 Jan 2010 09:49:23 +0000 (09:49 +0000)]
Regression test for r201456.

14 years ago- Add two particulary interesting quotes from the past decade.
stas [Mon, 4 Jan 2010 09:16:35 +0000 (09:16 +0000)]
- Add two particulary interesting quotes from the past decade.

14 years agoAdd user-level semaphore synchronous type, this change allows multiple
davidxu [Mon, 4 Jan 2010 05:27:49 +0000 (05:27 +0000)]
Add user-level semaphore synchronous type, this change allows multiple
processes to share semaphore by using shared memory area, in simplest case,
only one atomic operation is needed in userland, waiter flag is maintained by
kernel and userland only checks the flag, if the flag is set, user code enters
kernel and does a wakeup() call.
Move type definitions into file _umtx.h to minimize compiling time.
Also type names need to be prefixed with underline character, this would reduce
name conflict (still in progress).

14 years agoRemove CNS11XXNAS.hints.
rpaulo [Mon, 4 Jan 2010 03:40:46 +0000 (03:40 +0000)]
Remove CNS11XXNAS.hints.

14 years agoAdd support for Cavium Econa CNS11XX ARM boards. These boards were
rpaulo [Mon, 4 Jan 2010 03:35:45 +0000 (03:35 +0000)]
Add support for Cavium Econa CNS11XX ARM boards. These boards were
previously know by StarSemi STR9104.

Tested by the submitter on an Emprex NSD-100 board.

Submitted by: Yohanes Nugroho <yohanes at gmail.com>
Reviewed by: freebsd-arm, stas
Obtained from: //depot/projects/str91xx/...

14 years agoReport lines that ought to contain a ':' operator but start with a '.'
obrien [Mon, 4 Jan 2010 00:49:04 +0000 (00:49 +0000)]
Report lines that ought to contain a ':' operator but start with a '.'
as "Unknown directive" sinze they are more likely to be .elseif (etc).
(NetBSD PR 37222).

Obtained from: NetBSD

14 years agoAdd check for subversion "original" marker.
obrien [Mon, 4 Jan 2010 00:32:22 +0000 (00:32 +0000)]
Add check for subversion "original" marker.

14 years agocardbus -> CardBus
imp [Sun, 3 Jan 2010 23:31:58 +0000 (23:31 +0000)]
cardbus -> CardBus

14 years agocardbus -> CardBus
imp [Sun, 3 Jan 2010 23:29:49 +0000 (23:29 +0000)]
cardbus -> CardBus

14 years agocardbus -> CardBus
imp [Sun, 3 Jan 2010 23:28:32 +0000 (23:28 +0000)]
cardbus -> CardBus

14 years agoCardBus instead of cardbus.
imp [Sun, 3 Jan 2010 23:26:29 +0000 (23:26 +0000)]
CardBus instead of cardbus.

14 years agoFix CardBus spelling.
imp [Sun, 3 Jan 2010 23:15:14 +0000 (23:15 +0000)]
Fix CardBus spelling.

MFC after: 1 month

14 years agoComplete ntptrace(8) removal:
antoine [Sun, 3 Jan 2010 22:29:06 +0000 (22:29 +0000)]
Complete ntptrace(8) removal:
- do not install man page
- update ObsoleteFiles.inc

Approved by: roberto@

14 years agoFix regression introduced in r198318. BCM5754/BCM5754M uses the
yongari [Sun, 3 Jan 2010 21:49:24 +0000 (21:49 +0000)]
Fix regression introduced in r198318. BCM5754/BCM5754M uses the
same ASIC ID of BCM5758 such that r198318 incorecctly enabled TSO
on BCM5754.BCM5754M controllers. BCM5754/BCM5754M needs a special
firmware to enable TSO and bge(4) does not support firmware based
TSO.

Reported by: ed
Tested by: ed

14 years agoForced commit, to provide correct commit message for r201440:
gavin [Sun, 3 Jan 2010 21:27:10 +0000 (21:27 +0000)]
Forced commit, to provide correct commit message for r201440:

Don't complain when we encounter the "cache" source, it's valid.  Also fix
the error message to include a line feed and not include a stray comma.

PR: bin/121671
Submitted by: Artis Caune  artis.caune gmail.com
Approved by: ed (mentor)
MFC after: 2 weeks

While here, change "> /dev/stderr" for more usual ">&2"

Submitted by: jilles

14 years agoThe size of credential messages is limited by CMGROUP_MAX rather than
brooks [Sun, 3 Jan 2010 20:45:49 +0000 (20:45 +0000)]
The size of credential messages is limited by CMGROUP_MAX rather than
NGROUPS.

MFC after: 1 week

14 years agoAdd vlan(4) to all GENERIC kernels.
brooks [Sun, 3 Jan 2010 20:40:54 +0000 (20:40 +0000)]
Add vlan(4) to all GENERIC kernels.

MFC after: 1 week

14 years agoThe test for "same client" for the experimental nfs server over NFSv4
rmacklem [Sun, 3 Jan 2010 20:08:10 +0000 (20:08 +0000)]
The test for "same client" for the experimental nfs server over NFSv4
was broken w.r.t. byte range lock conflicts when it was the same client
and the request used the open_to_lock_owner4 case, since lckstp->ls_clp
was not set. This patch fixes it by using "clp" instead of "lckstp->ls_clp".

MFC after: 2 weeks

14 years agoThe default hash table size is 257 not 255. Reword the rest of the line
gavin [Sun, 3 Jan 2010 19:28:51 +0000 (19:28 +0000)]
The default hash table size is 257 not 255.  Reword the rest of the line
slightly while here.

PR: bin/121671
Submitted by: Artis Caune  artis.caune gmail.com
Approved by: ed (mentor)

14 years agoThe default hash table size is 257 not 255. Reword the rest of the line
gavin [Sun, 3 Jan 2010 19:14:22 +0000 (19:14 +0000)]
The default hash table size is 257 not 255.  Reword the rest of the line
slightly while here.

PR: bin/121671
Submitted by: Artis Caune  artis.caune gmail.com
Approved by: ed (mentor)

14 years agoFix three related problems in the experimental nfs client when
rmacklem [Sun, 3 Jan 2010 18:27:10 +0000 (18:27 +0000)]
Fix three related problems in the experimental nfs client when
checking for conflicts w.r.t. byte range locks for NFSv4.
1 - Return 0 instead of EACCES when a conflict is found, for F_GETLK.
2 - Check for "same file" when checking for a conflict.
3 - Don't check for a conflict for the F_UNLCK case.

14 years agoMake mac_lomac(4) able to interpret NFSv4 access bits.
trasz [Sun, 3 Jan 2010 17:19:14 +0000 (17:19 +0000)]
Make mac_lomac(4) able to interpret NFSv4 access bits.

Reviewed by: rwatson

14 years agoLower WARNS for sendmail.
ed [Sun, 3 Jan 2010 15:32:25 +0000 (15:32 +0000)]
Lower WARNS for sendmail.

Even though it builds with WARNS=2, some users link sendmail from the
base system against SASL. This doesn't build in this case.

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

14 years agoAdd manual page for gcache(8).
trasz [Sun, 3 Jan 2010 15:20:52 +0000 (15:20 +0000)]
Add manual page for gcache(8).

14 years agosh: Send the "not found" message for builtin <cmd> to redirected fd 2.
jilles [Sun, 3 Jan 2010 15:01:38 +0000 (15:01 +0000)]
sh: Send the "not found" message for builtin <cmd> to redirected fd 2.

14 years agoFix card/device names, no functional change
mbr [Sun, 3 Jan 2010 13:59:59 +0000 (13:59 +0000)]
Fix card/device names, no functional change

The ADMtek AN985 is the cardbus variant of ADMtek AN983
The Netgear FA511 is just a relabled ADMtek AN985

PR: kern/50574
MFC after: 1 month

14 years agoFix return code in the case of successful file transfer, broken in
gavin [Sun, 3 Jan 2010 13:48:58 +0000 (13:48 +0000)]
Fix return code in the case of successful file transfer, broken in
tftp.c 1.13

PR: bin/117452
Submitted by: Spencer Minear  minear securecomputing.com
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agosh: Add a regression test that tries out all arithmetic ops.
jilles [Sun, 3 Jan 2010 12:50:27 +0000 (12:50 +0000)]
sh: Add a regression test that tries out all arithmetic ops.

MFC after: 1 week

14 years agoUse t1 & t2 as more symbolic than 'a' and 'b' for the two times.
obrien [Sun, 3 Jan 2010 12:17:51 +0000 (12:17 +0000)]
Use t1 & t2 as more symbolic than 'a' and 'b' for the two times.

14 years agoProvide clean output with 'prove -r'.
obrien [Sun, 3 Jan 2010 11:53:48 +0000 (11:53 +0000)]
Provide clean output with 'prove -r'.

14 years agoHide expected error output so the 'prove -r' results are easy to read.
obrien [Sun, 3 Jan 2010 09:31:33 +0000 (09:31 +0000)]
Hide expected error output so the 'prove -r' results are easy to read.

14 years agoAllow to be driven by 'prove -r'.
obrien [Sun, 3 Jan 2010 09:30:50 +0000 (09:30 +0000)]
Allow to be driven by 'prove -r'.

14 years agoMake sure 'pack' is usable for 'prove -r'.
obrien [Sun, 3 Jan 2010 08:44:18 +0000 (08:44 +0000)]
Make sure 'pack' is usable for 'prove -r'.

14 years agoTransform from kernel file to userland source.
obrien [Sun, 3 Jan 2010 08:33:24 +0000 (08:33 +0000)]
Transform from kernel file to userland source.

14 years agoAvoid NULL dereference in arpresolve.
np [Sun, 3 Jan 2010 06:43:13 +0000 (06:43 +0000)]
Avoid NULL dereference in arpresolve.

14 years agoRe-enable more options and devices. Now kernel size problem is gone.
nyan [Sun, 3 Jan 2010 04:38:38 +0000 (04:38 +0000)]
Re-enable more options and devices.  Now kernel size problem is gone.

MFC after: 2 week

14 years agoExclude options COMPAT_FREEBSD4 now that the MD freebsd4_sigreturn()
marius [Sun, 3 Jan 2010 02:58:43 +0000 (02:58 +0000)]
Exclude options COMPAT_FREEBSD4 now that the MD freebsd4_sigreturn()
is gone since r201396 and which is also in line with the fact that
FreeBSD 4 didn't supported sparc64.

14 years agoMake sure that the WWNN is also created for 2100..2300 cards.
mjacob [Sun, 3 Jan 2010 02:43:46 +0000 (02:43 +0000)]
Make sure that the WWNN is also created for 2100..2300 cards.
MFC after: 1 day

14 years agoReduce diff against OpenSolaris - move Giant acquire/release to
delphij [Sat, 2 Jan 2010 23:38:03 +0000 (23:38 +0000)]
Reduce diff against OpenSolaris - move Giant acquire/release to
zfs_znode.c.  As a side effect this also eliminates two potential
Giant leaks.

Approved by: pjd
MFC after: 1 month

14 years agoDon't forget to clean up the file copied from the kernel sources.
ed [Sat, 2 Jan 2010 20:27:14 +0000 (20:27 +0000)]
Don't forget to clean up the file copied from the kernel sources.

MFC after: 1 week

14 years agoRemove dead code. This section of code is only run in the
gavin [Sat, 2 Jan 2010 20:18:10 +0000 (20:18 +0000)]
Remove dead code.  This section of code is only run in the
(sblock.fs_magic == FS_UFS1_MAGIC) case, so the check within the
loop is redundant.

Submitted by: Nate Eldredge  nge cs.hmc.edu
Reviewed by: mjacob
Approved by: ed (mentor)
MFC after: 1 month

14 years agoRemove reference to the bug in FreeBSD 2.0.
kib [Sat, 2 Jan 2010 17:45:53 +0000 (17:45 +0000)]
Remove reference to the bug in FreeBSD 2.0.

Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 3 days

14 years agoFix typo: s/partion/partition/
mbr [Sat, 2 Jan 2010 17:32:40 +0000 (17:32 +0000)]
Fix typo: s/partion/partition/

Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 3 days

14 years agoMake it clear that "interface" is one out of possibly many interface of the
mbr [Sat, 2 Jan 2010 17:29:13 +0000 (17:29 +0000)]
Make it clear that "interface" is one out of possibly many interface of the
local machine (s/the network interface/a network interface).

Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 3 days

14 years agoAdd one more supported controller.
brueffer [Sat, 2 Jan 2010 16:27:25 +0000 (16:27 +0000)]
Add one more supported controller.

Submitted by: pluknet <pluknet@gmail.com>
MFC after: 1 week

14 years ago- Demapping unused kernel TLB slots has proven to work reliably so move
marius [Sat, 2 Jan 2010 15:44:16 +0000 (15:44 +0000)]
- Demapping unused kernel TLB slots has proven to work reliably so move
  the associated debugging under bootverbose.
- Remove freebsd4_sigreturn(); given that FreeBSD 4 didn't supported
  sparc64 this only ever served as a transition aid prior to FreeBSD
  5.0 and is unused by default since COMPAT_FREEBSD4 was removed from
  GENERIC in r143072 nearly 5 years ago.

14 years ago- Preserve the PROM IOMMU in order to allow OFW drivers to continue to
marius [Sat, 2 Jan 2010 15:19:33 +0000 (15:19 +0000)]
- Preserve the PROM IOMMU in order to allow OFW drivers to continue to
  work.
- Sanity check the parameters passed to the implementations of the
  pcib_{read,write}_config() methods. Using illegal values can cause
  no real harm but it doesn't hurt to avoid unnecessary data error
  traps requiring to flush and re-enable the level 1 caches.

14 years agoUse UFS2 as default filesystem. Now pc98's boot2 works for UFS2.
nyan [Sat, 2 Jan 2010 12:42:33 +0000 (12:42 +0000)]
Use UFS2 as default filesystem.  Now pc98's boot2 works for UFS2.

MFC after: 2 week.

14 years agoDo kgzip to the loader on pc98, too. Now pc98's boot2 works for ELF.
nyan [Sat, 2 Jan 2010 12:37:54 +0000 (12:37 +0000)]
Do kgzip to the loader on pc98, too.  Now pc98's boot2 works for ELF.

MFC after: 2 week

14 years agoThe last big commit: let usr.sbin/ use WARNS=6 by default.
ed [Sat, 2 Jan 2010 11:07:44 +0000 (11:07 +0000)]
The last big commit: let usr.sbin/ use WARNS=6 by default.

14 years agoRemove unused variables.
ed [Sat, 2 Jan 2010 11:06:39 +0000 (11:06 +0000)]
Remove unused variables.

14 years agoMark ftwv as __unused. This compare function does not need it.
ed [Sat, 2 Jan 2010 11:06:11 +0000 (11:06 +0000)]
Mark ftwv as __unused. This compare function does not need it.

14 years agoANSIfy some more tools in usr.sbin/.
ed [Sat, 2 Jan 2010 11:05:34 +0000 (11:05 +0000)]
ANSIfy some more tools in usr.sbin/.

Most of these tools build with WARNS=6, except for their use of K&R
function declarations.

14 years agoBuild usr.bin/ with WARNS=6 by default.
ed [Sat, 2 Jan 2010 10:27:05 +0000 (10:27 +0000)]
Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.

14 years agoMute some warnings on uninitialized variables.
ed [Sat, 2 Jan 2010 10:14:35 +0000 (10:14 +0000)]
Mute some warnings on uninitialized variables.

The code does the right thing, but the compiler is unable to figure it
out. All paths that use that variable use the same invariant.

14 years agoRemove a warning by adding extra parentheses.
ed [Sat, 2 Jan 2010 10:13:21 +0000 (10:13 +0000)]
Remove a warning by adding extra parentheses.

GCC generates warnings when using "if (foo = bar)". In this case its use
is valid.

14 years agoAdd missing #include for string routines.
ed [Sat, 2 Jan 2010 10:12:12 +0000 (10:12 +0000)]
Add missing #include for string routines.

14 years agoANSIfy various tools in usr.bin/.
ed [Sat, 2 Jan 2010 10:09:20 +0000 (10:09 +0000)]
ANSIfy various tools in usr.bin/.

Most of these tools properly build at WARNS=6, except for their K&R
function declarations. Fix this, so we can bump WARNS as well.

14 years agoBuild lib/ with WARNS=6 by default.
ed [Sat, 2 Jan 2010 09:58:07 +0000 (09:58 +0000)]
Build lib/ with WARNS=6 by default.

Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.

I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.

14 years agoMake WARNS=6 the default for libexec/.
ed [Sat, 2 Jan 2010 09:50:19 +0000 (09:50 +0000)]
Make WARNS=6 the default for libexec/.

Just like bin/ and sbin/, I think setting WARNS to the highest value
possible will make it more attractive for people to fix warnings.

- The WARNS variable is set in the Makefile in the directory of the
  application itself, making it more likely that it will be removed out
  of curiosity to see what happens.
- New applications will most likely build with WARNS=6 out of the box,
  because the author would more likely fix the warnings during
  development than lower WARNS.

Unfortunately almost all apps in libexec require a lowered value of
WARNS.

14 years agoFix several warnings.
ed [Sat, 2 Jan 2010 09:45:59 +0000 (09:45 +0000)]
Fix several warnings.

- Add __unused keywords.
- Don't shadow a global variable called cr.
- Make the global cr variable const.

14 years agoWelcome to 2010.
imp [Sat, 2 Jan 2010 01:12:10 +0000 (01:12 +0000)]
Welcome to 2010.

14 years agoProperly return the UUID represented by the alias.
marcel [Sat, 2 Jan 2010 01:02:59 +0000 (01:02 +0000)]
Properly return the UUID represented by the alias.

PR: 142174
Submitted by: Przemyslaw Laczynski <torindel@gmail.com>
Pointy hat to: rpaulo

14 years agoChange BUS_SPACE_MAXADDR from 2^32-1 to 2^64-1. 2^32-1 is representative
marcel [Sat, 2 Jan 2010 00:37:00 +0000 (00:37 +0000)]
Change BUS_SPACE_MAXADDR from 2^32-1 to 2^64-1. 2^32-1 is representative
for its origin, more than for its accuracy.

MFC after: 1 week

14 years agoFix botches in r201005:
marius [Fri, 1 Jan 2010 22:47:53 +0000 (22:47 +0000)]
Fix botches in r201005:
- Actually use the newly introduced sc_res in the front-end.
- Remove a whitespace glitch in mk48txx_gettime().

14 years agos/named_confidr/named_confdir/ in the rndc.key check. The line in
dougb [Fri, 1 Jan 2010 22:10:07 +0000 (22:10 +0000)]
s/named_confidr/named_confdir/ in the rndc.key check. The line in
the command to create it was right, but the check was wrong, so it
was getting created every time. Mea culpa.

Submitted by: oliver

14 years agoQuiet variable "shadows" warning:
obrien [Fri, 1 Jan 2010 20:55:11 +0000 (20:55 +0000)]
Quiet variable "shadows" warning:
  sys/vmmeter.h: warning: shadowed declaration is here
  machine/cpufunc.h: In function 'insw':
  machine/cpufunc.h: warning: declaration of 'cnt' shadows a global declaration
  ..snip..

14 years agoWith the introduction of named_conf the -c example in named_flags
dougb [Fri, 1 Jan 2010 19:09:40 +0000 (19:09 +0000)]
With the introduction of named_conf the -c example in named_flags
is no longer necessary or desirable. Update the comment to indicate
that _flags should be used for options other than -u and -c.

14 years agoThe script hard-coded the assumption that the "configuration directory"
dougb [Fri, 1 Jan 2010 19:06:00 +0000 (19:06 +0000)]
The script hard-coded the assumption that the "configuration directory"
would be "/etc/namedb" in a number of places. Since the user may make
a different choice, introduce a new internal variable, named_confdir
that is generated relative to the location of $named_conf.

While this will work for some things (especially a highly customized
build from ISC source) there are still a number of places where
/etc/namedb is assumed that it is not easily virtualized (E.g., mtree).
If you deviate from the defaults you'd better know what you're doing. :)

14 years agosh: Fix some bugs with backquoted builtins:
jilles [Fri, 1 Jan 2010 18:17:46 +0000 (18:17 +0000)]
sh: Fix some bugs with backquoted builtins:
- correctly handle error output in $(builtin 2>&1), clarify out1/out2 vs
  output/errout in the code
- treat all builtins as regular builtins so errors do not abort the shell
  and variable assignments do not persist
- respect the caller's INTOFF

Some bugs still exist:
- expansion errors may still abort the shell
- some side effects of expansions and builtins persist

14 years agosh(1): document ulimit -w (swapuse rlimit).
jilles [Thu, 31 Dec 2009 22:33:58 +0000 (22:33 +0000)]
sh(1): document ulimit -w (swapuse rlimit).

MFC after: 1 week

14 years agosh(1): Correct two places where "$@" lacked necessary quotes.
jilles [Thu, 31 Dec 2009 22:01:17 +0000 (22:01 +0000)]
sh(1): Correct two places where "$@" lacked necessary quotes.

MFC after: 1 week

14 years agoIf a filter has already been added, actually return EEXIST when trying
brooks [Thu, 31 Dec 2009 20:56:28 +0000 (20:56 +0000)]
If a filter has already been added, actually return EEXIST when trying
at add it again.

MFC after: 1 week

14 years agoUse stricter checking to match possible vlan clones by not allowing extra
jhb [Thu, 31 Dec 2009 20:44:38 +0000 (20:44 +0000)]
Use stricter checking to match possible vlan clones by not allowing extra
garbage characters around or within the tag.

Reviewed by: brooks
MFC after: 3 days

14 years agoThe devices that supported EVFILT_NETDEV kqueue filters were removed in
brooks [Thu, 31 Dec 2009 20:29:58 +0000 (20:29 +0000)]
The devices that supported EVFILT_NETDEV kqueue filters were removed in
r195175.  Remove all definitions, documentation, and usage.

fifo_misc.c:
Remove all kqueue tests as fifo_io.c performs all those that
would have remained.

Reviewed by: rwatson
MFC after: 3 weeks
X-MFC note: don't change vlan_link_state() function signature

14 years agoo Correct URL to announcements collection.
maxim [Thu, 31 Dec 2009 19:36:51 +0000 (19:36 +0000)]
o Correct URL to announcements collection.

PR: docs/142204
Submitted by: Jason Helfman
MFC after: 1 week

14 years agoAllow swap out of the kernel stack for the thread with priority greater
kib [Thu, 31 Dec 2009 18:52:58 +0000 (18:52 +0000)]
Allow swap out of the kernel stack for the thread with priority greater
or equial then PSOCK, not less or equial. Higher priority has lesser
numerical value.

Existing test does not allow for swapout of the thread waiting for
advisory lock, for exiting child or sleeping for timeout. On the other
hand, high-priority waiters of VFS/VM events can be swapped out.

Tested by: pho
Reviewed by: jhb
MFC after: 1 week

14 years agoFix the experimental NFS client so that it can create Unix
rmacklem [Thu, 31 Dec 2009 18:02:48 +0000 (18:02 +0000)]
Fix the experimental NFS client so that it can create Unix
domain sockets on an NFSv4 mount point. It was generating
incorrect XDR in the request for this case.

Tested by: infofarmer
MFC after: 2 weeks

14 years agosh: Use PATH= assignment in type.
jilles [Thu, 31 Dec 2009 17:44:24 +0000 (17:44 +0000)]
sh: Use PATH= assignment in type.

Example:
  PATH=/var/empty; PATH=/bin type ls

14 years agosh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).
jilles [Thu, 31 Dec 2009 16:13:33 +0000 (16:13 +0000)]
sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).

14 years agoReimplement the boot2 for pc98 completely.
nyan [Thu, 31 Dec 2009 15:03:33 +0000 (15:03 +0000)]
Reimplement the boot2 for pc98 completely.
It's based on the newest i386's one and has the advantage of:

 - ELF binary support.
 - UFS2 filesystem support.
 - Many FreeBSD slices support on a disk.

Tested by: SATOU Tomokazu ( tomo1770 _ maple _ ocn _ ne _ jp ),
WATANABE Kazuhiro ( CQG00620 _ nifty _ ne _ jp ) and
nyan

MFC after: 2 week

Happy New Year in Japan!!

14 years agoDon't use 15M-16M area on pc98. It's reserved for some devices.
nyan [Thu, 31 Dec 2009 12:17:38 +0000 (12:17 +0000)]
Don't use 15M-16M area on pc98.  It's reserved for some devices.

MFC after: 2 week

14 years agoAdd setting machine type support to the loader.
nyan [Thu, 31 Dec 2009 12:05:48 +0000 (12:05 +0000)]
Add setting machine type support to the loader.

MFC after: 2 week

14 years agoHappy New Year 2010! :-)
obrien [Thu, 31 Dec 2009 10:00:37 +0000 (10:00 +0000)]
Happy New Year 2010! :-)

14 years agoDelete the svn:mime-type property from these text files.
obrien [Thu, 31 Dec 2009 09:33:18 +0000 (09:33 +0000)]
Delete the svn:mime-type property from these text files.

14 years agoCreate a Node WWN from the *Port* WWN, not vice versa, for 2400s.
mjacob [Thu, 31 Dec 2009 04:16:18 +0000 (04:16 +0000)]
Create a Node WWN from the *Port* WWN, not vice versa, for 2400s.

If the NAA is type 2, the Node WWN is the Port WWN with the 12 bits
of port (48..60) cleared. This iff a wwn fetched from NVRAM is zero.

MFC after: 1 week