]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoUse libutil and libypclnt for all passwd manipulation and NIS needs.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:54:29 +0000 (00:54 +0000)]
Use libutil and libypclnt for all passwd manipulation and NIS needs.

Sponsored by: DARPA, NAI Labs

22 years agoDetect and attach to the ICH3 SMBus controller.
John Baldwin [Wed, 8 May 2002 00:51:54 +0000 (00:51 +0000)]
Detect and attach to the ICH3 SMBus controller.

PR: i386/36972
Submitted by: Colin Perkins <csp@isi.edu>
Requested by: Larry Rosenman <ler@lerctr.org>
MFC After: 7 days

22 years agoAdd passwd manipulation code based on parts of vipw and chpass.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:50:07 +0000 (00:50 +0000)]
Add passwd manipulation code based on parts of vipw and chpass.

Sponsored by: DARPA, NAI Labs

22 years agoAdd ypclnt_havepasswd(), and guard against a possible segfault.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:48:39 +0000 (00:48 +0000)]
Add ypclnt_havepasswd(), and guard against a possible segfault.

Sponsored by: DARPA, NAI Labs

22 years agoReally include <paths.h> (it seems it was brought in indirectly)
Dag-Erling Smørgrav [Wed, 8 May 2002 00:47:02 +0000 (00:47 +0000)]
Really include <paths.h> (it seems it was brought in indirectly)

22 years agoUse <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:47:01 +0000 (00:47 +0000)]
Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.

Sponsored by: DARPA, NAI Labs

22 years agoPAMify.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:43:46 +0000 (00:43 +0000)]
PAMify.

Sponsored by: DARPA, NAI Labs

22 years agoAdd some more commonly-used directories and files.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:37:50 +0000 (00:37 +0000)]
Add some more commonly-used directories and files.

Sponsored by: DARPA, NAI Labs

22 years agoUse pam_lastlog(8)'s new no_fail option.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:33:02 +0000 (00:33 +0000)]
Use pam_lastlog(8)'s new no_fail option.

Sponsored by: DARPA, NAI Labs

22 years agoAdd a no_fail option.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:31:45 +0000 (00:31 +0000)]
Add a no_fail option.

Sponsored by: DARPA, NAI Labs

22 years agoAdd pam_ftpusers(8), which enforces /etc/ftpusers.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:30:10 +0000 (00:30 +0000)]
Add pam_ftpusers(8), which enforces /etc/ftpusers.

Sponsored by: DARPA, NAI Labs

22 years agoM_ZERO the temp buffer in expand_name() otherwise if an error occurs
Alfred Perlstein [Tue, 7 May 2002 23:37:07 +0000 (23:37 +0000)]
M_ZERO the temp buffer in expand_name() otherwise if an error occurs
while logging we may pass a non NUL terminated string to log(9) for a
%s format arg.

22 years agoOops, update usage() to have -i.
Juli Mallett [Tue, 7 May 2002 23:33:44 +0000 (23:33 +0000)]
Oops, update usage() to have -i.

22 years agoAdd handling for any nil-length string passed to -i for the backup extension.
Juli Mallett [Tue, 7 May 2002 23:32:26 +0000 (23:32 +0000)]
Add handling for any nil-length string passed to -i for the backup extension.

Add a note that this is kinda-sorta dangerous to the manual page.

22 years agoAlpha MD bits for Gcc 3.1.
David E. O'Brien [Tue, 7 May 2002 23:28:45 +0000 (23:28 +0000)]
Alpha MD bits for Gcc 3.1.

22 years agoFix bug that causes passwd and friends to fail when the user has a '+' in
Dag-Erling Smørgrav [Tue, 7 May 2002 23:26:00 +0000 (23:26 +0000)]
Fix bug that causes passwd and friends to fail when the user has a '+' in
their passwd file for NIS because _PWF_SOURCE is not set.

Submitted by: amigus (perforce change 10969)

22 years agoUn-shadow the `fname' variable.
Juli Mallett [Tue, 7 May 2002 23:06:47 +0000 (23:06 +0000)]
Un-shadow the `fname' variable.

22 years agoMove ISO88025 source routing information into sockaddr_dl's sdl_data
Kelly Yancey [Tue, 7 May 2002 22:14:06 +0000 (22:14 +0000)]
Move ISO88025 source routing information into sockaddr_dl's sdl_data
field.  This returns the sdl_data field to a variable-length field.  More
importantly, this prevents a easily-reproduceable data-corruption bug when
the interface name plus the hardware address exceed the sdl_data field's
original 12 byte limit.  However, token-ring interfaces may still overflow
the new sdl_data field's 46 byte limit if the interface name exceeds 6
characters (since 6 characters for interface name plus 6 for hardware
address plus 34 for source routing = the size of sdl_data).  Further
refinements could overcome this limitation but would break binary
compatibility; this commit only addresses fixing the bug for
commonly-occuring cases without breaking binary compatibility with the
intention that the functionality can be MFC'ed to -stable.

  See message ID's (both send to -arch):
20020421013332.F87395-100000@gateway.posi.net
20020430181359.G11009-300000@gateway.posi.net
  for a more thorough description of the bug addressed and how to
reproduce it.

Approved by: silence on -arch and -net
Sponsored by: NTT Multimedia Communications Labs
MFC after: 1 week

22 years agoRe-remove kern_random.c and svr4_signal.c. Somehow dillon managed to keep
Peter Wemm [Tue, 7 May 2002 21:54:47 +0000 (21:54 +0000)]
Re-remove kern_random.c and svr4_signal.c.  Somehow dillon managed to keep
on committing to these while they were in the Attic after they had been
removed.  I think this was because he had the file checked out and already
'modified' while markm cvs rm'ed them, and cvs screws up when trying to
"merge" the modifications with the "rm".  And after that the client
state was sufficiently hosed to keep it messed up.  Yay CVS!  (CVS is
very fragile for adding and removing files remotely)

The existence of these files was pointed out by: ru

22 years agoRe-remove these files. Somehow obrien managed to revive them with a
Peter Wemm [Tue, 7 May 2002 21:47:57 +0000 (21:47 +0000)]
Re-remove these files.  Somehow obrien managed to revive them with a
Makefile cleanup sweep even after they were removed.  cvs was very
confused because they were in the Attic still.

22 years agoNew release note: syncache/accept_filter bugfix.
Bruce A. Mah [Tue, 7 May 2002 21:01:46 +0000 (21:01 +0000)]
New release note:  syncache/accept_filter bugfix.

22 years ago- Remove the init routine for loop -- it broke something and I don't have
Andrew R. Reiter [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
Andrew R. Reiter [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
Andrew R. Reiter [Tue, 7 May 2002 20:36:35 +0000 (20:36 +0000)]
- Add atm_init_fn

22 years ago- Add atm_sock_init()
Andrew R. Reiter [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.
Andrew R. Reiter [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
Juli Mallett [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.
Warner Losh [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
Warner Losh [Tue, 7 May 2002 18:11:55 +0000 (18:11 +0000)]
Minor style nit

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

22 years agoFix the copyright dates.
David E. O'Brien [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.
Michael C . Wu [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
Seigo 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'
Ruslan Ermilov [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
Ruslan Ermilov [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.
Ruslan Ermilov [Tue, 7 May 2002 15:27:56 +0000 (15:27 +0000)]
Install the manpages before descending into SUBDIRs.

22 years agoDocument CVSCMDARGS variable.
Makoto Matsushita [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 Somers [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 Somers [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 Konovalov [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.
Tony Finch [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 Konovalov [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
Bruce Evans [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 Somers [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 Somers [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 Somers [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.
David E. O'Brien [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".
Ruslan Ermilov [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 Moolenaar [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 Roberson [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.
David E. O'Brien [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.
David E. O'Brien [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'.
David E. O'Brien [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.
Bruce Evans [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 --
Bruce Evans [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
David E. O'Brien [Mon, 6 May 2002 23:24:39 +0000 (23:24 +0000)]
Use __FBSDID

22 years agoWe typically don't add trailing /'s.
David E. O'Brien [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
David E. O'Brien [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 Perlstein [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),
Josef Karthauser [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
Tom Rhodes [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
John Baldwin [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.
John Baldwin [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
Hajimu UMEMOTO [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.
John Baldwin [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.
Ian Dowse [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
John Baldwin [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.
Mitsuru 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:
Sheldon Hearn [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...
Mark Murray [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.
Mark Murray [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.
Dima Dorfman [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.
David Malone [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.
David Malone [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 Moolenaar [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".
Dima Dorfman [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
Alan Cox [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()
Alan Cox [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 Roberson [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.
Tim J. Robbins [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
Juli Mallett [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,
Alan Cox [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
Bruce Evans [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/
Chris D. Faulhaber [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
Mark Peek [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
Alan Cox [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
Bruce Evans [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.
Maxime Henrion [Sun, 5 May 2002 23:51:32 +0000 (23:51 +0000)]
Document the lchflags(2) syscall.

22 years agoAdd the lchflags(2) syscall.
Maxime Henrion [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
Maxime Henrion [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 Roberson [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()
Alan Cox [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 Costello [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 Rizzo [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 Rizzo [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
Maxim Sobolev [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
Maxim Sobolev [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 Rizzo [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
Poul-Henning Kamp [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.
Poul-Henning Kamp [Sun, 5 May 2002 20:04:33 +0000 (20:04 +0000)]
Move some UFS related stuff home where it belongs.