]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoReduce the -I's as we don't need them all.
David E. O'Brien [Fri, 21 Jun 2002 15:52:05 +0000 (15:52 +0000)]
Reduce the -I's as we don't need them all.

22 years agoNew release notes: ng_device(4), UFS2, newfs(8) -O, newgrp(1),
Bruce A. Mah [Fri, 21 Jun 2002 15:36:24 +0000 (15:36 +0000)]
New release notes:  ng_device(4), UFS2, newfs(8) -O, newgrp(1),
pam_ksu(8), uuidgen(1).

Updated release notes:  libpcap-0.7.1, tcpdump-3.7.1.

Also do some markup fixes to recently-added items so that they don't
try to use entities for manpages that have been removed, in the spirit
of rev. 1.359.

22 years ago__FBSDID() strategic insertion.
Juli Mallett [Fri, 21 Jun 2002 11:52:59 +0000 (11:52 +0000)]
__FBSDID() strategic insertion.

22 years agoKill __P, yuck.
Juli Mallett [Fri, 21 Jun 2002 11:42:37 +0000 (11:42 +0000)]
Kill __P, yuck.

22 years agoMark unused variables __unused.
Juli Mallett [Fri, 21 Jun 2002 11:40:03 +0000 (11:40 +0000)]
Mark unused variables __unused.

Built standalone, inetd(8) is WARNS=5 clean, WARNS=6 if you ignore %m fits.

22 years agoUse __typeof__ instead of typeof.
Juli Mallett [Fri, 21 Jun 2002 11:25:11 +0000 (11:25 +0000)]
Use __typeof__ instead of typeof.

22 years agoKill bad whitespace and do some style cleanups as a result of the protoize.
Juli Mallett [Fri, 21 Jun 2002 11:24:21 +0000 (11:24 +0000)]
Kill bad whitespace and do some style cleanups as a result of the protoize.

22 years agoANSI prototypes via protoize(1).
Juli Mallett [Fri, 21 Jun 2002 11:18:42 +0000 (11:18 +0000)]
ANSI prototypes via protoize(1).

22 years agoBetter fix for style.
Mark Murray [Fri, 21 Jun 2002 11:06:11 +0000 (11:06 +0000)]
Better fix for style.

Suggested by: ru (but modified a bit by markm)

22 years agoRevert the part of Kirks UFS2 commit which added divdi3.c and moddi3.c
Poul-Henning Kamp [Fri, 21 Jun 2002 11:00:00 +0000 (11:00 +0000)]
Revert the part of Kirks UFS2 commit which added divdi3.c and moddi3.c
to libi386, this issue was resolved already in a cleaner way.

22 years agoClean up hex() and octal() to return and work with unsigned integers since
Juli Mallett [Fri, 21 Jun 2002 10:56:44 +0000 (10:56 +0000)]
Clean up hex() and octal() to return and work with unsigned integers since
they scan values of unsigned types, and since they do not need otherwise,
have them take const char * arguments.

22 years agoFix warnings generated elsewhere.
Mark Murray [Fri, 21 Jun 2002 10:22:39 +0000 (10:22 +0000)]
Fix warnings generated elsewhere.

22 years agoStyle tidy-up.
Mark Murray [Fri, 21 Jun 2002 10:21:21 +0000 (10:21 +0000)]
Style tidy-up.

22 years agoModernise this code by rounding up the usual suspects: register keyword,
Mark Murray [Fri, 21 Jun 2002 10:14:57 +0000 (10:14 +0000)]
Modernise this code by rounding up the usual suspects: register keyword,
consts, ANSIfication of functions, proper use of __FBSDID() and so on.
This commit is non-functional from a code-execution perspective, but
pr(1) now compiles WARNS=6 clean.

22 years agoDon't say that an umounted filesystem is required for -n. An unmounted
Bruce Evans [Fri, 21 Jun 2002 09:57:34 +0000 (09:57 +0000)]
Don't say that an umounted filesystem is required for -n.  An unmounted
filesystem is no more or less required for -n than for any other option.
The previous commit clarified the actual requirement.

22 years agoFix incorrect library ordering. I thought I'd committed this already...
Dag-Erling Smørgrav [Fri, 21 Jun 2002 09:56:38 +0000 (09:56 +0000)]
Fix incorrect library ordering.  I thought I'd committed this already...

22 years ago#include <sys/time.h> before <sys/stat.h> to get timespec.
Poul-Henning Kamp [Fri, 21 Jun 2002 09:23:12 +0000 (09:23 +0000)]
#include <sys/time.h> before <sys/stat.h> to get timespec.

22 years agoMake NO_OPENSSL actually imply NO_OPENSSH, as documented in make.conf(5).
Ruslan Ermilov [Fri, 21 Jun 2002 08:54:03 +0000 (08:54 +0000)]
Make NO_OPENSSL actually imply NO_OPENSSH, as documented in make.conf(5).

22 years agoSkip fields in the manner required by POSIX, and the way V7 did it.
Tim J. Robbins [Fri, 21 Jun 2002 07:59:31 +0000 (07:59 +0000)]
Skip fields in the manner required by POSIX, and the way V7 did it.

MFC after: 1 week

22 years agoQuiet ``make objlink'' when NOOBJ is defined.
Ruslan Ermilov [Fri, 21 Jun 2002 07:30:51 +0000 (07:30 +0000)]
Quiet ``make objlink'' when NOOBJ is defined.

PR: bin/21142
Submitted by: Craig Leres <leres@ee.lbl.gov>

22 years agoNewline characters should not participate in line comparisons. Only apparent
Tim J. Robbins [Fri, 21 Jun 2002 07:08:34 +0000 (07:08 +0000)]
Newline characters should not participate in line comparisons. Only apparent
when -s is used or the last line of the file is missing a newline.
Noticed by the textutils test suite.

MFC after: 1 week

22 years agoA gross patch to tidy up the formatting.
Ruslan Ermilov [Fri, 21 Jun 2002 06:50:16 +0000 (06:50 +0000)]
A gross patch to tidy up the formatting.

Not objected to by: grog

22 years agoGive a C rewriter the necessary credit.
Ruslan Ermilov [Fri, 21 Jun 2002 06:43:48 +0000 (06:43 +0000)]
Give a C rewriter the necessary credit.

Requested by: Daniel Papasian <dpapasia@andrew.cmu.edu>

22 years agoThis commit adds basic support for the UFS2 filesystem. The UFS2
Kirk McKusick [Fri, 21 Jun 2002 06:18:05 +0000 (06:18 +0000)]
This commit adds basic support for the UFS2 filesystem. The UFS2
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.

Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.

Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).

Sponsored by: DARPA & NAI Labs.
Reviewed by: Poul-Henning Kamp <phk@freebsd.org>

22 years ago o Remove GIANT_REQUIRED from vm_map_stack().
Alan Cox [Fri, 21 Jun 2002 06:03:47 +0000 (06:03 +0000)]
 o Remove GIANT_REQUIRED from vm_map_stack().

22 years agoUpdate for libpcap 0.7.1
Bill Fenner [Fri, 21 Jun 2002 05:29:40 +0000 (05:29 +0000)]
Update for libpcap 0.7.1

Originally-committed-to-wrong-repository by: fenner

22 years ago o Remove GIANT_REQUIRED from vm_pager_allocate() and vm_pager_deallocate().
Alan Cox [Fri, 21 Jun 2002 05:04:56 +0000 (05:04 +0000)]
 o Remove GIANT_REQUIRED from vm_pager_allocate() and vm_pager_deallocate().

22 years agoNew release notes: gifconfig(8) gone, prefix(8) gone.
Bruce A. Mah [Fri, 21 Jun 2002 04:17:00 +0000 (04:17 +0000)]
New release notes:  gifconfig(8) gone, prefix(8) gone.

Adjust one other item to match.

22 years agoMerge libpcap 0.7.1
Bill Fenner [Fri, 21 Jun 2002 01:38:14 +0000 (01:38 +0000)]
Merge libpcap 0.7.1

MFC after: 2 weeks

22 years agoThis commit was generated by cvs2svn to compensate for changes in r98530,
Bill Fenner [Fri, 21 Jun 2002 01:36:27 +0000 (01:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r98530,
which included commits to RCS files with non-trunk default branches.

22 years agoImport libpcap 0.7.1, from
Bill Fenner [Fri, 21 Jun 2002 01:36:27 +0000 (01:36 +0000)]
Import libpcap 0.7.1, from
 http://www.tcpdump.org/release/libpcap-0.7.1.tar.gz

22 years agoUpdate for libpcap 0.7.1
Bill Fenner [Fri, 21 Jun 2002 01:35:37 +0000 (01:35 +0000)]
Update for libpcap 0.7.1

22 years agoUpdate for tcpdump 3.7.1
Bill Fenner [Fri, 21 Jun 2002 00:52:33 +0000 (00:52 +0000)]
Update for tcpdump 3.7.1

22 years agoMerge tcpdump 3.7.1
Bill Fenner [Fri, 21 Jun 2002 00:49:02 +0000 (00:49 +0000)]
Merge tcpdump 3.7.1

MFC after: 2 weeks

22 years agoThis commit was generated by cvs2svn to compensate for changes in r98524,
Bill Fenner [Fri, 21 Jun 2002 00:43:23 +0000 (00:43 +0000)]
This commit was generated by cvs2svn to compensate for changes in r98524,
which included commits to RCS files with non-trunk default branches.

22 years agoImport tcpdump 3.7.1, from
Bill Fenner [Fri, 21 Jun 2002 00:43:23 +0000 (00:43 +0000)]
Import tcpdump 3.7.1, from
 http://www.tcpdump.org/release/tcpdump-3.7.1.tar.gz

22 years agoRelease note added: rc.d.
Bruce A. Mah [Thu, 20 Jun 2002 23:44:18 +0000 (23:44 +0000)]
Release note added:  rc.d.

MFCs noted:  fold(1) -b/-s, pwd(1) -L, renice(8) -n, unexpand(1) -t,
xargs(1) -I/-L.

22 years agoModified release note: ncurses 5.2-20020615, added version number for
Bruce A. Mah [Thu, 20 Jun 2002 22:50:15 +0000 (22:50 +0000)]
Modified release note:  ncurses 5.2-20020615, added version number for
lukemftp.

Deleted release note:  gawk.

MFC noted:  lukemftpd.

22 years agoAdd some #define's for mbuf annotations.
Luigi Rizzo [Thu, 20 Jun 2002 21:29:55 +0000 (21:29 +0000)]
Add some #define's for mbuf annotations.

As the comment in the code says, eventually there will be a proper
data structure (e.g NetBSD's struct m_tag) to store chains of
annotations, and mbuf-handling procedures will handle these chains
in the correct way.

Right now, these chains do not exist, and we just use the constants
defined here to implement simple ad-hoc solutions to remove some global
variables used so far to pass around informations about packets
being processed.

Global variables are not only ugly and make the code unreadable, they
also prevent from using parallelism in network stack processing.

(the 3-days MFC only refers to this commit, i.e. the PACKET_TAG_*
constants; the full mechanism will be committed and MFC'ed on a
longer timescale).

MFC after: 3 days

22 years agoProvide a way to keep out old ("historic") release notes from bloating
Bruce A. Mah [Thu, 20 Jun 2002 21:19:49 +0000 (21:19 +0000)]
Provide a way to keep out old ("historic") release notes from bloating
the size of the rendered release notes.  By default, any element with
a role="historic" attribute won't get rendered in the output unless
the INCLUDE_HISTORIC Makefile variable is defined.

22 years agoAdd a few files which are needed to build "passwd" now that
Luigi Rizzo [Thu, 20 Jun 2002 21:17:33 +0000 (21:17 +0000)]
Add a few files which are needed to build "passwd" now that
the standard version of these files have been PAMified (and axed).

22 years agoRemove GAWK. I removed it from the build 2 weeks ago and the world
David E. O'Brien [Thu, 20 Jun 2002 20:54:54 +0000 (20:54 +0000)]
Remove GAWK.  I removed it from the build 2 weeks ago and the world
did not end.  So finish the deed.

22 years ago{f,s}usword -> {f,s}uword16. Implement {f,s}uword32.
Jake Burkholder [Thu, 20 Jun 2002 20:41:57 +0000 (20:41 +0000)]
{f,s}usword -> {f,s}uword16.  Implement {f,s}uword32.

Requested by: peter

22 years agoChange the way we internally store the mount options to
Maxime Henrion [Thu, 20 Jun 2002 20:03:42 +0000 (20:03 +0000)]
Change the way we internally store the mount options to
a linked list.  This is to allow the merging of the mount
options in the MNT_UPDATE case, as the current data structure
is unsuitable for this.

There are no functional differences in this commit.

Reviewed by: phk

22 years agoFix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which caused
Juli Mallett [Thu, 20 Jun 2002 19:51:13 +0000 (19:51 +0000)]
Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which caused
an example Makefile I was showing someone just last night to report a variable
as being recursive.

Obtained from: NetBSD

22 years agoMore unsigned char casts to isupper(3).
Juli Mallett [Thu, 20 Jun 2002 19:45:44 +0000 (19:45 +0000)]
More unsigned char casts to isupper(3).

Obtained from: NetBSD

22 years agoMerge ncurses 5.2-20020615 changes onto mainline.
Peter Wemm [Thu, 20 Jun 2002 19:44:40 +0000 (19:44 +0000)]
Merge ncurses 5.2-20020615 changes onto mainline.

22 years agoProvide a heuristic for RCS conflicts.
Juli Mallett [Thu, 20 Jun 2002 19:44:34 +0000 (19:44 +0000)]
Provide a heuristic for RCS conflicts.

Obtained from: NetBSD

22 years agoThis commit was generated by cvs2svn to compensate for changes in r98503,
Peter Wemm [Thu, 20 Jun 2002 19:42:51 +0000 (19:42 +0000)]
This commit was generated by cvs2svn to compensate for changes in r98503,
which included commits to RCS files with non-trunk default branches.

22 years agoImport ncurses 5.2-20020615 to fix a first-column display bug.
Peter Wemm [Thu, 20 Jun 2002 19:42:51 +0000 (19:42 +0000)]
Import ncurses 5.2-20020615 to fix a first-column display bug.

22 years agoLook for wildcards, and balanced meta-characters such as { and } like NetBSD
Juli Mallett [Thu, 20 Jun 2002 19:41:21 +0000 (19:41 +0000)]
Look for wildcards, and balanced meta-characters such as { and } like NetBSD
does.

Obtained from: NetBSD

22 years agoExpand a buffer to reduce diffs to NetBSD.
Juli Mallett [Thu, 20 Jun 2002 19:31:55 +0000 (19:31 +0000)]
Expand a buffer to reduce diffs to NetBSD.

Obtained from: NetBSD

22 years agoDiff reduction for great justice against NetBSD, cast to unsigned char when
Juli Mallett [Thu, 20 Jun 2002 19:28:00 +0000 (19:28 +0000)]
Diff reduction for great justice against NetBSD, cast to unsigned char when
passing an argument to isspace(3).

22 years agoImplement SO_NOSIGPIPE option for sockets. This allows one to request that
Alfred Perlstein [Thu, 20 Jun 2002 18:52:54 +0000 (18:52 +0000)]
Implement SO_NOSIGPIPE option for sockets.  This allows one to request that
an EPIPE error return not generate SIGPIPE on sockets.

Submitted by: lioux
Inspired by: Darwin

22 years ago o Remove an incorrect cast from obreak(). This cast would,
Alan Cox [Thu, 20 Jun 2002 18:38:28 +0000 (18:38 +0000)]
 o Remove an incorrect cast from obreak().  This cast would,
   for example, break an sbrk(>=4GB) on 64-bit architectures
   even if the resource limit allowed it.
 o Correct an off-by-one error.
 o Correct a spelling error in a comment.
 o Reorder an && expression so that the commonly FALSE expression
   comes first.

Submitted by: bde (bullets 1 and 2)

22 years agoDon't leak resources if fdcheckstd() fails during exec.
Alfred Perlstein [Thu, 20 Jun 2002 17:27:28 +0000 (17:27 +0000)]
Don't leak resources if fdcheckstd() fails during exec.

Submitted by: Mike Makonnen <makonnen@pacbell.net>

22 years agoDon't try to decode old-style options if the argv[1] begins with `-' and the
Maxim Sobolev [Thu, 20 Jun 2002 14:55:53 +0000 (14:55 +0000)]
Don't try to decode old-style options if the argv[1] begins with `-' and the
second character represents some option taking an argument. This fixes
problem when ps(1) is invoked for examply as follows:

$ ps -Ufoobar1234

the above example results in option string being interpreted as
-U foobarp1234 - note extra `p'.

Reported by: Vladimir Sotnikov <vovan@kyivstar.net>
MFC after: 2 weeks

22 years agoDisplay the mutex name in the ^T status line if the selected thread
Ian Dowse [Thu, 20 Jun 2002 14:03:36 +0000 (14:03 +0000)]
Display the mutex name in the ^T status line if the selected thread
is blocked on a mutex. Prepend a '*' to distinguish this case as
is done in top(1).

22 years agoWhitespace fixes to line-up EOL escapes whose right-most extraints changed in
Juli Mallett [Thu, 20 Jun 2002 11:17:46 +0000 (11:17 +0000)]
Whitespace fixes to line-up EOL escapes whose right-most extraints changed in
the previous revision due to the biggest line changing.

22 years agoCast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.
Juli Mallett [Thu, 20 Jun 2002 11:14:54 +0000 (11:14 +0000)]
Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.

This messes up some indentation in mdef.h for some macros.

22 years agoIt seems the hard lock on m4(1) is viewed as superfluous. Okay. It's gone.
Juli Mallett [Thu, 20 Jun 2002 10:37:43 +0000 (10:37 +0000)]
It seems the hard lock on m4(1) is viewed as superfluous.  Okay.  It's gone.

I'm sick of waiting on OpenBSD to make a number of changes anyway.  If someone
else wants to take over fixing m4(1), I'll be glad to make them aware of the
existing issues.

22 years agoQuick fix for the type of the bitmap in sigset_t. It was an array of
Bruce Evans [Thu, 20 Jun 2002 09:04:33 +0000 (09:04 +0000)]
Quick fix for the type of the bitmap in sigset_t.  It was an array of
4 u_ints but needs to be an array of 4 uint32_t's to work, at least
if unsigned ints have less than 32 bits.  It should be a non-array of
1 uint128_t on 128-bit machines, especially if u_int has 128 bits.
The headers that declare uint32_t (actually __uint32_t) are intentionally
not included here since this header should only be included by other
headers.

Fixed some style bugs (space instead of tab after #ifndef and #endif).

22 years agoAnonymize the "portmap" program to get better compatibility with
Doug Barton [Thu, 20 Jun 2002 08:49:44 +0000 (08:49 +0000)]
Anonymize the "portmap" program to get better compatibility with
rpcbind in -current.

Submitted by: Alexander Kabaev <ak03@gte.com>

22 years agoUpdate an 'XXX what is this?' type comment about suswintr and fuswintr.
Peter Wemm [Thu, 20 Jun 2002 07:40:53 +0000 (07:40 +0000)]
Update an 'XXX what is this?' type comment about suswintr and fuswintr.
These are 16 bit short values used only by the profiling code.

22 years agoStyle: put static qualifier on definition of static functions.
Tim J. Robbins [Thu, 20 Jun 2002 07:36:22 +0000 (07:36 +0000)]
Style: put static qualifier on definition of static functions.

22 years agoUse suword16/fuword16 instead of susword/fusword - this has two different
Peter Wemm [Thu, 20 Jun 2002 07:23:08 +0000 (07:23 +0000)]
Use suword16/fuword16 instead of susword/fusword - this has two different
definitions so far.. 16 bit on x86 and appears to be 32 bit on sparc64.
Be explicit to avoid suprises.

22 years agoBogusness may have happened using a variable assignment here before, but
Juli Mallett [Thu, 20 Jun 2002 07:15:55 +0000 (07:15 +0000)]
Bogusness may have happened using a variable assignment here before, but
proper parens mean that fd is always set by open(2) [in any part of C],
and so we can accurately check for it returning -1, without feeling like
we need to initialise fd to -1 in its declaration.

In other words, fix a stylistic/bogus nit.

22 years agoDeorbit suibyte(). It was only used for split address space systems
Peter Wemm [Thu, 20 Jun 2002 07:13:35 +0000 (07:13 +0000)]
Deorbit suibyte().  It was only used for split address space systems
for supporting UIO_USERISPACE (ie: it wasn't used).

22 years agotime(1) does not use the shell to execute the specified utility, remove
Tim J. Robbins [Thu, 20 Jun 2002 07:12:34 +0000 (07:12 +0000)]
time(1) does not use the shell to execute the specified utility, remove
sentence stating it did.

22 years agoRemove references to UIO_USERISPACE which no longer exists.
Peter Wemm [Thu, 20 Jun 2002 07:09:24 +0000 (07:09 +0000)]
Remove references to UIO_USERISPACE which no longer exists.

22 years agoRemove UIO_USERISPACE - we do not support any split instruction/data
Peter Wemm [Thu, 20 Jun 2002 07:08:43 +0000 (07:08 +0000)]
Remove UIO_USERISPACE - we do not support any split instruction/data
address space machines (eg: pdp-11) and are not likely to ever do so.
Nothing in our kernel sets this.

22 years agoMake it obvious that command line arguments may be specified for the utility
Tim J. Robbins [Thu, 20 Jun 2002 07:07:00 +0000 (07:07 +0000)]
Make it obvious that command line arguments may be specified for the utility
that is to be invoked on the command line. Use "utility" instead of "command"
in manual page and usage message for consistency with POSIX.

22 years agoThat's right, you can shove your xargs(1) issues in my direction, and I'm
Juli Mallett [Thu, 20 Jun 2002 07:06:21 +0000 (07:06 +0000)]
That's right, you can shove your xargs(1) issues in my direction, and I'm
also glad to review changes to it.

22 years agoia32 %edx return comes from td_retval[1], not td_retval[0]
Peter Wemm [Thu, 20 Jun 2002 06:47:44 +0000 (06:47 +0000)]
ia32 %edx return comes from td_retval[1], not td_retval[0]

Obtained from: dfr

22 years agoUse suword32/64 and fuword32/64 like elsewhere instead of inventing
Peter Wemm [Thu, 20 Jun 2002 06:45:43 +0000 (06:45 +0000)]
Use suword32/64 and fuword32/64 like elsewhere instead of inventing
suhword/fuhword.

22 years agoAdd boot_serial and boot_multicons variables to set RB_SERIAL and
Peter Wemm [Thu, 20 Jun 2002 06:29:42 +0000 (06:29 +0000)]
Add boot_serial and boot_multicons variables to set RB_SERIAL and
RB_MULTIPLE since this seems to be the easiest way to add these flags
for non-forth loaders etc.

22 years agopanic rather than fault and explode if we fail to contigmalloc a kernel
Peter Wemm [Thu, 20 Jun 2002 06:25:22 +0000 (06:25 +0000)]
panic rather than fault and explode if we fail to contigmalloc a kernel
stack.  This is still bad(TM), but at least we have a clue when we get
hit when contigmalloc fails.

22 years agoUse the canonical pmap_{new,dispose,swapin,swapout}_proc() functions,
Peter Wemm [Thu, 20 Jun 2002 06:23:40 +0000 (06:23 +0000)]
Use the canonical pmap_{new,dispose,swapin,swapout}_proc() functions,
in this case cut/pasted from sparc64 instead of messing with
contigmalloc where it is not needed.

22 years agoMove the "- 1" into the RQB_FFS(mask) macro itself so that
Peter Wemm [Thu, 20 Jun 2002 06:21:20 +0000 (06:21 +0000)]
Move the "- 1" into the RQB_FFS(mask) macro itself so that
implementations can provide a base zero ffs function if they wish.
This changes
  #define RQB_FFS(mask) (ffs64(mask))
  foo = RQB_FFS(mask) - 1;
to
  #define RQB_FFS(mask) (ffs64(mask) - 1)
  foo = RQB_FFS(mask);
On some platforms we can get the "- 1" for free, eg: those that use the
C code for ffs64().

Reviewed by: jake (in principle)

22 years agoUse size_t consistently and complete some uncompleted code resulting in a
Juli Mallett [Thu, 20 Jun 2002 06:00:51 +0000 (06:00 +0000)]
Use size_t consistently and complete some uncompleted code resulting in a
memory leak by assigning and freeing a variable appropriately as well as
keeping track of the amount of allocated ram properly.

MFC after: 1 month

22 years agoA function which takes no arguments has an argument list spelled (void) in the
Juli Mallett [Thu, 20 Jun 2002 05:35:40 +0000 (05:35 +0000)]
A function which takes no arguments has an argument list spelled (void) in the
world of ANSI C.

22 years agoWe have a place for extern declarations of global variables in ed.h, do not
Juli Mallett [Thu, 20 Jun 2002 05:28:02 +0000 (05:28 +0000)]
We have a place for extern declarations of global variables in ed.h, do not
use main() to do it locally.

22 years agoRemove two unused variables.
Juli Mallett [Thu, 20 Jun 2002 05:21:43 +0000 (05:21 +0000)]
Remove two unused variables.

22 years agoMinor const cleanup.
Juli Mallett [Thu, 20 Jun 2002 05:20:50 +0000 (05:20 +0000)]
Minor const cleanup.

Don't discard qualifiers we don't need to discard.

22 years agoAdd a warning regarding the SENDMAIL_*_MC make.conf variable values.
Gregory Neil Shapiro [Thu, 20 Jun 2002 04:33:06 +0000 (04:33 +0000)]
Add a warning regarding the SENDMAIL_*_MC make.conf variable values.
Using /etc/mail/sendmail.mc will create /etc/mail/sendmail.cf during
a buildworld.

PR: misc/39397
MFC after: 3 days

22 years agoGrrr, make the test for embedded variables in the left-hand-side actually do
Juli Mallett [Thu, 20 Jun 2002 03:08:20 +0000 (03:08 +0000)]
Grrr, make the test for embedded variables in the left-hand-side actually do
the right thing in every case.  Yuck.

22 years ago o Acquire and release the vm_map lock instead of Giant in obreak().
Alan Cox [Thu, 20 Jun 2002 02:04:55 +0000 (02:04 +0000)]
 o Acquire and release the vm_map lock instead of Giant in obreak().
   Consequently, use vm_map_insert() and vm_map_delete(), which expect
   the vm_map to be locked, instead of vm_map_find() and vm_map_remove(),
   which do not.

22 years agoSolve the 'unregistered netisr 18' information notice with a sledgehammer.
Peter Wemm [Thu, 20 Jun 2002 01:27:40 +0000 (01:27 +0000)]
Solve the 'unregistered netisr 18' information notice with a sledgehammer.
Register the ISR early, but do not actually kick off the timer until we
see some activity.  This still saves us from running the arp timers on
a system with no network cards.

22 years ago- Move the computation of pflags out of the page allocation loop in
Jeff Roberson [Wed, 19 Jun 2002 23:49:57 +0000 (23:49 +0000)]
- Move the computation of pflags out of the page allocation loop in
  kmem_malloc()
- zero fill pages if PG_ZERO bit is not set after allocation in kmem_malloc()

Suggested by: alc, jake

22 years ago- Remove the lock(9) protecting the kernel linker system.
Andrew R. Reiter [Wed, 19 Jun 2002 21:25:59 +0000 (21:25 +0000)]
- Remove the lock(9) protecting the kernel linker system.
- Added a mutex, kld_mtx, to protect the kernel_linker system.  Note that
  while ``classes'' is global (to that file), it is only read only after
  SI_SUB_KLD, SI_ORDER_ANY.
- Add a SYSINIT to flip a flag that disallows class registration after
  SI_SUB_KLD, SI_ORDER_ANY.

Idea for ``classes'' read only by: jake
Reviewed by: jake

22 years ago- Remove bogus use of kmem_alloc that was inherited from the old zone
Jeff Roberson [Wed, 19 Jun 2002 20:49:44 +0000 (20:49 +0000)]
- Remove bogus use of kmem_alloc that was inherited from the old zone
  allocator.
- Properly set M_ZERO when talking to the back end page allocators for
  non malloc zones.  This forces us to zero fill pages when they are first
  brought into a cache.
- Properly handle M_ZERO in uma_zalloc_internal.  This fixes a problem where
  per cpu buckets weren't always getting zeroed.

22 years agoTeach kmem_malloc about M_ZERO.
Jeff Roberson [Wed, 19 Jun 2002 20:47:18 +0000 (20:47 +0000)]
Teach kmem_malloc about M_ZERO.

22 years agoCorrect spelling of 'supplied'.
Robert Drehmel [Wed, 19 Jun 2002 20:44:48 +0000 (20:44 +0000)]
Correct spelling of 'supplied'.

PR: misc/39528

22 years agoWe don't use this any more.
Dag-Erling Smørgrav [Wed, 19 Jun 2002 20:01:25 +0000 (20:01 +0000)]
We don't use this any more.

Sponsored by: DARPA, NAI Labs

22 years agoEnable OPIE for sshd and telnetd. I thought I'd done this a long time
Dag-Erling Smørgrav [Wed, 19 Jun 2002 20:00:43 +0000 (20:00 +0000)]
Enable OPIE for sshd and telnetd.  I thought I'd done this a long time
ago...

Sponsored by: DARPA, NAI Labs

22 years agoMake locate.updatedb tell about the security risk when it is run as root.
Eivind Eklund [Wed, 19 Jun 2002 19:22:18 +0000 (19:22 +0000)]
Make locate.updatedb tell about the security risk when it is run as root.

22 years agoChange spelling of `u_char' to `unsigned char' to avoid requiring
Mike Barcroft [Wed, 19 Jun 2002 19:05:41 +0000 (19:05 +0000)]
Change spelling of `u_char' to `unsigned char' to avoid requiring
<sys/types.h> as a prerequisite.

22 years agoAdd a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,
Juli Mallett [Wed, 19 Jun 2002 18:57:04 +0000 (18:57 +0000)]
Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,
expansion of embedded variables in the left-hand-side of an assignment
expression, using the simplest case - hiding recursion using nil-expanded
variables.

22 years agoFix a memory leak from previous commit by freeing the possibly expanded
Juli Mallett [Wed, 19 Jun 2002 17:39:36 +0000 (17:39 +0000)]
Fix a memory leak from previous commit by freeing the possibly expanded
string at the first opportunity, being sure to now always allocate the
new string from VarPossiblyExpand.  Oops.

22 years agoAdd better mediaopt support for ibss and friends.
Warner Losh [Wed, 19 Jun 2002 17:37:34 +0000 (17:37 +0000)]
Add better mediaopt support for ibss and friends.

Now the driver is closer to matching the wi man page.

Submitted by: jhay (who obtained it from OpenBSD).