]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoRemove the example from SECURITY CONSIDERATIONS. This is mostly
chris [Sat, 5 Jan 2002 20:24:38 +0000 (20:24 +0000)]
Remove the example from SECURITY CONSIDERATIONS.  This is mostly
duplicated code from EXAMPLES.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoAs discussed with Bruce Evans and Kirk McKusick:
chris [Sat, 5 Jan 2002 20:18:35 +0000 (20:18 +0000)]
As discussed with Bruce Evans and Kirk McKusick:
o Combine ufs.7 and ffs.7 into a single ffs.7 man page.
o Remove all references to `ufs' as a file system.
o Proper (lack of) capitalization for `ffs'.

Obtained from: TrustedBSD Project
Sposnored by: DARPA, NAI Labs

22 years agoPut -Wno-uninitialized at the end of the warns flags as it may be enabeled
dwmalone [Sat, 5 Jan 2002 20:17:50 +0000 (20:17 +0000)]
Put -Wno-uninitialized at the end of the warns flags as it may be enabeled
by several flags (in this case -W and -Wall).

Reviewed by: bde

22 years agoBe more careful about freeing memory after parsing commands.
dwmalone [Sat, 5 Jan 2002 20:13:01 +0000 (20:13 +0000)]
Be more careful about freeing memory after parsing commands.
Hiroyuki YAMAMORI gave a patch for the EPRT command in the
PR below. Problems with the rest of the patch are my fault.

PR: 33268
Reviewed by: iedowse, sheldonh

22 years agoNew (but very overdue) release note: ata(4) 48-bit addressing.
bmah [Sat, 5 Jan 2002 18:46:03 +0000 (18:46 +0000)]
New (but very overdue) release note:  ata(4) 48-bit addressing.

MFC noted:  locale renaming.

22 years agoPre-calculate the checksum for multicast packets sourced on a
fenner [Sat, 5 Jan 2002 18:23:53 +0000 (18:23 +0000)]
Pre-calculate the checksum for multicast packets sourced on a
multicast router.  This is overkill; it should be possible to
delay to hardware interfaces and only pre-calculate when forwarding
to a tunnel.

22 years agoUpdate Judaic for year 2002. Name Josef as maintainer.
dwmalone [Sat, 5 Jan 2002 18:10:19 +0000 (18:10 +0000)]
Update Judaic for year 2002. Name Josef as maintainer.

PR: 33389
Submitted by: Josef Grosch <jgrosch@mooseriver.com>

22 years agoFix a bug where the mutex name wasn't always displayed for processes in
jhb [Sat, 5 Jan 2002 17:18:59 +0000 (17:18 +0000)]
Fix a bug where the mutex name wasn't always displayed for processes in
SMTX in utils such as ps and top.  The KI_CTTY flag was assigned to
kinfo_proc->ki_kiflag rather than or'd into the flag, thus clobbering
any flags set earlier, including KI_MTXBLOCK.

Prodding by: peter

22 years agoIn the word selection mode don't append newline if the word ends at the
sobomax [Sat, 5 Jan 2002 16:52:44 +0000 (16:52 +0000)]
In the word selection mode don't append newline if the word ends at the
screen boundary.

22 years agoWrite the "msinfo" result to stdout instead of stderr
sos [Sat, 5 Jan 2002 15:21:05 +0000 (15:21 +0000)]
Write the "msinfo" result to stdout instead of stderr

22 years agoPut the "mtxname" keyword in alphabetical order (t comes after s) so
peter [Sat, 5 Jan 2002 12:19:51 +0000 (12:19 +0000)]
Put the "mtxname" keyword in alphabetical order (t comes after s) so
that the keyword is recognized.

22 years agoConvert a bunch of 1 << PCPU_GET(cpuid) to PCPU_GET(cpumask).
peter [Sat, 5 Jan 2002 09:41:37 +0000 (09:41 +0000)]
Convert a bunch of 1 << PCPU_GET(cpuid) to PCPU_GET(cpumask).

22 years agoFix forward_roundrobin(). It was mistakenly using the cpu number as
peter [Sat, 5 Jan 2002 09:38:47 +0000 (09:38 +0000)]
Fix forward_roundrobin().  It was mistakenly using the cpu number as
though it was a mask.  As a result, we sent AST IPI's to the wrong
cpu and/or left out some.

Spotted by: jake

22 years agoAdd a per-cpu variable, cpumask, the preshifted equivalent of 1 << cpuid.
peter [Sat, 5 Jan 2002 09:35:50 +0000 (09:35 +0000)]
Add a per-cpu variable, cpumask, the preshifted equivalent of 1 << cpuid.
We use this around the place a lot.

22 years agoChange the preemption code for software interrupt thread schedules and
jhb [Sat, 5 Jan 2002 08:47:13 +0000 (08:47 +0000)]
Change the preemption code for software interrupt thread schedules and
mutex releases to not require flags for the cases when preemption is
not allowed:

The purpose of the MTX_NOSWITCH and SWI_NOSWITCH flags is to prevent
switching to a higher priority thread on mutex releease and swi schedule,
respectively when that switch is not safe.  Now that the critical section
API maintains a per-thread nesting count, the kernel can easily check
whether or not it should switch without relying on flags from the
programmer.  This fixes a few bugs in that all current callers of
swi_sched() used SWI_NOSWITCH, when in fact, only the ones called from
fast interrupt handlers and the swi_sched of softclock needed this flag.
Note that to ensure that swi_sched()'s in clock and fast interrupt
handlers do not switch, these handlers have to be explicitly wrapped
in critical_enter/exit pairs.  Presently, just wrapping the handlers is
sufficient, but in the future with the fully preemptive kernel, the
interrupt must be EOI'd before critical_exit() is called.  (critical_exit()
can switch due to a deferred preemption in a fully preemptive kernel.)

I've tested the changes to the interrupt code on i386 and alpha.  I have
not tested ia64, but the interrupt code is almost identical to the alpha
code, so I expect it will work fine.  PowerPC and ARM do not yet have
interrupt code in the tree so they shouldn't be broken.  Sparc64 is
broken, but that's been ok'd by jake and tmm who will be fixing the
interrupt code for sparc64 shortly.

Reviewed by: peter
Tested on: i386, alpha

22 years agoRemove brain damaged code in witness_lock(). We could have easily
jhb [Sat, 5 Jan 2002 08:29:54 +0000 (08:29 +0000)]
Remove brain damaged code in witness_lock().  We could have easily
just used PCPU_GET(spinlocks) w/o needing the w_mtx held.  It is more
correct to just check td_critnest now though.

22 years agoMerge the changes in the English version (1.244 --> 1.247).
kuriyama [Sat, 5 Jan 2002 08:01:41 +0000 (08:01 +0000)]
Merge the changes in the English version (1.244 --> 1.247).

22 years agoAdd a new flag '-c' to disable repeated line compression when the output
archie [Sat, 5 Jan 2002 07:34:52 +0000 (07:34 +0000)]
Add a new flag '-c' to disable repeated line compression when the output
is a pipe to another program, or, if specified twice, in all cases.

PR: bin/32420

22 years agoGC unfinished function selected_proc_ipi(). It is a duplicate of
peter [Sat, 5 Jan 2002 06:44:27 +0000 (06:44 +0000)]
GC unfinished function selected_proc_ipi(). It is a duplicate of
apic_ipi_singledest() anyway.

22 years agoMove initialization of the MKMODULESENV envorinoment to kern.pre.mk
imp [Sat, 5 Jan 2002 06:21:06 +0000 (06:21 +0000)]
Move initialization of the MKMODULESENV envorinoment to kern.pre.mk
from kern.post.mk so port makefiles can augment it.

Submitted by: nyan

22 years agoNew release notes: SA-02:01, SA-02:02.
bmah [Sat, 5 Jan 2002 06:07:17 +0000 (06:07 +0000)]
New release notes:  SA-02:01, SA-02:02.

22 years agoFully catch up to the recent critical section API change. Update the
jhb [Fri, 4 Jan 2002 23:56:17 +0000 (23:56 +0000)]
Fully catch up to the recent critical section API change.  Update the
content of the manpage and document cpu_critical_enter/exit.

22 years agoWe were right the first time...the HPT372 is an ATA133 controller.
bmah [Fri, 4 Jan 2002 21:55:32 +0000 (21:55 +0000)]
We were right the first time...the HPT372 is an ATA133 controller.

Pointed out by: Kent Stewart <kstewart@owt.com>

22 years agoOops, missed one point where $pwd_mkdb had been used.
yar [Fri, 4 Jan 2002 21:28:32 +0000 (21:28 +0000)]
Oops, missed one point where $pwd_mkdb had been used.
Now it should be @pwd_mkdb since we moved to Perl's
safe system() not using /bin/sh.

22 years agoMinor grammar and punctuation fixes
yar [Fri, 4 Jan 2002 18:17:07 +0000 (18:17 +0000)]
Minor grammar and punctuation fixes
in the SO_ACCEPTFILTER description.

22 years agoState clearly that one should call listen(2) on a socket
yar [Fri, 4 Jan 2002 18:12:38 +0000 (18:12 +0000)]
State clearly that one should call listen(2) on a socket
at first and try to set an accept_filter(9) on it only after that.
Also document errno value that will be set if installing the
filter on a non-listening socket.

22 years agoo Spelling fix in comment: tcp_ouput -> tcp_output
rwatson [Fri, 4 Jan 2002 17:21:27 +0000 (17:21 +0000)]
o Spelling fix in comment: tcp_ouput -> tcp_output

22 years agoArgh...argv->argc
guido [Fri, 4 Jan 2002 13:46:57 +0000 (13:46 +0000)]
Argh...argv->argc

22 years agoFix the coredump that occurs when, from the tfpt prompt, a 'c' command is
guido [Fri, 4 Jan 2002 13:42:14 +0000 (13:42 +0000)]
Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is
issued without an argument.

22 years agoRegen.
sheldonh [Fri, 4 Jan 2002 13:11:36 +0000 (13:11 +0000)]
Regen.

22 years agoInstall nsmb.conf with mode 0600, since it may be modified to include
sheldonh [Fri, 4 Jan 2002 13:02:51 +0000 (13:02 +0000)]
Install nsmb.conf with mode 0600, since it may be modified to include
passwords for remote shares.

Reported by: Andre Albsmeier <andre@albsmeier.net>

22 years agoImport this patch to address user concerns.
darrenr [Fri, 4 Jan 2002 12:32:34 +0000 (12:32 +0000)]
Import this patch to address user concerns.

PR:  27615
Submitted by: Andria Thomas <andria@tovaris.com>
Approved by: Me.
MFC after: 7 days

22 years agoAxe a stale comment. Holding sched_lock across both setrunqueue() and
jhb [Fri, 4 Jan 2002 10:55:51 +0000 (10:55 +0000)]
Axe a stale comment.  Holding sched_lock across both setrunqueue() and
mi_switch() is sufficient.

22 years agoDon't turn on RB_CDROM if the rootdev is a BIOS cd device for now as this
jhb [Fri, 4 Jan 2002 07:59:27 +0000 (07:59 +0000)]
Don't turn on RB_CDROM if the rootdev is a BIOS cd device for now as this
breaks when cdboot is used with an MFS root.

22 years agoThrow the $FreeBSD$s back in, properly escaping them.
silby [Fri, 4 Jan 2002 05:27:47 +0000 (05:27 +0000)]
Throw the $FreeBSD$s back in, properly escaping them.

22 years agoRemove $FreeBSD$s from previous commit; perl thinks that they're
silby [Fri, 4 Jan 2002 01:40:50 +0000 (01:40 +0000)]
Remove $FreeBSD$s from previous commit; perl thinks that they're
something to be interpreted.  Urk.

22 years agoAdd the system default timer engine.
tanimura [Fri, 4 Jan 2002 01:16:18 +0000 (01:16 +0000)]
Add the system default timer engine.

22 years ago- Provide toggles to show debug messages. Set new sysctl variables
tanimura [Fri, 4 Jan 2002 01:13:49 +0000 (01:13 +0000)]
- Provide toggles to show debug messages. Set new sysctl variables
  hw.midi.debug and hw.midi.seq.debug to 1 to enable debug log.

- Make debug messages human-frendly.

- Implement /dev/music.

- Add a timer engine required by /dev/music.

- Fix nonblocking I/O.

- Fix the numbering of midi and synth devices.

22 years agoDo not derefer null.
tanimura [Fri, 4 Jan 2002 01:03:46 +0000 (01:03 +0000)]
Do not derefer null.

Reviewed by: des

22 years agounbreak -current (at least on my cvsups all today)
julian [Thu, 3 Jan 2002 23:33:44 +0000 (23:33 +0000)]
unbreak -current (at least on my cvsups all today)

22 years agoCorrect the path for the stable snapshot server.
jkh [Thu, 3 Jan 2002 23:33:21 +0000 (23:33 +0000)]
Correct the path for the stable snapshot server.

Noticed by:  "Peter Holm" <p_holm@mail.tele.dk>

22 years agoFix (I think) a typo in the hardware list (HPT372 is ATA100 instead of
bmah [Thu, 3 Jan 2002 23:24:03 +0000 (23:24 +0000)]
Fix (I think) a typo in the hardware list (HPT372 is ATA100 instead of
ATA133?).

MFC noted:  "more" chipsets supported by ata(4).

22 years agoNew release notes (and hardware list updates): dc(4) support
bmah [Thu, 3 Jan 2002 22:56:43 +0000 (22:56 +0000)]
New release notes (and hardware list updates):  dc(4) support
for Xircom 3201 and Conexant LANfinity RS7112, ifpi(4).

22 years agoSolve vnode_if.pl's identity crisis; make sure that it refers to itself
silby [Thu, 3 Jan 2002 21:53:09 +0000 (21:53 +0000)]
Solve vnode_if.pl's identity crisis; make sure that it refers to itself
as vnode_if.pl instead of vnode_if.sh.

PR: 33509
MFC after: 3 weeks

22 years agoAdd opie lib dir to includes list
ache [Thu, 3 Jan 2002 21:20:29 +0000 (21:20 +0000)]
Add opie lib dir to includes list

22 years agoImplement REDUCED INTERRUPT OPERATION usage form FC cards- this allows the
mjacob [Thu, 3 Jan 2002 20:43:22 +0000 (20:43 +0000)]
Implement REDUCED INTERRUPT OPERATION usage form FC cards- this allows the
firmware to delay completion of commands so that it can attempt to batch
a bunch of completions at once- either returning 16 bit handles in mailbox
registers, or in a resposne queue entry that has a whole wad of 16 bit handles.

Distinguish between 2300 and 2312 chipsets- if only because the revisions
on the chips have different meanings.

Add more instrumentation plus ISP_GET_STATS and ISP_CLR_STATS ioctls.
Run up the maximum number of response queue entities we'll look at
per interrupt.

If we haven't set HBA role yet, always return success from isp_fc_runstate.

MFC after: 2 weeks

22 years agoDon't build csu or libgcc on sparc64 for the time being.
jhb [Thu, 3 Jan 2002 19:57:35 +0000 (19:57 +0000)]
Don't build csu or libgcc on sparc64 for the time being.

22 years agoRemove unnecessary machine/bootinfo.h includes.
jhb [Thu, 3 Jan 2002 19:10:49 +0000 (19:10 +0000)]
Remove unnecessary machine/bootinfo.h includes.

Submitted by: jake

22 years agoRegenerate.
joe [Thu, 3 Jan 2002 18:58:08 +0000 (18:58 +0000)]
Regenerate.

22 years agoAdd a new linksys ethernet adapter: USB_PRODUCT_LINKSYS_USB10TX2.
joe [Thu, 3 Jan 2002 18:56:35 +0000 (18:56 +0000)]
Add a new linksys ethernet adapter: USB_PRODUCT_LINKSYS_USB10TX2.

22 years agoFix the footer in Japanese which is likely to mislead
hrs [Thu, 3 Jan 2002 17:42:38 +0000 (17:42 +0000)]
Fix the footer in Japanese which is likely to mislead
the readers.

22 years agoAdd some missing prototypes.
joe [Thu, 3 Jan 2002 16:14:35 +0000 (16:14 +0000)]
Add some missing prototypes.
Remove some diagnostics that aren't relevant yet.

22 years agoTurn off USER_LOCKING which allows intruder to completely disable OPIE
ache [Thu, 3 Jan 2002 16:04:57 +0000 (16:04 +0000)]
Turn off USER_LOCKING which allows intruder to completely disable OPIE
for some user just by entering user name and doing nothing on password prompt

22 years agoRepo copied to /usr/src/lib/libopie/
ache [Thu, 3 Jan 2002 15:58:11 +0000 (15:58 +0000)]
Repo copied to /usr/src/lib/libopie/

22 years agoReturn EBADF in case some vnode field has been reset to a NULL pointer.
se [Thu, 3 Jan 2002 09:54:24 +0000 (09:54 +0000)]
Return EBADF in case some vnode field has been reset to a NULL pointer.
(There has been some discussion, whether ENOENT or EBADF is more
appropriate. I choose the latter, since the operation is not supported
on the file descriptor at that time, even if it was, immediately before.)

PR: 32681
Reviewed by: dillon, iedowse, ...
Approved by: nectar
MFC after: 3 days
(pending RE approval)

22 years agoMerge the changes in the English version.
kuriyama [Thu, 3 Jan 2002 04:56:10 +0000 (04:56 +0000)]
Merge the changes in the English version.

22 years agoSync with NetBSD:
joe [Thu, 3 Jan 2002 02:10:31 +0000 (02:10 +0000)]
Sync with NetBSD:

* White space changes.
* Updates to comments.
* Replace some delay() calls with usb_delay_ms().
* Replace 0's with NULL's.

22 years agoo Note that packets diverted using a 'divert' socket, and then
rwatson [Thu, 3 Jan 2002 01:00:23 +0000 (01:00 +0000)]
o Note that packets diverted using a 'divert' socket, and then
  reinserted by a userland process, will lose a number of packet
  attributes, including their source interface.  This may affect
  the behavior of later rules, and while not strictly a BUG, may
  cause unexpected behavior if not clearly documented.  A similar
  note for natd(8) might be desirable.

22 years agoMerge from NetBSD:
joe [Thu, 3 Jan 2002 00:46:47 +0000 (00:46 +0000)]
Merge from NetBSD:

  date: 2001/08/06 15:15:08;  author: augustss;  state: Exp;
  Don't write back status bits that are cleared when written.

22 years agoMerge from NetBSD:
joe [Thu, 3 Jan 2002 00:37:56 +0000 (00:37 +0000)]
Merge from NetBSD:

  date: 2001/11/20 16:08:10;  author: augustss;  state: Exp;
  Use longer reset for root hubs (as told in the spec).

22 years agoAllow a specific setting for pv entries. This avoids the need to guess
peter [Thu, 3 Jan 2002 00:26:04 +0000 (00:26 +0000)]
Allow a specific setting for pv entries.  This avoids the need to guess
(or calculate by hand) the effect of interactions between shpgperproc,
physical ram size, maxproc, maxdsiz, etc.

22 years agoRevert uio.uio_td back to uio.uio_procp, using a #define in usb_port to
joe [Wed, 2 Jan 2002 23:31:08 +0000 (23:31 +0000)]
Revert uio.uio_td back to uio.uio_procp, using a #define in usb_port to
do the right thing on -current.

22 years agoSync with NetBSD. Non-functional changes that bring this file
joe [Wed, 2 Jan 2002 21:56:02 +0000 (21:56 +0000)]
Sync with NetBSD.  Non-functional changes that bring this file
closer to the NetBSD version.

Reviewed by: md5

22 years agoMove the discussion of how many times a packet will pass through
yar [Wed, 2 Jan 2002 20:48:21 +0000 (20:48 +0000)]
Move the discussion of how many times a packet will pass through
ipfirewall(4) to the IMPLEMENTATION NOTES section because it
considers kernel internals and may confuse newbies if placed
at the very beginning of the manpage (where it used to be previously.)

Not objected by: luigi

22 years agoSync usb.h with NetBSD, apart from usb_device_info.speed, which
joe [Wed, 2 Jan 2002 20:16:53 +0000 (20:16 +0000)]
Sync usb.h with NetBSD, apart from usb_device_info.speed, which
requires logic changes.  For now leave it as usb_device_info.lowspeed.
It will get addressed when the usb.c code is sync'd.

22 years agoClarify the "show" ipfw(8) command.
yar [Wed, 2 Jan 2002 20:16:15 +0000 (20:16 +0000)]
Clarify the "show" ipfw(8) command.

PR: docs/31263
Permitted by: luigi

22 years agoCopy the sample `SECURITY CONSIDERATIONS' section from sec-doc.7.
chris [Wed, 2 Jan 2002 19:56:57 +0000 (19:56 +0000)]
Copy the sample `SECURITY CONSIDERATIONS' section from sec-doc.7.
This will be trimmed as the FreeBSD Security Architecture document
is fleshed out and committed.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoFix a typo: wierd -> weird
yar [Wed, 2 Jan 2002 19:46:14 +0000 (19:46 +0000)]
Fix a typo: wierd -> weird

22 years agoDocument a new option: -force.
yar [Wed, 2 Jan 2002 19:01:53 +0000 (19:01 +0000)]
Document a new option: -force.

22 years agoAllow weird characters in usernames if an admin persists on that:
yar [Wed, 2 Jan 2002 18:54:40 +0000 (18:54 +0000)]
Allow weird characters in usernames if an admin persists on that:
a) Convert all the remaining older Perl system() calls to the new,
   more secure LIST format so they are robust to whitespace and
   shell metacharacters in their arguments.
b) Add a new option: -force, which allows adding usernames containing
   characters that are otherwise illegal.

PR: bin/22860 bin/31049

22 years ago1. Implement an optimization for pmap_remove() and pmap_protect(): if a
tmm [Wed, 2 Jan 2002 18:49:20 +0000 (18:49 +0000)]
1. Implement an optimization for pmap_remove() and pmap_protect(): if a
   substantial fraction of the number of entries of tte's in the tsb
   would need to be looked up, traverse the tsb instead. This is crucial
   in some places, e.g. when swapping out a process, where a certain
   pmap_remove() call would take very long time to complete without this.
2. Implement pmap_qenter_flags(), which will become used later
3. Reactivate the instruction cache flush done when mapping as executable.
   This is required e.g. when executing files via NFS, but is known to
   cause problems on UltraSPARC-IIe CPU's. If you have such a CPU, you
   will need to comment this call out for now.

Submitted by: jake (3)

22 years agoRevert part of the last commit. UIPROTO_MASS_BBB was renamed to
joe [Wed, 2 Jan 2002 18:36:46 +0000 (18:36 +0000)]
Revert part of the last commit.  UIPROTO_MASS_BBB was renamed to
UIPROTO_MASS_BULK _after_ the previous change was made in NetBSD.

22 years agoSync with NetBSD:
joe [Wed, 2 Jan 2002 18:28:45 +0000 (18:28 +0000)]
Sync with NetBSD:

date: 2000/02/29 21:37:01;  author: augustss;  state: Exp;
Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

22 years agoCorrect the defintion of struct ofw_upa_regs, and use it instead of
tmm [Wed, 2 Jan 2002 18:27:13 +0000 (18:27 +0000)]
Correct the defintion of struct ofw_upa_regs, and use it instead of
struct ofw_nexus_reg. Implement UPA device memory management in the
nexus driver.
Adapt the psycho driver to these changes, and do some minor cleanup work
while being there.

22 years agoClose a window of time during early boot in which an interrupt would
tmm [Wed, 2 Jan 2002 18:21:16 +0000 (18:21 +0000)]
Close a window of time during early boot in which an interrupt would
cause a panic.

Reported and tested (in another version) by: Jamey Wood <Jamey.Wood@Sun.COM>

22 years agoUpdate copyright years.
bmah [Wed, 2 Jan 2002 17:27:58 +0000 (17:27 +0000)]
Update copyright years.

22 years agoRemove the special casing for NetBSD and OpenBSD now that they
joe [Wed, 2 Jan 2002 16:45:15 +0000 (16:45 +0000)]
Remove the special casing for NetBSD and OpenBSD now that they
appear to do what we do.

22 years agoNetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)
joe [Wed, 2 Jan 2002 16:33:53 +0000 (16:33 +0000)]
NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)
to hide the distinction between struct proc and struct thread.

22 years agoBe consistent in what restriction is imposed on a username
yar [Wed, 2 Jan 2002 16:19:14 +0000 (16:19 +0000)]
Be consistent in what restriction is imposed on a username
in the code and what the warning message reads.

22 years agoAdd myself.
okazaki [Wed, 2 Jan 2002 16:02:51 +0000 (16:02 +0000)]
Add myself.

22 years agoForbid adding duplicate users with the name of "0".
yar [Wed, 2 Jan 2002 15:49:49 +0000 (15:49 +0000)]
Forbid adding duplicate users with the name of "0".
Previously, it was possible due to 0 and "0" being
equivalent in Perl.

22 years agoParse atq(1) output correctly under various (but not all perhaps)
yar [Wed, 2 Jan 2002 15:35:33 +0000 (15:35 +0000)]
Parse atq(1) output correctly under various (but not all perhaps)
locale settings: allow any date and time separator characters.

22 years agoIn remove_at_jobs():
yar [Wed, 2 Jan 2002 15:24:10 +0000 (15:24 +0000)]
In remove_at_jobs():
Don't print "Removing at jobs" if there are no jobs to remove.
Add a whitespace before "done." so the output looks better.

22 years agoFix some places where the macro L0IFPIUNIT was used instead of the correct
gj [Wed, 2 Jan 2002 12:55:04 +0000 (12:55 +0000)]
Fix some places where the macro L0IFPIUNIT was used instead of the correct
form L0IFPI2UNIT. This could result in a panic if the user tried to
trace using isdntrace(8). I fixed this locally but forgot to commit it.

Reminded by: "Wittig, Christoph" <wc@medianet-world.de>

22 years agoIf the CLK_VAL register is 0 bits wide, the system does not support
msmith [Wed, 2 Jan 2002 10:53:10 +0000 (10:53 +0000)]
If the CLK_VAL register is 0 bits wide, the system does not support
CPU throttling, so don't do some bogus math to check it.

22 years agoImprove pam_unix/opie related ftpd comment even more
ache [Wed, 2 Jan 2002 09:51:33 +0000 (09:51 +0000)]
Improve pam_unix/opie related ftpd comment even more

22 years agoi4bisppp also needs net/if_spppsubr.c.
gj [Wed, 2 Jan 2002 09:15:18 +0000 (09:15 +0000)]
i4bisppp also needs net/if_spppsubr.c.

MFC after: 1 month

22 years ago o Properly check the file descriptor passed to aio_cancel(2). (Previously,
alc [Wed, 2 Jan 2002 07:04:38 +0000 (07:04 +0000)]
 o Properly check the file descriptor passed to aio_cancel(2).  (Previously,
   no out-of-bounds check was performed on the file descriptor.)
 o Eliminate some excessive white space from aio_cancel(2).

22 years agoAdd support for decoding Buffer objects that contain PnP/ACPI resource
msmith [Wed, 2 Jan 2002 07:01:34 +0000 (07:01 +0000)]
Add support for decoding Buffer objects that contain PnP/ACPI resource
streams.  Since the output is bulky, it's controlled by the '-r'
option.

Document this in the manpage, and clean up some awkward English a
little.

22 years agoAdd ifdef sparc64.
jake [Wed, 2 Jan 2002 06:54:18 +0000 (06:54 +0000)]
Add ifdef sparc64.

22 years agoRemove broken attempt to compile libc's malloc source directly; this
kbyanc [Wed, 2 Jan 2002 06:42:34 +0000 (06:42 +0000)]
Remove broken attempt to compile libc's malloc source directly; this
allows this tool to compile again. Albeit, now to test a new malloc
implementation one has to install the new libc which may have bad
consequences (i.e. if the new malloc implementation were buggy).

Add logic to workaround malloc's current behaviour of returning an
invalid non-NULL pointer for 0 byte allocation requests; this prevents the
tool from coring during the NOPS loop.

Add $FreeBSD$ tags.

22 years agoInclude definition for struct namecache (it isn't exported via any header)
kbyanc [Wed, 2 Jan 2002 06:25:39 +0000 (06:25 +0000)]
Include definition for struct namecache (it isn't exported via any header)
so this builds again. Replace hardcoded name length magic with NAME_MAX.

22 years agoMerge the changes in the English version (1.242 --> 1.243).
kuriyama [Wed, 2 Jan 2002 04:19:37 +0000 (04:19 +0000)]
Merge the changes in the English version (1.242 --> 1.243).

22 years agoMF4S: Minor wordsmithing and markup fixes.
bmah [Wed, 2 Jan 2002 01:36:07 +0000 (01:36 +0000)]
MF4S:  Minor wordsmithing and markup fixes.

22 years agoPermit NFS filesystems to be forcibly unmounted when the server is
iedowse [Wed, 2 Jan 2002 00:41:26 +0000 (00:41 +0000)]
Permit NFS filesystems to be forcibly unmounted when the server is
down, even if there are hung processes and the mount is non-
interruptible.

This works by having nfs_unmount call a new function nfs_nmcancelreqs()
in the FORCECLOSE case. It scans the list of outstanding requests
and marks as interrupted any requests belonging to the specified
mount. Then it waits up to 30 seconds for all requests to terminate.
A few other changes are necessary to support this:
- Unconditionally set a socket timeout so that even hard mounts
  are guaranteed to occasionally check the R_SOFTTERM flag on
  requests. For hard mounts this flag can only be set by
  nfs_nmcancelreqs().
- Reject requests on a mount that is currently being unmounted.
- Never grant the receive lock to a request that has been cancelled.

This should also avoid an old problem where a forced NFS unmount
could cause a crash; it occurred when a VOP on an unlocked vnode
(usually VOP_GETATTR) was in progress at the time of the forced
unmount.

22 years agoConnect user trap code to the build.
jake [Tue, 1 Jan 2002 21:59:53 +0000 (21:59 +0000)]
Connect user trap code to the build.

22 years agoAdd libc side of user trap handling.
jake [Tue, 1 Jan 2002 21:58:32 +0000 (21:58 +0000)]
Add libc side of user trap handling.
Add support for handling floating point disabled traps mostly in userland
for the simple single threaded case.  Not yet enabled by default.
Implement __sparc_utrap_install as specified by the sparc abi.

22 years agoPrint parm6 too in the !KTR_EXTEND case.
jake [Tue, 1 Jan 2002 21:47:38 +0000 (21:47 +0000)]
Print parm6 too in the !KTR_EXTEND case.

22 years ago1. Lower the poll timeout for the ofw console driver from hz / 50 to hz / 4.
jake [Tue, 1 Jan 2002 21:45:30 +0000 (21:45 +0000)]
1. Lower the poll timeout for the ofw console driver from hz / 50 to hz / 4.
   This gives a bit of a sluggish console, but it prevents the console from
   getting stuck if we poll too fast, as well as other badness on certain
   machines.
2. Fix a test for != 0 that should have been > 0.

Noticed by: Jamey Wood <Jamey.Wood@Sun.COM> and myself
Submitted by: tmm (2)

22 years agoCorrectly identify the cpu in certain ultra 1s.
jake [Tue, 1 Jan 2002 21:26:57 +0000 (21:26 +0000)]
Correctly identify the cpu in certain ultra 1s.

Noticed by: Jamey Wood <Jamey.Wood@Sun.COM>
Submitted by: tmm