]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoFixed "make checkdpadd".
ru [Wed, 2 Jul 2003 23:38:42 +0000 (23:38 +0000)]
Fixed "make checkdpadd".

OK'ed by: markm

21 years agoMerge the following from the English version and some translation fixes:
hrs [Wed, 2 Jul 2003 21:04:48 +0000 (21:04 +0000)]
Merge the following from the English version and some translation fixes:

1.41  -> 1.43  errata/article.sgml

21 years agoStyle.
ru [Wed, 2 Jul 2003 20:52:39 +0000 (20:52 +0000)]
Style.

21 years agoTake thr_support.c out of SRCS so that it does not end up in libraries.
ru [Wed, 2 Jul 2003 20:51:30 +0000 (20:51 +0000)]
Take thr_support.c out of SRCS so that it does not end up in libraries.
Record the missing dependency of thr_libc.So on the libc_pic.a library.

OK'ed by: kan

21 years agoMore NO_RESCUE to RESCUE transitions.
gordon [Wed, 2 Jul 2003 19:26:19 +0000 (19:26 +0000)]
More NO_RESCUE to RESCUE transitions.

Submitted by: ru

21 years agoFix a grammar bogon.
schweikh [Wed, 2 Jul 2003 18:29:22 +0000 (18:29 +0000)]
Fix a grammar bogon.

21 years agoDon't trust sys.mk,v 1.61 commit log, and make .asm alias for .S.
ru [Wed, 2 Jul 2003 17:03:28 +0000 (17:03 +0000)]
Don't trust sys.mk,v 1.61 commit log, and make .asm alias for .S.

21 years agoCorrect paths to mount sources.
gordon [Wed, 2 Jul 2003 16:43:14 +0000 (16:43 +0000)]
Correct paths to mount sources.

21 years agoThe .s files do not have to be preprocessed with cpp(1).
ru [Wed, 2 Jul 2003 16:43:07 +0000 (16:43 +0000)]
The .s files do not have to be preprocessed with cpp(1).

21 years agoRemove smbfs, portalfs, and nwfs from sbin. The sources live in usr.sbin
gordon [Wed, 2 Jul 2003 16:22:43 +0000 (16:22 +0000)]
Remove smbfs, portalfs, and nwfs from sbin. The sources live in usr.sbin
now.

21 years agoMove mount_portalfs, mount_smbfs, and mount_nwfs from sbin to usr.sbin.
gordon [Wed, 2 Jul 2003 16:16:49 +0000 (16:16 +0000)]
Move mount_portalfs, mount_smbfs, and mount_nwfs from sbin to usr.sbin.
They don't have alot of reason to be in sbin and contribute to library
bloat in the dynamic case. If you are using any of these filesystem
type to hold your /usr, please seek professional help.

The actual code was repo-copied by joe.

21 years ago- Add comments about the maintenance of the per-thread list of contested
jhb [Wed, 2 Jul 2003 16:14:09 +0000 (16:14 +0000)]
- Add comments about the maintenance of the per-thread list of contested
  locks held by each thread.
- Fix a bug in the original BSD/OS code where a contested lock was not
  properly handed off from the old thread to the new thread when a
  contested lock with more than one blocked thread was transferred from
  one thread to another.
- Don't use an atomic operation to write the MTX_CONTESTED value to
  mtx_lock in the aforementioned special case.  The memory barriers and
  exclusion provided by sched_lock are sufficient.

Spotted by: alc (2)

21 years ago- Use the new resource_disabled() helper function to see if devices are
jhb [Wed, 2 Jul 2003 16:09:02 +0000 (16:09 +0000)]
- Use the new resource_disabled() helper function to see if devices are
  disabled.
- Change the apm driver to match the acpi driver's behavior by checking to
  see if the device is disabled in the identify routine instead of in the
  probe routine.  This way if the device is disabled it is never created.

Note that a few places (ips(4), Alpha SMP) used "disable" instead of
"disabled" for their hint names, and these hints must be changed to
"disabled".  If this is a big problem, resource_disabled() can always be
changed to honor both names.

21 years agoAdd a resource_disabled() helper function that returns true (non-zero) if
jhb [Wed, 2 Jul 2003 16:01:38 +0000 (16:01 +0000)]
Add a resource_disabled() helper function that returns true (non-zero) if
a specified resource has been disabled via a non-zero 'disabled' hint and
false otherwise.

21 years agoSet unlock_mutex to 1 after locked mutex.
davidxu [Wed, 2 Jul 2003 14:12:37 +0000 (14:12 +0000)]
Set unlock_mutex to 1 after locked mutex.
Use THR_CONDQ_CLEAR not THR_COND_SET in cond_queue_deq, current
cond_queue_deq is not used.

21 years agoMake the bus_dma_tag_create use NULL for the lock arguments. We are
harti [Wed, 2 Jul 2003 13:53:41 +0000 (13:53 +0000)]
Make the bus_dma_tag_create use NULL for the lock arguments. We are
careful to call all map_load calls with BUS_DMA_NOWAIT because we
really don't want some PDUs to wait while others go out - ATM guarantees
the ordering of cells and also of PDUs (within one VC, that is). With
BUS_DMA_NOWAIT bus_dmamap_load should never return EINPROGRESS.

Make the tag used for transmission buffers one larger than the maximum
AAL5 PDU (65535). This is needed, because all PDU sizes need to be round
up to multiple of four for the card and PDUs that are just below the
maximum size will be rounded up to 65536

21 years agoMake libc/${MACHINE_ARCH} include directory not required by Alpha.
ru [Wed, 2 Jul 2003 13:27:54 +0000 (13:27 +0000)]
Make libc/${MACHINE_ARCH} include directory not required by Alpha.

Submitted by: bde
Tested by: beast

21 years agoFix typo.
davidxu [Wed, 2 Jul 2003 13:23:03 +0000 (13:23 +0000)]
Fix typo.

21 years agoThe .s files were repo-copied to .S files.
ru [Wed, 2 Jul 2003 12:57:07 +0000 (12:57 +0000)]
The .s files were repo-copied to .S files.

Approved by: marcel
Repocopied by: joe

21 years agoRevert non-style part of the recent two deltas that dealt with
ru [Wed, 2 Jul 2003 12:45:45 +0000 (12:45 +0000)]
Revert non-style part of the recent two deltas that dealt with
using as(1) to compile plain assembler source files; bsd.lib.mk
has been fixed (in revision 1.147).

21 years agoRevert to using as(1) to compile plain assembler source files.
ru [Wed, 2 Jul 2003 12:41:04 +0000 (12:41 +0000)]
Revert to using as(1) to compile plain assembler source files.
All .s files that need cpp(1) processing (see gcc(1) manpage's
DESCRIPTION section) have been repo-copied to .S files.  This
is mostly to bring bsd.lib.mk in agreement with sys.mk.

Desired by: obrien

21 years agosys/ia64/ia64/pal.s has been repocopied to pal.S.
ru [Wed, 2 Jul 2003 11:53:55 +0000 (11:53 +0000)]
sys/ia64/ia64/pal.s has been repocopied to pal.S.

Approved by: marcel
Repocopied by: joe

21 years agoAllow VPI/VCI 0/0 to be opened. This will be used by the IDT77252 driver
harti [Wed, 2 Jul 2003 11:52:46 +0000 (11:52 +0000)]
Allow VPI/VCI 0/0 to be opened. This will be used by the IDT77252 driver
to provide a "receive all cells" mode that can be used for monitoring.

Check only the relevant MTU size when NOTX or NORX flags are set.

21 years agopal_stub.s has been repo-copied to pal_stub.S.
ru [Wed, 2 Jul 2003 11:47:33 +0000 (11:47 +0000)]
pal_stub.s has been repo-copied to pal_stub.S.

Approved by: marcel
Repocopied by: joe

21 years agoUpdate the SATA support code to work more correctly with
sos [Wed, 2 Jul 2003 10:50:44 +0000 (10:50 +0000)]
Update the SATA support code to work more correctly with
real SATA disks now that I can test it.

Add support for the SiI 3112 SATA chip using memory mapped I/O.
Update the support for the SiI 0680 to use the memio interface as well.

Sponsored by: David Leimbach <leimy2k@mac.com> (3112 based controller)
Sponsored by: FreeBSD Systems (www.FreeBSDsystems.com) (SATA disks)

21 years agoThis commit was generated by cvs2svn to compensate for changes in r117153,
ru [Wed, 2 Jul 2003 09:43:53 +0000 (09:43 +0000)]
This commit was generated by cvs2svn to compensate for changes in r117153,
which included commits to RCS files with non-trunk default branches.

21 years agoFrom ChangeLog:
ru [Wed, 2 Jul 2003 09:43:53 +0000 (09:43 +0000)]
From ChangeLog:

: 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
:         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.

This fixes warnings in some legacy roff documents.

Prodded by: bde

21 years agoChange idle sleep indentifier to "-" for nfsiod
phk [Wed, 2 Jul 2003 08:09:20 +0000 (08:09 +0000)]
Change idle sleep indentifier to "-" for nfsiod

21 years agoChange idle state sleep identifier to "-" for nfsd.
phk [Wed, 2 Jul 2003 08:08:32 +0000 (08:08 +0000)]
Change idle state sleep identifier to "-" for nfsd.

21 years agoOnly dump 512 bytes of debugging.
phk [Wed, 2 Jul 2003 08:07:07 +0000 (08:07 +0000)]
Only dump 512 bytes of debugging.

Always wait for things to settle before returning.

21 years agoChange the sleep identifier to "-" where random normally sleeps.
phk [Wed, 2 Jul 2003 08:04:57 +0000 (08:04 +0000)]
Change the sleep identifier to "-" where random normally sleeps.

21 years agotypo fix in comment.
phk [Wed, 2 Jul 2003 08:01:52 +0000 (08:01 +0000)]
typo fix in comment.

21 years agoWhen size is 1 should just null terminate the string. The dummy variable
jkh [Wed, 2 Jul 2003 07:08:44 +0000 (07:08 +0000)]
When size is 1 should just null terminate the string.  The dummy variable
is made an array of two, to explicitly avoid stack corruption due to
null-terminating (which is doesn't actually happen due to stack alignment
padding).

Submitted by: Ed Moy <emoy@apple.com>
Obtained from: Apple Computer, Inc.

21 years agoBegin making libthr async signal safe.
mtm [Wed, 2 Jul 2003 02:05:23 +0000 (02:05 +0000)]
Begin making libthr async signal safe.

Create a private, single underscore, version of pthread_mutex_unlock for libc.
pthread_mutex_lock already has one. These versions are different from the
ones that applications will link against because they block all signals
from the time a call to lock the mutex is made until it is successfully
unlocked.

21 years agolibc/${MACHINE_ARCH} include directory is required by Alpha,
kan [Wed, 2 Jul 2003 01:52:06 +0000 (01:52 +0000)]
libc/${MACHINE_ARCH} include directory is required by Alpha,
add it to CFLAGS.

21 years agoFix a few style(9) nits.
mux [Wed, 2 Jul 2003 01:47:47 +0000 (01:47 +0000)]
Fix a few style(9) nits.

21 years agoThe use of SYSINIT requires the inclusion of <sys/kernel.h>
marcel [Wed, 2 Jul 2003 01:22:29 +0000 (01:22 +0000)]
The use of SYSINIT requires the inclusion of <sys/kernel.h>

21 years agoAllow SA process unblocks a thread blocked in condition variable.
davidxu [Wed, 2 Jul 2003 01:19:15 +0000 (01:19 +0000)]
Allow SA process unblocks a thread blocked in condition variable.

Reviewed by: deischen

21 years agoSwitch the logic on the /rescue bits from NO_RESCUE to RESCUE, at least
gordon [Tue, 1 Jul 2003 23:10:39 +0000 (23:10 +0000)]
Switch the logic on the /rescue bits from NO_RESCUE to RESCUE, at least
until there is a fix for cross building available.

21 years agoMake this even closer to other busdma backends.
mux [Tue, 1 Jul 2003 21:21:45 +0000 (21:21 +0000)]
Make this even closer to other busdma backends.

21 years agoOops, add back a free() call that I mistakenly removed in
mux [Tue, 1 Jul 2003 21:20:51 +0000 (21:20 +0000)]
Oops, add back a free() call that I mistakenly removed in
my last commit.

21 years agoMake the sysctlbyname stuff look like the 2-level MIB stuff. This
jmallett [Tue, 1 Jul 2003 20:15:28 +0000 (20:15 +0000)]
Make the sysctlbyname stuff look like the 2-level MIB stuff.  This
means actually setting 'len', for example.  Which will make uname -i
work on some systems where it did not.  Anywhere where it did work,
it was a matter of coincidence.

Submitted by: redpixel on EFnet.

21 years agoSync more things with other backends.
mux [Tue, 1 Jul 2003 19:16:48 +0000 (19:16 +0000)]
Sync more things with other backends.

21 years agoSync with i386's busdma backend. This fixes a few bugs and adds
mux [Tue, 1 Jul 2003 19:02:26 +0000 (19:02 +0000)]
Sync with i386's busdma backend.  This fixes a few bugs and adds
support for the BUS_DMA_NOWAIT flag in bus_dmamap_load().

21 years agoSync bounce pages support with the alpha backend. More precisely:
mux [Tue, 1 Jul 2003 18:08:05 +0000 (18:08 +0000)]
Sync bounce pages support with the alpha backend.  More precisely:
o use a mutex to protect the bounce pages structure.
o use a SYSINIT function to initialize the bounce pages structures
  and thus avoid a race condition in alloc_bounce_pages().
o add support for the BUS_DMA_NOWAIT flag in bus_dmamap_load().
o remove obsolete splhigh()/splx() calls.
o remove printf() about incorrect locking in busdma_swi() and sync
  busdma_swi() with the one of the alpha backend.
o use __FBSDID.

21 years agoAdd a new mount flag MNT_BYFSID that can be used to unmount a file
iedowse [Tue, 1 Jul 2003 17:40:23 +0000 (17:40 +0000)]
Add a new mount flag MNT_BYFSID that can be used to unmount a file
system by specifying the file system ID instead of a path. Use this
by default in umount(8). This avoids the need to perform any vnode
operations to look up the mount point, so it makes it possible to
unmount a file system whose root vnode cannot be looked up (e.g.
due to a dead NFS server, or a file system that has become detached
from the hierarchy because an underlying file system was unmounted).
It also provides an unambiguous way to specify which file system is
to be unmunted.

Since the ability to unmount using a path name is retained only for
compatibility, that case now just uses a simple string comparison
of the supplied path against f_mntonname of each mounted file system.

Discussed on: freebsd-arch
mdoc help from: ru

21 years agobfd_elf32_i386_freebsd_vec is the only 32-bit vector we really need.
obrien [Tue, 1 Jul 2003 17:29:48 +0000 (17:29 +0000)]
bfd_elf32_i386_freebsd_vec is the only 32-bit vector we really need.
ar and nm aren't very smart when faced with multiple applicable vectors.

21 years agoAdd elf_i386_fbsd emulation.
obrien [Tue, 1 Jul 2003 17:12:55 +0000 (17:12 +0000)]
Add elf_i386_fbsd emulation.

Obtained from: p4

21 years agoHonor the boundary of the busdma tag when allocating bounce pages.
mux [Tue, 1 Jul 2003 16:54:54 +0000 (16:54 +0000)]
Honor the boundary of the busdma tag when allocating bounce pages.
This was fixed in revision 1.5 of alpha/alpha/busdma_machdep.c and
was never fixed in other busdma backends using bounce pages.

21 years agoMake swi_vm be INTR_MPSAFE. On all platforms, it is only used to activate
scottl [Tue, 1 Jul 2003 16:00:38 +0000 (16:00 +0000)]
Make swi_vm be INTR_MPSAFE.  On all platforms, it is only used to activate
busdma_swi().  Now that busdma_swi() uses driver-provided locking, this
should be safe.

21 years agoDo not attempt to reque a thread on a mutex queue. It may be that
mtm [Tue, 1 Jul 2003 15:52:09 +0000 (15:52 +0000)]
Do not attempt to reque a thread on a mutex queue. It may be that
a thread receives a spurious wakeup from sigtimedwait(), so make sure
that the call to the queueing code is called only once before entering
the loop (not in the loop). This should fix some fatal errors people
are seeing with messages stating the thread is already on the mutex queue.
These errors may still be triggered from signal handlers; however, since
that part of the code is not locked down yet.

21 years agoMega busdma API commit.
scottl [Tue, 1 Jul 2003 15:52:06 +0000 (15:52 +0000)]
Mega busdma API commit.

Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma.  At the moment, this is used for the
asynchronous busdma_swi and callback mechanism.  Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg.  dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create().  The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.

sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms.  The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.

If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.

Reviewed by: tmm, gibbs

21 years agoUnbreak "make checkdpadd".
ru [Tue, 1 Jul 2003 15:37:35 +0000 (15:37 +0000)]
Unbreak "make checkdpadd".

21 years agoImprove expression evaluation debugging output, tidy up the handling of
fanf [Tue, 1 Jul 2003 15:30:43 +0000 (15:30 +0000)]
Improve expression evaluation debugging output, tidy up the handling of
EOF, and improve the commentary about backslash-newline handling.

21 years agoo strmode(3) returns void not 0.
maxim [Tue, 1 Jul 2003 15:28:05 +0000 (15:28 +0000)]
o strmode(3) returns void not 0.

PR: docs/53488
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
MFC after: 1 week

21 years agoThere's no reason to keep separate AINC knob anymore.
ru [Tue, 1 Jul 2003 15:15:45 +0000 (15:15 +0000)]
There's no reason to keep separate AINC knob anymore.
The only real use of it (lib/libc/Makefile) has been
fixed, and if necessary, the contents of AINC should
be added to CFLAGS.

Explained by: bde

21 years agoAdd a commented-out entry for OFW_NEWPCI to GENERIC and NOTES, along
tmm [Tue, 1 Jul 2003 15:13:07 +0000 (15:13 +0000)]
Add a commented-out entry for OFW_NEWPCI to GENERIC and NOTES, along
with a comment describing it's advantages and the implication of
changing it. While being there, fix a typo in NOTES.

The option is not enabled in NOTES for now since large portions of code
are conditional on it being disabled, too.

21 years agoAxe AINC.
ru [Tue, 1 Jul 2003 15:07:01 +0000 (15:07 +0000)]
Axe AINC.

Submitted by: bde

21 years agoAdd the new sparc64 OFW PCI framework, conditional on options OFW_NEWPCI
tmm [Tue, 1 Jul 2003 14:52:47 +0000 (14:52 +0000)]
Add the new sparc64 OFW PCI framework, conditional on options OFW_NEWPCI
for now. It introduces a OFW PCI bus driver and a generic OFW PCI-PCI
bridge driver. By utilizing these, the PCI handling is much more elegant
now.

The advantages of the new approach are:
- Device enumeration should hopefully be more like on Solaris now,
  so unit numbers should match what's printed on the box more
  closely.
- Real interrupt routing is implemented now, so cardbus bridges
  etc. have at least a chance to work.
- The quirk tables are gone and have been replaced by (hopefully
  sufficient) heuristics.
- Much cleaner code.

There was also a report that previously bogus interrupt assignments
are fixed now, which can be attributed to the new heuristics.

A pitfall, and the reason why this is not the default yet, is that
it changes device enumeration, as mentioned above, which can make
it necessary to change the system configuration if more than one
unit of a device type is present (on a system with two hme cars,
for example, it is possible that hme0 becomes hme1 and vice versa
after enabling the option). Systems with multiple disk controllers
may need to be booted into single user (and require manual specification
of the root file system on boot) to adjust the fstab.
Nevertheless, I would like to encourage users to use this option,
so that it can be made the default soon.

In detail, the changes are:
- Introduce an OFW PCI bus driver; it inherits most methods from the
  generic PCI bus driver, but uses the firmware for enumeration,
  performs additional initialization for devices and firmware-specific
  interrupt routing. It also implements an OFW-specific method to allow
  child devices to get their firmware nodes.
- Introduce an OFW PCI-PCI bridge driver; again, it inherits most
  of the generic PCI-PCI bridge driver; it has it's own method for
  interrupt routing, as well as some sparc64-specific methods (one to
  get the node again, and one to adjust the bridge bus range, since
  we need to reenumerate all PCI buses).
- Convert the apb driver to the new way of handling things.
- Provide a common framework for OFW bridge drivers, used be the two
  drivers above.
- Provide a small common framework for interrupt routing (for all
  bridge types).
- Convert the psycho driver to the new framework; this gets rid of a
  bunch of old kludges in pci_read_config(), and the whole
  preinitialization  (ofw_pci_init()).
- Convert the ISA MD part and the EBus driver to the new way
  interrupts and nodes are handled.
- Introduce types for firmware interrupt properties.
- Rename the old sparcbus_if to ofw_pci_if by repo copy (it is only
  required for PCI), and move it to a more correct location (new
  support methodsx were also added, and an old one was deprecated).
- Fix a bunch of minor bugs, perform some cleanups.

In some cases, I introduced some minor code duplication to keep the
new code clean, in hopes that the old code will be unifdef'ed soon.

Reviewed in part by: imp
Tested by: jake, Marius Strobl <marius@alchemy.franken.de>,
Sergey Mokryshev <mokr@mokr.net>,
Chris Jackman <cjackNOSPAM@klatsch.org>
Info on u30 firmware provided by: kris

21 years agoFixed build.
ru [Tue, 1 Jul 2003 14:46:26 +0000 (14:46 +0000)]
Fixed build.

Noticed by: bde

21 years agoAdd PnP PS/2 id for Dell Latitude X200.
mikeh [Tue, 1 Jul 2003 14:41:16 +0000 (14:41 +0000)]
Add PnP PS/2 id for Dell Latitude X200.

PR: 48516
MFC after: 2 weeks

21 years agoSome gem and hme hardware bogusly has the intpin register hardwired to
tmm [Tue, 1 Jul 2003 14:11:04 +0000 (14:11 +0000)]
Some gem and hme hardware bogusly has the intpin register hardwired to
0; detect this case and correct it. While being there, clean up nearby
comments.

21 years agoAdd a new PCI interface method, assign_interrupt, to determine the
tmm [Tue, 1 Jul 2003 14:08:33 +0000 (14:08 +0000)]
Add a new PCI interface method, assign_interrupt, to determine the
interrupt to be used for a device. This is intended solely for internal
use of PCI bus implementations, and exists so that PCI bus drivers
implementing special interrupt assignment methods which require
additional work at the bus level to work right can be easily derived
from the generic driver (or any other one) without resorting to hacks.

It will be used in the sparc64 ofw_pcibus driver, which will be
committed shortly.

Make use of this method in the generic implementation, and add it to
the method table of bus drivers derived from the PCI one.

Reviewed by: imp, -hackers

21 years agoDon't build separate annotate.info, it's already part of gdb.info.
ru [Tue, 1 Jul 2003 14:04:08 +0000 (14:04 +0000)]
Don't build separate annotate.info, it's already part of gdb.info.

21 years agoAllow to write the intpin ivar using the pci_set_intpin() accessor. There
tmm [Tue, 1 Jul 2003 13:54:10 +0000 (13:54 +0000)]
Allow to write the intpin ivar using the pci_set_intpin() accessor. There
are some Sun PCI devices around which bogusly set intpin to 0, although
they use the intline mechanism; this allows the device driver to correct
that.

Reviewed by: imp

21 years agoPut rescue/ into a correct slot in the SUBDIR list. Sort bootstrap-,
ru [Tue, 1 Jul 2003 12:57:53 +0000 (12:57 +0000)]
Put rescue/ into a correct slot in the SUBDIR list.  Sort bootstrap-,
build-, and cross-tools lists, reformat lists for easier maintenance.

Submitted by: bde, ru

21 years agoFixed some style bugs.
bde [Tue, 1 Jul 2003 12:30:03 +0000 (12:30 +0000)]
Fixed some style bugs.

21 years agoOnly bootstrap crunchide(1) and build crunchgen(1) when necessary.
ru [Tue, 1 Jul 2003 12:25:11 +0000 (12:25 +0000)]
Only bootstrap crunchide(1) and build crunchgen(1) when necessary.
The latter needs to be built either if it's used as a cross-tool
(${TARGET_ARCH} != ${MACHINE_ARCH}) or if it has backward compat
issues, like e.g. lack of the AMD64 support.

21 years agoRegen.
joe [Tue, 1 Jul 2003 12:17:18 +0000 (12:17 +0000)]
Regen.

21 years agoUSB scanner support for Mustek BearPaw scanner.
joe [Tue, 1 Jul 2003 12:16:46 +0000 (12:16 +0000)]
USB scanner support for Mustek BearPaw scanner.

Submitted by: netchild

21 years agoFixed namespace pollution and unsorting of the 1003.1-1990 list in
bde [Tue, 1 Jul 2003 12:09:06 +0000 (12:09 +0000)]
Fixed namespace pollution and unsorting of the 1003.1-1990 list in
previous commit.

21 years agoFix tsleep/wakup race on FreeBSD-4.
simokawa [Tue, 1 Jul 2003 12:03:54 +0000 (12:03 +0000)]
Fix tsleep/wakup race on FreeBSD-4.

21 years agoAdd the British hundredweight (brhundredweight). For discussion, see:
tom [Tue, 1 Jul 2003 10:33:27 +0000 (10:33 +0000)]
Add the British hundredweight (brhundredweight).  For discussion, see:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html
For a definition, see:
http://www.bartleby.com/61/55/H0325500.html

Also add some more computing terms described at:
http://www.wikipedia.org/wiki/Integral_data_type

Reviewed by: dwmalone
MFC after: 2 weeks

21 years agoDon't segfault if setproctitle(3) is called with NULL initially.
alfred [Tue, 1 Jul 2003 09:45:35 +0000 (09:45 +0000)]
Don't segfault if setproctitle(3) is called with NULL initially.
The old buffer was not being initialized and a later str*() op on
it would cause a crash if it wasn't initialized by a previous
call to setproctitle(3) with an actual string.

Noticed by: Ashley Penney <ashp@unloved.org>

21 years agoRegen.
joe [Tue, 1 Jul 2003 08:46:55 +0000 (08:46 +0000)]
Regen.

21 years agoSupport the Epson GT-9300UF usb scanner.
joe [Tue, 1 Jul 2003 08:46:01 +0000 (08:46 +0000)]
Support the Epson GT-9300UF usb scanner.

PR: kern/53929

21 years agofree_drive: Free the drive even if it's referenced. I don't know what
grog [Tue, 1 Jul 2003 07:53:54 +0000 (07:53 +0000)]
free_drive: Free the drive even if it's referenced.  I don't know what
I was smoking when I wrote this stuff, but another fix resulted in
every partition in the system being entered as a "referenced" drive.

21 years agoModify vm_page_alloc() and vm_page_select_cache() to allow the page that
alc [Tue, 1 Jul 2003 07:33:41 +0000 (07:33 +0000)]
Modify vm_page_alloc() and vm_page_select_cache() to allow the page that
is returned by vm_page_select_cache() to belong to the object that is
already locked by the caller to vm_page_alloc().

21 years agoCheck the address provided to vm_map_stack() against the vm map's maximum,
alc [Tue, 1 Jul 2003 03:57:25 +0000 (03:57 +0000)]
Check the address provided to vm_map_stack() against the vm map's maximum,
returning an error if the address is too high.

21 years agoAdd the beastie_disable variable which allows to turn the beastie
brueffer [Tue, 1 Jul 2003 01:03:32 +0000 (01:03 +0000)]
Add the beastie_disable variable which allows to turn the beastie
boot menu on and off.

Reviewed by: scottl

21 years agoSeparate the description of the flags for mount(2) and unmount(2)
iedowse [Mon, 30 Jun 2003 22:22:12 +0000 (22:22 +0000)]
Separate the description of the flags for mount(2) and unmount(2)
to clarify which system call accepts which arguments. Previously
the manual page gave the impression that calling unmount() with
flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a
read-write mount to read-only, which is clearly untrue; to do that,
these flags should be passed to mount() instead.

21 years agoHave mktemp(1) construct the temporary file name for us instead
mtm [Mon, 30 Jun 2003 22:06:26 +0000 (22:06 +0000)]
Have mktemp(1) construct the temporary file name for us instead
of providing a template manually.

Submitted by: Lars Eggert <larse@isi.edu>

21 years agoAllow diskless_remount files to contain path beginning with / which will
brooks [Mon, 30 Jun 2003 21:47:06 +0000 (21:47 +0000)]
Allow diskless_remount files to contain path beginning with / which will
be mounted relative to the NFS root mountpoint.

Reviewed by: dillon at backplane.com
MFC After: 3 days

21 years agoRemove mount_portalfs, it's just wrong in this context.
gordon [Mon, 30 Jun 2003 21:13:56 +0000 (21:13 +0000)]
Remove mount_portalfs, it's just wrong in this context.

21 years agomove maxsegsz down a bit so that the arg definition order matches the
jmg [Mon, 30 Jun 2003 20:20:51 +0000 (20:20 +0000)]
move maxsegsz down a bit so that the arg definition order matches the
calling order.

21 years agoPropagate the ${AINC} knob (assembler include) to sys.mk,
ru [Mon, 30 Jun 2003 20:02:46 +0000 (20:02 +0000)]
Propagate the ${AINC} knob (assembler include) to sys.mk,
and remove the .S.o transformation rule from bsd.lib.mk.

21 years agoRemoved suffix-transformation rules that are duplicates
ru [Mon, 30 Jun 2003 19:48:14 +0000 (19:48 +0000)]
Removed suffix-transformation rules that are duplicates
(or are subsets) of the corresponding rules in sys.mk.

21 years agoCatch up with bsd.lib.mk,v 1.143.
ru [Mon, 30 Jun 2003 19:11:20 +0000 (19:11 +0000)]
Catch up with bsd.lib.mk,v 1.143.

21 years agobsd.lib.mk,v 1.143 no longer uses ld(1) directly to strip
ru [Mon, 30 Jun 2003 19:08:49 +0000 (19:08 +0000)]
bsd.lib.mk,v 1.143 no longer uses ld(1) directly to strip
symbols from intermediate object files, so these hacks to
get AMD64 compile are no longer needed.

Tested on: sledge.FreeBSD.org

21 years agoThe use of ld(1) to strip compiler local and non-global
ru [Mon, 30 Jun 2003 19:03:56 +0000 (19:03 +0000)]
The use of ld(1) to strip compiler local and non-global
symbols from object files has bitrotted over the last
thirteen years, and it now does more harm than good.

An attempt to work around the problems caused by using
ld(1) for stripping was to pass LDFLAGS to the ld(1)
command, but this was not right either as ${LDFLAGS}
should, by design, be used with cc(1) and not ld(1).

One of the proposed solutions was to use the objcopy(1)
utility to do the strip work, and the other would be to
use strip(1), but Bruce Evans suggested not stripping
any symbols at all.  This works by leaving the grunt
work to the final strip(1) command (when installing the
binary).

Submitted by: bde

21 years agoDon't build mount_nwfs or mount_smbfs in rescue.
gordon [Mon, 30 Jun 2003 18:18:05 +0000 (18:18 +0000)]
Don't build mount_nwfs or mount_smbfs in rescue.
Build fdisk_pc98 on pc98 arch, not fdisk.
Don't alias disklabel on pc98, ia64.
Don't build fdisk on sparc64, alpha.

Pointed out by: tmm@
Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoRename a local variable in order to avoid collision with standard 'log'
kan [Mon, 30 Jun 2003 17:05:40 +0000 (17:05 +0000)]
Rename a local variable in order to avoid collision with standard 'log'
function.

21 years agoProperly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.
trhodes [Mon, 30 Jun 2003 15:02:05 +0000 (15:02 +0000)]
Properly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.

PR: 25527
Submitted by: Alexey Neyman <alex.neyman@auriga.ru>
Reviewed by: jdp

21 years agoVarious fixes from upstream, including a bug...
fanf [Mon, 30 Jun 2003 14:46:25 +0000 (14:46 +0000)]
Various fixes from upstream, including a bug...

Fix the usage synopsis.

Amend the copyright notice to reflect the fact that there's no Berkeley
code left.

Fix a typo in a comment, improve the descriptions of the way we use
some global variables (relevant to the bug below), and note that
division-by-zero has side effects so the current expression evaluator
can't be trivially extended to arithmetic in its current design.

Avoid hitting an abort(); /* bug */ when in "text mode" (i.e.
ignoring comment state) by updating the line parser state properly.

PR: 53907

21 years agoSwitch to using bsd.prog.mk; this gives us back the standard
ru [Mon, 30 Jun 2003 14:10:58 +0000 (14:10 +0000)]
Switch to using bsd.prog.mk; this gives us back the standard
.s.o transformation rule.

21 years agoMFi386: revision 1.19.
ru [Mon, 30 Jun 2003 12:53:39 +0000 (12:53 +0000)]
MFi386: revision 1.19.

21 years agoCatchup with _thread_suspend() changes.
mtm [Mon, 30 Jun 2003 12:35:31 +0000 (12:35 +0000)]
Catchup with _thread_suspend() changes.

21 years agoo Fix identation.
maxim [Mon, 30 Jun 2003 11:51:21 +0000 (11:51 +0000)]
o Fix identation.

21 years agoo Support for '--' to cancel options list processing.
maxim [Mon, 30 Jun 2003 11:49:00 +0000 (11:49 +0000)]
o Support for '--' to cancel options list processing.

PR: bin/32433
Prodded by: Zak Johnson <zakj-freebsd-hackers@nox.cx>
Obtained from: easyedit-1.4.6
MFC after: 2 weeks

21 years agoFix typo.
davidxu [Mon, 30 Jun 2003 10:04:04 +0000 (10:04 +0000)]
Fix typo.