]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoMinor changes from Berkeley DB 1.86 and further improvements from OpenBSD.
Xin LI [Sat, 28 Mar 2009 07:31:02 +0000 (07:31 +0000)]
Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD.
This does not include the new hash routines since they will cause problems
when reading old hash files.

Since mpool(3) has been changed, provide a compatibility shim for older
binaries.

Obtained from: OpenBSD

15 years agoAllow O_SYNC and O_NOFOLLOW flags in dbopen().
Xin LI [Sat, 28 Mar 2009 07:26:00 +0000 (07:26 +0000)]
Allow O_SYNC and O_NOFOLLOW flags in dbopen().

Obtained from: OpenBSD

15 years agoPlug memory leaks and a potential NULL dereference.
Xin LI [Sat, 28 Mar 2009 07:20:39 +0000 (07:20 +0000)]
Plug memory leaks and a potential NULL dereference.

Obtained from: OpenBSD

15 years agoSimplify the logic when determining whether to zero out a db file to after
Xin LI [Sat, 28 Mar 2009 07:09:51 +0000 (07:09 +0000)]
Simplify the logic when determining whether to zero out a db file to after
open().  The previous logic only initializes the database when O_CREAT is
set, but as long as we can open and write the database, and the database
is empty, we should initialize it anyway.

Obtained from: OpenBSD

15 years ago - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause
Xin LI [Sat, 28 Mar 2009 06:47:05 +0000 (06:47 +0000)]
 - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause
   an invariant (actually, an ugly hack) to fail, and all Hell would break
   loose.

   When deleting a big key, the offset of an empty page should be bsize, not
   bsize-1; otherwise an insertion into the empty page will cause the new key to
   be elongated by 1 byte.

   Make the packing more dense in a couple of cases.

 - fix NULL dereference exposed on big bsize values;

Obtained from: NetBSD via OpenBSD

15 years agoAvoid NULL deference which causes DEBUG1 to crash, not to print useful
Xin LI [Sat, 28 Mar 2009 06:40:48 +0000 (06:40 +0000)]
Avoid NULL deference which causes DEBUG1 to crash, not to print useful
information.

Obtained from: OpenBSD

15 years ago - Avoid overwriting the cursor page when the cursor page becomes the
Xin LI [Sat, 28 Mar 2009 06:38:31 +0000 (06:38 +0000)]
 - Avoid overwriting the cursor page when the cursor page becomes the
LRU page.
 - Fix for sequential retrieval failure when using large key/data pairs.

Obtained from: OpenBSD

15 years agoFix a crash when iterating over a hash and removing its elements.
Xin LI [Sat, 28 Mar 2009 06:30:43 +0000 (06:30 +0000)]
Fix a crash when iterating over a hash and removing its elements.

Obtained from: OpenBSD

15 years agoOnly squeeze a short key/value pair onto a page with other complete key/value
Xin LI [Sat, 28 Mar 2009 06:25:33 +0000 (06:25 +0000)]
Only squeeze a short key/value pair onto a page with other complete key/value
pairs, not onto a page containing the end of a big pair.

Obtained from: NetBSD via OpenBSD

15 years agoDiff reduce against OpenBSD, no functional change.
Xin LI [Sat, 28 Mar 2009 06:23:10 +0000 (06:23 +0000)]
Diff reduce against OpenBSD, no functional change.

15 years agoWhen reading via memory, read in (amount + 1) / 2 (to properly round
Warner Losh [Sat, 28 Mar 2009 06:22:11 +0000 (06:22 +0000)]
When reading via memory, read in (amount + 1) / 2 (to properly round
up) rather than amount + 1 / 2, which is the same as amount, or 2x too
many words which leads to data corruption.

# This fixes the sbdrop panics I was seeing with the Toshiba LANCT00A.

15 years agoReturn meaningful errno in overflow case; print error message to stderr
Xin LI [Sat, 28 Mar 2009 06:12:39 +0000 (06:12 +0000)]
Return meaningful errno in overflow case; print error message to stderr
in one more case.

Obtained from: NetBSD via OpenBSD

15 years agoUse pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).
Xin LI [Sat, 28 Mar 2009 06:05:53 +0000 (06:05 +0000)]
Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).

Obtained from: NetBSD via OpenBSD

15 years agodb/btree/bt_open.c: check return value of snprintf() and return value
Xin LI [Sat, 28 Mar 2009 05:57:27 +0000 (05:57 +0000)]
db/btree/bt_open.c: check return value of snprintf() and return value
if the result is truncated.

db/hash/hash_page.c: use the same way to create temporary file as
bt_open.c; check snprintf() return value.

Obtained from: OpenBSD

15 years agoSeveral signed/unsigned warning fixes.
Xin LI [Sat, 28 Mar 2009 05:45:29 +0000 (05:45 +0000)]
Several signed/unsigned warning fixes.

15 years agoIt turns out that the Toshiba LANCT00A PC Card is really like the
Warner Losh [Sat, 28 Mar 2009 04:56:56 +0000 (04:56 +0000)]
It turns out that the Toshiba LANCT00A PC Card is really like the
Toshiba PCETC ISA card, and even has the same board type code in the
card ID (0x14).  So, for this card, call ed_probe_WD80x3_generic after
setting things up apropriately.  This makes the card attach and kinda
work (I'm seeing panics in sbdrop).  Since history has shown that the
WD80x3 probe routine is dangerous, only do it for this card.  Also,
disable the memory range check to make sure it is an valid ISA memory.
I think that it is bogus, but I'm not 100% sure, for these cards.

I removed probing for the WD80x3 in 2005 when I added support for the
AX88x90 and DL100xx cards since none of my cards had ever matched it
and PAO3 removed it and none of the cards in their database died.

It is possible there are other quirks about this card too, since no
other open source OS supports it, or even claims to support it.  But
it was a fun half hour hack...

15 years agoWhen allocating memory, zero out them if we don't intend to overwrite them
Xin LI [Sat, 28 Mar 2009 04:00:46 +0000 (04:00 +0000)]
When allocating memory, zero out them if we don't intend to overwrite them
all; before freeing memory, zero out them before we release it as free
heap.  This will eliminate some potential information leak issue.

While there, remove the PURIFY option.  There is a slight difference between
the new behavior and the old -DPURIFY behavior, with the latter initializes
memory with 0xff's.  The difference between old and new approach does not
generate observable difference.

Obtained from: OpenBSD (partly).

15 years agoAdd new V* constants, neccessary for granular permission checks
Edward Tomasz Napierala [Fri, 27 Mar 2009 21:47:56 +0000 (21:47 +0000)]
Add new V* constants, neccessary for granular permission checks
in NFSv4 ACLs.  While here, get rid of VALLPERM; it wasn't used anyway.

Approved by: rwatson (mentor)

15 years agoAdd explicit test so that non-existence of /usr/games/fortune
Ruslan Ermilov [Fri, 27 Mar 2009 21:13:14 +0000 (21:13 +0000)]
Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.

15 years agoSort NECINFORTIA correctly.
Warner Losh [Fri, 27 Mar 2009 20:40:17 +0000 (20:40 +0000)]
Sort NECINFORTIA correctly.

15 years agoAdd bromax axnet based cards to the mix. This was harvested from the linux
Warner Losh [Fri, 27 Mar 2009 19:15:28 +0000 (19:15 +0000)]
Add bromax axnet based cards to the mix.  This was harvested from the linux
driver.  Not sure who sold it/rebadged it.

Add stub entries for Mitsubishi B8895 and Toshiba LANCT00A to the
driver with a comment that they don't work /* NG */.[*] These are
DP83902A based cards, which should work, but don't seem to.  Likely
they are from the days before the ne2000 roamed the earth and use a
non-standard hookup (see if_ed_isa or if_ed_cbus for some examples).
Unless I happen to stumble into the right one, these may never work,
but I'm tired of omitting them from commits.

[*] The Japanese adopted OK from English, but also use NG for its
opposite.

15 years agoDon't strip TTY device name to the last '/'.
Ed Schouten [Fri, 27 Mar 2009 19:13:36 +0000 (19:13 +0000)]
Don't strip TTY device name to the last '/'.

We've seen this bug in other applications before: we have some
applications that use strrchr(tty, '/') on the TTY device name. This
isn't valid when using pts(4), because the device name will be stripped
to "0" instead of "pts/0".

This fixes issues with login(1) ignoring /etc/ttys and missing utmp
records.

Reported by: Barney Cordoba <barney_cordoba yahoo com>
Reviewed by: rwatson

15 years agoHarvest a previously unknown Bromax design based on the AX88x90 from
Warner Losh [Fri, 27 Mar 2009 19:08:15 +0000 (19:08 +0000)]
Harvest a previously unknown Bromax design based on the AX88x90 from
the Linux axnet driver.

15 years agoRevert 190445 change to this file restoring:
Doug Ambrisko [Fri, 27 Mar 2009 17:00:49 +0000 (17:00 +0000)]
Revert 190445 change to this file restoring:
typedef l_long          l_off_t;
Change l_mmap_argv's to l_ulong for pgoff.  This restores prior behaviour
to consumers of l_off_t but allows mmap to mmap a 32bit position which a
Linux application requires to access SMBIOS data via /dev/mem.

Reviewed by: dchagin
Prompted by: rdivacky

15 years agoThe buffer start and end phys addresses should be 0x0 for an OHCI zero length
Andrew Thompson [Fri, 27 Mar 2009 16:56:01 +0000 (16:56 +0000)]
The buffer start and end phys addresses should be 0x0 for an OHCI zero length
packet, this fixes LS/FS devices on the Gateworks 2348 XScale board.

Reviewed by: HPS

15 years agoCorrect typo.
Konstantin Belousov [Fri, 27 Mar 2009 15:46:02 +0000 (15:46 +0000)]
Correct typo.

Noted by: kensmith

15 years agoWhitespace/spelling fixes in advance of upcoming functional changes.
Jamie Gritton [Fri, 27 Mar 2009 13:13:59 +0000 (13:13 +0000)]
Whitespace/spelling fixes in advance of upcoming functional changes.

Approved by: bz (mentor)

15 years agoDocument missing requests.
Diomidis Spinellis [Fri, 27 Mar 2009 11:03:02 +0000 (11:03 +0000)]
Document missing requests.

15 years agoSharpen the saw:
Marcel Moolenaar [Fri, 27 Mar 2009 05:48:42 +0000 (05:48 +0000)]
Sharpen the saw:
o  BSD uses 32-bit block numbers. Limit the scheme to 2^32-1
   blocks when the media is larger.

15 years agoPut the "%d retries" debug message in the transmit path behind WPI_DEBUG_TX
Juli Mallett [Fri, 27 Mar 2009 05:44:53 +0000 (05:44 +0000)]
Put the "%d retries" debug message in the transmit path behind WPI_DEBUG_TX
rather than behind a seemingly accidental constant likely left over from one of
the related drivers which uses log levels rather than per-facility debugging
flags.  This should get rid of contextless messages on the console for people
who have not set (or cleared the default) debugging flags.

15 years agoSharpen the saw:
Marcel Moolenaar [Fri, 27 Mar 2009 05:35:12 +0000 (05:35 +0000)]
Sharpen the saw:
o  Don't create an APM scheme underneath another scheme when
   the probe doesn't allow it.
o  APM uses 32-bit block numbers. Limit the scheme to 2^32-1
   blocks when the media is larger.

15 years agoSkip the allocation of the root hold token if the mount already happened.
Andrew Thompson [Fri, 27 Mar 2009 03:52:08 +0000 (03:52 +0000)]
Skip the allocation of the root hold token if the mount already happened.

15 years agoMFi386: r190447
Yoshihiro Takahashi [Fri, 27 Mar 2009 03:45:42 +0000 (03:45 +0000)]
MFi386: r190447

  Convert gdt_segs and ldt_segs initialization to C99 style.

15 years agoo) Check that no overrun or CRC errors were encountered in receiving a
Juli Mallett [Fri, 27 Mar 2009 03:17:25 +0000 (03:17 +0000)]
o) Check that no overrun or CRC errors were encountered in receiving a
   packet.  Linux, OpenBSD and our iwn(4) all do this.  It also results in
   a huge performance improvement (and the rejection of a fair number of
   apparently-bad packets on receive) on my hardware.
o) Like the wpi(4) driver in OpenBSD, and like our iwn(4), also drop runt
   packets.
o) Don't bother doing IFQ_POLL and then IFQ_DRV_DEQUEUE, just do
   IFQ_DRV_DEQUEUE outright.  This is more similar to how OpenBSD and our
   iwn(4) work.

Reviewed by: sam

15 years agoadd superg+tdma include files for protocol defs needed to do ie parsing
Sam Leffler [Thu, 26 Mar 2009 21:29:38 +0000 (21:29 +0000)]
add superg+tdma include files for protocol defs needed to do ie parsing

15 years agoo move tdma+superg protocol defs out of public view
Sam Leffler [Thu, 26 Mar 2009 21:29:03 +0000 (21:29 +0000)]
o move tdma+superg protocol defs out of public view
o add #ifdef _KERNEL to superg+tdma include files so they can be used
  by user code to get the protocol defs

15 years agoMove the code to update cpu_cx_count out of acpi_cpu_generic_cx_probe() and
John Baldwin [Thu, 26 Mar 2009 21:10:35 +0000 (21:10 +0000)]
Move the code to update cpu_cx_count out of acpi_cpu_generic_cx_probe() and
into acpi_cpu_startup() which is where all the other code to update this
global variable lives.  This fixes a bug where cpu_cx_count was not updated
correctly if acpi_cpu_generic_cx_probe() returned early.

PR: kern/108581
Debugged by: Bruce Cran
Reviewed by: avg, njl, sepotvin
MFC after: 3 days

15 years agoSigh, not my day. Check-in the update version that didn't have
Doug Ambrisko [Thu, 26 Mar 2009 20:23:21 +0000 (20:23 +0000)]
Sigh, not my day.  Check-in the update version that didn't have
the linux_compat mistakes.

15 years agoAdd in forgotten module ipmi_linux.
Doug Ambrisko [Thu, 26 Mar 2009 19:15:31 +0000 (19:15 +0000)]
Add in forgotten module ipmi_linux.

Found by: mlaier

15 years agoFix enough bits so that fast frames work again:
Sam Leffler [Thu, 26 Mar 2009 19:13:11 +0000 (19:13 +0000)]
Fix enough bits so that fast frames work again:
o include ath ie in beacon frames
o fix probe response check for including ath ie
o add ieee80211_add_athcap shorthand for ap-side ie additions

15 years agodynamic turbo mode is only implemented in sta mode; don't enable it
Sam Leffler [Thu, 26 Mar 2009 19:07:56 +0000 (19:07 +0000)]
dynamic turbo mode is only implemented in sta mode; don't enable it
for other operating modes based on the capability

15 years agoneed to adjust htinfo offset when csa is inserted
Sam Leffler [Thu, 26 Mar 2009 19:06:00 +0000 (19:06 +0000)]
need to adjust htinfo offset when csa is inserted

15 years agoadjust tdma ie offset when beacon frame contents changes
Sam Leffler [Thu, 26 Mar 2009 19:04:11 +0000 (19:04 +0000)]
adjust tdma ie offset when beacon frame contents changes

15 years agoConvert gdt_segs and ldt_segs initialization to C99 style.
Konstantin Belousov [Thu, 26 Mar 2009 18:07:13 +0000 (18:07 +0000)]
Convert gdt_segs and ldt_segs initialization to C99 style.

Reviewed by: jhb

15 years agoAllow the attach routine to fail gracefully and not panic the system.
Warner Losh [Thu, 26 Mar 2009 17:36:19 +0000 (17:36 +0000)]
Allow the attach routine to fail gracefully and not panic the system.

15 years agoAdd stuff to support upcoming BMC/IPMI flashing of newer Dell machine
Doug Ambrisko [Thu, 26 Mar 2009 17:14:22 +0000 (17:14 +0000)]
Add stuff to support upcoming BMC/IPMI flashing of newer Dell machine
via the Linux tool.
     -  Add Linux shim to ipmi(4)
     -  Create a partitions file to linprocfs to make Linux fdisk see
        disks.  This file is dynamic so we can see disks come and go.
     -  Convert msdosfs to vfat in mtab since Linux uses that for
        msdosfs.
     -  In the Linux mount path convert vfat passed in to msdosfs
        so Linux mount works on FreeBSD.  Note that tasting works
        so that if da0 is a msdos file system
                /compat/linux/bin/mount /dev/da0 /mnt
        works.
     -  fix a 64it bug for l_off_t.
Grabing sh, mount, fdisk, df from Linux, creating a symlink of mtab to
/compat/linux/etc/mtab and then some careful unpacking of the Linux bmc
update tool and hacking makes it work on newer Dell boxes.  Note, probably
if you can't figure out how to do this, then you probably shouldn't be
doing it :-)

15 years agoChange the priority from high to normal. This makes sure that
Marcel Moolenaar [Thu, 26 Mar 2009 16:42:24 +0000 (16:42 +0000)]
Change the priority from high to normal. This makes sure that
the BSD or GPT schemes can take precedence as appropriate.

15 years agothere is no dev_mkdb anymore
Luigi Rizzo [Thu, 26 Mar 2009 10:22:40 +0000 (10:22 +0000)]
there is no dev_mkdb anymore

15 years agobump date.
Weongyo Jeong [Thu, 26 Mar 2009 06:12:04 +0000 (06:12 +0000)]
bump date.

Pointed by: yongari

15 years agoadds malo(4).
Weongyo Jeong [Thu, 26 Mar 2009 04:17:35 +0000 (04:17 +0000)]
adds malo(4).

15 years agobwi(4) and mwl(4) doesn't exist at CURRENT.
Weongyo Jeong [Thu, 26 Mar 2009 04:16:40 +0000 (04:16 +0000)]
bwi(4) and mwl(4) doesn't exist at CURRENT.

15 years agoThe malo(4) device driver first appeared in FreeBSD 7.1 not 8.0.
Weongyo Jeong [Thu, 26 Mar 2009 02:59:10 +0000 (02:59 +0000)]
The malo(4) device driver first appeared in FreeBSD 7.1 not 8.0.

Reported by: John <lists_at_reiteration.net>
MFC after: 3 days

15 years agoFix up waiting on vblank again... This reverts a last minute change that
Robert Noland [Thu, 26 Mar 2009 02:10:18 +0000 (02:10 +0000)]
Fix up waiting on vblank again... This reverts a last minute change that
I made on the last patch, it seems to upset suspend/resume and shutdown.

MFC after: 3 days

15 years agoTweak comments.
Warner Losh [Wed, 25 Mar 2009 22:21:53 +0000 (22:21 +0000)]
Tweak comments.

15 years agoAdd RIOS PCCARD 3.
Warner Losh [Wed, 25 Mar 2009 22:21:38 +0000 (22:21 +0000)]
Add RIOS PCCARD 3.

15 years agoRIOS Systems co was naughty and used a 'random' id. Use it with the
Warner Losh [Wed, 25 Mar 2009 22:20:36 +0000 (22:20 +0000)]
RIOS Systems co was naughty and used a 'random' id.  Use it with the
PCCARD3 name to describe the RIOS PC Card III Ethernet that I have.

15 years agoAdd recently added cards.
Warner Losh [Wed, 25 Mar 2009 22:14:46 +0000 (22:14 +0000)]
Add recently added cards.

15 years agoIt appears that the TDK LAK CD011 works with fe driver. I don't have
Warner Losh [Wed, 25 Mar 2009 22:12:07 +0000 (22:12 +0000)]
It appears that the TDK LAK CD011 works with fe driver.  I don't have
a dongle for the card, but it passes the sanity testsin the
probe/attach routines and returns the correct MAC address.

15 years agoFix a few nits in the earlier changes to prevent local information leakage
John Baldwin [Wed, 25 Mar 2009 22:08:30 +0000 (22:08 +0000)]
Fix a few nits in the earlier changes to prevent local information leakage
in AMD FPUs:
- Do not clear the affected state in the case that the FPU registers for
  the thread that already owns the FPU are changed via fpu_setregs().  The
  only local information the thread would see is its own state in that
  case.
- Fix a type mismatch for the dummy variable used in a "fld".  It accepts
  a float, not a double.

Reviewed by: bde
Approved by: so (cperciva)
MFC after: 1 month

15 years agoupdate; mostly to eliminate ambiguity about what hardware is supported
Sam Leffler [Wed, 25 Mar 2009 21:20:15 +0000 (21:20 +0000)]
update; mostly to eliminate ambiguity about what hardware is supported

15 years agoMan page accompanying r190423 - introduce UFS ID labels.
Ivan Voras [Wed, 25 Mar 2009 20:40:34 +0000 (20:40 +0000)]
Man page accompanying r190423 - introduce UFS ID labels.

Actually-by: pjd
Approved by: gnn (mentor)

15 years agoCreate GEOM labels from UFS IDs, e.g. /dev/ufsid/49c97b1faa2adc43. UFS IDs
Ivan Voras [Wed, 25 Mar 2009 20:38:57 +0000 (20:38 +0000)]
Create GEOM labels from UFS IDs, e.g. /dev/ufsid/49c97b1faa2adc43. UFS IDs
are always present and can be used to identify file systems (useful if
hardware devices move often).

Actually-by: pjd
Approved by: gnn (mentor)

15 years ago- Add proper error checking and printing to the CVSMode code when reading and
Ulf Lilleengen [Wed, 25 Mar 2009 20:15:48 +0000 (20:15 +0000)]
- Add proper error checking and printing to the CVSMode code when reading and
  writing from/to streams, as leaving them out stops csup from cleaning up on
  SIGINT and friends properly.

MFC after:      1 week

15 years agoThis config file uses dynamically linked binaries, which is more
Luigi Rizzo [Wed, 25 Mar 2009 18:48:46 +0000 (18:48 +0000)]
This config file uses dynamically linked binaries, which is more
convenient when you want to import other programs because the
libraries will not be replicated.

Given that there are no floppies around anymore, I have bumped
the fd size to 4MB (which is more than reasonable even for
embedded platforms) and gives some room for other utilities.

MFC after: 3 days

15 years agodevfs is the standard now
Luigi Rizzo [Wed, 25 Mar 2009 17:56:28 +0000 (17:56 +0000)]
devfs is the standard now

15 years agoMove dtnfsclient.c in the cddl tree to nfs_kdtrace.c in the nfsclient
Robert Watson [Wed, 25 Mar 2009 17:47:22 +0000 (17:47 +0000)]
Move dtnfsclient.c in the cddl tree to nfs_kdtrace.c in the nfsclient
directory, since it's under a BSD license, and this keeps NFS internals-
aware tracing parts close to NFS.

MFC after: 1 month
Suggested by: jhb

15 years agoWhen looking up the parent devclass of a new devclass, create the parent
John Baldwin [Wed, 25 Mar 2009 17:02:05 +0000 (17:02 +0000)]
When looking up the parent devclass of a new devclass, create the parent
devclass if it doesn't already exist.

15 years agoAdd support for SCTP to getaddrinfo(3).
Hajimu UMEMOTO [Wed, 25 Mar 2009 16:23:43 +0000 (16:23 +0000)]
Add support for SCTP to getaddrinfo(3).
Now, getaddrinfo(3) returns two SOCK_STREAMs, IPPROTO_TCP and
IPPROTO_SCTP.  It confuses some programs.  If getaddrinfo(3) returns
IPPROTO_SCTP when SOCK_STREAM is specified by hints.ai_socktype, at
least Apache doesn't work.  So, I made getaddrinfo(3) to return
IPPROTO_SCTP with SOCK_STREAM only when IPPROTO_SCTP is specified
explicitly by hints.ai_protocol.

PR: bin/128167
Submitted by: Bruce Cran <bruce__at__cran.org.uk> (partly)
MFC after: 2 week

15 years agoRename (fpu|npx)_cleanstate to (fpu|npx)_initialstate to better reflect
John Baldwin [Wed, 25 Mar 2009 14:17:08 +0000 (14:17 +0000)]
Rename (fpu|npx)_cleanstate to (fpu|npx)_initialstate to better reflect
their purpose.

Inspired by: bde
MFC after: 1 month

15 years agoadd support for shared "crunch" binary.
Luigi Rizzo [Wed, 25 Mar 2009 14:02:26 +0000 (14:02 +0000)]
add support for shared "crunch" binary.

15 years agoImprove the German translation.
Alexander Leidinger [Wed, 25 Mar 2009 12:36:37 +0000 (12:36 +0000)]
Improve the German translation.
Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon.

Discussed with: brueffer, gabor (previous version)

15 years agoMake programs that define a macro called `dprintf' more likely to work.
David Schultz [Wed, 25 Mar 2009 08:07:52 +0000 (08:07 +0000)]
Make programs that define a macro called `dprintf' more likely to work.

15 years agoAnother akihabra find: Mitsubishi B8895.
Warner Losh [Wed, 25 Mar 2009 07:26:24 +0000 (07:26 +0000)]
Another akihabra find: Mitsubishi B8895.

15 years agoFix typo.
Pyun YongHyeon [Wed, 25 Mar 2009 07:05:23 +0000 (07:05 +0000)]
Fix typo.

15 years ago- Remember to set umask before setting attributes of RCS file.
Ulf Lilleengen [Wed, 25 Mar 2009 07:01:45 +0000 (07:01 +0000)]
- Remember to set umask before setting attributes of RCS file.

Tested by: dougb
MFC after: 2 days

15 years agoUse __packed from cdefs.h
Xin LI [Wed, 25 Mar 2009 06:27:56 +0000 (06:27 +0000)]
Use __packed from cdefs.h

Submitted by: pyunyh
Reviewed by: Shaowei WANG <wsw1wsw2 gmail com>
MFC after: 2 weeks

15 years agoMerge an important change that I mistakenly left out when merging C99
David Schultz [Wed, 25 Mar 2009 05:10:32 +0000 (05:10 +0000)]
Merge an important change that I mistakenly left out when merging C99
inline function support. This should fix instances where gcc
spuriously reports the following error:

    error: nested function 'foo' declared but never defined

15 years agoDisable ATA DMA for ATAPI devices for now. Apparently, certain revisions
Nathan Whitehorn [Wed, 25 Mar 2009 03:42:49 +0000 (03:42 +0000)]
Disable ATA DMA for ATAPI devices for now. Apparently, certain revisions
of this controller, in combination with certain ATAPI devices and phases
of the moon, will cause DMA operations for ATAPI to fail.

15 years agoshuffle code so things build w/o INVARIANTS or IEEE80211_SUPPORT_SUPERG
Sam Leffler [Wed, 25 Mar 2009 03:02:03 +0000 (03:02 +0000)]
shuffle code so things build w/o INVARIANTS or IEEE80211_SUPPORT_SUPERG

Prodded by: several

15 years agoRework the management of vblank interrupts a bit.
Robert Noland [Wed, 25 Mar 2009 01:50:56 +0000 (01:50 +0000)]
Rework the management of vblank interrupts a bit.

When a vt switch occurs the irq handler is uninstalled.  Interrupts
and the state tracking of what was enabled/disabled wasn't working
properly.  This should resolve the reports of "slow windows" after a
vt switch, among other things.  The radeon 2d driver seems to work a
bit more correctly than the Intel driver.  With the Intel driver,
vblank interrupts will be enabled at system startup and will only
be disabled after an additional modeset (vt switch, dpms, randr event).

With this patch, I am able to run glxgears synced to vblank and
vt switch while it is running without ill effects.

MFC after: 3 days

15 years agoIntel handled the management of the breadcrumb counter inconsistently.
Robert Noland [Wed, 25 Mar 2009 01:44:16 +0000 (01:44 +0000)]
Intel handled the management of the breadcrumb counter inconsistently.
Make sure that we always handle it the same way.

MFC after: 3 days

15 years agoThe GART allocations are a propery of the gart, not of scatter-gather
Robert Noland [Wed, 25 Mar 2009 01:41:56 +0000 (01:41 +0000)]
The GART allocations are a propery of the gart, not of scatter-gather
memory.  Track them in the appropriate structure.

MFC after: 3 days

15 years agoUse __attribute__((packed)) for the structure so that hptiop management
Xin LI [Wed, 25 Mar 2009 00:57:09 +0000 (00:57 +0000)]
Use __attribute__((packed)) for the structure so that hptiop management
utility would work.

Submitted by: Shaowei WANG <wsw1wsw2 gmail com>
MFC after: 2 weeks

15 years ago- Add Belarusian catalog
Gabor Kovesdan [Tue, 24 Mar 2009 23:31:41 +0000 (23:31 +0000)]
- Add Belarusian catalog

PR: conf/133004
Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com>

15 years agoFix two bugs in DTrace tracing of accesscache and attrcache load events:
Robert Watson [Tue, 24 Mar 2009 23:16:48 +0000 (23:16 +0000)]
Fix two bugs in DTrace tracing of accesscache and attrcache load events:

- Trace non-error loads into the access cache once, not zero times or
  twice.
- Sometimes attr cache loads fail due to a race, in which case they are
  aborted leading to an invalidation; in this case, trace only the flush,
  not a load.

MFC after: 1 month
Sponsored by: Google, Inc.

15 years agoAllow compile from c++ for libpmc
Fabien Thomas [Tue, 24 Mar 2009 22:35:05 +0000 (22:35 +0000)]
Allow compile from c++ for libpmc

Approved by: jkoshy (mentor)
MFC after: 3 days

15 years agohide linker set stuff from user space
Sam Leffler [Tue, 24 Mar 2009 21:02:19 +0000 (21:02 +0000)]
hide linker set stuff from user space

15 years agosplit Atheros SuperG support out into it's own file that's included only
Sam Leffler [Tue, 24 Mar 2009 20:39:08 +0000 (20:39 +0000)]
split Atheros SuperG support out into it's own file that's included only
with a new IEEE80211_SUPPORT_SUPERG option

15 years agoChange yet another script to use /dev/mdX instead of /dev/mdXc (see
Marius Strobl [Tue, 24 Mar 2009 20:00:28 +0000 (20:00 +0000)]
Change yet another script to use /dev/mdX instead of /dev/mdXc (see
also r188438).

15 years agoWhen a file lookup fails due to encountering a doomed vnode from a forced
John Baldwin [Tue, 24 Mar 2009 18:16:42 +0000 (18:16 +0000)]
When a file lookup fails due to encountering a doomed vnode from a forced
unmount, consistently return ENOENT rather than EBADF.

Reviewed by: kib
MFC after: 1 month

15 years agoFall back to using configuration type 1 accesses for PCI config requests if
John Baldwin [Tue, 24 Mar 2009 18:10:22 +0000 (18:10 +0000)]
Fall back to using configuration type 1 accesses for PCI config requests if
the requested PCI bus falls outside of the bus range given in the ACPI
MCFG table.  Several BIOSes seem to not include all of the PCI busses in
systems in their MCFG tables.  It maybe that the BIOS is simply buggy and
does support all the busses, but it is more conservative to just fall back
to the old method unless it is certain that memory accesses will work.

15 years agoremove stale comments on the size of objects, they are more
Luigi Rizzo [Tue, 24 Mar 2009 18:02:35 +0000 (18:02 +0000)]
remove stale comments on the size of objects, they are more
than 10 years old and do not reflect reality anymore.

Also remove some commented out entries that have no hope to
be useful anymore.

15 years agoadd linker sets for get/set ioctl handlers so optional net80211
Sam Leffler [Tue, 24 Mar 2009 17:57:48 +0000 (17:57 +0000)]
add linker sets for get/set ioctl handlers so optional net80211
code is isolated

15 years agoadd a function to help copying shared binaries from the output
Luigi Rizzo [Tue, 24 Mar 2009 17:47:50 +0000 (17:47 +0000)]
add a function to help copying shared binaries from the output
of a buildworld.

15 years agogetaddrinfo(3) should accept numeric when ai_socktype is not
Hajimu UMEMOTO [Tue, 24 Mar 2009 17:47:24 +0000 (17:47 +0000)]
getaddrinfo(3) should accept numeric when ai_socktype is not
specified in hint or hints is NULL.

PR: bin/51827
Submitted by: Mark Andrews <marka__at__isc.org>
MFC after: 1 week

15 years agouse IEEE80211_SUPPORT_TDMA option to control whether code is
Sam Leffler [Tue, 24 Mar 2009 17:22:10 +0000 (17:22 +0000)]
use IEEE80211_SUPPORT_TDMA option to control whether code is
configured; this allows us to remove an #ifdef

15 years agoAdd DTrace probes to the NFS access and attribute caches. Access cache
Robert Watson [Tue, 24 Mar 2009 17:14:34 +0000 (17:14 +0000)]
Add DTrace probes to the NFS access and attribute caches.  Access cache
events are:

  nfsclient:accesscache:flush:done
  nfsclient:accesscache:get:hit
  nfsclient:accesscache:get:miss
  nfsclient:accesscache:load:done

They pass the vnode, uid, and requested or loaded access mode (if any);
the load event may also report a load error if the RPC fails.

The attribute cache events are:

  nfsclient:attrcache:flush:done
  nfsclient:attrcache:get:hit
  nfsclient:attrcache:get:miss
  nfsclient:attrcache:load:done

They pass the vnode, optionally the vattr if one is present (hit or load),
and in the case of a load event, also a possible RPC error.

MFC after: 1 month
Sponsored by: Google, Inc.

15 years agorequire wlan for ancillary modules; they are required to link
Sam Leffler [Tue, 24 Mar 2009 17:10:42 +0000 (17:10 +0000)]
require wlan for ancillary modules; they are required to link

15 years agoremove unused "package" entry.
Luigi Rizzo [Tue, 24 Mar 2009 16:03:46 +0000 (16:03 +0000)]
remove unused "package" entry.
default to use devfs (we do that anyways)

Many small changes in comments

15 years agoFixed indentation for LINKTYPE_ENC
VANHULLEBUS Yvan [Tue, 24 Mar 2009 15:57:35 +0000 (15:57 +0000)]
Fixed indentation for LINKTYPE_ENC

Approved by: gnn(mentor)