]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoMake better use of the string type when parsing things. This switches
imp [Sat, 26 Apr 2003 19:44:45 +0000 (19:44 +0000)]
Make better use of the string type when parsing things.  This switches
expand one from using a fixed buffer to using a string which
dynamically allocates these things.

Submitted by: green@ (against an earlier version of devd)
Ignored for too long by: imp

21 years ago - Lock the vm_object on entry to vm_object_terminate().
alc [Sat, 26 Apr 2003 19:36:19 +0000 (19:36 +0000)]
 - Lock the vm_object on entry to vm_object_terminate().

21 years agoMerge the following from the English version:
hrs [Sat, 26 Apr 2003 19:20:59 +0000 (19:20 +0000)]
Merge the following from the English version:

1.33  -> 1.36  errata/article.sgml

21 years agoFix the LINK_SPEC. Our i386 32-bit emulation name changed.
obrien [Sat, 26 Apr 2003 19:20:25 +0000 (19:20 +0000)]
Fix the LINK_SPEC.  Our i386 32-bit emulation name changed.
We also need to look in the proper directory for 32-bit libs.

21 years agoRemove the last vestiges (I hope) of the mixed ELF/a.out support.
obrien [Sat, 26 Apr 2003 19:16:54 +0000 (19:16 +0000)]
Remove the last vestiges (I hope) of the mixed ELF/a.out support.
As a plus we can use the stock CC1_SPEC and ASM_SPEC for AMD64.

21 years agoMerge the following from the English version:
hrs [Sat, 26 Apr 2003 19:13:00 +0000 (19:13 +0000)]
Merge the following from the English version:

1.524 -> 1.553 relnotes/common/new.sgml

21 years agoAdd a missing </para>.
hrs [Sat, 26 Apr 2003 19:07:33 +0000 (19:07 +0000)]
Add a missing </para>.

21 years ago - Convert vm_object_pip_wait() from using tsleep() to msleep().
alc [Sat, 26 Apr 2003 18:33:18 +0000 (18:33 +0000)]
 - Convert vm_object_pip_wait() from using tsleep() to msleep().
 - Make vm_object_pip_sleep() static.
 - Lock the vm_object when performing vm_object_pip_wait().

21 years agoUpdate the mbuf watermark settings to match the latest documentation
ps [Sat, 26 Apr 2003 18:26:29 +0000 (18:26 +0000)]
Update the mbuf watermark settings to match the latest documentation
from Broadcom.  These values are strongly encouraged for proper operation.

MFC after: 3 days

21 years agoThe ENTRY bits were in two places. Remove the one not used (asm.h), but
obrien [Sat, 26 Apr 2003 17:17:45 +0000 (17:17 +0000)]
The ENTRY bits were in two places.  Remove the one not used (asm.h), but
presurve the nice comment by adding it to asmacros.h.

21 years agoTwo tokens that don't together form a vaid preprocssor token cannot be
obrien [Sat, 26 Apr 2003 17:00:10 +0000 (17:00 +0000)]
Two tokens that don't together form a vaid preprocssor token cannot be
pasted together using ANSI-C token concatinatation.  GCC's cpp, at least,
produces the desired result w/o using "##".

21 years agoUse fwcrom.c in /sys/dev/firewire.
simokawa [Sat, 26 Apr 2003 16:46:59 +0000 (16:46 +0000)]
Use fwcrom.c in /sys/dev/firewire.

21 years ago- Improve configuration ROM parser for multiple unit directory.
simokawa [Sat, 26 Apr 2003 16:45:40 +0000 (16:45 +0000)]
- Improve configuration ROM parser for multiple unit directory.
- Remove getcsrdata().
- Don't print device type, this can be obtained by fwcontrol.

Tested with: Maxtor 5000XT
Tested by: Daniel O'Connor <doconnor@gsoft.com.au>

21 years agoXref sytle.Makefile(5).
trhodes [Sat, 26 Apr 2003 15:37:39 +0000 (15:37 +0000)]
Xref sytle.Makefile(5).

PR: 51183

21 years agoFix typos in comments; some style(9) fixes; no code changes.
schweikh [Sat, 26 Apr 2003 15:22:29 +0000 (15:22 +0000)]
Fix typos in comments; some style(9) fixes; no code changes.

PR: misc/50979
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>

21 years agoLast commit had incorrect information. The real PR was:
trhodes [Sat, 26 Apr 2003 15:18:27 +0000 (15:18 +0000)]
Last commit had incorrect information.  The real PR was:

PR: 50769
Duh Point for: trhodes

21 years agoAdd vmemoryuse to the list.
trhodes [Sat, 26 Apr 2003 15:15:05 +0000 (15:15 +0000)]
Add vmemoryuse to the list.

PR: 50796
Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru>

21 years agoAdd sys/user.h to the list of includes. Without it you lack a definition of
trhodes [Sat, 26 Apr 2003 15:00:57 +0000 (15:00 +0000)]
Add sys/user.h to the list of includes.  Without it you lack a definition of
'struct kinfo_proc' for calls to kvm_getargv() and kvm_getenvv().

PR: 51322

21 years agoMbits -> Mbits/s
brueffer [Sat, 26 Apr 2003 09:30:34 +0000 (09:30 +0000)]
Mbits -> Mbits/s
band width -> bandwidth

PR: 39822
Submitted by: Chris Pepper <pepper@rockefeller.edu>
MFC after: 3 days

21 years agoRemove an unused declaration.
alc [Sat, 26 Apr 2003 08:36:06 +0000 (08:36 +0000)]
Remove an unused declaration.

21 years ago - Lock the vm_object when performing vm_page_alloc() in allocbuf().
alc [Sat, 26 Apr 2003 07:42:24 +0000 (07:42 +0000)]
 - Lock the vm_object when performing vm_page_alloc() in allocbuf().

21 years agoAdd some missing entries here. Sort an existing entry properly. This
murray [Sat, 26 Apr 2003 07:31:43 +0000 (07:31 +0000)]
Add some missing entries here.  Sort an existing entry properly.  This
allows "make release" to find all of the documentation related ports
it needs if you build a release with NOPORTS.  This should be moved to
within the port Makefile so we don't have to keep it updated in two
different places.

PR: docs/51305

21 years agoMerge from DRI CVS: Disable MTRRs on FreeBSD-stable to work around hangs with
anholt [Sat, 26 Apr 2003 06:59:38 +0000 (06:59 +0000)]
Merge from DRI CVS: Disable MTRRs on FreeBSD-stable to work around hangs with
SMP machines. and use i386 asm for atomic_cmpset_int on -stable.  This is in
preparation for MFCing the DRM.

21 years ago - Extend the scope of two existing vm_object locks to cover
alc [Sat, 26 Apr 2003 05:30:56 +0000 (05:30 +0000)]
 - Extend the scope of two existing vm_object locks to cover
   swap_pager_freespace().

21 years agoRemove an XXX comment. It is no longer a problem.
alc [Sat, 26 Apr 2003 05:00:56 +0000 (05:00 +0000)]
Remove an XXX comment.  It is no longer a problem.

21 years agoAdd some strategic whitespace.
rwatson [Sat, 26 Apr 2003 03:32:18 +0000 (03:32 +0000)]
Add some strategic whitespace.

21 years agoThe AMD64 Hammer bits.
obrien [Sat, 26 Apr 2003 03:28:21 +0000 (03:28 +0000)]
The AMD64 Hammer bits.

21 years agoRemove first attempt at x86-64 bits. We're going to call it "amd64" now.
obrien [Sat, 26 Apr 2003 03:24:26 +0000 (03:24 +0000)]
Remove first attempt at x86-64 bits.  We're going to call it "amd64" now.

Sponsored by: Microsoft

21 years agoWhen the tty chown() fails, report a chown() failure rather than a
rwatson [Sat, 26 Apr 2003 02:51:03 +0000 (02:51 +0000)]
When the tty chown() fails, report a chown() failure rather than a
chmod() failure.

21 years agoWhen mac_from_text() fails with -Z, print "-" rather than "" so that
rwatson [Sat, 26 Apr 2003 02:31:26 +0000 (02:31 +0000)]
When mac_from_text() fails with -Z, print "-" rather than "" so that
scripts parsing ls(1) output can still count columns.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoGrammar and punctuation fixes
brueffer [Fri, 25 Apr 2003 22:31:06 +0000 (22:31 +0000)]
Grammar and punctuation fixes

PR: 40910 (most of them)
Submitted by: Chris Pepper <pepper@rockefeller.edu>
MFC after: 3 days

21 years agoAdd nodevice axe, since usb isn't supported by PAE.
johan [Fri, 25 Apr 2003 21:49:35 +0000 (21:49 +0000)]
Add nodevice axe, since usb isn't supported by PAE.

Submitted by: harti@
Approved by: jake@

21 years agoUpdate the "last malloc failure timestamp" also for simulated
phk [Fri, 25 Apr 2003 21:49:24 +0000 (21:49 +0000)]
Update the "last malloc failure timestamp" also for simulated
malloc errors.

21 years agoDo an explicit retry after we have dumped the cache, rather than a
phk [Fri, 25 Apr 2003 21:43:11 +0000 (21:43 +0000)]
Do an explicit retry after we have dumped the cache, rather than a
(potential) tail recursion.

21 years agoIf on a BIO_READ request, we failed to allocate the bio for reading
phk [Fri, 25 Apr 2003 21:28:28 +0000 (21:28 +0000)]
If on a BIO_READ request, we failed to allocate the bio for reading
our key-sector, we would end up returning the read without an error,
despite the fact that the data was not correctly decrypted.

This would result in data corruption on read, but intact data still
on the media.

21 years agoFix a problem and slightly improve the ENOMEM handling:
phk [Fri, 25 Apr 2003 21:20:57 +0000 (21:20 +0000)]
Fix a problem and slightly improve the ENOMEM handling:

Give up the entire bio as soon as we detect a problem.

When we detect a problem, give up the bio by contributing the
remainder with ENOMEM, rather than kicking the bio back right
away.

If we failed on a non-first iteration we previously could end up
modifying fields in the bio after we delivered it.  This could
account for memory corruption (none directly reported) on machines
with GBDE.

21 years agoEnable ISO-C99 compatibility -- among other things, this tells libstdc++
obrien [Fri, 25 Apr 2003 21:17:31 +0000 (21:17 +0000)]
Enable ISO-C99 compatibility -- among other things, this tells libstdc++
not to blindly undef isnan() and other functions that became macros in C99.
Enable use of newly grown C99 functions: strtof(), strtold(), wcstof()

Submitted by: das

21 years agoFix a misspelled word introduced by my last commit
brueffer [Fri, 25 Apr 2003 21:02:15 +0000 (21:02 +0000)]
Fix a misspelled word introduced by my last commit

MFC with the rest of the changes

21 years agoDon't count a sector in the cache unless we manage to create it.
phk [Fri, 25 Apr 2003 20:56:27 +0000 (20:56 +0000)]
Don't count a sector in the cache unless we manage to create it.

21 years agoRename g_bde_release_sector() to g_bde_release_keysector() and pick up
phk [Fri, 25 Apr 2003 20:35:34 +0000 (20:35 +0000)]
Rename g_bde_release_sector() to g_bde_release_keysector() and pick up
the sector from the work item.

21 years agoRename g_bde_read_sector() to g_bde_read_keysector() pick up the offset
phk [Fri, 25 Apr 2003 20:16:59 +0000 (20:16 +0000)]
Rename g_bde_read_sector() to g_bde_read_keysector() pick up the offset
in the work structure.

21 years agoAlphas with libc.so between 2003/03/12 and 2003/03/29 cannot be
ru [Fri, 25 Apr 2003 20:11:17 +0000 (20:11 +0000)]
Alphas with libc.so between 2003/03/12 and 2003/03/29 cannot be
upgraded cleanly.  Document the reason and possible workarounds.

Requested by: gallatin

21 years agoRemove Giant from getpgid() and getsid() and tweak the logic to more
jhb [Fri, 25 Apr 2003 20:09:31 +0000 (20:09 +0000)]
Remove Giant from getpgid() and getsid() and tweak the logic to more
closely match that of 4.x.

21 years ago- Don't bother using the proc lock to test just P_SYSTEM as that is set in
jhb [Fri, 25 Apr 2003 20:06:30 +0000 (20:06 +0000)]
- Don't bother using the proc lock to test just P_SYSTEM as that is set in
  fork1() and never changes.
- The proc lock is enough to cover reading p_state, so push down sched_lock
  into the PRS_NORMAL case of the switch on p_state.

21 years ago- Push down Giant into the sysarch() calls that still need Giant.
jhb [Fri, 25 Apr 2003 20:04:02 +0000 (20:04 +0000)]
- Push down Giant into the sysarch() calls that still need Giant.
- Standardize on EINVAL rather than EOPNOTSUPP if the sysarch op value is
  invalid.

21 years agoPush down Giant around calls to proc_rwmem() in kern_ptrace. kern_ptrace()
jhb [Fri, 25 Apr 2003 20:02:16 +0000 (20:02 +0000)]
Push down Giant around calls to proc_rwmem() in kern_ptrace.  kern_ptrace()
should now be MP safe.

21 years agoPush Giant down into kern_sigaction() instead of locking it around calls
jhb [Fri, 25 Apr 2003 20:01:19 +0000 (20:01 +0000)]
Push Giant down into kern_sigaction() instead of locking it around calls
to kern_sigaction() in the various callers of the function.

21 years ago- Push down Giant around vnode operations in ktrace().
jhb [Fri, 25 Apr 2003 19:59:35 +0000 (19:59 +0000)]
- Push down Giant around vnode operations in ktrace().
- Mark the ktrace() and utrace() syscalls as being MP safe.
- Validate the facs argument to ktrace() prior to doing any vnode
  operations or acquiring any locks.
- Share lock the proctree lock over the entire section that calls
  ktrsetchildren() and ktrops().  We already did this for process groups.
  Doing it for the process case closes a small race where a process might
  go away after we look it up.  As a result of this, ktrstchildren() now
  just asserts that the proctree lock is locked rather than acquiring the
  lock itself.
- Add some missing comments to #else and #endif.

21 years agoLock Giant around calls to useracc() in osf1_sigreturn() so that the
jhb [Fri, 25 Apr 2003 19:52:30 +0000 (19:52 +0000)]
Lock Giant around calls to useracc() in osf1_sigreturn() so that the
function is MP safe.

21 years agoLock Giant around userland_sysctl() to get the hostname in osf1_sysinfo()
jhb [Fri, 25 Apr 2003 19:51:41 +0000 (19:51 +0000)]
Lock Giant around userland_sysctl() to get the hostname in osf1_sysinfo()
so that the function is MP safe.  The rest of the function doesn't need
Giant.

21 years agoUse a switch to convert the Linux sigprocmask flags to the equivalent
jhb [Fri, 25 Apr 2003 19:26:18 +0000 (19:26 +0000)]
Use a switch to convert the Linux sigprocmask flags to the equivalent
FreeBSD flags instead of just adding one to the Linux flags.  This should
be identical to the previous version except that I have at least one report
of this patch fixing problems people were having with Linux apps after my
last commit to this file.  It is safer to use the switch then to make
assumptions about the flag values anyways, esp. since we currently use
MD defines for the values of the flags and this is MI code.

Tested by: Michael Class <michael_class@gmx.net>

21 years agoMention PAE support.
jake [Fri, 25 Apr 2003 18:51:29 +0000 (18:51 +0000)]
Mention PAE support.

Reviewed by: bmah
Sponsored by: DARPA, Network Associates Laboratories

21 years agoWhen using `compat' mode, be sure to re-dispatch setpwent, endpwent,
nectar [Fri, 25 Apr 2003 18:25:19 +0000 (18:25 +0000)]
When using `compat' mode, be sure to re-dispatch setpwent, endpwent,
setgrent, and endgrent also.  (The previous NSS implementation used to
simply twiddle the internal data of the various modules directly.)

A symptom (group list set incorrectly in sshd) was
Reported by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>

Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove a stray sentence.
jake [Fri, 25 Apr 2003 17:08:47 +0000 (17:08 +0000)]
Remove a stray sentence.

21 years ago - Lock the vm_object when iterating over its list of resident pages.
alc [Fri, 25 Apr 2003 16:30:02 +0000 (16:30 +0000)]
 - Lock the vm_object when iterating over its list of resident pages.

21 years agoConvert the midway driver to use busdma. Except for this conversion the
harti [Fri, 25 Apr 2003 16:14:03 +0000 (16:14 +0000)]
Convert the midway driver to use busdma. Except for this conversion the
following changes have been done:

- stylify. The original code was too hard to read.
- get rid of a number of compilation options (Adaptec-only, Eni-only, no-DMA).
- more debugging features.
- locking. This is not correct yet in the absence of interface layer locking,
  but is correct enough to not to cause lock order reversals.
- remove RAW mode. There are no users of this in the tree and I doubt that
  there are any.
- remove NetBSD compatibility code. There was no way to keep NetBSD non-busdma
  and FreeBSD busdma code together.
- if_en now buildable as a module.

This has been actively tested on sparc64 and i386 with ENI server and
client cards and an Adaptec card (thanks to kjc).

Reviewed by: mdodd, arr

21 years agoRegen.
jhb [Fri, 25 Apr 2003 15:59:44 +0000 (15:59 +0000)]
Regen.

21 years agoOops, the thr_* and jail_attach() syscall entries should be NOPROTO rather
jhb [Fri, 25 Apr 2003 15:59:18 +0000 (15:59 +0000)]
Oops, the thr_* and jail_attach() syscall entries should be NOPROTO rather
than STD.

21 years agoWhitespace fix up, no content changes. Translators can ignore this.
bmah [Fri, 25 Apr 2003 15:13:18 +0000 (15:13 +0000)]
Whitespace fix up, no content changes.  Translators can ignore this.

21 years agoUpdate HTT support text.
bmah [Fri, 25 Apr 2003 15:12:21 +0000 (15:12 +0000)]
Update HTT support text.

21 years agoRemove harmless invalid cast.
jake [Fri, 25 Apr 2003 15:07:58 +0000 (15:07 +0000)]
Remove harmless invalid cast.

Sponsored by: DARPA, Network Associates Laboratories

21 years agos/filesystem/file system/
bmah [Fri, 25 Apr 2003 14:42:53 +0000 (14:42 +0000)]
s/filesystem/file system/
s/bootloader/boot loader/

I hate search and replace sweeps like this as much as anyone else, but
in each case I used both alternatives within a single document, so I'm
trying to enforce some internal consistency.

21 years agoNew release notes: i386 boot loader 1.5TB limit, OpenSSH 3.6.1p1.
bmah [Fri, 25 Apr 2003 14:37:56 +0000 (14:37 +0000)]
New release notes:  i386 boot loader 1.5TB limit, OpenSSH 3.6.1p1.

Modified release notes:  Add note about 1.5TB limit to sysinstall note.

21 years agoThe documented login.conf variable for setting the login prompt is
des [Fri, 25 Apr 2003 11:57:20 +0000 (11:57 +0000)]
The documented login.conf variable for setting the login prompt is
"login_prompt".  This makes more sense than "prompt" which is what
login actually used, so change the code to match the documentation.

PR: docs/51396
MFC in: 3 days

21 years agoRepair the UFS2 superblock location consistency check so that it succeeds
tjr [Fri, 25 Apr 2003 10:07:50 +0000 (10:07 +0000)]
Repair the UFS2 superblock location consistency check so that it succeeds
on valid superblocks instead of issuing the error "not a BSD filesystem".
fs_sblockloc is a byte offset, not a fragment number. This change makes
quot work properly on UFS2 filesystems, which is important now that UFS2
is the default.

21 years agoNew release note: chown(8)/chgrp(1) -v -v.
johan [Fri, 25 Apr 2003 09:58:52 +0000 (09:58 +0000)]
New release note: chown(8)/chgrp(1) -v -v.

21 years agoForced commit to note that WARNS was changed in the prev commit since
johan [Fri, 25 Apr 2003 09:02:59 +0000 (09:02 +0000)]
Forced commit to note that WARNS was changed in the prev commit since
this code is WARNS=5 clean. Try to keep it that way.

21 years agoMake fxp(4) INTR_MPSAFE (but do not enable MPSAFE just yet):
njl [Fri, 25 Apr 2003 09:01:54 +0000 (09:01 +0000)]
Make fxp(4) INTR_MPSAFE (but do not enable MPSAFE just yet):
- Add fxp_start_body() and change fxp_start() to just acquire locks and
  then call fxp_start_body().  Places that would call fxp_start() with
  locks held (mutex recursion) now call fxp_start_body() directly.
  Remove MTX_RECURSE flag from sc_mtx. [gallatin]
- Change fxp_attach() to work without the softc lock, saving interrupt
  hooking until the head of fxp_attach().
- Call ether_ifattach() before overriding ifp parameters. This reverts
  part of 1.155.
- Remove multiple error paths in fxp_attach().
- Teardown interrupt in fxp_detach() before unlocking the softc.
- Make sure mutex is not held in fxp_release()
- Delete the miibus instance and/or self in fxp_release(), not in
  fxp_detach().  This can happen if attach fails partway through.
- Move ifmedia_removeall to fxp_release() since attach may fail after
  media have been allocated.
- Add locking to fxp_suspend, fxp_resume, fxp_start, fxp_intr,
  fxp_poll, fxp_tick, fxp_ioctl, fxp_watchdog.
- Pass in ifp to fxp_intr_body since its callers sometimes already use
  it.
- Add compatibility define for INTR_MPSAFE for 4.x. [gallatin]
- You don't need to bzero softc.

Ideas from: gallatin, mux
Tested by: >400M packets of dd/ssh, NFS, ping on i386 UP

21 years agoSimilar to chmod(1); make -v -v mean very verbose and show
johan [Fri, 25 Apr 2003 08:57:55 +0000 (08:57 +0000)]
Similar to chmod(1); make -v -v mean very verbose and show
the old and new uid/gid.

PR: 41341
Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>
Reviewed by: bde@ (an older version)

21 years agoRestore bzip2(1) support in loader(8) after Peter's renames of
ru [Fri, 25 Apr 2003 06:44:56 +0000 (06:44 +0000)]
Restore bzip2(1) support in loader(8) after Peter's renames of
malloc() to Malloc(), and free() to Free(), in zalloc_malloc.c.

21 years ago - Relax the Giant required in vm_page_remove().
alc [Fri, 25 Apr 2003 06:35:05 +0000 (06:35 +0000)]
 - Relax the Giant required in vm_page_remove().
 - Remove the Giant required from vm_page_free_toq().  (Any locking
   errors will be caught by vm_page_remove().)

This remedies a panic that occurred when kmem_malloc(NOWAIT) performed
without Giant failed to allocate the necessary pages.

Reported by: phk

21 years agoRemoving comment in some text files for fixit floppy overflow.
kuriyama [Fri, 25 Apr 2003 06:08:11 +0000 (06:08 +0000)]
Removing comment in some text files for fixit floppy overflow.

Approved by: re (murray)

21 years agoImport latest changes from the vendor. This also is reported to fix the
scottl [Fri, 25 Apr 2003 05:37:04 +0000 (05:37 +0000)]
Import latest changes from the vendor.  This also is reported to fix the
driver at long last!
Many thanks to vaidas.damosevicius@if.lt for keeping this issue alive
and pursuing Intel for a fix, Intel/ICP for working on the driver, and
Sergey Osokin for bringing the original patches up to 5-CURRENT.

21 years agoChange default to be 'process all events before calling daemon.'
imp [Fri, 25 Apr 2003 02:13:42 +0000 (02:13 +0000)]
Change default to be 'process all events before calling daemon.'

Also, put a small work around into devd to prevent a hang on boot this
would cause because select used to return 2 rather than 0 for no
evetnts due to a bug I fixed a few days ago in subr_bus.c.  I'll
remove this workaround May 7th.  You have until then to upgrade your
kernel if you want to run a new devd with an older kernel.

21 years agoAdd warning about a potential hang on boot at devd after 20030507 if
imp [Fri, 25 Apr 2003 02:10:17 +0000 (02:10 +0000)]
Add warning about a potential hang on boot at devd after 20030507 if
you have an old kernel and a new userland.  I've just committed a fix
for devd to work around the kernel bug, but that goes away on May 7th.

21 years agoAdd an argument to get_mcontext() which specified whether the
deischen [Fri, 25 Apr 2003 01:50:30 +0000 (01:50 +0000)]
Add an argument to get_mcontext() which specified whether the
syscall return values should be cleared.  The system calls
getcontext() and swapcontext() want to return 0 on success
but these contexts can be switched to at a later time so
the return values need to be cleared in the saved register
sets.  Other callers of get_mcontext() would normally want
the context without clearing the return values.

Remove the i386-specific context saving from the KSE code.
get_mcontext() is not i386-specific any more.

Fix a bad pointer in the alpha get_mcontext() code.  The
context was being bcopy()'d from &td->tf_frame, but tf_frame
is itself a pointer, so the thread was being copied instead.
Spotted by jake.

Glanced at by:  jake
Reviewed by:    bde (months ago)

21 years agoConnect libpthread to the (i386) world. It is currently installed
deischen [Fri, 25 Apr 2003 01:34:43 +0000 (01:34 +0000)]
Connect libpthread to the (i386) world.  It is currently installed
as libkse and will once again be renamed libpthread after more
testing.

Approved by: re

21 years agoRemove the %gs restoring hack (already commented out).
deischen [Fri, 25 Apr 2003 01:31:56 +0000 (01:31 +0000)]
Remove the %gs restoring hack (already commented out).
Don't install man pages.

Temporarily (again) rename the library to libkse.  It will be put back
to libpthread after more wide-spread testing.

21 years agoUpdate the DRM to the latest from DRI CVS. Includes some bugfixes and removal
anholt [Fri, 25 Apr 2003 01:18:47 +0000 (01:18 +0000)]
Update the DRM to the latest from DRI CVS.  Includes some bugfixes and removal
of the infrastructure for the gamma driver which was removed a while back.
The DRM_LINUX option is removed because the handler is now provided by the
linux compat code itself.

21 years agoBack out previous delta to fix fsck on filesystems without an fstab entry,
jmallett [Fri, 25 Apr 2003 01:12:35 +0000 (01:12 +0000)]
Back out previous delta to fix fsck on filesystems without an fstab entry,
where we want to take the disklabel filesystem type of "4.2BSD" and use
fsck_4.2bsd on those filesystems.

Add a comment about why the code is there, now that we know:

         * XXX This is a kludge to make automatic filesystem type guessing
         * from the disklabel work for "4.2BSD" filesystems.  It does a
         * very limited subset of transliteration to a normalised form of
         * filesystem name, and we do not seem to enforce a filesystem
         * name character set.

21 years agoInclude altkstack pages in the RSS regardless of whether the process
tjr [Fri, 25 Apr 2003 00:20:40 +0000 (00:20 +0000)]
Include altkstack pages in the RSS regardless of whether the process
is swapped out. Pointed out by jhb.

21 years agoIn compat mode, we `redispatch' the lookup. It is probably a good
nectar [Thu, 24 Apr 2003 23:56:58 +0000 (23:56 +0000)]
In compat mode, we `redispatch' the lookup.  It is probably a good
idea to re-initialize `struct passwd', because e.g. pw_class might
get set by one module, but not by another.  Add another call to the
internal pwd_init function to accomplish this.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd an ioctl handler for the DRM. This removes the need for the DRM_LINUX
anholt [Thu, 24 Apr 2003 23:36:35 +0000 (23:36 +0000)]
Add an ioctl handler for the DRM.  This removes the need for the DRM_LINUX
option, which has been a source of frustration for many users.

21 years agoRegen.
jhb [Thu, 24 Apr 2003 20:50:57 +0000 (20:50 +0000)]
Regen.

21 years agoDocument support for the new 'U' flag, which was implemented back in March
gad [Thu, 24 Apr 2003 20:50:01 +0000 (20:50 +0000)]
Document support for the new 'U' flag, which was implemented back in March
as revision 1.64 of newsyslog.c.  I plan to MFC these changes next week.

MFC after: 1 week

21 years agoFix the thr_create() entry by adding a trailing \. Also, sync up the
jhb [Thu, 24 Apr 2003 20:49:46 +0000 (20:49 +0000)]
Fix the thr_create() entry by adding a trailing \.  Also, sync up the
MP safe flag for thr_* with the main table.

21 years agoVOP_FSYNC() expects to be called with the vnode locked, so lock fvp in
truckman [Thu, 24 Apr 2003 20:39:40 +0000 (20:39 +0000)]
VOP_FSYNC() expects to be called with the vnode locked, so lock fvp in
nfs_rename() before calling VOP_FSYNC() and unlock fvp immediately after.

Reviewed by: bde

21 years agoFix a bug with df on large (>1TB) nfsv3 file servers on 32 bit client
peter [Thu, 24 Apr 2003 20:36:32 +0000 (20:36 +0000)]
Fix a bug with df on large (>1TB) nfsv3 file servers on 32 bit client
machines where the 'long' number of blocks in struct statfs wont fit.
Instead of chosing an artificial 512 byte block size, simply scale it up
until we avoid an overflow.  NFSv3 reports the sizes in bytes, and the
blocksize is a figment of nfsclient's imagination.

21 years agoCatch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
nectar [Thu, 24 Apr 2003 20:16:21 +0000 (20:16 +0000)]
Catch up with nsdispatch.c:  nsdispatch(3) is now `hidden' by
namespace.h.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoDon't complain about missing NSS methods when built statically. It is
nectar [Thu, 24 Apr 2003 19:57:31 +0000 (19:57 +0000)]
Don't complain about missing NSS methods when built statically.  It is
annoying and not very useful.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoFail to mount a device if the bytes per sector in the BPB is less than
jhb [Thu, 24 Apr 2003 18:19:19 +0000 (18:19 +0000)]
Fail to mount a device if the bytes per sector in the BPB is less than
DEV_BSIZE or if the number of FAT sectors is zero.

21 years agoUse $ipnat_program instead of the hardcoded path, which was wron
mtm [Thu, 24 Apr 2003 18:14:52 +0000 (18:14 +0000)]
Use $ipnat_program instead of the hardcoded path, which was wron
anyways.

Approved by: markm (mentor) (implicit)
Submitted by: leafy <leafy@leafy.idv.tw>

21 years agoCatch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
nectar [Thu, 24 Apr 2003 18:05:48 +0000 (18:05 +0000)]
Catch up with nsdispatch.c:  nsdispatch(3) is now `hidden' by
namespace.h.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoCatch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
nectar [Thu, 24 Apr 2003 17:41:20 +0000 (17:41 +0000)]
Catch up with nsdispatch.c:  nsdispatch(3) is now `hidden' by
namespace.h.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoMake P_PROTECTED not conflict with P_STOPPED_SIG. Replace
wes [Thu, 24 Apr 2003 16:20:14 +0000 (16:20 +0000)]
Make P_PROTECTED not conflict with P_STOPPED_SIG.  Replace
P_UNUSED100000 which is *truly* unused, until now.

Submitted by: Robert Drehmel <robert@zoot.drehmel.com>

21 years agoFix printf warnings for i386 with PAE.
simokawa [Thu, 24 Apr 2003 15:27:06 +0000 (15:27 +0000)]
Fix printf warnings for i386 with PAE.

Submitted by: harti

21 years agoinit_nsm() is executed after a call to daemon(*, 0), so error and
ghelmer [Thu, 24 Apr 2003 14:38:42 +0000 (14:38 +0000)]
init_nsm() is executed after a call to daemon(*, 0), so error and
warning messages should be logged rather than sent to /dev/null.

PR: bin/45461

21 years agoFix a typo in UINT_MAX definition.
kan [Thu, 24 Apr 2003 14:25:38 +0000 (14:25 +0000)]
Fix a typo in UINT_MAX definition.

21 years agoForced commit to note that the previous commit was made in response to
des [Thu, 24 Apr 2003 12:27:01 +0000 (12:27 +0000)]
Forced commit to note that the previous commit was made in response to

PR: bin/51245

21 years agoRemove a bogus null password check which assumed that a user with an empty
des [Thu, 24 Apr 2003 12:26:25 +0000 (12:26 +0000)]
Remove a bogus null password check which assumed that a user with an empty
password must necessarily have an empty pwd->pw_passwd.  Also add a check
that prevents users from setting a blank password unless the nullok option
was specified.  Root is still allowed to give anyone a blank password.