]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoCorrect a comment about which parallel port pin is used to drive
iedowse [Sun, 17 Apr 2005 21:55:00 +0000 (21:55 +0000)]
Correct a comment about which parallel port pin is used to drive
the RS signal.

PR: misc/20139

19 years agoPass the hostname we got from DHCP to the kernel so that machines can
wollman [Sun, 17 Apr 2005 21:38:22 +0000 (21:38 +0000)]
Pass the hostname we got from DHCP to the kernel so that machines can
share a read-only NFS root.

19 years agoFix truncl.3 MLINKS
ache [Sun, 17 Apr 2005 19:57:52 +0000 (19:57 +0000)]
Fix truncl.3 MLINKS

19 years agoA very minor tweak to the handling of leading '/' characters.
kientzle [Sun, 17 Apr 2005 19:46:50 +0000 (19:46 +0000)]
A very minor tweak to the handling of leading '/' characters.

19 years agoA number of fixes to the autoconf-generated build system. In
kientzle [Sun, 17 Apr 2005 19:43:37 +0000 (19:43 +0000)]
A number of fixes to the autoconf-generated build system.  In
particular, acl support is no longer enabled on FreeBSD 4, acl support
should be correctly enabled on Linux, dirent.d_namlen should be
correctly detected on platforms that support it.

Thanks to: Greg Lewis, Juergen Lock, and Jaakko Heinonen

19 years agoNow that the GDT has been reorganized and GNDIS_SEL has been reserved
wpaul [Sun, 17 Apr 2005 19:36:08 +0000 (19:36 +0000)]
Now that the GDT has been reorganized and GNDIS_SEL has been reserved
for us, use it if it's available, otherwise default to using slot 7
as before.

19 years agoConfigure script needs to test for dirent.d_namlen.
kientzle [Sun, 17 Apr 2005 17:53:24 +0000 (17:53 +0000)]
Configure script needs to test for dirent.d_namlen.

Thanks to: Juergen Lock

19 years agoUpdate "make distfile" to use newest automake/autoconf from ports.
kientzle [Sun, 17 Apr 2005 17:51:05 +0000 (17:51 +0000)]
Update "make distfile" to use newest automake/autoconf from ports.

Thanks to: Juergen Lock

19 years agoMerge some style and minor changes from NetBSD:
marius [Sun, 17 Apr 2005 17:44:01 +0000 (17:44 +0000)]
Merge some style and minor changes from NetBSD:
- ncr53c9x.c:
  1.108: Remove unreachable break after return and goto statements.
  1.109: avoid strong words; use 'screw' instead
  1.110: Fix some typos. From Tom Cosgrove via jmc@openbsd.
  1.114: nuke trailing whitespace

  1.107 was already merged, 1.112 and 1.113 are not relevant for FreeBSD.
  1.111 is a functional change and will be merged later.

- ncr53c9xreg.h:
  1.12: DMA, not dma nor Dma.
  1.13: Fix some typos. From Tom Cosgrove via jmc@openbsd.
  1.14: nuke trailing whitespace

- ncr53c9xvar.h:
  1.43: Fix some typos. From Tom Cosgrove via jmc@openbsd.
  1.44: Constify.

  1.42 and 1.46 were already merged, 1.45 is not relevant for FreeBSD.

19 years agoStyle and minor changes:
marius [Sun, 17 Apr 2005 17:42:36 +0000 (17:42 +0000)]
Style and minor changes:
- Merge esp_sbus.c rev. 1.31 from NetBSD: nuke trailing whitespace.
  Rev. 1.28 and 1.30 were already merged, 1.29 is not relevant for FreeBSD.
- Remove unused headers.
- Use BUS_PROBE_DEFAULT.
- Use __func__ instead of hardcoded function names in error messages.
- Correct some comments.
- Correct some function declarations to match their prototypes.
- Some style(9) fixes (don't use function calls in initializers; indentation).
- Zero the allocated structs to avoid problems with uninitialized members.
- Remove the ifdef'ed out SBus interrupt priority code and the hook for
  ncr53c9x_reset(), remove the unused SBus interrupt priority member from
  esp_softc. On FreeBSD setting the SBus interrupt priority is entirely done
  in sbus(4) and the reset function isn't even really used in NetBSD.
- s,dma,DMA, in comments.
- Make the code fit in 80 columns.

19 years agoStyle and minor changes:
marius [Sun, 17 Apr 2005 17:41:32 +0000 (17:41 +0000)]
Style and minor changes:
- Merge lsi64854.c rev. 1.25 from NetBSD: nuke trailing whitespace.
- Update NetBSD RCS IDs according to what was actually already merged.
- Remove dv_name from the lsi64854_softc and use device_printf() instead.
- Use __func__ instead of hardcoded function names in error messages.
- Use ulmin() instead of min() for comparing the DMA sizes as the values
  involved actually are represented by 64bit unsigned instead of 32bit
  unsigned. As far as I can't tell this doesn't make a difference in
  practice though.
- Some style(9) fixes (mainly indentation).
- Remove unnecessary braces.

19 years agoSupport path-rewriting options (including --strip-components) for both
kientzle [Sun, 17 Apr 2005 17:20:54 +0000 (17:20 +0000)]
Support path-rewriting options (including --strip-components) for both
extraction and creation.  While I'm here, fix a bug reported by Garrett
Wollman: when stripping the leading '/' from the path "/", don't produce
an entry with an empty name; produce "." instead.

19 years agoFix a bug where we call pcm_getbuffersize twice.
matk [Sun, 17 Apr 2005 16:26:08 +0000 (16:26 +0000)]
Fix a bug where we call pcm_getbuffersize twice.

Pointed out by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>

19 years agoNFS write gathering defers execution of NFS server write requests to wait
rwatson [Sun, 17 Apr 2005 16:25:36 +0000 (16:25 +0000)]
NFS write gathering defers execution of NFS server write requests to wait
to see if additional write requests will arrive that can be coalesced and
clustered with earlier ones.  When doing so, it must determine whether
the two requests are made by credentials with the same access writes, so
as not to coalesce improperly.  NFSW_SAMECRED() implements a test of two
credentials using a binary compare.

Replace NFSW_SAMECRED() macro with nfsrv_samecred() function, which is
aware of the contents and layout of a struct ucred, rather than a simple
binary compare.  While the binary compare works when ucred is simply a
zero'd and embedded 'struct ucred' in the NFS descriptor, it will work
less well when the ucred associated with an NFS descriptor is "real", so
has defined and populated reference count, mutex, etc.

MFC after: 1 week
Obtained from: TrustedBSD Project

19 years agoCatch up with new naming scheme for USB serial devices: s/ucom/cuaU/.
simon [Sun, 17 Apr 2005 16:08:51 +0000 (16:08 +0000)]
Catch up with new naming scheme for USB serial devices: s/ucom/cuaU/.

PR: docs/80027
Submitted by: Rong-En Fan <rafan@infor.org>

19 years agoDe-dma the uaudio <-> pcm bridge. We were not capable of doing DMA from
matk [Sun, 17 Apr 2005 15:26:51 +0000 (15:26 +0000)]
De-dma the uaudio <-> pcm bridge.  We were not capable of doing DMA from
this buffer anyway so the constraint that it had to be DMA capable only
caused pain when devices failed to aquire the memory.  Use a regular
malloc instead with sndbuf_setup.

Approved by:    tanimura (mentor)

19 years agoFix build for !YP case.
delphij [Sun, 17 Apr 2005 15:10:30 +0000 (15:10 +0000)]
Fix build for !YP case.

BTW.  Shall we change these fields to have yp_ prefix?  That will make the
code easier to read.

19 years agoUse __CONCAT() in the TUNABLE_ macros, this way we don't have to use 3
stefanf [Sun, 17 Apr 2005 15:08:34 +0000 (15:08 +0000)]
Use __CONCAT() in the TUNABLE_ macros, this way we don't have to use 3
macros per type.

19 years agolibc-internal interfaces should have two underscores in front
ume [Sun, 17 Apr 2005 14:42:52 +0000 (14:42 +0000)]
libc-internal interfaces should have two underscores in front
of their names.

Pointed out by: das

19 years agoAdd one more Promise SATAII/150 chip id.
sos [Sun, 17 Apr 2005 13:37:57 +0000 (13:37 +0000)]
Add one more Promise SATAII/150 chip id.

19 years agoRe-commit the following changes which were committed to these files
marius [Sun, 17 Apr 2005 12:45:20 +0000 (12:45 +0000)]
Re-commit the following changes which were committed to these files
at their old location in sys/dev/esp after they were repo-copied to
sys/sparc64/sbus at rev. 1.1:

sys/dev/esp/lsi64854.c rev. 1.2
sys/dev/esp/lsi64854var.h rev. 1.2

Add some style(9) touch ups; style(9) states that new code should follow
these conventions and, well, this is a new driver.

Tested on: i386, sparc64
Reviewed by: scottl

19 years agoForced commit to denote that these files were repo-copied from
marius [Sun, 17 Apr 2005 12:41:22 +0000 (12:41 +0000)]
Forced commit to denote that these files were repo-copied from
sys/dev/esp to sys/sparc64/sbus at rev. 1.1.

19 years ago- Split the bus probe function into a bus probe and a bus attach function
marius [Sun, 17 Apr 2005 11:32:34 +0000 (11:32 +0000)]
- Split the bus probe function into a bus probe and a bus attach function
  with the attaching of the children done in the bus attach function like
  it's supposed to be.
- In the bus probe nomatch function print the resources of the children
  like it's done in the other sparc64 specific bus drivers.
- For the clock frequency IVAR use the per-child values and fall back to
  the bus default in case a child doesn't have the respective property
  instead of always using the bus default so a child driver doesn't need
  to obtain the per-child value itself (see also the commit message of
  sys/dev/esp/esp_sbus.c rev. 1.7).
- Add support for pass-through allocations. The comment preceding
  sbus_alloc_resource() wasn't quite correct, we need to support pass-
  through allocations for the 'espdma' and 'ledma' (pseudo-)busses which
  hang off of the SBus in Ultra 1 machines. There can also be actual
  bridges like the SBus-to-PCMCIA bridge on the SBus and the XBox (SBus
  extension box) probably also involves one.

19 years agoSome clean-up announced in rev. 1.31:
marius [Sun, 17 Apr 2005 11:28:41 +0000 (11:28 +0000)]
Some clean-up announced in rev. 1.31:
- Use auto-generated typedefs for the prototypes of the device interface
  functions.
- Style(9) fixes (mainly don't use function calls in initializers).
- Use __func__ instead of hardcoded function names in error messages.
- Try to make error messages sound uniform.
- Try to keep the code within 80 columns.
- Correct some typos.
- Correct some function declarations to match their prototypes.
- Remove unused headers, macros and variables.
- Remove a bzero() superfluous due to allocating with M_ZERO.
- Use FBSDID.

19 years agoAdd startup script and default configuration file for bsnmpd.
glebius [Sun, 17 Apr 2005 10:47:58 +0000 (10:47 +0000)]
Add startup script and default configuration file for bsnmpd.

Reviewed by: harti

19 years agoMFi386: revision 1.1194 (Update the drm driver).
nyan [Sun, 17 Apr 2005 10:43:43 +0000 (10:43 +0000)]
MFi386: revision 1.1194 (Update the drm driver).

19 years agoFix the apm module on pc98.
nyan [Sun, 17 Apr 2005 10:41:59 +0000 (10:41 +0000)]
Fix the apm module on pc98.

Pointed out by: Kuwamura Shinya <kuwa at lares dot dti dot ne dot jp>
MFC after: 1 day

19 years agoRemove unneeded include.
nyan [Sun, 17 Apr 2005 09:44:17 +0000 (09:44 +0000)]
Remove unneeded include.

19 years agoOn record only devices, don't fail if we don't have a play channel.
julian [Sun, 17 Apr 2005 07:42:28 +0000 (07:42 +0000)]
On record only devices, don't fail if we don't have a play channel.

MFC after: 3 days

19 years agoWrong working directory, sorry. The previous patch was what I have
delphij [Sun, 17 Apr 2005 04:00:55 +0000 (04:00 +0000)]
Wrong working directory, sorry.  The previous patch was what I have
seen in NetBSD's tree, and this one is what I have submitted for review.

Pointy hat to: me

19 years agoRemove a check about whether sa->sa_len is equal to salen from
delphij [Sun, 17 Apr 2005 03:56:07 +0000 (03:56 +0000)]
Remove a check about whether sa->sa_len is equal to salen from
getnameinfo(3).  POSIX standard does not require a sa_len field
in sockaddr struct, hence such requirement will cause problem
for portability.

PR: standards/80008
Requested by: Xin Liu <lx@knight.6test.edu.cn>
Reviewed by: freebsd-standards (das)
MFC After: 2 weeks

19 years agos/int/size_t/ as appropriate.
das [Sun, 17 Apr 2005 01:06:37 +0000 (01:06 +0000)]
s/int/size_t/ as appropriate.

Noticed by: bde

19 years agoAdd another regression test - one we don't pass right now.
silby [Sun, 17 Apr 2005 00:56:38 +0000 (00:56 +0000)]
Add another regression test - one we don't pass right now.

19 years agoHave the regression test use a path in /tmp for a mount point
silby [Sun, 17 Apr 2005 00:40:27 +0000 (00:40 +0000)]
Have the regression test use a path in /tmp for a mount point
instead of a directory that only exists on my machine.

19 years agoDisable negative name caching for msdosfs to work around a bug.
das [Sat, 16 Apr 2005 23:47:19 +0000 (23:47 +0000)]
Disable negative name caching for msdosfs to work around a bug.
Since the name cache is case-sensitive and msdosfs isn't,
creating a file 'foo' won't invalidate a negative entry for 'FOO'.
There are similar problems related to 8.3 filenames.

A better solution is to override VOP_LOOKUP with a method that
canonicalizes the name, then calls vfs_cache_lookup().  Unfortunately,
it's not quite that simple because vfs_cache_lookup() will call
msdosfs_lookup() on a cache miss, and msdosfs_lookup() needs a way to
get at the original component name.

19 years agoAdd a kpte command to DDB. It dumps the PTE of a KVA. This helps
marcel [Sat, 16 Apr 2005 23:38:32 +0000 (23:38 +0000)]
Add a kpte command to DDB. It dumps the PTE of a KVA. This helps
to analyze faults and TLB/VHPT inconsistencies.

19 years agoBe bug-for-bug compatible with the C standard with respect to
das [Sat, 16 Apr 2005 22:36:51 +0000 (22:36 +0000)]
Be bug-for-bug compatible with the C standard with respect to
printf("%#.0o", 0).  Cite an amusing passage from a defect report.

19 years agoMore optimized math functions.
das [Sat, 16 Apr 2005 21:12:55 +0000 (21:12 +0000)]
More optimized math functions.

19 years agoImplement truncl() based on floorl().
das [Sat, 16 Apr 2005 21:12:47 +0000 (21:12 +0000)]
Implement truncl() based on floorl().

19 years agoConcatenate the line number rather than the string `__FILE__' in the
stefanf [Sat, 16 Apr 2005 20:47:32 +0000 (20:47 +0000)]
Concatenate the line number rather than the string `__FILE__' in the
NET_NEEDS_GIANT macro.  Until now this wasn't a problem because no
translation unit contains NET_NEEDS_GIANT more than once.

19 years agoSpell ATA_NFORCE4_S2 correctly.
sos [Sat, 16 Apr 2005 20:03:49 +0000 (20:03 +0000)]
Spell ATA_NFORCE4_S2 correctly.

19 years agoIntroduce three additional MAC Framework and MAC Policy entry points to
rwatson [Sat, 16 Apr 2005 18:46:29 +0000 (18:46 +0000)]
Introduce three additional MAC Framework and MAC Policy entry points to
control socket poll() (select()), fstat(), and accept() operations,
required for some policies:

        poll()          mac_check_socket_poll()
        fstat()         mac_check_socket_stat()
        accept()        mac_check_socket_accept()

Update mac_stub and mac_test policies to be aware of these entry points.
While here, add missing entry point implementations for:

        mac_stub.c      stub_check_socket_receive()
        mac_stub.c      stub_check_socket_send()
        mac_test.c      mac_test_check_socket_send()
        mac_test.c      mac_test_check_socket_visible()

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA

19 years agoThose who are ungodlike should be returned an error.
trhodes [Sat, 16 Apr 2005 18:41:00 +0000 (18:41 +0000)]
Those who are ungodlike should be returned an error.

19 years agoIn mac_get_fd(), remove unconditional acquisition of Giant around copying
rwatson [Sat, 16 Apr 2005 18:33:13 +0000 (18:33 +0000)]
In mac_get_fd(), remove unconditional acquisition of Giant around copying
of the socket label to thread-local storage, and replace it with
conditional acquisition based on debug.mpsafenet.  Acquire the socket
lock around the copy operation.

In mac_set_fd(), replace the unconditional acquisition of Giant with
the conditional acquisition of Giant based on debug.mpsafenet.  The socket
lock is acquired in mac_socket_label_set() so doesn't have to be
acquired here.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA

19 years agoExtend a local buffer to prevent an overflow of the XSDT address.
njl [Sat, 16 Apr 2005 17:38:24 +0000 (17:38 +0000)]
Extend a local buffer to prevent an overflow of the XSDT address.

Submitted by: Joerg Sonnenberger
Obtained from: DragonflyBSD
MFC after: 1 day

19 years agoReduce the width of the THR column to 4 characters, to avoid wrap-around
keramida [Sat, 16 Apr 2005 15:43:38 +0000 (15:43 +0000)]
Reduce the width of the THR column to 4 characters, to avoid wrap-around
of lines in SMP machines (which are wider), until we have a better way
of handling window sizes & columns in top.

Caught by: ache, Andre Guibert de Bruet <andy@siliconlandmark.com>
Point hat: keramida

19 years agoIncrease default HZ for sparc64 to 1000.
marius [Sat, 16 Apr 2005 15:07:41 +0000 (15:07 +0000)]
Increase default HZ for sparc64 to 1000.

19 years ago- MFi386: sys/i386/i386/intr_machdep.c rev. 1.11
marius [Sat, 16 Apr 2005 15:05:56 +0000 (15:05 +0000)]
- MFi386: sys/i386/i386/intr_machdep.c rev. 1.11
  Don't use atomic ops to increment interrupt stats.
  On sparc64 this reduces delay until tick interrupts are service by 1/10th
  on average. In turn this reduces the clock drift caused by these delays
  so there's less drift which has to be compensated in tick_hardclock().
  This includes switching from atomically incrementing the global cnt.v_intr
  to the asm equivalent of PCPU_LAZY_INC(cnt.v_intr) in exception.S
- Correct some comments to match the registers actually used.
- Correct some format specifiers, interrupt levels passed in are u_int.
- Use FBSDID.

Ok'ed by: jhb

19 years agoSome changes to intr_execute_handlers():
marius [Sat, 16 Apr 2005 15:02:16 +0000 (15:02 +0000)]
Some changes to intr_execute_handlers():
- Fix NULL pointer dereferences caused when an ithread or a handler is
  NULL which happens when a stray interrupt triggers after the respective
  device interrupt was torn down.
- Remove the critical section around INTR_FAST handlers which actually
  was a nested critical section. Both tl0_intr() and tl1_intr() already
  enter a critical section for calling intr_execute_handlers().

MFC after: 3 days

19 years ago- In sparc64_init() remove the call to tick_stop(). There's no need to
marius [Sat, 16 Apr 2005 15:00:09 +0000 (15:00 +0000)]
- In sparc64_init() remove the call to tick_stop(). There's no need to
  call tick_stop() again after tick_init() as tick interrupts already
  have been disabled as part of tick_init().
- In spinlock_enter() replace the magic value for PIL TICK with the
  respective macro.
- Use FBSDID.

19 years ago- Add a workaround for a bug in BlackBird CPUs (said to be part of the
marius [Sat, 16 Apr 2005 14:57:38 +0000 (14:57 +0000)]
- Add a workaround for a bug in BlackBird CPUs (said to be part of the
  SpitFire erratum #54) which can cause writes to the TICK_CMPR register
  to fail. This seems to fix the dying clocks problem reported by jhb@
  and kris@. [1]
- In tick_start() don't reset the tick counter of the boot processor to
  zero. It's initially reset in _start() and afterwards but _before_
  tick_start() is called on the BSP the APs synchronise with the tick
  counter of the BSP in mp_startup(). Resetting the tick counter of the
  BSP in tick_start() probably also was the cause of problems seen when
  using the CPU tick counter as timecounter on SMP machines.
  Not resetting the tick counter of the BSP in mp_startup() makes the
  tick counters and tick interrupts between the BSP and APs be pretty
  much in sync as it's supposed to be. This also means there's no longer
  a real reason to have separate tick_start() and tick_start_ap() so
  merge them and zap tick_start_ap(). This is also a first step in
  simplifying the interface to the tick counters in preparation to use
  alternate clock hardware where available.
- Switch to the algorithm used on FreeBSD/ia64 for updating the tick
  interrupt register and which compensates the clock drift caused by
  varying delays between when the tick interrupts actually trigger and
  when they are serviced. Not compensating the clock drift mainly hurts
  interactive performance especially when using WITNESS. [2]
  For further information about the algorithm also see the commit log
  of sys/ia64/ia64/interrupt.c rev. 1.38.
  On sparc64 the sysctls for monitoring the behaviour of the tick
  interrupts are machdep.tick.adjust_edges, machdep.tick.adjust_excess,
  machdep.tick.adjust_missed and machdep.tick.adjust_ticks.
- In tick_init() just use tick_stop() for stopping the tick interrupts
  until a proper handler is set up later. This also stops the system
  tick interrupt on USIII systems earlier.
- In tick_start() check for a rough upper limit of HZ.
- Some minor changes, e.g. use FBSDID, remove unused headers, etc.

Info obtained from: Linux [1]
Ok'ed by: marcel [2]
Additional testing by: kris (earlier version of the workaround), jhb
X-MFC after: 3 days [1]

19 years agoFix a style(9) bug in the stxa_sync() macro (DO NOT use function calls
marius [Sat, 16 Apr 2005 14:47:50 +0000 (14:47 +0000)]
Fix a style(9) bug in the stxa_sync() macro (DO NOT use function calls
in initializers).

19 years agoIntroduce new MAC Framework and MAC Policy entry points to control the use
rwatson [Sat, 16 Apr 2005 13:29:15 +0000 (13:29 +0000)]
Introduce new MAC Framework and MAC Policy entry points to control the use
of system calls to manipulate elements of the process credential,
including:

        setuid()                mac_check_proc_setuid()
        seteuid()               mac_check_proc_seteuid()
        setgid()                mac_check_proc_setgid()
        setegid()               mac_check_proc_setegid()
        setgroups()             mac_check_proc_setgroups()
        setreuid()              mac_check_proc_setreuid()
        setregid()              mac_check_proc_setregid()
        setresuid()             mac_check_proc_setresuid()
        setresgid()             mac_check_rpoc_setresgid()

MAC checks are performed before other existing security checks; both
current credential and intended modifications are passed as arguments
to the entry points.  The mac_test and mac_stub policies are updated.

Submitted by: Samy Al Bahra <samy@kerneled.org>
Obtained from: TrustedBSD Project

19 years agoXref ataraid(4).
brueffer [Sat, 16 Apr 2005 12:43:17 +0000 (12:43 +0000)]
Xref ataraid(4).

19 years agoManual page for the ataraid(4) software RAID driver.
brueffer [Sat, 16 Apr 2005 12:40:38 +0000 (12:40 +0000)]
Manual page for the ataraid(4) software RAID driver.

Reviewed by: sos

19 years agoUnbreak the build on 64-bit architectures.
des [Sat, 16 Apr 2005 12:37:16 +0000 (12:37 +0000)]
Unbreak the build on 64-bit architectures.

19 years agoAdd ALQ and KTR_ALQ to NOTES so that they are built into LINT.
rwatson [Sat, 16 Apr 2005 12:14:43 +0000 (12:14 +0000)]
Add ALQ and KTR_ALQ to NOTES so that they are built into LINT.

19 years agoModify the alq(9) alq_open() API to accept a file creation mode, rather
rwatson [Sat, 16 Apr 2005 12:12:27 +0000 (12:12 +0000)]
Modify the alq(9) alq_open() API to accept a file creation mode, rather
than defaulting the cmode argument to vn_open() to 0.  Supply a default
argument of ALQ_DEFAULT_CMODE (0600) in current callers.

Discussed with/pointed out by: hmp
Reveiwed by: jeff, hmp
MFC after: 3 days

19 years agoStarting point for a regression test for mac_bsdextended(4)/libugidfw(3).
rwatson [Sat, 16 Apr 2005 12:06:40 +0000 (12:06 +0000)]
Starting point for a regression test for mac_bsdextended(4)/libugidfw(3).
Currently only performs basic tests against the library string routines,
and queries less important kernel state.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA
MFC after: 3 days

19 years agoWhen parsing the second {uid,gid} in an identity phrase for ugidfw,
rwatson [Sat, 16 Apr 2005 11:58:55 +0000 (11:58 +0000)]
When parsing the second {uid,gid} in an identity phrase for ugidfw,
check the password or group database before attempting to parse as an
integer, as is done for the first {uid,gid} in an identity phrase.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA

19 years agoIn practice, you need to include <sys/types.h> and
rwatson [Sat, 16 Apr 2005 11:32:46 +0000 (11:32 +0000)]
In practice, you need to include <sys/types.h> and
<security/mac_bsdextended/mac_bsdextended.h> in order to include
<ugidfw.h>, so document that.

MFC after: 3 days

19 years ago- Plug memory leak.
pjd [Sat, 16 Apr 2005 10:57:49 +0000 (10:57 +0000)]
- Plug memory leak.
- Fix two style nits.

Found by: Coverity Prevent analysis tool
Reviewed by: rwatson
MFC after: 1 week

19 years agoReturn better "error" values for UWX_BOTTOM and UWX_ABI_FRAME in
marcel [Sat, 16 Apr 2005 05:38:59 +0000 (05:38 +0000)]
Return better "error" values for UWX_BOTTOM and UWX_ABI_FRAME in
unw_step(). Both errors denote the end of a stack trace (i.e. no
prior frame), but are otherwise not error conditions.
Have db_trace() return 0 when the trace ends due to one of these
return codes as they are really normal termination conditions.

This change especially improves the output of the "show thread"
command in DDB when there are threads in fork_trampoline() and
previously db_trace() would return an error, causing the show
command to emit '***'.

19 years agoGrr, fix another braino.
ru [Sat, 16 Apr 2005 05:34:48 +0000 (05:34 +0000)]
Grr, fix another braino.

19 years agoFix braino in previous revision.
ru [Sat, 16 Apr 2005 05:33:42 +0000 (05:33 +0000)]
Fix braino in previous revision.

19 years agoWhen setting up the new stack for a function in x86_64_wrap(), make
wpaul [Sat, 16 Apr 2005 04:47:15 +0000 (04:47 +0000)]
When setting up the new stack for a function in x86_64_wrap(), make
sure to make it 16-byte aligned, in keeping with amd64 calling
convention requirements.

Submitted by: Mikore Li at sun dot com

19 years agoUpdate to DRM CVS as of 2005-04-12, bringing many changes:
anholt [Sat, 16 Apr 2005 03:44:47 +0000 (03:44 +0000)]
Update to DRM CVS as of 2005-04-12, bringing many changes:
- Split core DRM routines back into their own module, rather than using the
  nasty templated system like before.
- Development-class R300 support in radeon driver (requires userland pieces, of
  course).
- Mach64 driver (haven't tested in a while -- my mach64s no longer fit in the
  testbox).  Covers Rage Pros, Rage Mobility P/M, Rage XL, and some others.
- i915 driver files, which just need to get drm_drv.c fixed to allow attachment
  to the drmsub device.  Covers i830 through i915 integrated graphics.
- savage driver files, which should require minimal changes to work.  Covers the
  Savage3D, Savage IX/MX, Savage 4, ProSavage.
- Support for color and texture tiling and HyperZ features of Radeon.

Thanks to: scottl (much p4 handholding)
Jung-uk Kim (helpful prodding)
PR: [1] kern/76879, [2] kern/72548
Submitted by: [1] Alex, lesha at intercaf dot ru
[2] Shaun Jurrens, shaun at shamz dot net

19 years agoFix mbnambuf support for multi-byte characters. If a substring is larger
njl [Sat, 16 Apr 2005 01:49:50 +0000 (01:49 +0000)]
Fix mbnambuf support for multi-byte characters.  If a substring is larger
than WIN_CHARS bytes, we shift the suffix (previous substrings) upwards
by the amount this substring exceeds its WIN_CHARS slot.  Profiling shows
this change is indistinguishable from the previous code at 95% confidence.
This bug would result in attempts to access or create files or directories
with multi-byte characters returning an error but no data loss.

Reported and tested by: avatar
MFC after: 3 days

19 years agoDocument 'clear' and 'dump' subcommands.
pjd [Fri, 15 Apr 2005 23:51:20 +0000 (23:51 +0000)]
Document 'clear' and 'dump' subcommands.

MFC after: 1 week

19 years agoAdd a vm.blacklist tunable which can hold a space or comma seperated list
jhb [Fri, 15 Apr 2005 21:45:02 +0000 (21:45 +0000)]
Add a vm.blacklist tunable which can hold a space or comma seperated list
of physical addresses.  The pages containing these physical addresses will
not be added to the free list and thus will effectively be ignored by the
VM system.  This is mostly useful for the case when one knows of specific
physical addresses that have bit errors (such as from a memtest run) so
that one can blacklist the bad pages while waiting for the new sticks of
RAM to arrive.  The physical addresses of any ignored pages are listed in
the message buffer as well.

19 years ago- Add Dell PERC 4ei to the list of supported devices. It's an
simon [Fri, 15 Apr 2005 21:18:31 +0000 (21:18 +0000)]
- Add Dell PERC 4ei to the list of supported devices.  It's an
  alias used by Dell sometimes for PERC 4e/Si. [1]
- Delete some trailing whitespace.

MFC after: 1 day
Rapported by: Jon Kuster <kwsn@earthlink.net> [1]

19 years agoRemove NO_MIXED_MODE option
peter [Fri, 15 Apr 2005 18:48:27 +0000 (18:48 +0000)]
Remove NO_MIXED_MODE option

19 years agoMFi386: sync rtc code - don't setup an interrupt handler for irq0 when
peter [Fri, 15 Apr 2005 18:46:53 +0000 (18:46 +0000)]
MFi386: sync rtc code - don't setup an interrupt handler for irq0 when
the lapic timer is active.  Don't enable periodic interrupts unless we are
using them.  Replace spl protection with a spinlock.

19 years agoMFi386: remove NO_MIXED_MODE
peter [Fri, 15 Apr 2005 18:45:07 +0000 (18:45 +0000)]
MFi386: remove NO_MIXED_MODE

19 years agoMFi386: use the lapic timer for UP systems that are using the apic so that
peter [Fri, 15 Apr 2005 18:44:53 +0000 (18:44 +0000)]
MFi386: use the lapic timer for UP systems that are using the apic so that
IRQ0 and mixed mode isn't a problem anymore.  This removes mixed mode
support because nothing is left that uses it.

19 years agoMFi386: use c99 types
peter [Fri, 15 Apr 2005 18:41:32 +0000 (18:41 +0000)]
MFi386: use c99 types

19 years agoShow that I can actually count.
peter [Fri, 15 Apr 2005 18:39:31 +0000 (18:39 +0000)]
Show that I can actually count.

19 years agoMFi386: track bus.h changes (unsplit bus_${machine}.h)
peter [Fri, 15 Apr 2005 18:38:59 +0000 (18:38 +0000)]
MFi386: track bus.h changes (unsplit bus_${machine}.h)

19 years agoNow, our getservbyname(3) is thread-safe. So, we don't need
ume [Fri, 15 Apr 2005 18:15:12 +0000 (18:15 +0000)]
Now, our getservbyname(3) is thread-safe.  So, we don't need
to protect it with mutex lock.

19 years ago- add getserv{byname,byport,ent}_r for internal use within libc.
ume [Fri, 15 Apr 2005 18:09:39 +0000 (18:09 +0000)]
- add getserv{byname,byport,ent}_r for internal use within libc.
- make getserv{byname,byport,ent} thread-safe.

Reviewed by: gnn

19 years agoVarious sh(1) enhancements:
keramida [Fri, 15 Apr 2005 14:53:29 +0000 (14:53 +0000)]
Various sh(1) enhancements:
- Move the description of the ``-c string'' option closer to the option itself.
- Add an ENVIRONMENT section (1)
- Add more .Xr cross references to the SEE ALSO section.

Obtained from:  NetBSD (1)

19 years agoAdd a 'SEE ALSO' section.
jkoshy [Fri, 15 Apr 2005 14:46:59 +0000 (14:46 +0000)]
Add a 'SEE ALSO' section.

19 years agohostalias() is not thread-safe. So, introduce _res_hostalias()
ume [Fri, 15 Apr 2005 14:42:29 +0000 (14:42 +0000)]
hostalias() is not thread-safe.  So, introduce _res_hostalias()
and use it.

Obtained from: BIND9

19 years agoDocument FreeBSD-SA-05:04.ifconf.
simon [Fri, 15 Apr 2005 14:27:26 +0000 (14:27 +0000)]
Document FreeBSD-SA-05:04.ifconf.

MFC after: 1 day

19 years agoMFi386: revision 1.219.
nyan [Fri, 15 Apr 2005 14:24:49 +0000 (14:24 +0000)]
MFi386: revision 1.219.

19 years agoMake things compile again with ATA_STATIC_ID.
sos [Fri, 15 Apr 2005 14:19:41 +0000 (14:19 +0000)]
Make things compile again with ATA_STATIC_ID.

19 years agoFix a typo in the comment.
maxim [Fri, 15 Apr 2005 14:01:43 +0000 (14:01 +0000)]
Fix a typo in the comment.

Noticed by: Samy Al Bahra

19 years agoTypo fix
den [Fri, 15 Apr 2005 13:13:08 +0000 (13:13 +0000)]
Typo fix

19 years agoMerge the following from the English version:
den [Fri, 15 Apr 2005 12:03:46 +0000 (12:03 +0000)]
Merge the following from the English version:

   1.832 -> 1.843 relnotes/common/new.sgml

Obtained from: The FreeBSD Russian Documentation Project

19 years agoAdd missing links.
pjd [Fri, 15 Apr 2005 10:57:34 +0000 (10:57 +0000)]
Add missing links.

MFC after: 2 weeks

19 years agoMove the creation of ata_channel child devices to the channel code.
sos [Fri, 15 Apr 2005 10:20:52 +0000 (10:20 +0000)]
Move the creation of ata_channel child devices to the channel code.
This allows to attach to the children (ATA devices) even without a
driver being attached. This allows atapi-cam to do its work both
with and without the pure ATAPI driver being present.

ATA patches by /me
ATAPI-cam pathes by Thomas

19 years ago- Return error, if there was one.
glebius [Fri, 15 Apr 2005 10:14:00 +0000 (10:14 +0000)]
- Return error, if there was one.
- No need to initialize error here.

PR: kern/79884
Submitted by: Wojciech A. Koszek

19 years agoReally remove the last vestiges of mixed mode from all but amd64.
jhb [Fri, 15 Apr 2005 06:56:52 +0000 (06:56 +0000)]
Really remove the last vestiges of mixed mode from all but amd64.

19 years agoOops, remove last mention of mixed mode.
jhb [Fri, 15 Apr 2005 06:13:31 +0000 (06:13 +0000)]
Oops, remove last mention of mixed mode.

Prodded by: marks

19 years agoZero the ifr.ifr_name buffer in ifconf() in order to avoid
cperciva [Fri, 15 Apr 2005 01:52:40 +0000 (01:52 +0000)]
Zero the ifr.ifr_name buffer in ifconf() in order to avoid
accidental disclosure of kernel memory to userland.

Security: FreeBSD-SA-05:04.ifconf

19 years agoCentralized finding the protocol header in IP packets in preperation for
brooks [Fri, 15 Apr 2005 00:47:44 +0000 (00:47 +0000)]
Centralized finding the protocol header in IP packets in preperation for
IPv6 support.  The header in IPv6 is more complex then in IPv4 so we
want to handle skipping over it in one location.

Submitted by: Mariano Tortoriello and Raffaele De Lorenzo (via luigi)

19 years agoInitialize curthread before we save the APs MCA state. Saving the
marcel [Fri, 15 Apr 2005 00:21:23 +0000 (00:21 +0000)]
Initialize curthread before we save the APs MCA state. Saving the
MCA state requires a spin lock, which requires a valid curthread.
This change allows SMP kernels to boot into multi-user again.

While here, update the copyright notice and use __FBSDID for the
revision string.

19 years agoRemove dead code.
rees [Thu, 14 Apr 2005 20:27:30 +0000 (20:27 +0000)]
Remove dead code.

PR: bin/78125
Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Approved by: alfred

19 years agoFix for a TCP SACK bug where more than (win/2) bytes could have been
ps [Thu, 14 Apr 2005 20:09:52 +0000 (20:09 +0000)]
Fix for a TCP SACK bug where more than (win/2) bytes could have been
in flight in SACK recovery.

Found by: Noritoshi Demizu
Submitted by: Mohan Srinivasan <mohans at yahoo-inc dot com>
Noritoshi Demizu <demizu at dd dot ij4u dot or dot jp>
Raja Mukerji <raja at moselle dot com>

19 years agoAlso test \0 in the format string.
stefanf [Thu, 14 Apr 2005 18:33:14 +0000 (18:33 +0000)]
Also test \0 in the format string.