]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAttempt to crunch down the thread state info so that it is more likely to
Julian Elischer [Fri, 6 Jun 2003 20:28:11 +0000 (20:28 +0000)]
Attempt to crunch down the thread state info so that it is more likely to
fit on one line. Account for threads better.

* No need to report that it is on a sleep queue if it is actually sleeping
* "Normal" state is almost ubiquitous.. only report abnormal states.
* increment the #lines count for each separate thread shown in threaded
  programs.

makes it less likely that a threaded program will make all the data
on a screen overflow off the top of the screen.

21 years agoWhen setting fragment queue pointers to NULL, or comparing them with
Robert Watson [Fri, 6 Jun 2003 19:32:48 +0000 (19:32 +0000)]
When setting fragment queue pointers to NULL, or comparing them with
NULL, use NULL rather than 0 to improve readability.

21 years ago- Rename nexus_pcib to legacy_pcib. I've been meaning to do this for a
John Baldwin [Fri, 6 Jun 2003 17:56:30 +0000 (17:56 +0000)]
- Rename nexus_pcib to legacy_pcib.  I've been meaning to do this for a
  while after the legacy device was added since this driver hangs from
  legacy and not nexus.
- Make several methods non-static so they can be reused in a mptable
  host -> pci bridge driver that will be added at a later date.
- Let legacy_pcib() use pcibios_pcib_route_interrupt() directly instead of
  wrapping it in a private function.  Originally, I thought I was going to
  have the nexus_pcib() driver make a runtime APIC vs. 8259A check and call
  the appropriate routing method (MPTable vs. PIR) that way, but it ended
  up being cleaner to make nexus_pcib() just work with PIR and have a
  separate host -> pci bridge driver for the mptable/apic case.

21 years ago- Use IDTVEC() to declare IPI handlers since they are also IDT vectors.
John Baldwin [Fri, 6 Jun 2003 17:45:25 +0000 (17:45 +0000)]
- Use IDTVEC() to declare IPI handlers since they are also IDT vectors.
- Make handlers for IPI's used by SMP kernels #ifdef SMP.

21 years agoUse the secondary bus number instead of the number of the bus the PCI-PCI
John Baldwin [Fri, 6 Jun 2003 17:27:18 +0000 (17:27 +0000)]
Use the secondary bus number instead of the number of the bus the PCI-PCI
bridge lives on (i.e., the parent bus) when probing the PIR table for a
bus.  This could cause the PCIBIOS PCI-PCI bridge driver to bogusly attach
to bridges that weren't in the PIR but whose parent bus was in the PIR.

21 years ago- Document the thermal and performance counter LVT entries in the local
John Baldwin [Fri, 6 Jun 2003 17:22:15 +0000 (17:22 +0000)]
- Document the thermal and performance counter LVT entries in the local
  APIC.
- Add a lvt_thermal member to the LAPIC struct.
- Add constants for the SMI and INIT LVT delivery modes.

21 years agoHandle the TDS_INACTIVE state by printing '[INACTIVE]' instead of
John Baldwin [Fri, 6 Jun 2003 17:20:47 +0000 (17:20 +0000)]
Handle the TDS_INACTIVE state by printing '[INACTIVE]' instead of
panic'ing.  Also, for unknown thread states, print out the value rather
than panic.  Panic'ing in the debugger is pointless at best.

21 years agoWhitespace nits.
John Baldwin [Fri, 6 Jun 2003 17:19:27 +0000 (17:19 +0000)]
Whitespace nits.

21 years agoCompile our code as C99 w/GNU extensions by default.
David E. O'Brien [Fri, 6 Jun 2003 16:55:05 +0000 (16:55 +0000)]
Compile our code as C99 w/GNU extensions by default.
We can't use straight "c99" due to the lack of alloca.S for non-i386 platforms.

21 years agoAdd my birthday.
Sergey A. Osokin [Fri, 6 Jun 2003 15:08:32 +0000 (15:08 +0000)]
Add my birthday.

Approved by: fjoe (mentor)

21 years agoFix some minor bugs, namely:
Yaroslav Tykhiy [Fri, 6 Jun 2003 14:36:41 +0000 (14:36 +0000)]
Fix some minor bugs, namely:

- Initialize "rval", which would be used uninitialized
  if al or pl options were set.

- Don't pass an empty string to login(1) as a user name
  (this could be triggered by entering a name and then killing it
  with backspace or ^U.)

- Don't loop endlessly if the al option specifies a bogus (i.e.,
  not alphanumeric) auto-login name.

- Don't pass a bogus user name to login(1) if a good name were
  entered and then killed with ^U.

- Exit with status 0, not 1, on receiving an EOF character,
  since it's not a error condition.

MFC after: 1 week

21 years agoTweak make values and targets not to build kgzldr.o at
Jun Kuriyama [Fri, 6 Jun 2003 13:49:51 +0000 (13:49 +0000)]
Tweak make values and targets not to build kgzldr.o at
installation stage.

Reviewed by: bde

21 years agoUse
Jun Kuriyama [Fri, 6 Jun 2003 13:46:55 +0000 (13:46 +0000)]
Use
cat ${.ALLSRC} > ${.TARGET}
rather than
ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde

21 years agoRemove a debugging aid the crept in during the last commit. It doesn't
Mike Makonnen [Fri, 6 Jun 2003 13:00:43 +0000 (13:00 +0000)]
Remove a debugging aid the crept in during the last commit. It doesn't
really make much difference since this script is not used during startup
and is due to be removed before RELENG_5.

Submitted by: "Simon L. Nielsen" <simon@nitro.dk>

21 years agoMove my maintainership of parts of ipfilter back to Darren Reed
Guido van Rooij [Fri, 6 Jun 2003 11:30:50 +0000 (11:30 +0000)]
Move my maintainership of parts of ipfilter back to Darren Reed

21 years agoRegression tests for wctype(), iswctype(), wctrans(), towctrans().
Tim J. Robbins [Fri, 6 Jun 2003 09:42:21 +0000 (09:42 +0000)]
Regression tests for wctype(), iswctype(), wctrans(), towctrans().

21 years agoCorrect the man section number in references to kldstat(8).
Yaroslav Tykhiy [Fri, 6 Jun 2003 09:36:40 +0000 (09:36 +0000)]
Correct the man section number in references to kldstat(8).

21 years agoSince FreeBSD has never had a stock NNTP server, move the nntp line
Yaroslav Tykhiy [Fri, 6 Jun 2003 08:54:29 +0000 (08:54 +0000)]
Since FreeBSD has never had a stock NNTP server, move the nntp line
down to the section of optional mail/news services.  Change the nntpd
location to /usr/local/libexec since it's an optional software.

Henceforth, nntpd will be advised to run as "news", which is a
standard user in the system, instead of "usenet", which has never
existed in the default master.passwd(5).
Note: It's not "news:news" since inetd(8) runs a service at the
specified user's login group by default.

Add a blank comment line above the uucpd line so the section looks uniform.

Partly pointed out by: Alexey Neyman <alex.neyman at auriga.ru>
MFC after: 1 week

21 years agoWarn if there is no newline at the end of the group file.
Peter Pentchev [Fri, 6 Jun 2003 07:10:39 +0000 (07:10 +0000)]
Warn if there is no newline at the end of the group file.

PR: 51256
Submitted by: Brian D Gallaway <bdg730@makserver0.usask.ca>
Reviewed by: tjr, -audit
Approved by: tjr

21 years agoAdd macros for kernel debugging. These have been around for a
Greg Lehey [Fri, 6 Jun 2003 06:44:49 +0000 (06:44 +0000)]
Add macros for kernel debugging.  These have been around for a
while, and they will need some more tuning before they're really
useful, but at the moment they're better than nothing.

Indirectly reminded by: dwhite

21 years agoAdd two of three workarounds for interrupt storms for o2micro parts as
Warner Losh [Fri, 6 Jun 2003 06:00:49 +0000 (06:00 +0000)]
Add two of three workarounds for interrupt storms for o2micro parts as
obtained from o2micro.  These should only be needed for 'older'
o2micro bridges (anything before the 7xxx series of bridges), but will
work with the new bridges.

# I don't plan on porting it to oldcard, but will happily commit to
# oldcard if someone else needs them.

21 years agoUse cat(1) instead of cp(1) so as not to break -DNOCLEAN builds
Marcel Moolenaar [Fri, 6 Jun 2003 05:38:09 +0000 (05:38 +0000)]
Use cat(1) instead of cp(1) so as not to break -DNOCLEAN builds
when the file permissions of source files don't allow writing.

21 years agothread_signal_add now is called with ps_mtx held, unlock it before
David Xu [Fri, 6 Jun 2003 02:17:38 +0000 (02:17 +0000)]
thread_signal_add now is called with ps_mtx held, unlock it before
calling copyin.

21 years agoFix NFS file swapping, I broke it 3 months ago it seems.
Poul-Henning Kamp [Thu, 5 Jun 2003 21:57:19 +0000 (21:57 +0000)]
Fix NFS file swapping, I broke it 3 months ago it seems.

21 years agoReport NODEV devices as <NFSfile>
Poul-Henning Kamp [Thu, 5 Jun 2003 21:56:47 +0000 (21:56 +0000)]
Report NODEV devices as <NFSfile>

21 years agoRecognize the magic NODEV value.
Poul-Henning Kamp [Thu, 5 Jun 2003 21:55:57 +0000 (21:55 +0000)]
Recognize the magic NODEV value.
Format other unknown devices consistently in hex.

21 years agoFixed cross references to pccbb(4), fixed spelling of "device cbb",
Ruslan Ermilov [Thu, 5 Jun 2003 21:12:55 +0000 (21:12 +0000)]
Fixed cross references to pccbb(4), fixed spelling of "device cbb",
and linked the pccbb(4) manpage to cbb(4).

Reviewed by: imp

21 years ago - Extend the scope of the backing object's lock in vm_object_collapse().
Alan Cox [Thu, 5 Jun 2003 20:55:27 +0000 (20:55 +0000)]
 - Extend the scope of the backing object's lock in vm_object_collapse().

21 years agoAdd support for Quad port adapter
Prafulla Deuskar [Thu, 5 Jun 2003 17:51:38 +0000 (17:51 +0000)]
Add support for Quad port adapter
Add sysctl's to display statistics/debug_info
Set WAIT_FOR_AUTONEG_DEFAULT to zero by default
Increment packet in/out statistics inline instead of every two seconds.

MFC after: 3 days

21 years agoUpdate hardware notes to reflect ahc and stg supported hardware.
Bruce A. Mah [Thu, 5 Jun 2003 15:13:46 +0000 (15:13 +0000)]
Update hardware notes to reflect ahc and stg supported hardware.
Based on PR submission.

PR: 52426
Submitted by: Bob Bishop <rb@gid.co.uk>

21 years agoDocument VOP_LISTEXTATTR(9).
Robert Watson [Thu, 5 Jun 2003 14:20:48 +0000 (14:20 +0000)]
Document VOP_LISTEXTATTR(9).

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

21 years agoMail out -STABLE tinderbox failures as well.
Dag-Erling Smørgrav [Thu, 5 Jun 2003 13:50:38 +0000 (13:50 +0000)]
Mail out -STABLE tinderbox failures as well.

21 years agoENOATTR is now used for error returns indicating an undefined
Robert Watson [Thu, 5 Jun 2003 13:42:37 +0000 (13:42 +0000)]
ENOATTR is now used for error returns indicating an undefined
extended attribute.

EINVAL can also reflect an invalid namespace for either a get
or set operation on EAs.

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

21 years agoMake the footer display "FreeBSD 5.1".
Ruslan Ermilov [Thu, 5 Jun 2003 13:18:43 +0000 (13:18 +0000)]
Make the footer display "FreeBSD 5.1".

21 years agoRename local variables to not mask global names of same name. This
Mark Murray [Thu, 5 Jun 2003 13:17:32 +0000 (13:17 +0000)]
Rename local variables to not mask global names of same name. This
fixes lots of lint(1) warnings.

21 years agoDo not dribble zero bytes into the output, by replacing an obfuscated if
Tony Finch [Thu, 5 Jun 2003 12:10:19 +0000 (12:10 +0000)]
Do not dribble zero bytes into the output, by replacing an obfuscated if
whose true and false clauses were equivalent with a check that we are
not about to stumble off the end of the line.

Reported by: peter
Pointy hat to: fanf

21 years agoProtect read-modify-write increment of f_count field with file lock.
Jeffrey Hsu [Thu, 5 Jun 2003 06:05:57 +0000 (06:05 +0000)]
Protect read-modify-write increment of f_count field with file lock.

21 years agoImplement ffs_listextattr() by breaking out that logic and special-cased
Robert Watson [Thu, 5 Jun 2003 05:57:39 +0000 (05:57 +0000)]
Implement ffs_listextattr() by breaking out that logic and special-cased
attribute name of "" from ffs_getextattr().  Invoking VOP_GETETATTR()
with an empty name is now no longer supported; user application
compatibility is provided by a system call level compatibility
wrapper.  We make sure to explicitly reject attempts to set an EA
with the name "".

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

21 years agoIf a system call comes in requesting to retrieve an attribute named
Robert Watson [Thu, 5 Jun 2003 05:55:34 +0000 (05:55 +0000)]
If a system call comes in requesting to retrieve an attribute named
"", temporarily map it to a call to extattr_list_vp() to provide
compatibility for older applications using the "" API to retrieve
EA lists.

Use VOP_LISTEXTATTR() to support extattr_list_vp() rather than
VOP_GETEXTATTR(..., "", ...).

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

21 years agoAdd vop_listextattr(), similar to vop_getextattr() but without a
Robert Watson [Thu, 5 Jun 2003 05:53:35 +0000 (05:53 +0000)]
Add vop_listextattr(), similar to vop_getextattr() but without a
specific attribute name.  It will have the same semantics as the
older vop_getextattr() "retrieve the names" hack, returning
a buffer with ASCII nul-seperated names.

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

21 years agoFollow the trend of moving MAINTAINER lines from Makefile into
Ollivier Robert [Thu, 5 Jun 2003 05:03:01 +0000 (05:03 +0000)]
Follow the trend of moving MAINTAINER lines from Makefile into
src/MAINTAINERS.

21 years agoDon't special-case handling of the empty string in the UFS1
Robert Watson [Thu, 5 Jun 2003 04:58:58 +0000 (04:58 +0000)]
Don't special-case handling of the empty string in the UFS1
extended attribute retrieval code: it's no longer special-cased,
and is caught by the normal UFS1 EA validity checks (and, in
fact, returns the same error, EINVAL).

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

21 years agoUpdate lsextattr(8) to use the new extattr_list_*() APIs, rather than
Robert Watson [Thu, 5 Jun 2003 04:30:00 +0000 (04:30 +0000)]
Update lsextattr(8) to use the new extattr_list_*() APIs, rather than
using the somewhat more hackish variant on extattr_get_*() to retrieve
the attribute list on an object.

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

21 years agofix typo (how did this get committed?)
Sam Leffler [Wed, 4 Jun 2003 23:12:32 +0000 (23:12 +0000)]
fix typo (how did this get committed?)

21 years agoChange the second (and last) argument of cpu_set_upcall(). Previously
Marcel Moolenaar [Wed, 4 Jun 2003 22:46:27 +0000 (22:46 +0000)]
Change the second (and last) argument of cpu_set_upcall(). Previously
we were passing in a void* representing the PCB of the parent thread.
Now we pass a pointer to the parent thread itself.
The prime reason for this change is to allow cpu_set_upcall() to copy
(parts of) the trapframe instead of having it done in MI code in each
caller of cpu_set_upcall(). Copying the trapframe cannot always be
done with a simply bcopy() or may not always be optimal that way. On
ia64 specifically the trapframe contains information that is specific
to an entry into the kernel and can only be used by the corresponding
exit from the kernel. A trapframe copied verbatim from another frame
is in most cases useless without some additional normalization.

Note that this change removes the assignment to td->td_frame in some
implementations of cpu_set_upcall(). The assignment is redundant.
A previous call to cpu_thread_setup() already did the exact same
assignment. An added benefit of removing the redundant assignment is
that we can now change td_pcb without nasty side-effects.

This change officially marks the ability on ia64 for 1:1 threading.

Not tested on: amd64, powerpc
Compile & boot tested on: alpha, sparc64
Functionally tested on: i386, ia64

21 years agoTARGET_ARCH == amd64 also has /boot/mbr.
Peter Wemm [Wed, 4 Jun 2003 22:24:43 +0000 (22:24 +0000)]
TARGET_ARCH == amd64 also has /boot/mbr.

21 years agoFix the dreaded double counting that was present on alpha as well and
Marcel Moolenaar [Wed, 4 Jun 2003 21:56:10 +0000 (21:56 +0000)]
Fix the dreaded double counting that was present on alpha as well and
got fixed two weeks after the ia64 version was copied from the alpha
version (see rev 1.32 of sys/alpha/alpha/mem.c). As such, we were
missing the same continue as on alpha.

While here, add a default case for the device minor switch and do
some general style(9) cleanups.

WARNING: this file still has bugs. When reading from region 6 or
region 7, we don't validate the physical address. One can trivially
cause a machine check by trying to read from address 0xFFFFFFFFFFFFFFF0
or something that uses the unimplemented physical address bits.

Reported by: Alan Robinson <alan.robinson@fujitsu-siemens.com>

21 years agoChange the second (and last) argument of cpu_set_upcall(). Previously
Marcel Moolenaar [Wed, 4 Jun 2003 21:13:21 +0000 (21:13 +0000)]
Change the second (and last) argument of cpu_set_upcall(). Previously
we were passing in a void* representing the PCB of the parent thread.
Now we pass a pointer to the parent thread itself.
The prime reason for this change is to allow cpu_set_upcall() to copy
(parts of) the trapframe instead of having it done in MI code in each
caller of cpu_set_upcall(). Copying the trapframe cannot always be
done with a simply bcopy() or may not always be optimal that way. On
ia64 specifically the trapframe contains information that is specific
to an entry into the kernel and can only be used by the corresponding
exit from the kernel. A trapframe copied verbatim from another frame
is in most cases useless without some additional normalization.

Note that this change removes the assignment to td->td_frame in some
implementations of cpu_set_upcall(). The assignment is redundant.
A previous call to cpu_thread_setup() already did the exact same
assignment. An added benefit of removing the redundant assignment is
that we can now change td_pcb without nasty side-effects.

This change officially marks the ability on ia64 for 1:1 threading.

Not tested on: amd64, powerpc
Compile & boot tested on: alpha, sparc64
Functionally tested on: i386, ia64

21 years agoBatton down the hatches!!!
John Baldwin [Wed, 4 Jun 2003 21:10:15 +0000 (21:10 +0000)]
Batton down the hatches!!!

Always route PCI interrupts on i386 UP machines.  I was planning to enable
this for i386 anyways once SMP support is done.  Having this enabled fixes
problems on many people's laptops.

Requested by: imp

21 years ago - Add further vm object locking to vm_object_deallocate(), specifically,
Alan Cox [Wed, 4 Jun 2003 21:07:42 +0000 (21:07 +0000)]
 - Add further vm object locking to vm_object_deallocate(), specifically,
   for accessing a vm object's shadows.

21 years agoMake this compile without warnings on 64-bit architectures:
Marcel Moolenaar [Wed, 4 Jun 2003 20:38:54 +0000 (20:38 +0000)]
Make this compile without warnings on 64-bit architectures:
Don't cast thread_self() to int. Cast to uintptr_t. Pull in the
predefined printf format from <inttypes.h>

21 years agoMake this compile without warnings on 64-bit architectures:
Marcel Moolenaar [Wed, 4 Jun 2003 20:36:08 +0000 (20:36 +0000)]
Make this compile without warnings on 64-bit architectures:
In recurse(), cast the pointer difference to int to match the format.
The difference is expected to fit in an int.

21 years ago - Add VM_OBJECT_TRYLOCK().
Alan Cox [Wed, 4 Jun 2003 19:59:23 +0000 (19:59 +0000)]
 - Add VM_OBJECT_TRYLOCK().

21 years agoGRRR. Do not force Dangerously Dedicated mode on amd64 when you select
Peter Wemm [Wed, 4 Jun 2003 19:28:39 +0000 (19:28 +0000)]
GRRR.  Do not force Dangerously Dedicated mode on amd64 when you select
'use entire disk'.  Neither for ia64 while I'm here - it needs a MBR if
its going to use fdisk+disklabel.  The ia64 case is mostly academic though
because you'd be creating two partitions (dos + freebsd) rather than
a single freebsd-only partition.

21 years agoCorrect a spelling error.
Ceri Davies [Wed, 4 Jun 2003 19:24:24 +0000 (19:24 +0000)]
Correct a spelling error.

21 years agoIntroduce g_provider_by_name() function, and use it.
Poul-Henning Kamp [Wed, 4 Jun 2003 18:17:52 +0000 (18:17 +0000)]
Introduce g_provider_by_name() function, and use it.

21 years agoMake this a true GEOM class:
Poul-Henning Kamp [Wed, 4 Jun 2003 18:16:09 +0000 (18:16 +0000)]
Make this a true GEOM class:
        Attach to the component devices using GEOM semantics.
        Create a GEOM provider instead of using disk_create()
        Use the GEOM OAM api for configuration.

I saw approx ~1% speedup in througput and ~7% in latency in a
simple minded test of a two-disk striped device.

This file was repo-copied from src/sys/dev/ccd/ccd.c.

This is not yet linked into the build.

21 years agodetach RNG test facility on device detach
Sam Leffler [Wed, 4 Jun 2003 17:58:20 +0000 (17:58 +0000)]
detach RNG test facility on device detach

21 years agoremove bogon (undefined struct decl)
Sam Leffler [Wed, 4 Jun 2003 17:57:52 +0000 (17:57 +0000)]
remove bogon (undefined struct decl)

21 years agoAdd a KASSERT to prevent the same GEOM class from being processed loaded
Poul-Henning Kamp [Wed, 4 Jun 2003 17:51:10 +0000 (17:51 +0000)]
Add a KASSERT to prevent the same GEOM class from being processed loaded
twice.

Enforce that classes should have different names while we are here.

21 years agoDrop this MAINTAINER bit. I'll reclaim an "Advisory Maintainership"
Mark Murray [Wed, 4 Jun 2003 16:10:20 +0000 (16:10 +0000)]
Drop this MAINTAINER bit. I'll reclaim an "Advisory Maintainership"
for this area later.

21 years agoRemove this maintainer bit. Another version will be added a
Mark Murray [Wed, 4 Jun 2003 16:05:38 +0000 (16:05 +0000)]
Remove this maintainer bit. Another version will be added a
bit later.

21 years agoDrop stale maintainer bits.
Mark Murray [Wed, 4 Jun 2003 16:02:17 +0000 (16:02 +0000)]
Drop stale maintainer bits.

21 years agoDrop stale MAINTAINER bit.
Mark Murray [Wed, 4 Jun 2003 16:01:37 +0000 (16:01 +0000)]
Drop stale MAINTAINER bit.

21 years agoDrop MAINTAINER Bit. Not needed any more.
Mark Murray [Wed, 4 Jun 2003 15:59:13 +0000 (15:59 +0000)]
Drop MAINTAINER Bit. Not needed any more.

21 years agoDrop MAINTAINER bits from here.
Mark Murray [Wed, 4 Jun 2003 15:58:03 +0000 (15:58 +0000)]
Drop MAINTAINER bits from here.

21 years agoMake the internal statistics sysctl an array of integers rather than a string.
Hartmut Brandt [Wed, 4 Jun 2003 15:38:32 +0000 (15:38 +0000)]
Make the internal statistics sysctl an array of integers rather than a string.
While a string is readable without a tool, an array is easier to process for
a monitoring application. This also prevents the extra hoops we need with
sbufs and locking.

Move the mtx_init() in en_attach() higher before the first failure point so
that we can unconditionally destroy it in en_destroy().

21 years agoUpdate some library names. Libraries come, libraries go.
Mark Murray [Wed, 4 Jun 2003 15:36:57 +0000 (15:36 +0000)]
Update some library names. Libraries come, libraries go.

21 years agoFix substitution when the regex matches the zero-length string.
Tony Finch [Wed, 4 Jun 2003 15:31:55 +0000 (15:31 +0000)]
Fix substitution when the regex matches the zero-length string.
There are two bugs: in the s///g case, the substitution didn't occur
at the end of the line; in the s///N case, the code didn't count
forwards along the line properly. See the sg, s3, s4, and s5 tests
in src/tools/regression/usr.bin/sed/.

Reviewed by: tjr

21 years agoI'm now happy that this is no longer needed. Libcrypto has
Mark Murray [Wed, 4 Jun 2003 15:26:34 +0000 (15:26 +0000)]
I'm now happy that this is no longer needed. Libcrypto has
all its functionality, and all its consumers have been converted.

21 years agoAdd tests for the behaviour of substitution when the regex can match
Tony Finch [Wed, 4 Jun 2003 15:26:23 +0000 (15:26 +0000)]
Add tests for the behaviour of substitution when the regex can match
a zero-length string. This shows bugs in the s///g and s///2+ cases.

21 years agoOnly init _thread_sigact once, needn't init it again after a fork().
David Xu [Wed, 4 Jun 2003 12:40:21 +0000 (12:40 +0000)]
Only init _thread_sigact once, needn't init it again after a fork().

Obtained from: deischen

21 years agoDespite whether threaded mode is turned on, always save thread's
David Xu [Wed, 4 Jun 2003 12:38:21 +0000 (12:38 +0000)]
Despite whether threaded mode is turned on, always save thread's
signal mask.

21 years agoRemoved garbage:
Bruce Evans [Wed, 4 Jun 2003 11:21:18 +0000 (11:21 +0000)]
Removed garbage:
- -elf in CFLAGS had no effect except to reduce portability.
- -elf in LDFLAGS had even less effect, since LDFLAGS is not used.
- -Wall in CFLAGS had no effect except to reduce portability and break
  overriding of WARNS, since the setting of WARNS implies -Wall.

21 years agoMove unifdef to the original section of the file.
Tony Finch [Wed, 4 Jun 2003 10:04:12 +0000 (10:04 +0000)]
Move unifdef to the original section of the file.

21 years agoCompensate for decreasing the minimum retransmit timeout.
Jeffrey Hsu [Wed, 4 Jun 2003 10:03:55 +0000 (10:03 +0000)]
Compensate for decreasing the minimum retransmit timeout.

Reviewed by: jlemon

21 years agoMAINTAINER line moved to MAINTAINERS file.
Tony Finch [Wed, 4 Jun 2003 10:01:10 +0000 (10:01 +0000)]
MAINTAINER line moved to MAINTAINERS file.

21 years agoCopy the (normalized) MAINTAINER= entries from Makefile's and other sources,
Doug Barton [Wed, 4 Jun 2003 09:55:26 +0000 (09:55 +0000)]
Copy the (normalized) MAINTAINER= entries from Makefile's and other sources,
and suggest consolidating them into this file instead.

21 years agoRemove MAINTAINER line in favor of the entry in src/MAINTAINERS
Doug Barton [Wed, 4 Jun 2003 09:38:04 +0000 (09:38 +0000)]
Remove MAINTAINER line in favor of the entry in src/MAINTAINERS

21 years agoMake C applications statically compiled with libthr work. Previously,
Mike Makonnen [Wed, 4 Jun 2003 08:23:05 +0000 (08:23 +0000)]
Make C applications statically compiled with libthr work. Previously,
an application compiled -static with libthr would dump core in
malloc(3) because the stub thread initialization routine in libc would
be used instead of the libthr supplied one.

21 years agoIf the library is not able to create a thread because resources
Mike Makonnen [Wed, 4 Jun 2003 08:16:32 +0000 (08:16 +0000)]
If the library is not able to create a thread because resources
don't allow it at the moment, the correct thing to do is try again.
Otherwise, libthr would fail this test because it doesn't allow
an unlimited number of concurrent threads per application.

21 years ago - Add vm object locking to vm_object_deallocate(). (Still more
Alan Cox [Wed, 4 Jun 2003 06:00:55 +0000 (06:00 +0000)]
 - Add vm object locking to vm_object_deallocate().  (Still more
   changes are required.)
 - Remove special-case macros for kmem object locking.  They are
   no longer used.

21 years agoSet CSTD to gnu99. We can only use on of the gnu?9 C languages.
David E. O'Brien [Wed, 4 Jun 2003 05:42:04 +0000 (05:42 +0000)]
Set CSTD to gnu99. We can only use on of the gnu?9 C languages.
We can't use c89 due to use of 'inline', and c99 produces bad code.

21 years agoAdd instrumentation which tells us how much work softclock() does
Poul-Henning Kamp [Wed, 4 Jun 2003 05:25:58 +0000 (05:25 +0000)]
Add instrumentation which tells us how much work softclock() does
per invocation.

21 years agoGive ia64 the exact same semantics as i386 with respect to non-512
Poul-Henning Kamp [Wed, 4 Jun 2003 05:25:04 +0000 (05:25 +0000)]
Give ia64 the exact same semantics as i386 with respect to non-512
byte sector devices.

21 years agoHave the port readmes follow the same logic as buildworld. We skip
Marcel Moolenaar [Wed, 4 Jun 2003 05:17:18 +0000 (05:17 +0000)]
Have the port readmes follow the same logic as buildworld. We skip
doing make readmes if /tmp/.skip_ports exists. This file is created
after a complete run, which avoids that we do the lengthy operation
again for a rerelease.
When NOPORTS or NOPORTREADMES are defined, we create the file prior
to starting the release.

21 years agoAdd id for TI's 1394b link chip.
Hidetoshi Shimokawa [Wed, 4 Jun 2003 04:26:14 +0000 (04:26 +0000)]
Add id for TI's 1394b link chip.

21 years agoUserspace prototypes for the extattr_list_*() system calls.
Robert Watson [Wed, 4 Jun 2003 04:04:24 +0000 (04:04 +0000)]
Userspace prototypes for the extattr_list_*() system calls.

21 years agoDocument the BUG (feature) that you can pass in an empty name to
Robert Watson [Wed, 4 Jun 2003 04:03:58 +0000 (04:03 +0000)]
Document the BUG (feature) that you can pass in an empty name to
VOP_GETEXTATTR() to retrieve the attribute name list on some file
systems, and note that this will be replaced with its own VOP
in due course.

Pointed out by: Dominic Giampaolo <dbg@apple.com>

21 years agoThe vnode operations for extended attributes no longer suffer from
Robert Watson [Wed, 4 Jun 2003 04:01:44 +0000 (04:01 +0000)]
The vnode operations for extended attributes no longer suffer from
the features (bugs) in the BUGS section related to querying the
required buffer size, or telling if an overflow occured.

21 years agoDocument the new explicit listing API for extended attributes; note
Robert Watson [Wed, 4 Jun 2003 04:00:26 +0000 (04:00 +0000)]
Document the new explicit listing API for extended attributes; note
that the old API (passing "" as the attribute name to the _get_
interface) is now deprecated (and was probably a bad idea).

Pointed out by: Dominic Giampaolo <dbg@apple.com>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoImplementations of extattr_list_fd(), extattr_list_file(), and
Robert Watson [Wed, 4 Jun 2003 03:57:28 +0000 (03:57 +0000)]
Implementations of extattr_list_fd(), extattr_list_file(), and
extattr_list_link() system calls, which return a least of extended
attributes defined for a vnode referenced by a file descriptor
or path name.  Currently, we just invoke VOP_GETEXTATTR() since
it will convert a request for an empty name into a query for a
name list, which was the old (more hackish) API.  At some point
in the near future, we'll push the distinction between get and
list down to the vnode operation layer, but this provides access
to the new API for applications in the short term.

Pointed out by: Dominic Giampaolo <dbg@apple.com>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRegen from syscalls.master:1.149, addition of extended attribute
Robert Watson [Wed, 4 Jun 2003 03:50:20 +0000 (03:50 +0000)]
Regen from syscalls.master:1.149, addition of extended attribute
list system calls for fd, file, link.

21 years agoAdd system calls to explicitly list extended attributes on a
Robert Watson [Wed, 4 Jun 2003 03:49:31 +0000 (03:49 +0000)]
Add system calls to explicitly list extended attributes on a
file/directory/link, rather than using a less explicit hack on
the extattr retrieval API:

  extattr_list_fd()
  extattr_list_file()
  extattr_list_link()

The existing API was counter-intuitive, and poorly documented.
The prototypes for these system calls are identical to
extattr_get_*(), but without a specific attribute name to
leave NULL.

Pointed out by: Dominic Giampaolo <dbg@apple.com>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoKMF_DONE is now in /sys/sys/kse.h, no longer need to define it here.
David Xu [Wed, 4 Jun 2003 03:22:59 +0000 (03:22 +0000)]
KMF_DONE is now in /sys/sys/kse.h, no longer need to define it here.

21 years agoFix ALIGNED_POINTER(). sizeof((u_int32_t)) is not legal C.
Peter Wemm [Wed, 4 Jun 2003 02:15:13 +0000 (02:15 +0000)]
Fix ALIGNED_POINTER().  sizeof((u_int32_t)) is not legal C.

21 years agoUnbreak ia64. 'nuff said.
Marcel Moolenaar [Wed, 4 Jun 2003 02:01:05 +0000 (02:01 +0000)]
Unbreak ia64. 'nuff said.

21 years agoChange handling to support strong alignment architectures such as alpha and
Bernd Walter [Wed, 4 Jun 2003 01:17:37 +0000 (01:17 +0000)]
Change handling to support strong alignment architectures such as alpha and
sparc64.

PR: alpha/50658
Submitted by: rizzo
Tested on: alpha

21 years agoAssert the vnode lock when returning successfully from vn_open_cred().
Robert Watson [Wed, 4 Jun 2003 00:54:27 +0000 (00:54 +0000)]
Assert the vnode lock when returning successfully from vn_open_cred().

21 years agoRemove un-needed code.
Julian Elischer [Wed, 4 Jun 2003 00:12:57 +0000 (00:12 +0000)]
Remove un-needed code.
Don't copyin() data we are about to overwrite.
Add a flag to tell userland that KSE is officially "DONE" with the
mailbox and has gone away.

Obtained from: davidxu@