]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years ago- Remove the init routine for loop -- it broke something and I don't have
arr [Tue, 7 May 2002 20:50:10 +0000 (20:50 +0000)]
- Remove the init routine for loop -- it broke something and I don't have
  the time to fix it properly at the moment.

22 years ago- Use an array of init functions to be used in a for loop in our
arr [Tue, 7 May 2002 20:37:40 +0000 (20:37 +0000)]
- Use an array of init functions to be used in a for loop in our
  initialization routine.

22 years ago- Add atm_init_fn
arr [Tue, 7 May 2002 20:36:35 +0000 (20:36 +0000)]
- Add atm_init_fn

22 years ago- Add atm_sock_init()
arr [Tue, 7 May 2002 20:13:55 +0000 (20:13 +0000)]
- Add atm_sock_init()
- Move the Atm_pcb storage pool (atm_pcb_pool) to be an UMA zone.

22 years ago- Change the atm_cm_init function to take no argument.
arr [Tue, 7 May 2002 20:12:29 +0000 (20:12 +0000)]
- Change the atm_cm_init function to take no argument.

22 years agoAdd a -i option to sed(1) to do inplace editing, to give us an alternative to
jmallett [Tue, 7 May 2002 18:32:18 +0000 (18:32 +0000)]
Add a -i option to sed(1) to do inplace editing, to give us an alternative to
Perl for such things.  The key difference to Perl is that a backup extension
*MUST* be specified, because on one hand it isn't recommended to have options
which optionally take a parameter, and on the other hand, it'd be slightly
unpleasent to implement proper handling for that.

The difference between this and the version posted to developers@ is that it
does handle multiple files in argv after the getopt(3) handling "correctly",
in that the inplace editing-specific code has been moved out to a function,
and that function is used beyond the first file in our linked list.

This option has been documented as FreeBSD-specific in the manpage.

Reviewed by: developers@ (got feedback from: des, fanf, sobomax, roberto,
obrien)
MFC after: 1 week

22 years agoMFOpenBSD: ibss and ibss-master.
imp [Tue, 7 May 2002 18:16:39 +0000 (18:16 +0000)]
MFOpenBSD: ibss and ibss-master.

ibss is the modern ad-hoc mode.  ibss-master is the same, except that
it creates the ibss network.  This distinction is necessary because
some supported cards (symbol) support the former without supporting
the latter.

A seprate commit will introduce a demo-adhoc mode so that we can
disentwingle the multiple, mutually exclusive meandings of adhoc in
the present state of affairs.

Submitted by: jhay

22 years agoMinor style nit
imp [Tue, 7 May 2002 18:11:55 +0000 (18:11 +0000)]
Minor style nit

22 years agoTry to use spls more correctly
imp [Tue, 7 May 2002 18:09:19 +0000 (18:09 +0000)]
Try to use spls more correctly

22 years agoFix the copyright dates.
obrien [Tue, 7 May 2002 18:07:43 +0000 (18:07 +0000)]
Fix the copyright dates.

22 years agoThis is two new entries for Taiwanese 16bit PCMCIA cards.
keichii [Tue, 7 May 2002 16:50:15 +0000 (16:50 +0000)]
This is two new entries for Taiwanese 16bit PCMCIA cards.
The Blue Concentric CF 802.11b card is a compactflash form-factored card
that does 802.11b, including 128bit encryption.
The Zonet modem pccard is a simple FAX/Modem card.

Both are sold in Guang-Hua Market in Taipei, and functions perfectly
with -current and -stable.

22 years agoDo not forget to increase the number of completely connected sockets in
tanimura [Tue, 7 May 2002 16:17:44 +0000 (16:17 +0000)]
Do not forget to increase the number of completely connected sockets in
soisconnected_locked().

Forgotten by: tanimura

22 years agoAdded internal, non-recursive (SUBDIR) versions of the `all-man'
ru [Tue, 7 May 2002 15:42:56 +0000 (15:42 +0000)]
Added internal, non-recursive (SUBDIR) versions of the `all-man'
and `maninstall' targets.  This fixes the issue where each subdir
was descended into twice during "make all", and also resurrects
the standardization of `maninstall'.

Urged by: bde

22 years agoInstall PROG before SCRIPTS and FILES, but make sure
ru [Tue, 7 May 2002 15:30:49 +0000 (15:30 +0000)]
Install PROG before SCRIPTS and FILES, but make sure
LINKS are still processed last.  This backs out part
of the backout in previous revision.

Install the manpages before descending into SUBDIRs.

22 years agoInstall the manpages before descending into SUBDIRs.
ru [Tue, 7 May 2002 15:27:56 +0000 (15:27 +0000)]
Install the manpages before descending into SUBDIRs.

22 years agoDocument CVSCMDARGS variable.
matusita [Tue, 7 May 2002 14:57:22 +0000 (14:57 +0000)]
Document CVSCMDARGS variable.

Suggested by: murray
Reviewed by: ru
MFC after: 3 days
(if re@ allows)

22 years agoFix the output when daily_status_mailq_shorten is set to YES
brian [Tue, 7 May 2002 13:11:05 +0000 (13:11 +0000)]
Fix the output when daily_status_mailq_shorten is set to YES

PR: 23766
Mostly submitted by: lambert@ssabsd.csw.net
MFC after: 3 days

22 years agoDon't corrupt MP fragments when they're put back on the front of our
brian [Tue, 7 May 2002 12:48:45 +0000 (12:48 +0000)]
Don't corrupt MP fragments when they're put back on the front of our
inbound queue.

Submitted by: "Amit K. Rao" <arao@niksun.com>
PR: 37813
MFC after: 1 week

Also fix a typo while I'm here.

22 years agoSync with master.passwd.
maxim [Tue, 7 May 2002 11:19:22 +0000 (11:19 +0000)]
Sync with master.passwd.

PR: conf/37796
Submitted by: David Siebo"rger <drs@rucus.ru.ac.za>
MFC after: 3 days

22 years agoAdd myself.
fanf [Tue, 7 May 2002 11:09:40 +0000 (11:09 +0000)]
Add myself.

Reviewed by: dwmalone (mentor)

22 years agoInclude 'www' in the list of forbidden ftp users.
maxim [Tue, 7 May 2002 11:07:39 +0000 (11:07 +0000)]
Include 'www' in the list of forbidden ftp users.

Reviewed by: sheldonh
MFC after: 3 days

22 years agoReconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It
bde [Tue, 7 May 2002 10:59:52 +0000 (10:59 +0000)]
Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM").  It
doesn't actually build yet.

22 years agoAdd support for vendor specific RADIUS extensions.
brian [Tue, 7 May 2002 10:47:18 +0000 (10:47 +0000)]
Add support for vendor specific RADIUS extensions.

Only the extensions from rfc2548 are specified for now.

22 years agoUnderstand the Session-Timeout RADIUS attribute
brian [Tue, 7 May 2002 10:06:54 +0000 (10:06 +0000)]
Understand the Session-Timeout RADIUS attribute
Store the Filter-Id attribute (we don't do anything with it yet)

Submitted mostly by: andrew pavlov <and@kremenchug.net>

22 years agoAdd smmsp, mailnull and www
brian [Tue, 7 May 2002 09:38:02 +0000 (09:38 +0000)]
Add smmsp, mailnull and www

PR: 37796
Submitted by: drs@rucus.ru.ac.za
MFC after: 1 week

Note, I don't usually look after pppd (just ppp), so I haven't
removed the ftp and ingres users as I guess they're there for
a reason....

22 years agoMake NO_CXX, really mean NO_CXX.
obrien [Tue, 7 May 2002 07:49:12 +0000 (07:49 +0000)]
Make NO_CXX, really mean NO_CXX.

22 years agoMake sure the file in Attic is really "dead".
ru [Tue, 7 May 2002 06:57:04 +0000 (06:57 +0000)]
Make sure the file in Attic is really "dead".

Problem found by: ken

22 years agoo Add ar.lc to the pcb.
marcel [Tue, 7 May 2002 05:52:27 +0000 (05:52 +0000)]
o  Add ar.lc to the pcb.
o  Create pcb_save as the backend for savectx and cpu_switch.
o  While here, use explicit bundling for pcb_save and optimize
   for compactness (~87% density).

o  Not part of the commit is a backend pcb_restore. restorectx()
   still jumps halfway into cpu_switch().

22 years agoSwitch from just holding the interlock to holding the standard lock throughout
jeff [Tue, 7 May 2002 02:44:06 +0000 (02:44 +0000)]
Switch from just holding the interlock to holding the standard lock throughout
getnewvnode().  This is safer.  In the future, we should investigate requiring
only the interlock to get the vnode object.

22 years agoComment a knob.
obrien [Tue, 7 May 2002 02:26:40 +0000 (02:26 +0000)]
Comment a knob.

22 years agoThe default ASM_OUTPUT_ADDR_DIFF_ELT will now handle our mixed a.out/ELF.
obrien [Tue, 7 May 2002 02:25:52 +0000 (02:25 +0000)]
The default ASM_OUTPUT_ADDR_DIFF_ELT will now handle our mixed a.out/ELF.

22 years agolibstdc++ version 3 (Gcc 3.1 is a consumer) uses the typical `config.h'.
obrien [Tue, 7 May 2002 01:03:51 +0000 (01:03 +0000)]
libstdc++ version 3 (Gcc 3.1 is a consumer) uses the typical `config.h'.

22 years agoFixed missing quotes in the default for MKDEPCMD in the CC != cc case.
bde [Tue, 7 May 2002 00:15:53 +0000 (00:15 +0000)]
Fixed missing quotes in the default for MKDEPCMD in the CC != cc case.
"CC='cc -Dfoo' make depend" was very broken.

22 years agoInclude <sys/lockmgr.h> for definitions of deprecated locking interfaces --
bde [Mon, 6 May 2002 23:34:13 +0000 (23:34 +0000)]
Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --
don't depend on namespace pollution in other headers.

22 years agoUse __FBSDID
obrien [Mon, 6 May 2002 23:24:39 +0000 (23:24 +0000)]
Use __FBSDID

22 years agoWe typically don't add trailing /'s.
obrien [Mon, 6 May 2002 23:24:16 +0000 (23:24 +0000)]
We typically don't add trailing /'s.

22 years agoGCC's libstdc++ version 3 has the "libgcc" like bits (start up / terminate
obrien [Mon, 6 May 2002 22:07:26 +0000 (22:07 +0000)]
GCC's libstdc++ version 3 has the "libgcc" like bits (start up / terminate
code, `new' handler, exception handling, etc.) split out into libsupc++.

22 years agoMake funsetown() take a 'struct sigio **' so that the locking can
alfred [Mon, 6 May 2002 19:31:28 +0000 (19:31 +0000)]
Make funsetown() take a 'struct sigio **' so that the locking can
be done internally.

Ensure that no one can fsetown() to a dying process/pgrp.  We need
to check the process for P_WEXIT to see if it's exiting.  Process
groups are already safe because there is no such thing as a pgrp
zombie, therefore the proctree lock completely protects the pgrp
from having sigio structures associated with it after it runs
funsetownlst.

Add sigio lock to witness list under proctree and allproc, but over
proc and pgrp.

Seigo Tanimura helped with this.

22 years agoMFNetBSD: ugen.c (1.57), ulpt.c (1.48), usb.c (1.67), usbdi.c (1.96),
joe [Mon, 6 May 2002 18:23:36 +0000 (18:23 +0000)]
MFNetBSD: ugen.c (1.57), ulpt.c (1.48), usb.c (1.67), usbdi.c (1.96),
  usbdi.h (1.60)
  (and local changes compatibility changes to ufm.c and urio.c)

    date: 2002/02/11 15:11:49;  author: augustss;
    Give usbd_do_request_flags() an extra argument for the timeout.

22 years ago'file system' > filesystem
trhodes [Mon, 6 May 2002 17:53:50 +0000 (17:53 +0000)]
'file system' > filesystem
add FILES section.

PR: 34239
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoWhen checking to see if the init process calls exit1(), compare p to the
jhb [Mon, 6 May 2002 17:07:10 +0000 (17:07 +0000)]
When checking to see if the init process calls exit1(), compare p to the
initproc proc pointer instead of checking to see if the pid is 1.

Submitted by: bde

22 years agoStyle fixes in local variable declarations.
jhb [Mon, 6 May 2002 17:04:29 +0000 (17:04 +0000)]
Style fixes in local variable declarations.

Submitted by: bde

22 years agoRevised MLD-related definitions
ume [Mon, 6 May 2002 16:28:25 +0000 (16:28 +0000)]
Revised MLD-related definitions
- Used mld_xxx and MLD_xxx instead of mld6_xxx and MLD6_xxx according
  to the official defintions in rfc2292bis
  (macro definitions for backward compatibility were provided)
- Changed the first member of mld_hdr{} from mld_hdr to mld_icmp6_hdr
  to avoid name space conflict in C++

This change makes ports/net/pchar compilable again under -CURRENT.

Obtained from: KAME

22 years ago- Style fixes in some comments.
jhb [Mon, 6 May 2002 15:46:29 +0000 (15:46 +0000)]
- Style fixes in some comments.
- Whitespace nit.
- Sort some includes.

Submitted by: bde (mostly)

22 years agoAddress a few minor style and consistency issues in revision 1.32.
iedowse [Mon, 6 May 2002 15:15:51 +0000 (15:15 +0000)]
Address a few minor style and consistency issues in revision 1.32.

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

22 years agoAdd support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139
jhb [Mon, 6 May 2002 13:43:00 +0000 (13:43 +0000)]
Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139
with its own PCI ID.

22 years agoAdd suspend/resume code mostly merged from fxp/rl driver.
iwasaki [Mon, 6 May 2002 10:55:42 +0000 (10:55 +0000)]
Add suspend/resume code mostly merged from fxp/rl driver.
This is temporary hack, better and generalized solution probably
should be implemented at lower layer(MII or PCI?).
Tested by: shoko.araki@soliton.co.jp
MFC after: 1 week

22 years agoRegen:
sheldonh [Mon, 6 May 2002 10:13:17 +0000 (10:13 +0000)]
Regen:

* Hart: rev 295 of pcidevs.txt (2002-04-27)
* Boemler: vendors.txt (2002-04-30)

22 years agoPrevious commit was...
markm [Mon, 6 May 2002 09:48:02 +0000 (09:48 +0000)]
Previous commit was...

Submitted by: des

22 years agoFix an external declaration that was causing telnetd to core dump.
markm [Mon, 6 May 2002 09:46:29 +0000 (09:46 +0000)]
Fix an external declaration that was causing telnetd to core dump.

MFC after: 1 week
PR: 37766

22 years agoUse hw.ata.ata_dma instead of hw.atamodes, which doesn't exist in anymore.
dd [Mon, 6 May 2002 09:40:52 +0000 (09:40 +0000)]
Use hw.ata.ata_dma instead of hw.atamodes, which doesn't exist in anymore.

Reviewed by: maxim

22 years agoAdd another Askey ISA modem ID.
dwmalone [Mon, 6 May 2002 09:02:55 +0000 (09:02 +0000)]
Add another Askey ISA modem ID.

PR: 35813
Submitted by: Chris Knight <chris@aims.com.au>

22 years agoinet_aton returns 0 on failure, not -1.
dwmalone [Mon, 6 May 2002 08:39:43 +0000 (08:39 +0000)]
inet_aton returns 0 on failure, not -1.

PR: 37680
Submitted by: Scott Bertilson <scott@nts.umn.edu>
MFC after: 2 weeks

22 years agoMake argument to printf match format.
marcel [Mon, 6 May 2002 08:27:21 +0000 (08:27 +0000)]
Make argument to printf match format.

22 years agoPC98 still uses wd#, so resurrect the wd# entry and mark is "pc98 only".
dd [Mon, 6 May 2002 07:48:36 +0000 (07:48 +0000)]
PC98 still uses wd#, so resurrect the wd# entry and mark is "pc98 only".

Noticed by: bde (four months ago)

22 years ago o Header files shouldn't depend on options: Provide prototypes
alc [Mon, 6 May 2002 06:20:04 +0000 (06:20 +0000)]
 o Header files shouldn't depend on options: Provide prototypes
   for uiomoveco(), uioread(), and vm_uiomove() regardless
   of whether ENABLE_VFS_IOOPT is defined or not.

Submitted by: bde

22 years ago o Condition the compilation and use of vm_freeze_copyopts()
alc [Mon, 6 May 2002 05:45:57 +0000 (05:45 +0000)]
 o Condition the compilation and use of vm_freeze_copyopts()
   on ENABLE_VFS_IOOPT.

22 years agoHold the currently selected vnode's lock across the call to VOP_GETVOBJECT.
jeff [Mon, 6 May 2002 04:47:43 +0000 (04:47 +0000)]
Hold the currently selected vnode's lock across the call to VOP_GETVOBJECT.

Don't try to create a vm object before the file system has a chance to finish
initializing it.  This is incorrect for a number of reasons.  Firstly, that
VOP requires a lock which the file system may not have initialized yet. Also,
open and others will create a vm object if it is necessary later.

22 years agoAffect the first of stdin, stdout and stderr that is attached to a terminal.
tjr [Mon, 6 May 2002 04:33:04 +0000 (04:33 +0000)]
Affect the first of stdin, stdout and stderr that is attached to a terminal.
Write status information to stdout instead of stderr.
Exit status when an error occurs musn't be 1, that is reserved for
indicating that messages are disabled.

These changes bring mesg(1) up to SUSv3 conformance.

Reviewed by: mike

22 years ago-I and -J both set the same variable, replstr, to the string to replace with
jmallett [Mon, 6 May 2002 03:38:28 +0000 (03:38 +0000)]
-I and -J both set the same variable, replstr, to the string to replace with
a line of input, and both work differently, so prevent them from both being
passed to xargs(1).

22 years ago o Some improvements to the page coloring of vm objects, particularly,
alc [Mon, 6 May 2002 03:34:17 +0000 (03:34 +0000)]
 o Some improvements to the page coloring of vm objects, particularly,
   for shadow objects.

Submitted by: bde

22 years agoInclude <sys/queue.h> so that this file provides its own namespace
bde [Mon, 6 May 2002 03:13:08 +0000 (03:13 +0000)]
Include <sys/queue.h> so that this file provides its own namespace
pollution which is required for its includes of <sys/_lock.h> and
<sys/_mutex.h> to work.

22 years agos/sysctl -w/sysctl/
jedgar [Mon, 6 May 2002 00:45:27 +0000 (00:45 +0000)]
s/sysctl -w/sysctl/

22 years ago- Properly initialize the count_win when the user turns the info window
mp [Mon, 6 May 2002 00:25:36 +0000 (00:25 +0000)]
- Properly initialize the count_win when the user turns the info window
  back on (and count_win is recreated).
- Create info_win as the same size for all invocations.

PR:             37552
Submitted by:   Mark Valentine <mark@thuvia.demon.co.uk>
MFC after:      1 week

22 years ago o Move vm_freeze_copyopts() from vm_map.{c.h} to vm_object.{c,h}. It's plainly
alc [Mon, 6 May 2002 00:12:47 +0000 (00:12 +0000)]
 o Move vm_freeze_copyopts() from vm_map.{c.h} to vm_object.{c,h}.  It's plainly
   an operation on a vm_object and belongs in the latter place.

22 years agoRestored db_elf.c from the Attic. This will be used for a quick fix for
bde [Mon, 6 May 2002 00:05:44 +0000 (00:05 +0000)]
Restored db_elf.c from the Attic.  This will be used for a quick fix for
the longstanding brokenness of symbols in ddb at boot time.  It doesn't
compile and is not attached to the build yet.

22 years agoDocument the lchflags(2) syscall.
mux [Sun, 5 May 2002 23:51:32 +0000 (23:51 +0000)]
Document the lchflags(2) syscall.

22 years agoAdd the lchflags(2) syscall.
mux [Sun, 5 May 2002 23:47:41 +0000 (23:47 +0000)]
Add the lchflags(2) syscall.

Reviewed by: rwatson

22 years agoAdd an entry for the lchflags(2) syscall. It's useful to prevent
mux [Sun, 5 May 2002 23:37:44 +0000 (23:37 +0000)]
Add an entry for the lchflags(2) syscall.  It's useful to prevent
a symlink deletion.

Reviewed by: rwatson

22 years agoMove a KASSERT() in open() prior to unlocking the vnode. It's not safe to
jeff [Sun, 5 May 2002 23:17:13 +0000 (23:17 +0000)]
Move a KASSERT() in open() prior to unlocking the vnode.  It's not safe to
call VOP_GETVOBJECT without a lock.

22 years ago o Condition the compilation of uiomoveco() and vm_uiomove()
alc [Sun, 5 May 2002 22:42:40 +0000 (22:42 +0000)]
 o Condition the compilation of uiomoveco() and vm_uiomove()
   on ENABLE_VFS_IOOPT.
 o Add a comment to the effect that this code is experimental
   support for zero-copy I/O.

22 years agoBegin to turn some of the code in this man page into documentation.
chris [Sun, 5 May 2002 22:09:12 +0000 (22:09 +0000)]
Begin to turn some of the code in this man page into documentation.
Move the code that I have not yet finished documenting into the
`IMPLEMENTATION NOTES' section.

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

22 years agoFix a couple of problems which could cause panics at runtime:
luigi [Sun, 5 May 2002 21:34:10 +0000 (21:34 +0000)]
Fix a couple of problems which could cause panics at runtime:

 + setting a bandwidth too large for a pipe (above 2Gbit/s) could
   cause the internal representation (which is int) to wrap to a
   negative number, causing an infinite loop in the kernel;

 + (see PR bin/35628): when configuring RED parameters for a queue,
   the values are not passed to the kernel resulting in panics at
   runtime (part of the problem here is also that the kernel does
   not check for valid parameters being passed, but this will be
   fixed in a separate commit).

These are both critical fixes which need to be merged into 4.6-RELEASE.

MFC after: 1 day

22 years agoIndentation and comments cleanup, no functional change.
luigi [Sun, 5 May 2002 21:27:47 +0000 (21:27 +0000)]
Indentation and comments cleanup, no functional change.

MFC after: 3 days

22 years agoNew feature: allow origins of all dependencies be recorded into package list
sobomax [Sun, 5 May 2002 21:03:25 +0000 (21:03 +0000)]
New feature: allow origins of all dependencies be recorded into package list
using new `@comment DEPORIGIN:...' directive. This would allow us to make
many neat things including:

- easier binary upgrades;
- source upgrades without using external tools by simply extending
  bsd.port.mk and pkg_install tools;
- mixed-mode upgrades (source + binary);
- depreciate and deorbit silly +REQUIRED_BY files in the near future.

This feature is no-op until appropriate bsd.port.mk patch is committed, and
even when it is already committed packages generated will remain 100%
compatible with old set of pkg_install tools (module all those neat
features, of course).

MFC after: 6 days

22 years agoIn a origin lookup mode (-O) don't bail out when encountering empty package
sobomax [Sun, 5 May 2002 20:50:27 +0000 (20:50 +0000)]
In a origin lookup mode (-O) don't bail out when encountering empty package
directory, because this prevent this option from being used from the
package-depends target of bsd.port.mk since it creates such empty dir
during its normal operation.

MFC after: 6 days

22 years agoBring in a slightly older version of usr/bin/passwd which does not
luigi [Sun, 5 May 2002 20:43:27 +0000 (20:43 +0000)]
Bring in a slightly older version of usr/bin/passwd which does not
require libpam and all the libraries that libpam brings in.
We have no room for those on picobsd images.

22 years agoExpand the one-line function pbreassignbuf() the only place it is or could
phk [Sun, 5 May 2002 20:37:08 +0000 (20:37 +0000)]
Expand the one-line function pbreassignbuf() the only place it is or could
be used.

22 years agoMove some UFS related stuff home where it belongs.
phk [Sun, 5 May 2002 20:04:33 +0000 (20:04 +0000)]
Move some UFS related stuff home where it belongs.

22 years agoFix make(1) behaviour regarding SysV-style substitution when given a nil
jmallett [Sun, 5 May 2002 19:04:58 +0000 (19:04 +0000)]
Fix make(1) behaviour regarding SysV-style substitution when given a nil
left-hand-side.

PR: bin/5297
Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca>
MFC after: 1 week

22 years agoAdd a regression test for bin/5297, regarding sysv substitution with a nil
jmallett [Sun, 5 May 2002 19:02:30 +0000 (19:02 +0000)]
Add a regression test for bin/5297, regarding sysv substitution with a nil
left-hand-side.

22 years agoNo longer attempt to power off the ACLINK during suspend - luigi
orion [Sun, 5 May 2002 15:37:09 +0000 (15:37 +0000)]
No longer attempt to power off the ACLINK during suspend - luigi
reports this causes his ich machine to hang.

22 years agoAdd a KERNELDUMPMAGIC_CLEARED macro to unbreak savecore. Since
mux [Sun, 5 May 2002 13:47:21 +0000 (13:47 +0000)]
Add a KERNELDUMPMAGIC_CLEARED macro to unbreak savecore.  Since
it is a "magic" value, what it expands to is not really important.
I set it to "Cleared Kernel Dump", but that can be changed later
if someone thinks it's not good enough.

Pointy hat to: fenner

22 years agoUpdate usage() and manpage to match reality (add -O into usage and adjust
sobomax [Sun, 5 May 2002 13:44:32 +0000 (13:44 +0000)]
Update usage() and manpage to match reality (add -O into usage and adjust
both to make clear that -W and -O are stand-alone options).

MFC after: 6 days

22 years agoUse PLIST_ORIGIN instead of rolling own version using PLIST_COMMENT.
sobomax [Sun, 5 May 2002 13:09:04 +0000 (13:09 +0000)]
Use PLIST_ORIGIN instead of rolling own version using PLIST_COMMENT.

MFC after: 6 days

22 years agoHandle PLIST_ORIGIN properly.
sobomax [Sun, 5 May 2002 12:54:11 +0000 (12:54 +0000)]
Handle PLIST_ORIGIN properly.

Poked by: kris
Pointy hat grabbed by: sobomax
MFC after: 6 days

22 years agoFix broken entity
ue [Sun, 5 May 2002 12:05:08 +0000 (12:05 +0000)]
Fix broken entity

Approved by: re@

22 years agoFix the fallback to mount(2) with RELENG_4 kernels and -CURRENT
mux [Sun, 5 May 2002 10:08:04 +0000 (10:08 +0000)]
Fix the fallback to mount(2) with RELENG_4 kernels and -CURRENT
utilities by catching SIGSYS.

Submitted by: bde

22 years agoo Add struct mca_guid
marcel [Sun, 5 May 2002 08:26:25 +0000 (08:26 +0000)]
o  Add struct mca_guid
o  Add currently known GUIDs
o  Slight restyling

22 years agoo Include md_var.h
marcel [Sun, 5 May 2002 08:18:42 +0000 (08:18 +0000)]
o  Include md_var.h
o  Remove definition of struct ia64_fdesc
o  Remove prototype of os_boot_rendez
o  Use the FDESC_FUNC and FDESC_GP abstractions

22 years agoRemove definition of struct ia64_fdesc. It's been moved to md_var.h
marcel [Sun, 5 May 2002 08:16:10 +0000 (08:16 +0000)]
Remove definition of struct ia64_fdesc. It's been moved to md_var.h

22 years agoo Move definition of struct ia64_fdesc here to remove duplication.
marcel [Sun, 5 May 2002 08:14:32 +0000 (08:14 +0000)]
o  Move definition of struct ia64_fdesc here to remove duplication.
o  Add prototype of os_boot_rendez.

22 years agoModify the -p implementation to use a user's locale, so they can respond to
jmallett [Sun, 5 May 2002 06:42:44 +0000 (06:42 +0000)]
Modify the -p implementation to use a user's locale, so they can respond to
the prompt in their native language.

Also make the prompt fit what POSIX asks for (?...).

This should not affect use of -p with yes(1) [as every locale I know of matches
'y' as YESEXPR as well], but that's what -t is for anyway.  -p is meant to be
really used interactively.

Submitted by: tjr, jmallett

22 years ago o Remove GIANT_REQUIRED from vm_map_lookup() and vm_map_lookup_done().
alc [Sun, 5 May 2002 05:36:28 +0000 (05:36 +0000)]
 o Remove GIANT_REQUIRED from vm_map_lookup() and vm_map_lookup_done().
 o Acquire and release Giant around vm_map_lookup()'s call
   to vm_object_shadow().

22 years agoFix a typo.
jmallett [Sun, 5 May 2002 05:15:16 +0000 (05:15 +0000)]
Fix a typo.

Submitted by: Carl Schmidt <cschmidt@slackerbsd.org>

Wrap an obscenely long line while I'm here.

22 years agoReturn the correct error code (ENOSYS, not EINVAL) from nosys(). Getting
bde [Sun, 5 May 2002 04:50:47 +0000 (04:50 +0000)]
Return the correct error code (ENOSYS, not EINVAL) from nosys().  Getting
killed by SIGSYS for unimlemented syscalls is bad enough.

Obtained from: Lite2 branch

The Lite2 branch has some other interesting unmerged (?) bits in this
file.  They are well hidden among cosmetic regressions.

22 years agoCheck for possible overflow from sysconf _SC_ARG_MAX and error out in a
jmallett [Sun, 5 May 2002 04:42:50 +0000 (04:42 +0000)]
Check for possible overflow from sysconf _SC_ARG_MAX and error out in a
correct manner.  Revert my incorrect change to use err(3) for malloc(3)
failing.  Use a size_t variable to store the size of the argument buffer
we allocate, and remove silly casts as the result of having this around.
Modify the math in some of the paranoid checks for buffer overflow to
account for the fact we now are dealing with the actual size of the
buffer.  Remove the static qualifier for arg_max, and the bogus setting
of it to -1.

Include <limits.h> for the definitions we use to check for possible
overflows.

Submitted by: bde

22 years agoFixed breakage of binary compatibility of the kern.clockrate sysctl in
bde [Sun, 5 May 2002 04:33:09 +0000 (04:33 +0000)]
Fixed breakage of binary compatibility of the kern.clockrate sysctl in
sys/time.h rev.1.53, etc.  Zero out the entire struct clkinfo and not
just the new spare part of it so that there is no possibility of leaking
kernel stack context to userland.

22 years agoFixed checking for VM86 mode in doreti which I broke in rev.1.30. Only
bde [Sun, 5 May 2002 03:19:48 +0000 (03:19 +0000)]
Fixed checking for VM86 mode in doreti which I broke in rev.1.30.  Only
the case of VM86 calls from the kernel was broken, so this bug was not
a security hole.

PR: 36710
Submitted by: David Xu <davidx@viasoft.com.cn> (version for RELENG_4)
MFC after: 3 days

22 years agoIn an effort to make this utility easier to work with at a source level, move
jmallett [Sun, 5 May 2002 02:46:53 +0000 (02:46 +0000)]
In an effort to make this utility easier to work with at a source level, move
out the parse loop to a seperate function, and move local variables around as
is needed.  To keep the state of some variables and keep from having huge arg
lists to functions, make a bunch global.

Change use of err(3) in situations where malloc(3) will be setting errno to
errx(3) since assuming malloc(3) sets errno is non-portable, and provides no
more useful information in the context of FreeBSD.

Submitted by: bde (err/errx), Carl Schmidt <cschmidt@slackerbsd.org> (some
of the movement of the input loop to a function)
Approved by: src/tools/regression/usr.bin/xargs