]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoIn est_acpi_info(), initialize count before passing its pointer to
gibbs [Sat, 1 Mar 2008 21:58:34 +0000 (21:58 +0000)]
In est_acpi_info(), initialize count before passing its pointer to
CPUFREQ_DRV_SETTINGS().  The value of count on input is used to
prefent overflow of the settings buffer passed into CPUFREQ_DRV_SETTINGS().

This corrects the "est: CPU supports Enhanced Speedstep, but is not recognized."
error on my system.

MFC after: 1 week

16 years agoFix lockstatus sorting on the top list.
attilio [Sat, 1 Mar 2008 21:24:07 +0000 (21:24 +0000)]
Fix lockstatus sorting on the top list.

16 years agoConnect lockmgr_args(9) to the build.
attilio [Sat, 1 Mar 2008 20:39:56 +0000 (20:39 +0000)]
Connect lockmgr_args(9) to the build.

16 years ago- Add the informations for lockmgr_args(9)
attilio [Sat, 1 Mar 2008 20:36:50 +0000 (20:36 +0000)]
- Add the informations for lockmgr_args(9)
- Sort rightly lockstatus(9) in the manpage

16 years agoUpdate lockmgr manpage with last lockmgr modifies:
attilio [Sat, 1 Mar 2008 20:05:20 +0000 (20:05 +0000)]
Update lockmgr manpage with last lockmgr modifies:
- Remove LK_SLEEPFAIL and LK_NOWAIT for lockinit() and add LK_QUIET and
  LK_NOPROFILE
- Include sys/lock.h as mandatory for the lockmgr support

16 years agoBump __FreeBSD_version in order to reflect:
attilio [Sat, 1 Mar 2008 19:53:26 +0000 (19:53 +0000)]
Bump __FreeBSD_version in order to reflect:
- lockwaiters() axing out
- BUF_LOCKWAITERS() axing out
- brelvp() prototype changing
- lockinit() accepted arguments() range changing

16 years ago- Handle buffer lock waiters count directly in the buffer cache instead
attilio [Sat, 1 Mar 2008 19:47:50 +0000 (19:47 +0000)]
- Handle buffer lock waiters count directly in the buffer cache instead
  than rely on the lockmgr support [1]:
  * bump the waiters only if the interlock is held
  * let brelvp() return the waiters count
  * rely on brelvp() instead than BUF_LOCKWAITERS() in order to check
    for the waiters number
- Remove a namespace pollution introduced recently with lockmgr.h
  including lock.h by including lock.h directly in the consumers and
  making it mandatory for using lockmgr.
- Modify flags accepted by lockinit():
  * introduce LK_NOPROFILE which disables lock profiling for the
    specified lockmgr
  * introduce LK_QUIET which disables ktr tracing for the specified
    lockmgr [2]
  * disallow LK_SLEEPFAIL and LK_NOWAIT to be passed there so that it
    can only be used on a per-instance basis
- Remove BUF_LOCKWAITERS() and lockwaiters() as they are no longer
  used

This patch breaks KPI so __FreBSD_version will be bumped and manpages
updated by further commits. Additively, 'struct buf' changes results in
a disturbed ABI also.

[2] Really, currently there is no ktr tracing in the lockmgr, but it
will be added soon.

[1] Submitted by: kib
Tested by: pho, Andrea Barberio <insomniac at slackware dot it>

16 years agoAdd support for the libalias redirect functionality.
mav [Sat, 1 Mar 2008 17:14:02 +0000 (17:14 +0000)]
Add support for the libalias redirect functionality.

Submitted by:   Vadim Goncharov <vadim_nuclight@mail.ru>

16 years agoXref uchcom(4).
brueffer [Sat, 1 Mar 2008 13:28:27 +0000 (13:28 +0000)]
Xref uchcom(4).

16 years agoManpage for the uchcom(4) driver, adapted from the one in NetBSD.
brueffer [Sat, 1 Mar 2008 13:05:03 +0000 (13:05 +0000)]
Manpage for the uchcom(4) driver, adapted from the one in NetBSD.

16 years agoAdd audit_prefixes to two more globally visible functions in the Audit
rwatson [Sat, 1 Mar 2008 11:40:49 +0000 (11:40 +0000)]
Add audit_prefixes to two more globally visible functions in the Audit
implementation.

MFC after: 1 month

16 years agoMove the HARDWARE section below the DESCRIPTION section, like it is
brueffer [Sat, 1 Mar 2008 11:35:30 +0000 (11:35 +0000)]
Move the HARDWARE section below the DESCRIPTION section, like it is
everywhere else.

MFC after: 3 days

16 years agoRename globally exposed symbol send_trigger() to audit_send_trigger().
rwatson [Sat, 1 Mar 2008 11:04:04 +0000 (11:04 +0000)]
Rename globally exposed symbol send_trigger() to audit_send_trigger().

MFC after: 1 month

16 years agoChange data formating in debug code.
jfv [Sat, 1 Mar 2008 08:23:35 +0000 (08:23 +0000)]
Change data formating in debug code.

16 years agoAn error in the poll routine turned up during LINT build
jfv [Sat, 1 Mar 2008 04:36:24 +0000 (04:36 +0000)]
An error in the poll routine turned up during LINT build

16 years agoMissing braces in link routine.
jfv [Sat, 1 Mar 2008 04:12:54 +0000 (04:12 +0000)]
Missing braces in link routine.

16 years agoSomehow missed the stanza for 575 in the em driver
jfv [Sat, 1 Mar 2008 03:58:49 +0000 (03:58 +0000)]
Somehow missed the stanza for 575 in the em driver

16 years agoMissed some code that is ifdef STRICT_ALIGN :(
jfv [Sat, 1 Mar 2008 03:25:33 +0000 (03:25 +0000)]
Missed some code that is ifdef STRICT_ALIGN :(

16 years agoTemporarily comment out new entries due to build problems, to be resolved next week.
jfv [Sat, 1 Mar 2008 01:09:35 +0000 (01:09 +0000)]
Temporarily comment out new entries due to build problems, to be resolved next week.

16 years agoAdd entries for em, igb, and ixgbe adapters.
jfv [Sat, 1 Mar 2008 00:03:52 +0000 (00:03 +0000)]
Add entries for em, igb, and ixgbe adapters.

16 years agoRemove a dereference. It was unintended and a no-op.
scf [Sat, 1 Mar 2008 00:02:12 +0000 (00:02 +0000)]
Remove a dereference.  It was unintended and a no-op.

Use the correct value of errno.  Although the errno value passed into
printf() follows the *env() call, it is not guaranteed to be the errno
from that call.  When I wrote the regression tester, the environment I
used did pass the errno from the call.  Consolidate the print for the
return code and errno into a function in the process of fixing this.

Approved by: wes (mentor)

16 years agoLast change was incomplete, instantiate the igb variable...
jfv [Fri, 29 Feb 2008 22:52:59 +0000 (22:52 +0000)]
Last change was incomplete, instantiate the igb variable...

16 years agoAdd igb driver to the build
jfv [Fri, 29 Feb 2008 22:42:29 +0000 (22:42 +0000)]
Add igb driver to the build

16 years agoFollow-up improvements to the handling of false positives: If the
marcel [Fri, 29 Feb 2008 22:41:36 +0000 (22:41 +0000)]
Follow-up improvements to the handling of false positives: If the
partition table is empty, check to see if we have something that
looks sufficiently like a BPB. On non-i386 machines, the boot
sector typically doesn't contain boot code; the end of the boot
sector is all zeroes. This is also where the partition table is
for MBRs.
We only check the sector size and cluster size, as that seems to
be the most reliable across implementations, BPB versions and
platforms.

16 years agoNeed to add define of FAST interrupts as default
jfv [Fri, 29 Feb 2008 22:38:12 +0000 (22:38 +0000)]
Need to add define of FAST interrupts as default

16 years agoHook ipfw_nat to the build.
piso [Fri, 29 Feb 2008 22:28:18 +0000 (22:28 +0000)]
Hook ipfw_nat to the build.

16 years agoMove ipfw's nat code into its own kld: ipfw_nat.
piso [Fri, 29 Feb 2008 22:27:19 +0000 (22:27 +0000)]
Move ipfw's nat code into its own kld: ipfw_nat.

16 years agoDetail the em/igb split so no one gets confused.
jfv [Fri, 29 Feb 2008 22:08:49 +0000 (22:08 +0000)]
Detail the em/igb split so no one gets confused.

16 years agoThis change introduces a split to the Intel E1000 driver, now rather than
jfv [Fri, 29 Feb 2008 21:50:11 +0000 (21:50 +0000)]
This change introduces a split to the Intel E1000 driver, now rather than
just em, there is an igb driver (this follows behavior with our Linux drivers).
All adapters up to the 82575 are supported in em, and new client/desktop support
will continue to be in that adapter.

The igb driver is for new server NICs like the 82575 and its followons.
Advanced features for virtualization and performance will be in this driver.

Also, both drivers now have shared code that is up to the latest we have
released. Some stylistic changes as well.

Enjoy :)

16 years agoexplain that you must set a default transmit key for WEP
sam [Fri, 29 Feb 2008 20:42:17 +0000 (20:42 +0000)]
explain that you must set a default transmit key for WEP

Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
MFC after: 1 week

16 years agoAdd a 'c7' CPUTYPE for VIA C7 CPUs that is 'c3-2' with the addition of
jhb [Fri, 29 Feb 2008 19:20:05 +0000 (19:20 +0000)]
Add a 'c7' CPUTYPE for VIA C7 CPUs that is 'c3-2' with the addition of
i686, sse2, and sse3.

MFC after: 1 week

16 years agoWith the recent change to enable CPU brands from the VIA chips, the
jhb [Fri, 29 Feb 2008 19:18:09 +0000 (19:18 +0000)]
With the recent change to enable CPU brands from the VIA chips, the
code to add padlock features to the CPU model on VIA CPUs was no longer
effective.  Change the code to instead output a separate printf during
dmesg for VIA Padlock features similar to other cpuid feature bitmasks.

MFC after: 1 week

16 years agoAdd files to remove when MK_GCOV, MK_IPX or MK_NCP are defined.
antoine [Fri, 29 Feb 2008 18:59:28 +0000 (18:59 +0000)]
Add files to remove when MK_GCOV, MK_IPX or MK_NCP are defined.

Note: it may be a good idea to deduce obsolete usr/lib32/ files from
obsolete lib/ and usr/lib/ files.

PR: 120492
PR: 121118
PR: 121121
Submitted by: KAMIYA Satosi, Richard Tector
Approved by: rwatson (mentor)
MFC after: 1 month

16 years agoUse the easily-greppable copyright notice template from
philip [Fri, 29 Feb 2008 17:48:25 +0000 (17:48 +0000)]
Use the easily-greppable copyright notice template from
src/share/examples/mdoc/POSIX-copyright.

Requested by: ru

16 years agoA fix for other ways of triggering joe@'s bug.
fanf [Fri, 29 Feb 2008 13:19:50 +0000 (13:19 +0000)]
A fix for other ways of triggering joe@'s bug.

16 years agoAllow #if defined SYM as well as #if defined(SYM). Fix an abort
fanf [Fri, 29 Feb 2008 12:57:14 +0000 (12:57 +0000)]
Allow #if defined SYM as well as #if defined(SYM). Fix an abort
caused by files that have #endif and no newline on the last line
(reported by joe@). Also fix a benign uninitialized variable bug.
Update and tidy the copyright.

16 years agoMerged from sys/dev/sio/sio.c revision 1.472
nyan [Fri, 29 Feb 2008 05:09:15 +0000 (05:09 +0000)]
Merged from sys/dev/sio/sio.c revision 1.472

  Stop serial console and gdb serial port from getting all screwed up.

16 years agoMFi386: revision 1.43
nyan [Fri, 29 Feb 2008 05:06:06 +0000 (05:06 +0000)]
MFi386: revision 1.43

  Do not attempt to make an NFS rpc call if using tftp

16 years agoMFi386: revision 1.658
nyan [Fri, 29 Feb 2008 05:01:10 +0000 (05:01 +0000)]
MFi386: revision 1.658

  Add "show sysregs" command to ddb.  On i386, this gives gdt, idt, ldt,
  cr0-4, etc.  Support should be added for other platforms that have a
  different set of registers for system use.

16 years agoMFi386: revision 1.55.
nyan [Fri, 29 Feb 2008 04:56:51 +0000 (04:56 +0000)]
MFi386: revision 1.55.

  Tweak the verbose disk printing a bit.

16 years agoFix adhoc mode to scan all available channels for a bss to join
sam [Fri, 29 Feb 2008 04:07:07 +0000 (04:07 +0000)]
Fix adhoc mode to scan all available channels for a bss to join
while still restricting auto-channel select to only those channels
permitted by regulatory constraints (sorta, we're still missing the
checks to honor radar and noadhoc status on channels).  This somehow
got lost in the initial merge of the revised scanning code.

Reviewed by: jhay
MFC after: 2 weeks

16 years agoWorkaround GMAC hardware hang of Yukon II on the receipt of pause
yongari [Fri, 29 Feb 2008 03:38:12 +0000 (03:38 +0000)]
Workaround GMAC hardware hang of Yukon II on the receipt of pause
frames. This bug seems to happen on certain hardware model/revision
(e.g. 88E8053) but it's not identified which hardwares are affected.
Revision 1.4 of if_mskreg.h was not enough to workaround the bug.
To workaround it, inrease GMAC FIFO threshold by one FIFO word to
flush received pause frames.

Reported by: das, Kirill Nuzhdin < kirill.nuzhdin AT rad dot chem dot msu dot ru >
Tested by: das, Kirill Nuzhdin

16 years agoAdd support for kgdb's 'detach' command.
grehan [Fri, 29 Feb 2008 01:57:20 +0000 (01:57 +0000)]
Add support for kgdb's 'detach' command.

Reviewed by: marcel
Sponsored by: Network Appliance

16 years agoBetter handle false positives. The MBR differs from the boot sector
marcel [Thu, 28 Feb 2008 22:30:41 +0000 (22:30 +0000)]
Better handle false positives. The MBR differs from the boot sector
only because there's a partition table where the boot sector has
boot code. Boot sectors without boot code look like a MBR for all
practical purposes. This change adds a check for the partition table
and fails the probe when it's obvously invalid. The assumption being
that the sector contains a boot sector and not a MBR.
More checks are needed to distinguish a boot secto without boot code
from a (empty) MBR.

16 years agoValidate the id16 values gathered from ACPI (previously a TODO item).
rpaulo [Thu, 28 Feb 2008 19:10:42 +0000 (19:10 +0000)]
Validate the id16 values gathered from ACPI (previously a TODO item).
Style changes by me and njl.

Approved by:    njl (mentor)
Reviewed by:  njl (mentor)
Submitted by:   Takeharu KATO <takeharu1219 at ybb.ne.jp>
PR:     119350
MFC after:  1 week

16 years agoZero sc->vnode if mdsetcred() fails.
philip [Thu, 28 Feb 2008 18:31:54 +0000 (18:31 +0000)]
Zero sc->vnode if mdsetcred() fails.

This fixes the panic which happens when mdcreate_vnode() calls vn_close()
and mddestroy() calls it again further down the error handling path.

Reviewed by: kris, kib
MFC after: 3 days

16 years ago- Check for the extended CPUID registers on VIA CPUs so we can get the
jhb [Thu, 28 Feb 2008 17:59:54 +0000 (17:59 +0000)]
- Check for the extended CPUID registers on VIA CPUs so we can get the
  brand string.
- Fix a nit in the previous commit.  "Eden" is a product name, not a core
  name.  The new ID is still for an "Esther" core.

16 years agoTweak the verbose disk printing a bit:
jhb [Thu, 28 Feb 2008 17:49:23 +0000 (17:49 +0000)]
Tweak the verbose disk printing a bit:
- Consolidate the code to humanize the size of a disk partition into a
  single function based on the code for GPT partitions and use it for
  GPT partitions, BSD slices, and BSD partitions.
- Teach the humanize code to use KB for small partitions (e.g. GPT boot
  partitions now show up as 64KB rather than 0MB).
- Pad a few partition type names out so that things line up in the
  common case.

MFC after: 1 week

16 years agoMFi386:
nyan [Thu, 28 Feb 2008 17:33:06 +0000 (17:33 +0000)]
MFi386:

  Retire the support for using paging in BTX.  It hasn't been used since
  before 4.0.

16 years agoRev 1.72 fixed a bug where if /boot.config changed the console its contents
jhb [Thu, 28 Feb 2008 17:08:05 +0000 (17:08 +0000)]
Rev 1.72 fixed a bug where if /boot.config changed the console its contents
weren't displayed on the new console.  However, the config string has been
altered as part of being parsed so we only display the first option.  Fix
this by saving a copy of /boot.config before parsing it and displaying the
saved copy after parsing.

MFC after: 1 week
PR: i386/103972
Submitted by: Alexandre Belloni  alexandre.belloni of netasq.com

16 years agoNow that we're way past our conversion from GNU awk to BWK awk, we don't
obrien [Thu, 28 Feb 2008 16:41:51 +0000 (16:41 +0000)]
Now that we're way past our conversion from GNU awk to BWK awk, we don't
need to primarily install as a non-conflicting name.

16 years agoFix and improve some magic numbers for the "medium size" case.
bde [Thu, 28 Feb 2008 16:22:36 +0000 (16:22 +0000)]
Fix and improve some magic numbers for the "medium size" case.

e_rem_pio2.c:
This case goes up to about 2**20pi/2, but the comment about it said that
it goes up to about 2**19pi/2.

It went too far above 2**pi/2, giving a multiplier fn with 21 significant
bits in some cases.  This would be harmful except for a numerical
accident.  It happens that the terms of the approximation to pi/2,
when rounded to 33 bits so that multiplications by 20-bit fn's are
exact, happen to be rounded to 32 bits so multiplications by 21-bit
fn's are exact too, so the bug only complicates the error analysis (we
might lose a bit of accuracy but have bits to spare).

e_rem_pio2f.c:
The bogus comment in e_rem_pio2.c was copied and the code was changed
to be bug-for-bug compatible with it, except the limit was made 90
ulps smaller than necessary.  The approximation to pi/2 was not
modified except for discarding some of it.

The same rough error analysis that justifies the limit of 2**20pi/2
for double precision only justifies a limit of 2**18pi/2 for float
precision.  We depended on exhaustive testing to check the magic numbers
for float precision.  More exaustive testing shows that we can go up
to 2**28pi/2 using a 53+25 bit approximation to pi/2 for float precision,
with a the maximum error for cosf() and sinf() unchanged at 0.5009
ulps despite the maximum error in rem_pio2f being ~0.25 ulps.  Implement
this.

16 years agoAdd another very relevant quote from "The Elements of Programming Style"
yar [Thu, 28 Feb 2008 15:16:24 +0000 (15:16 +0000)]
Add another very relevant quote from "The Elements of Programming Style"
by Kernighan and Plauger.

16 years agoIt was Plauger, not Ritchie, who co-authored both editions
yar [Thu, 28 Feb 2008 15:12:05 +0000 (15:12 +0000)]
It was Plauger, not Ritchie, who co-authored both editions
of "The Elements of Programming Style".  Also spell the name
of the book properly.

16 years agoo Add FreeBSD 7.0, MacOS X 10.5 (belated), DragonFly BSD 1.12.0.
maxim [Thu, 28 Feb 2008 06:54:24 +0000 (06:54 +0000)]
o Add FreeBSD 7.0, MacOS X 10.5 (belated), DragonFly BSD 1.12.0.

16 years agoReplace the use of warnx() with direct output to stderr using _write().
scf [Thu, 28 Feb 2008 04:09:08 +0000 (04:09 +0000)]
Replace the use of warnx() with direct output to stderr using _write().
This reduces the size of a statically-linked binary by approximately 100KB
in a trivial "return (0)" test application.  readelf -S was used to verify
that the .text section was reduced and that using strlen() saved a few
more bytes over using sizeof().  Since the section of code is only called
when environ is corrupt (program bug), I went with fewer bytes over fewer
cycles.

I made minor edits to the submitted patch to make the output resemble
warnx().

Submitted by: kib bz
Approved by: wes (mentor)
MFC after: 5 days

16 years agoRetire the support for using paging in BTX. It hasn't been used since
jhb [Wed, 27 Feb 2008 23:35:39 +0000 (23:35 +0000)]
Retire the support for using paging in BTX.  It hasn't been used since
before 4.0.

Submitted by: kib

16 years agoAdd <limits.h> for SHRT_MAX.
jhb [Wed, 27 Feb 2008 21:25:19 +0000 (21:25 +0000)]
Add <limits.h> for SHRT_MAX.

Pointy hat to: jhb

16 years agoFile descriptors are an int, but our stdio FILE object uses a short to hold
jhb [Wed, 27 Feb 2008 19:02:02 +0000 (19:02 +0000)]
File descriptors are an int, but our stdio FILE object uses a short to hold
them.  Thus, any fd whose value is greater than SHRT_MAX is handled
incorrectly (the short value is sign-extended when converted to an int).
An unpleasant side effect is that if fopen() opens a file and gets a
backing fd that is greater than SHRT_MAX, fclose() will fail and the file
descriptor will be leaked.  Better handle this by fixing fopen(), fdopen(),
and freopen() to fail attempts to use a fd greater than SHRT_MAX with
EMFILE.

At some point in the future we should look at expanding the file descriptor
in FILE to an int, but that is a bit complicated due to ABI issues.

MFC after: 1 week
Discussed on: arch
Reviewed by: wollman

16 years agoReplace somewhat awkward audit trail rotation scheme, which involved the
rwatson [Wed, 27 Feb 2008 17:12:22 +0000 (17:12 +0000)]
Replace somewhat awkward audit trail rotation scheme, which involved the
global audit mutex and condition variables, with an sx lock which protects
the trail vnode and credential while in use, and is acquired by the system
call code when rotating the trail.  Previously, a "message" would be sent
to the kernel audit worker, which did the rotation, but the new code is
simpler and (hopefully) less error-prone.

Obtained from: TrustedBSD Project
MFC after: 1 month

16 years agoDummynet has a limit of 100 slots queue size (or 1MB, if you give
dwmalone [Wed, 27 Feb 2008 13:52:33 +0000 (13:52 +0000)]
Dummynet has a limit of 100 slots queue size (or 1MB, if you give
the limit in bytes) hard coded into both the kernel and userland.
Make both these limits a sysctl, so it is easy to change the limit.
If the userland part of ipfw finds that the sysctls don't exist,
it will just fall back to the traditional limits.

(100 packets is quite a small limit these days. If you want to test
TCP at 100Mbps, 100 packets can only accommodate a DBP of 12ms.)

Note these sysctls in the man page and warn against increasing them
without thinking first.

MFC after:      3 weeks

16 years agoAdd the Epson - CX5400 to the supported lists of epson scanners.
remko [Wed, 27 Feb 2008 10:57:51 +0000 (10:57 +0000)]
Add the Epson - CX5400 to the supported lists of epson scanners.

Noticed by: simon
Forgotten by: me

16 years agoAdd support for the 965GM.
remko [Wed, 27 Feb 2008 10:14:57 +0000 (10:14 +0000)]
Add support for the 965GM.

PR: kern/120978
Submitted by: Dominic Fandrey <kamikaze at bsdforen dot de>
Approved by: imp (mentor, implicit), anholt (drm maintainer)
MFC after: 3 days

16 years agoWhen probing a newly found device, don't automatically assume that the
scottl [Wed, 27 Feb 2008 08:47:13 +0000 (08:47 +0000)]
When probing a newly found device, don't automatically assume that the
device supports retrieving a serial number.  Instead, first query the
list of VPD pages it does support, and only query the serial number if
it's supported, else silently move on.  This eliminates a lot of noise
during verbose booting, and will likely eliminate the need for most
NOSERIAL quirks.

16 years agoAdd my birthday.
ganbold [Wed, 27 Feb 2008 07:39:31 +0000 (07:39 +0000)]
Add my birthday.

Approved by: keramida(mentor)

16 years agoAdd myself to doc committers and to keramida's mentee list
ganbold [Wed, 27 Feb 2008 07:37:24 +0000 (07:37 +0000)]
Add myself to doc committers and to keramida's mentee list

Approved by: keramida(mentor)

16 years agoSpelling correction, thanks to Joerg Sonnenberger.
kientzle [Wed, 27 Feb 2008 06:16:41 +0000 (06:16 +0000)]
Spelling correction, thanks to Joerg Sonnenberger.

16 years agoOptimize skipping over Zip entries.
kientzle [Wed, 27 Feb 2008 06:05:59 +0000 (06:05 +0000)]
Optimize skipping over Zip entries.

Thanks to: Dan Nelson, who sent me the patch
MFC after: 7 days

16 years agostdio is currently limited to file descriptors not greater than
wollman [Wed, 27 Feb 2008 05:56:57 +0000 (05:56 +0000)]
stdio is currently limited to file descriptors not greater than
{SHRT_MAX}, so {STREAM_MAX} should be no greater than that.  (This
does not exactly meet the letter of POSIX but comes reasonably close
to it in spirit.)

MFC after: 14 days

16 years agoAvoid hardcoding the kernel link address in the linker script.
marcel [Wed, 27 Feb 2008 00:03:23 +0000 (00:03 +0000)]
Avoid hardcoding the kernel link address in the linker script.
Use KERNBASE instead. While here, move the text sections
forward to the beginning of the text segment.

16 years agoSpell out the name of the month, normalize copyright layout.
brueffer [Tue, 26 Feb 2008 23:16:23 +0000 (23:16 +0000)]
Spell out the name of the month, normalize copyright layout.

16 years agoParameterize for module name
kmacy [Tue, 26 Feb 2008 23:12:55 +0000 (23:12 +0000)]
Parameterize for module name

16 years agoRemove unused files
kmacy [Tue, 26 Feb 2008 23:06:22 +0000 (23:06 +0000)]
Remove unused files

16 years agomove remaining binaries in to blob headers
kmacy [Tue, 26 Feb 2008 23:05:05 +0000 (23:05 +0000)]
move remaining binaries in to blob headers

16 years agoAdd vfs_mountedfrom.9 to the build.
davidc [Tue, 26 Feb 2008 21:40:30 +0000 (21:40 +0000)]
Add vfs_mountedfrom.9 to the build.

16 years agoAdd new man page.
davidc [Tue, 26 Feb 2008 21:39:59 +0000 (21:39 +0000)]
Add new man page.

16 years agoAdd insmntque.9 to the build.
davidc [Tue, 26 Feb 2008 21:11:05 +0000 (21:11 +0000)]
Add insmntque.9 to the build.

16 years agoAdd new man page.
davidc [Tue, 26 Feb 2008 21:09:54 +0000 (21:09 +0000)]
Add new man page.

16 years agoLink vholdl.9 to vhold.9
davidc [Tue, 26 Feb 2008 21:03:20 +0000 (21:03 +0000)]
Link vholdl.9 to vhold.9

16 years agoAdded the "restrict" type-qualifier to the readlink() prototype.
ru [Tue, 26 Feb 2008 20:33:52 +0000 (20:33 +0000)]
Added the "restrict" type-qualifier to the readlink() prototype.

16 years agoDocument vholdl(9)
davidc [Tue, 26 Feb 2008 20:25:01 +0000 (20:25 +0000)]
Document vholdl(9)
No longer refer to vbusy(9) or vfree(9)

16 years agoRefer to vrefcnt(9)
davidc [Tue, 26 Feb 2008 20:13:08 +0000 (20:13 +0000)]
Refer to vrefcnt(9)

16 years agoMinor grammar fixup.
davidc [Tue, 26 Feb 2008 20:11:37 +0000 (20:11 +0000)]
Minor grammar fixup.

16 years agoAdd vrefcnt.9 to the build.
davidc [Tue, 26 Feb 2008 20:10:32 +0000 (20:10 +0000)]
Add vrefcnt.9 to the build.

16 years agoAdd new man page.
davidc [Tue, 26 Feb 2008 20:10:05 +0000 (20:10 +0000)]
Add new man page.

16 years agoAdd support for the EPSON CX5400 scanner
remko [Tue, 26 Feb 2008 18:19:39 +0000 (18:19 +0000)]
Add support for the EPSON CX5400 scanner

PR: usb/120980
Submitted by: Christophe Etcheverry <cetcheve at gmail dot com>
MFC after: 3 days
Approved by: imp (mentor, implicit for trivial changes)

16 years ago- Add support for Axesstel MV100H, as used on CDMA network operated by O2 CZ
pav [Tue, 26 Feb 2008 18:12:32 +0000 (18:12 +0000)]
- Add support for Axesstel MV100H, as used on CDMA network operated by O2 CZ

16 years agoCorrect a long-standing error in vm_object_page_remove(). Specifically,
alc [Tue, 26 Feb 2008 17:16:48 +0000 (17:16 +0000)]
Correct a long-standing error in vm_object_page_remove().  Specifically,
pmap_remove_all() must not be called on fictitious pages.  To date,
fictitious pages have been allocated from zeroed memory, effectively
hiding this problem because the fictitious pages appear to have an empty
pv list.  Submitted by: Kostik Belousov

Rewrite the comments describing vm_object_page_remove() to better
describe what it does.  Add an assertion.  Reviewed by: Kostik Belousov

MFC after: 1 week

16 years ago- Add myself to ports committers and to miwi's mentee list
gahr [Tue, 26 Feb 2008 15:38:46 +0000 (15:38 +0000)]
- Add myself to ports committers and to miwi's mentee list

Approved by: miwi (mentor)

16 years ago- Add my birthday
gahr [Tue, 26 Feb 2008 15:31:30 +0000 (15:31 +0000)]
- Add my birthday

Approved by: miwi (mentor)

16 years agoSync list of directories to look for packages in to current releases
kensmith [Tue, 26 Feb 2008 14:35:01 +0000 (14:35 +0000)]
Sync list of directories to look for packages in to current releases
available.

MFC after: 3 days

16 years agoDo not assert any locks for VOP_PRINT. In particular, do not assert that
kib [Tue, 26 Feb 2008 12:16:35 +0000 (12:16 +0000)]
Do not assert any locks for VOP_PRINT. In particular, do not assert that
the vnode interlock is not held. vn_printf() already correctly handles
locked and unlocked vnode interlocks, and all the in-tree vop_print
methods are interlock-agnostic.

Some code calls vprintf() with the vnode interlock held, that causes
unjustified panics with INVARIANTS (ffs_syncvnode() as example).

Reported by: Peter Holm

16 years agoRemove errant % in license comment.
rwatson [Tue, 26 Feb 2008 11:45:32 +0000 (11:45 +0000)]
Remove errant % in license comment.

MFC after: 3 days

16 years agoOn the ixp425, when we fail to initialize the memory rman instance, the
rwatson [Tue, 26 Feb 2008 11:44:41 +0000 (11:44 +0000)]
On the ixp425, when we fail to initialize the memory rman instance, the
panic message should read "memory", not "IRQ".

MFC after: 3 days

16 years agoRename fdescfs vnode from "fdesc" to "fdescfs" to avoid name collision
kib [Tue, 26 Feb 2008 10:10:55 +0000 (10:10 +0000)]
Rename fdescfs vnode from "fdesc" to "fdescfs" to avoid name collision
of the vnode lock with the fdesc_mtx mutex. Having different kinds of
locks with the same name confuses witness.

16 years agoAdd "Make MPSAFE" to the Coda todo list.
rwatson [Tue, 26 Feb 2008 09:27:47 +0000 (09:27 +0000)]
Add "Make MPSAFE" to the Coda todo list.

MFC after: 3 days

16 years agoAdd a missing unlock to an error path fro XPT_DEBUG handling.
scottl [Tue, 26 Feb 2008 08:09:29 +0000 (08:09 +0000)]
Add a missing unlock to an error path fro XPT_DEBUG handling.

16 years agoRename the archive_endian.h functions to avoid name clashes
kientzle [Tue, 26 Feb 2008 07:17:47 +0000 (07:17 +0000)]
Rename the archive_endian.h functions to avoid name clashes
with NetBSD's sys/endian.h file.

Pointed out by: Joerg Sonnenberger

16 years agoIn pass1(), cap inosused to fs_ipg rather than allowing arbitrary
delphij [Tue, 26 Feb 2008 03:08:22 +0000 (03:08 +0000)]
In pass1(), cap inosused to fs_ipg rather than allowing arbitrary
number read from cylinder group.  Chances that we read a smarshed
cylinder group, and we can not 100% trust information it has
supplied.  fsck_ffs(8) will crash otherwise for some cases.

16 years agoIn pass2check(): Be more strict with the inode information before further
delphij [Tue, 26 Feb 2008 03:05:48 +0000 (03:05 +0000)]
In pass2check(): Be more strict with the inode information before further
processing the information.  chk1 is more prone to crash when insane
information is provided by the on-disk inode, and does not even work
if the inode is being smarshed badly.