]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoTurn off collect2.
obrien [Mon, 15 Apr 2002 03:15:40 +0000 (03:15 +0000)]
Turn off collect2.
collect2 was added based on the need of -frepo.  However, -frepo is currently
broken on -CURRENT (Gcc 2.95.4 20020320 [FreeBSD] / ld 2.12.0 [FreeBSD]
2002-04-10).  It is also broken on RELENG_4 (Gcc 2.95.3 20010315 / ld
2.11.2 20010719), so there is no need to MFC collect2 there yet.  I have
a feeling the brokeness is due to the wide difference between the libiberty
bits of Gcc 2.95 and the later ld.

Testing by: fjoe

22 years agoPAMified passwd(1). Some NIS-related issues remain to be solved, but this
des [Mon, 15 Apr 2002 03:02:57 +0000 (03:02 +0000)]
PAMified passwd(1).  Some NIS-related issues remain to be solved, but this
should work for everyday use.

Sponsored by: DARPA, NAI Labs

22 years agoAdd PAM policy for the "passwd" service, including a sample config line
des [Mon, 15 Apr 2002 03:01:32 +0000 (03:01 +0000)]
Add PAM policy for the "passwd" service, including a sample config line
for pam_passwdqc.

Sponsored by: DARPA, NAI Labs

22 years agoPrompt for new password during update phase, not during preliminary phase.
des [Mon, 15 Apr 2002 03:00:14 +0000 (03:00 +0000)]
Prompt for new password during update phase, not during preliminary phase.

Sponsored by: DARPA, NAI Labs

22 years agoAdd pam_lastlog(8) here since I removed lastlog support from sshd.
des [Mon, 15 Apr 2002 02:46:24 +0000 (02:46 +0000)]
Add pam_lastlog(8) here since I removed lastlog support from sshd.

Sponsored by: DARPA, NAI Labs

22 years agoDike out most of the NIS code and replace it with calls to libypclnt.
des [Mon, 15 Apr 2002 02:34:43 +0000 (02:34 +0000)]
Dike out most of the NIS code and replace it with calls to libypclnt.
Rework pam_sm_chauthtok() so it (mostly?) works.
The standard pw stuff still needs to move into a library somewhere.

Sponsored by: DARPA, NAI Labs

22 years agoAdd a dependency on libypclnt to libpam, in preperation for making pam_unix
des [Mon, 15 Apr 2002 02:32:54 +0000 (02:32 +0000)]
Add a dependency on libypclnt to libpam, in preperation for making pam_unix
use it to update NIS passwords.

22 years agoAdd a missing generated file.
des [Mon, 15 Apr 2002 02:32:04 +0000 (02:32 +0000)]
Add a missing generated file.

22 years agoDocument option to option dependancy. Fix typo.
jwd [Mon, 15 Apr 2002 02:21:12 +0000 (02:21 +0000)]
Document option to option dependancy. Fix typo.

MFC after: 1 week

22 years agoa.out.5 states that nobody seems to agree on what bss stands for. This is
trhodes [Mon, 15 Apr 2002 02:05:06 +0000 (02:05 +0000)]
a.out.5 states that nobody seems to agree on what bss stands for.  This is
incorrect, however, as Dennis Ritchie states ``Actually the acronym is "block
started by symbol."  It was a pseudo-op in FAP (Fortran Assembly Program), an
assembler for the IBM <models> machines.  It identified its label and set
aside space for a given number of words.''

PR: 34088
Submitted by: Martin Faxer <gmh003532@brfmasthugget.se>
MFC after: 2 days

22 years agoThis commit was generated by cvs2svn to compensate for changes in r94706,
des [Mon, 15 Apr 2002 01:26:36 +0000 (01:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r94706,
which included commits to RCS files with non-trunk default branches.

22 years agoFix typo in pam_get_authtok(3) (perforce change 9746)
des [Mon, 15 Apr 2002 01:26:36 +0000 (01:26 +0000)]
Fix typo in pam_get_authtok(3) (perforce change 9746)

22 years agoMissed a spot in previous commit.
des [Mon, 15 Apr 2002 00:21:25 +0000 (00:21 +0000)]
Missed a spot in previous commit.

Sponsored by: DARPA, NAI Labs

22 years agoWhen it's necessary to kldload tun(4), don't forget to re-try to open
brian [Mon, 15 Apr 2002 00:14:40 +0000 (00:14 +0000)]
When it's necessary to kldload tun(4), don't forget to re-try to open
tun0.

Submitted by: qhwt@myrealbox.com

22 years agoFix tx-rate setting for Lucent cards.
brooks [Sun, 14 Apr 2002 23:18:40 +0000 (23:18 +0000)]
Fix tx-rate setting for Lucent cards.

Submitted by: Eugene Perevyazko <john@pcs.dp.ua>

22 years agoRemove ws at EOL
dougb [Sun, 14 Apr 2002 22:35:46 +0000 (22:35 +0000)]
Remove ws at EOL

22 years agopam_passwdqc builds now.
des [Sun, 14 Apr 2002 22:31:36 +0000 (22:31 +0000)]
pam_passwdqc builds now.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r94691,
des [Sun, 14 Apr 2002 22:30:54 +0000 (22:30 +0000)]
This commit was generated by cvs2svn to compensate for changes in r94691,
which included commits to RCS files with non-trunk default branches.

22 years agoBug & warning fixes; pretty much what will become 0.5 later this week.
des [Sun, 14 Apr 2002 22:30:54 +0000 (22:30 +0000)]
Bug & warning fixes; pretty much what will become 0.5 later this week.

Submitted by: Solar Designer <solar@openwall.com>

22 years agoConnect libypclnt to the build.
des [Sun, 14 Apr 2002 22:27:12 +0000 (22:27 +0000)]
Connect libypclnt to the build.

22 years agoSkip zombies. Add an option (-z) to revert to the historical behaviour
des [Sun, 14 Apr 2002 22:25:57 +0000 (22:25 +0000)]
Skip zombies.  Add an option (-z) to revert to the historical behaviour
of trying to kill zombies (which has no effect except emit a few error
messages)

22 years ago(ab)use unused bits in the pw_fields member of struct passwd to record
des [Sun, 14 Apr 2002 22:24:55 +0000 (22:24 +0000)]
(ab)use unused bits in the pw_fields member of struct passwd to record
the source of the data contained in the structure.

Sponsored by: DARPA, NAI Labs

22 years agoSupport the Siemens SpeedStream PCI card.
brooks [Sun, 14 Apr 2002 22:08:58 +0000 (22:08 +0000)]
Support the Siemens SpeedStream PCI card.

PR: kern/35988
Submitted by: Stephen Gunn <csg@waterspout.com>

22 years agoMake the MTRR code a bit more defensive - this should help people
dwmalone [Sun, 14 Apr 2002 20:19:13 +0000 (20:19 +0000)]
Make the MTRR code a bit more defensive - this should help people
trying to run X on some Athlon systems where the BIOS does odd things
(mines an ASUS A7A266, but it seems to also help on other systems).

Here's a description of the problem and my fix:

        The problem with the old MTRR code is that it only expects
        to find documented values in the bytes of MTRR registers.
        To convert the MTRR byte into a FreeBSD "Memory Range Type"
        (mrt) it uses the byte value and looks it up in an array.
        If the value is not in range then the mrt value ends up
        containing random junk.

        This isn't an immediate problem. The mrt value is only used
        later when rewriting the MTRR registers. When we finally
        go to write a value back again, the function i686_mtrrtype()
        searches for the junk value and returns -1 when it fails
        to find it. This is converted to a byte (0xff) and written
        back to the register, causing a GPF as 0xff is an illegal
        value for a MTRR byte.

To work around this problem I've added a new mrt flag
MDF_UNKNOWN.  We set this when we read a MTRR byte which
we do not understand.  If we try to convert a MDF_UNKNOWN
back into a MTRR value, then the new function, i686_mrt2mtrr,
just returns the old value of the MTRR byte. This leaves
the memory range type unchanged.

I have seen one side effect of the fix, which is that ACPI calls
after X has been run seem to hang my machine. As running X would
previously panic the machine, this is still an improvement ;-)

I'd like to MFC this before the 4.6 code freeze - please let me
know if it causes any problems.

PR: 28418, 25958
Tested by: jkh, Christopher Masto <chris@netmonger.net>
MFC after: 2 weeks

22 years agoMake the MTRR code a bit more defensive - this should help people
dwmalone [Sun, 14 Apr 2002 20:13:08 +0000 (20:13 +0000)]
Make the MTRR code a bit more defensive - this should help people
trying to run X on some Athlon systems where the BIOS does odd things
(mines an ASUS A7A266, but it seems to also help on other systems).

Here's a description of the problem and my fix:

The problem with the old MTRR code is that it only expects
to find documented values in the bytes of MTRR registers.
To convert the MTRR byte into a FreeBSD "Memory Range Type"
(mrt) it uses the byte value and looks it up in an array.
If the value is not in range then the mrt value ends up
containing random junk.

This isn't an immediate problem. The mrt value is only used
later when rewriting the MTRR registers. When we finally
go to write a value back again, the function i686_mtrrtype()
searches for the junk value and returns -1 when it fails
to find it. This is converted to a byte (0xff) and written
back to the register, causing a GPF as 0xff is an illegal
value for a MTRR byte.

To work around this problem I've added a new mrt flag
MDF_UNKNOWN.  We set this when we read a MTRR byte which
we do not understand.  If we try to convert a MDF_UNKNOWN
back into a MTRR value, then the new function, i686_mrt2mtrr,
just returns the old value of the MTRR byte. This leaves
the memory range type unchanged.

I'd like to merge this before the 4.6 code freeze, so if people
can test this with XFree 4 that would be very useful.

PR: 28418, 25958
Tested by: jkh, Christopher Masto <chris@netmonger.net>
MFC after: 2 weeks

22 years agoCorrect two syntax mistakes.
asmodai [Sun, 14 Apr 2002 19:52:42 +0000 (19:52 +0000)]
Correct two syntax mistakes.
Fix overflowing right side, so that the && operator fits on the same line.

22 years agoRemove extraneous newline.
asmodai [Sun, 14 Apr 2002 19:33:07 +0000 (19:33 +0000)]
Remove extraneous newline.

22 years agoFix up submit.cf alternation instructions in light of new SENDMAIL_SUBMIT_MC
gshapiro [Sun, 14 Apr 2002 19:24:28 +0000 (19:24 +0000)]
Fix up submit.cf alternation instructions in light of new SENDMAIL_SUBMIT_MC
make.conf knob.

MFC after: 1 week

22 years agoProvide a new make.conf knob, SENDMAIL_SUBMIT_MC to allow users to pick
gshapiro [Sun, 14 Apr 2002 19:20:26 +0000 (19:20 +0000)]
Provide a new make.conf knob, SENDMAIL_SUBMIT_MC to allow users to pick
the .mc file used for /etc/mail/submit.cf.  By default,
/etc/mail/freebsd.submit.mc is installed and used.

Requested by: fenner
Submitted by: ume
MFC after: 1 week

22 years agoMore recent versions of pam_passwdqc (not yet released) build with very
des [Sun, 14 Apr 2002 18:48:57 +0000 (18:48 +0000)]
More recent versions of pam_passwdqc (not yet released) build with very
few warnings.

22 years agoNew files in OpenPAM Cineraria.
des [Sun, 14 Apr 2002 18:30:27 +0000 (18:30 +0000)]
New files in OpenPAM Cineraria.

Sponsored by: DARPA, NAI Labs

22 years agoCosmetic nit.
des [Sun, 14 Apr 2002 18:30:03 +0000 (18:30 +0000)]
Cosmetic nit.

22 years agoVendor import of OpenPAM Cineraria.
des [Sun, 14 Apr 2002 18:28:22 +0000 (18:28 +0000)]
Vendor import of OpenPAM Cineraria.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r94670,
des [Sun, 14 Apr 2002 18:28:22 +0000 (18:28 +0000)]
This commit was generated by cvs2svn to compensate for changes in r94670,
which included commits to RCS files with non-trunk default branches.

22 years agoThe new Compaq DS20L is a direct derivative of the CS20 so we support
wilko [Sun, 14 Apr 2002 18:19:27 +0000 (18:19 +0000)]
The new Compaq DS20L is a direct derivative of the CS20 so we support
it with FreeBSD/alpha.

Pictures of DS20L will be available soon at
http://people.freebsd.org/~wilko/Alpha-gallery/

Along with pictures of a ES80 'Marvel' EV7 box (which we don't support
yet :-P )

22 years agoUse 'struct callout' instead of 'struct callout_handle' to avoid
archie [Sun, 14 Apr 2002 17:37:35 +0000 (17:37 +0000)]
Use 'struct callout' instead of 'struct callout_handle' to avoid
exhausting the kernel timeout table. Perform the usual gymnastics to
avoid race conditions between node shutdown and timeouts occurring.

Also fix a bug in handling ack delays < PPTP_MIN_ACK_DELAY. Before,
we were ack'ing immediately. Instead, just impose a minimum ack delay
time, like the name of the macro implies.

MFC after: 1 week

22 years agoDon't allow one to trace an ancestor when already traced.
alfred [Sun, 14 Apr 2002 17:12:55 +0000 (17:12 +0000)]
Don't allow one to trace an ancestor when already traced.

PR: kern/29741
Submitted by: Dave Zarzycki <zarzycki@FreeBSD.org>
Fix from: Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC After: 2 weeks

22 years agoActually add the UDF files!
scottl [Sun, 14 Apr 2002 16:52:14 +0000 (16:52 +0000)]
Actually add the UDF files!

22 years agoCast a ptrdiff_t to int before using it as a printf field width.
des [Sun, 14 Apr 2002 16:44:04 +0000 (16:44 +0000)]
Cast a ptrdiff_t to int before using it as a printf field width.

22 years agoCosmetical change: remove empty line to reduce diffs to RELENG_4
fjoe [Sun, 14 Apr 2002 16:40:11 +0000 (16:40 +0000)]
Cosmetical change: remove empty line to reduce diffs to RELENG_4

22 years agoAdd a filesystem driver for the Universal Disk Format. For more info,
scottl [Sun, 14 Apr 2002 16:36:49 +0000 (16:36 +0000)]
Add a filesystem driver for the Universal Disk Format.  For more info,
see http://people.freebsd.org/~scottl/udf

 MFC after: when asmodai gets the backport done
 Prodded by: phk asmodai des

22 years agoFix some warnings. Don't record logins twice in USE_PAM case. Strip
des [Sun, 14 Apr 2002 16:24:36 +0000 (16:24 +0000)]
Fix some warnings.  Don't record logins twice in USE_PAM case.  Strip
"/dev/" off the tty name before passing it to auth_ttyok or PAM.

Inspired by: dinoex
Sponsored by: DARPA, NAI Labs

22 years agoFix a witness warning when expanding a hash table. We were allocating the new
jeff [Sun, 14 Apr 2002 13:47:10 +0000 (13:47 +0000)]
Fix a witness warning when expanding a hash table.  We were allocating the new
hash while holding the lock on a zone.  Fix this by doing the allocation
seperately from the actual hash expansion.

The lock is dropped before the allocation and reacquired before the expansion.
The expansion code checks to see if we lost the race and frees the new hash
if we do.  We really never will lose this race because the hash expansion is
single threaded via the timeout mechanism.

22 years agoProtect the initial list traversal in sysctl_vm_zone() with the uma_mtx.
jeff [Sun, 14 Apr 2002 12:39:38 +0000 (12:39 +0000)]
Protect the initial list traversal in sysctl_vm_zone() with the uma_mtx.

22 years agoRemove the hard-coded limit of 3 bytes for EUC encodings.
asmodai [Sun, 14 Apr 2002 10:55:42 +0000 (10:55 +0000)]
Remove the hard-coded limit of 3 bytes for EUC encodings.
Satoshi NIIMI-san kindly explained that EUC does not limit the byte length to
any arbitrary number.

We now set the limit to the maximum octet length of the codeset and it is
locale-specific.

Submitted by: Yong-Jhen Hong <winard@ms11.url.com.tw>

22 years agoFix the play / record rate setting so that it actually works.
jhay [Sun, 14 Apr 2002 10:39:59 +0000 (10:39 +0000)]
Fix the play / record rate setting so that it actually works.

The extra microphone channel capability is part of the "normal" ac97
capabilities and not an extended ac97 capability. Now recording on
codecs without a seperate mic channel works.

MFC after: 1 week

22 years agoUse VOP_GETVOBJECT instead of accessing the member directly. This fixed
jeff [Sun, 14 Apr 2002 10:18:48 +0000 (10:18 +0000)]
Use VOP_GETVOBJECT instead of accessing the member directly.  This fixed
an issue with nullfs and NAMEI shared.

Submitted by: Alexander Kabaev

22 years agoModernize SCM ID.
obrien [Sun, 14 Apr 2002 07:07:09 +0000 (07:07 +0000)]
Modernize SCM ID.

22 years agoDotting the i-s:
marcel [Sun, 14 Apr 2002 05:37:18 +0000 (05:37 +0000)]
Dotting the i-s:
o  Use chunk instead of region when we talk about a memory range.
   Region can be confused with region register and we already
   call it chunk in machdep.c
o  Update the twiddle every 16MB

22 years agoRegen
alc [Sun, 14 Apr 2002 05:33:58 +0000 (05:33 +0000)]
Regen

22 years agoRemove the requirement that Giant be held around sigreturn().
alc [Sun, 14 Apr 2002 05:31:47 +0000 (05:31 +0000)]
Remove the requirement that Giant be held around sigreturn().

22 years agoAllow a kernel to be compiled with both SKI and acpica and still
peter [Sun, 14 Apr 2002 04:33:41 +0000 (04:33 +0000)]
Allow a kernel to be compiled with both SKI and acpica and still
work on real hardware.  (SKI used to break the sapic probes)

22 years agoBack out rev 1.17, it breaks dependencies.
obrien [Sun, 14 Apr 2002 04:15:34 +0000 (04:15 +0000)]
Back out rev 1.17, it breaks dependencies.
With rev 1.7 one cannot build src/bin/sh -- because make fails to create
the buildtools before trying to use them.  Actually it does compile the
buildtools into .o's before trying to use them, but not all the way into
binaries.

22 years agoRemove stale XXX comment.
jhb [Sun, 14 Apr 2002 04:12:44 +0000 (04:12 +0000)]
Remove stale XXX comment.

22 years ago o Use aiocblist::fd_file in the AIO threads rather than recomputing
alc [Sun, 14 Apr 2002 03:04:19 +0000 (03:04 +0000)]
 o Use aiocblist::fd_file in the AIO threads rather than recomputing
   the file * from the calling process's descriptor table.
 o Eliminate sharing of the calling process's descriptor table
   with the AIO threads.

22 years agoCorrect markup.
dd [Sun, 14 Apr 2002 02:29:20 +0000 (02:29 +0000)]
Correct markup.

22 years agoFix the calculation that determines uz_maxpages. It was off for large zones.
jeff [Sun, 14 Apr 2002 01:56:25 +0000 (01:56 +0000)]
Fix the calculation that determines uz_maxpages.  It was off for large zones.
Fortunately we have no large zones with maximums specified yet, so it wasn't
breaking anything.

Implement blocking when a zone exceeds the maximum and M_WAITOK is specified.
Previously this just failed like the old zone allocator did.  The old zone
allocator didn't support WAITOK/NOWAIT though so we should do what we
advertise.

While I was in there I cleaned up some more zalloc logic to further simplify
that code path and reduce redundant code.  This was needed to make the blocking
work properly anyway.

22 years agoClean up the 1/2 a** committing from Thu, 3 May 2001 11:05:39 -0700 (PDT).
obrien [Sun, 14 Apr 2002 01:30:20 +0000 (01:30 +0000)]
Clean up the 1/2 a** committing from Thu, 3 May 2001 11:05:39 -0700 (PDT).
Since then we have living with a GPL'ed find(1) due to grabbing getdate.y
from src/contrib/cvs and its user of the GPL'ed xtime.h.  I don't even want
to think about how this could have affected people using our source base.

Would it have been too much trouble to do then what I did now?
Copied getdate.y (public domain) to usr.bin/find and change to use
standard system headers.  find(1) now compiles simply with out having
to go to extra effort to do so.

Pointed hat to: phk
Build fixed on: gcc 3.1 using platforms

22 years agoDo not use perl where sed is more than adequate.
obrien [Sat, 13 Apr 2002 23:53:36 +0000 (23:53 +0000)]
Do not use perl where sed is more than adequate.

22 years agoAdd comment that sigreturn() is MPSAFE.
alc [Sat, 13 Apr 2002 23:37:10 +0000 (23:37 +0000)]
Add comment that sigreturn() is MPSAFE.

22 years ago- Change killpg1()'s first argument to be a thread instead of a process so
jhb [Sat, 13 Apr 2002 23:33:36 +0000 (23:33 +0000)]
- Change killpg1()'s first argument to be a thread instead of a process so
  we can use td_ucred.
- In killpg1(), the proc lock is sufficient to check if p_stat is SZOMB
  or not.  We don't need sched_lock.
- Close some races in psignal().  In psignal() there is a big switch
  statement based on p_stat.  All the different cases are assuming that
  the process (or thread) isn't going to change state out from under it.
  To ensure this is true, just lock sched_lock for the entire switch.  We
  practically held it the entire time already anyways.  This also
  simplifies the locking somewhat and actually results in fewer lock
  operations.
- Allow signotify() to be called with the sched_lock held since psignal()
  now does that.
- Use td_ucred in a couple of places.

22 years agoRemove bogus dependency on rlogin.
des [Sat, 13 Apr 2002 23:31:27 +0000 (23:31 +0000)]
Remove bogus dependency on rlogin.

22 years ago- Change donice() to take a thread as the first argument instead of a
jhb [Sat, 13 Apr 2002 23:28:23 +0000 (23:28 +0000)]
- Change donice() to take a thread as the first argument instead of a
  process so it can use td_ucred.
- Require the target process of donice() to be locked when donice() is
  called.
- Use td_ucred.
- Lock the target process of p_cansee() and while reading the credentials
  of a process.
- Change the logic of rtprio() slightly so it does it's copyin() if needed
  prior to locking the target process.
- rtprio() no longer needs Giant.  In theory with full KSE it would still
  need Giant to protect p_ucred of curproc for the p_canfoo() functions
  but p_canfoo() will be changing to using td_ucred of curthread before
  full KSE hits the tree.

22 years ago- Change procfs_control()'s first argument to be a thread pointer instead
jhb [Sat, 13 Apr 2002 23:19:13 +0000 (23:19 +0000)]
- Change procfs_control()'s first argument to be a thread pointer instead
  of a process pointer.
- Move the p_candebug() at the start of procfs_control() a bit to make
  locking feasible.  We still perform the access check before doing
  anything, we just now perform it after acquiring locks.
- Don't lock the sched_lock for TRACE_WAIT_P() and when checking to see if
  p_stat is SSTOP.  We lock the process while setting p_stat to SSTOP
  so locking the process is sufficient to do a read to see if p_stat is
  SSTOP or not.

22 years agoLock the target process for p_candebug().
jhb [Sat, 13 Apr 2002 23:15:28 +0000 (23:15 +0000)]
Lock the target process for p_candebug().

22 years agoLock the target process in procfs_doproc*regs() for p_candebug and while
jhb [Sat, 13 Apr 2002 23:14:08 +0000 (23:14 +0000)]
Lock the target process in procfs_doproc*regs() for p_candebug and while
reading/writing the registers.

22 years agoRework logic of syscalls that modify process credentials as described in
jhb [Sat, 13 Apr 2002 23:11:23 +0000 (23:11 +0000)]
Rework logic of syscalls that modify process credentials as described in
rev 1.152 of sys/kern/kern_prot.c.

22 years ago- p_cansee() needs the target process locked.
jhb [Sat, 13 Apr 2002 23:09:41 +0000 (23:09 +0000)]
- p_cansee() needs the target process locked.
- We need the proc lock held for more of procfs_doprocstatus().

22 years ago- Change the algorithms of the syscalls to modify process credentials to
jhb [Sat, 13 Apr 2002 23:07:05 +0000 (23:07 +0000)]
- Change the algorithms of the syscalls to modify process credentials to
  allocate a blank cred first, lock the process, perform checks on the
  old process credential, copy the old process credential into the new
  blank credential, modify the new credential, update the process
  credential pointer, unlock the process, and cleanup rather than trying
  to allocate a new credential after performing the checks on the old
  credential.
- Cleanup _setugid() a little bit.
- setlogin() doesn't need Giant thanks to pgrp/session locking and
  td_ucred.

22 years ago- Change the first argument of ktrcanset(), ktrsetchildren(), and ktrops()
jhb [Sat, 13 Apr 2002 22:54:18 +0000 (22:54 +0000)]
- Change the first argument of ktrcanset(), ktrsetchildren(), and ktrops()
  to a thread pointer so that ktrcanset() can use td_ucred.
- Add some proc locking to partially protect p_tracep and p_traceflag.

22 years agoTurn on TGA support.
obrien [Sat, 13 Apr 2002 22:34:16 +0000 (22:34 +0000)]
Turn on TGA support.

Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>

22 years agoInstall digittoint.3 (forgotten in rev 1.21)
des [Sat, 13 Apr 2002 22:32:33 +0000 (22:32 +0000)]
Install digittoint.3 (forgotten in rev 1.21)

PR: docs/26451
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>

22 years agoQuiet GCC 3.1 warning.
obrien [Sat, 13 Apr 2002 22:21:28 +0000 (22:21 +0000)]
Quiet GCC 3.1 warning.

22 years agolibstand needs _setjmp/_longjmp for FICL.
obrien [Sat, 13 Apr 2002 22:09:53 +0000 (22:09 +0000)]
libstand needs _setjmp/_longjmp for FICL.

Submitted by: jake

22 years agoStyle nit and modernize SCM ID.
obrien [Sat, 13 Apr 2002 21:54:09 +0000 (21:54 +0000)]
Style nit and modernize SCM ID.

22 years agoIf the receiver runs out of space for an received frame in the internal
phk [Sat, 13 Apr 2002 21:33:33 +0000 (21:33 +0000)]
If the receiver runs out of space for an received frame in the internal
FIFO or the in-RAM descriptors it will switch to RX_IDLE from where it
is not restarted.

We used to deal with RX_IDLE by doing a total reinit but this lost
our link and caused a potential 30sec autonegotiation against
switches.  This was changed to a less heavyhanded approach, but this
failed to restart the receiver it it were in the RX_IDLE state.

This change adds the RX_IDLE and the RX_FIFO_OFLOW conditions as
triggers for interrupts and receive side processing, and restarts
the receiver when it is RX_IDLE.

Remove the #ifdef notyet'ed nge_rxeoc() function.

Sponsored by: Cybercity Internet, Denmark.
MFC after: 7 days

22 years agoWarns cleanups:
dwmalone [Sat, 13 Apr 2002 21:28:17 +0000 (21:28 +0000)]
Warns cleanups:
1) Add missing initialisers.
2) Avoid shadowing rcswhich.
3) Use intmax_t and %j for printing rather than quad_t and %q.
4) Don't modify a variable twice between sequence points.

22 years agoRemove previously unneeded and now incorrect cast of user_from_uid()
dwmalone [Sat, 13 Apr 2002 21:09:55 +0000 (21:09 +0000)]
Remove previously unneeded and now incorrect cast of user_from_uid()
to a char *.
Fix up vendor ID.

22 years agoFix up vendor IDs.
dwmalone [Sat, 13 Apr 2002 20:59:48 +0000 (20:59 +0000)]
Fix up vendor IDs.
Put a sequence point between writing to a variable and using it.

22 years agoUse pmap_extract() instead of pmap_kextract() to retrieve the physical
tmm [Sat, 13 Apr 2002 20:09:06 +0000 (20:09 +0000)]
Use pmap_extract() instead of pmap_kextract() to retrieve the physical
address associated with a user virtual address in
pipe_build_write_buffer().

Reviewed by: alc

22 years agoRevision 1.17 seems to break a subsequent buildworld (i.e. with the new
obrien [Sat, 13 Apr 2002 19:36:47 +0000 (19:36 +0000)]
Revision 1.17 seems to break a subsequent buildworld (i.e. with the new
make installed) in gnu/usr.bin/groff/src/preproc/eqn (which, being a
build tool itself, is built with the original make during buildworld).

The problem seems to be that in str_concat(), the string is not
terminated when the length of the second string is 0.
This apparently can happen during null suffix rule processing.

Submitted by: tmm

22 years ago o Remove vm_map_growstack() and useracc() from sendsig(). Copyout() and
alc [Sat, 13 Apr 2002 19:17:49 +0000 (19:17 +0000)]
 o Remove vm_map_growstack() and useracc() from sendsig().  Copyout() and
   suword() will automatically grow the stack if needed.
 o Add a comment that osigreturn() and sigreturn() are MPSAFE.

22 years agoAdd some constness to make this WARNS clean again.
dwmalone [Sat, 13 Apr 2002 18:38:16 +0000 (18:38 +0000)]
Add some constness to make this WARNS clean again.

22 years agoCheck write permissions before creating anything.
bp [Sat, 13 Apr 2002 15:33:26 +0000 (15:33 +0000)]
Check write permissions before creating anything.

PR: kern/27883
MFC after: 1 week

22 years agoAdd support for an additional field to the packages/INDEX file. If
murray [Sat, 13 Apr 2002 13:00:42 +0000 (13:00 +0000)]
Add support for an additional field to the packages/INDEX file.  If
present, this field specifies the media volume that the disc is
contained on.  If the volume of a given packages is different than the
current volume of mediaDevice, then the user is prompted --

  "This is disc #%d.  Package %s is on disc #%d\n"
  "Would you like to switch discs now?\n"

If the user selects yes, then DEVICE_SHUTDOWN is called and the user
is then prompted --

  "Please remove disc #%d from you drive, and add disc #%d"

This works well for a carefully crafted INDEX file, but more work
needs to be done to sort dependencies on a given package based on the
volume that they reside on, to minimize the amount of disc flipping
required of the user.

This commit is a no-op for normal INDEX files and FreeBSD CDs.  These
additional features are only used if the INDEX and cdrom.inf file have
multi-volume support.

22 years agoRead the CD_VOLUME property from the cdrom.inf file and use it to
murray [Sat, 13 Apr 2002 12:44:18 +0000 (12:44 +0000)]
Read the CD_VOLUME property from the cdrom.inf file and use it to
initialize the volume ID for the media device in use.

22 years agoAdd the concept of a volume to the device and package structures. If
murray [Sat, 13 Apr 2002 12:43:07 +0000 (12:43 +0000)]
Add the concept of a volume to the device and package structures.  If
these values are different for a given package, then we must prompt
the user to insert another disc before the package can be installed.

22 years agoupdate german national holidays file for 2002, 2003 and 2004
hm [Sat, 13 Apr 2002 12:23:38 +0000 (12:23 +0000)]
update german national holidays file for 2002, 2003 and 2004

22 years agoFix a minor lint warning.
obrien [Sat, 13 Apr 2002 12:20:51 +0000 (12:20 +0000)]
Fix a minor lint warning.

22 years agoPrefer BSDmakefile over makefile and Makefile.
obrien [Sat, 13 Apr 2002 12:18:00 +0000 (12:18 +0000)]
Prefer BSDmakefile over makefile and Makefile.

Submitted by: jmallett
Obtained from: OpenBSD

22 years agoFix copyrights, and undo SCS ID damage.
obrien [Sat, 13 Apr 2002 10:57:56 +0000 (10:57 +0000)]
Fix copyrights, and undo SCS ID damage.

22 years agoFix a missed conversion of lld to llu for the uint64_t ks_calls and cast
asmodai [Sat, 13 Apr 2002 10:32:36 +0000 (10:32 +0000)]
Fix a missed conversion of lld to llu for the uint64_t ks_calls and cast
to unsigned long long.

Don't be too overzealous with the printing of ks_calls in the total
statistics, cut back from 20 to 13 positions to print (which should last
a couple of years easily (20 digits is enough for 3168 years of calls at a
measly billion (10^9) calls per second.)).

Submitted by: bde

22 years agoUpdate SCM ID method.
obrien [Sat, 13 Apr 2002 10:17:18 +0000 (10:17 +0000)]
Update SCM ID method.

22 years agoUse the correct macros for F_SETFD/F_GETFD instead of magic numbers.
asmodai [Sat, 13 Apr 2002 10:16:53 +0000 (10:16 +0000)]
Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.
Reflect that fact in the manual page.

PR: 12723
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Approved by: bde
MFC after: 2 weeks

22 years agoMake str_concat handle NULL arguments properly (a-la how ODE-2.3.6 make does).
obrien [Sat, 13 Apr 2002 10:13:39 +0000 (10:13 +0000)]
Make str_concat handle NULL arguments properly (a-la how ODE-2.3.6 make does).

Submitted by: jmallett
Inspired by: CMU BUILDTOOLS4 coredumping, ODE-2.3.6 make(1)

22 years agoDe'register.
obrien [Sat, 13 Apr 2002 10:05:30 +0000 (10:05 +0000)]
De'register.

22 years agoConstify str_concat()
obrien [Sat, 13 Apr 2002 09:49:33 +0000 (09:49 +0000)]
Constify str_concat()

Submitted by: jmallett

22 years agoCheck to make sure fdopen() succeeds in make(1).
obrien [Sat, 13 Apr 2002 09:10:07 +0000 (09:10 +0000)]
Check to make sure fdopen() succeeds in make(1).

Submitted by: jmallett
Inspired by: NetBSD

22 years ago${BDECFLAGS} gets added to CFLAGS, not CXFLAGS.
dd [Sat, 13 Apr 2002 09:07:22 +0000 (09:07 +0000)]
${BDECFLAGS} gets added to CFLAGS, not CXFLAGS.

PR: 37032
Submitted by: Joshua Goodall <joshua@roughtrade.net>

22 years agoHigh-level changes (user visible):
marcel [Sat, 13 Apr 2002 08:20:15 +0000 (08:20 +0000)]
High-level changes (user visible):
o  Implement -c (clear) to clear previously kept headers (note that
   dumps not cleared will remain until -c is used),
o  Implement -f (force) to allow re-saving a previously saved dump,
o  Implement -k (keep) and make clearing the dump header the default,
o  Implement -v (verbose) and make most output conditional upon it,
o  Emit minimal output for the non-verbose case with the assumption
   that savecore is run mostly from within /etc/rc,
o  Update usage message to reflect what is and what's not,
o  mark -d as obsolete.

Low-level changes:
o  Rename devname to device, for devname mirrors a global declaration
   and GCC 3.x warns about it,
o  Open the dump device R/W for clear and !keep to work,
o  Reorder the locals of DoFile according to style(9),
o  Remove newlines from strings passed to warn* and err*,
o  Use stat(2) to check if a dump has been saved before,
o  Truncate existing core and info files to support force,
o  First check for the magic and the version before we complain about
   parity errors. This prevents emitting parity error messages when
   there's no dump,
o  Keep track of the number of headers found and the number of headers
   saved to support the minimal output,
o  Close files we opened in DoFile. Not critical, but cleaner.