]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoMutex statistics script.
des [Sun, 26 May 2002 12:02:36 +0000 (12:02 +0000)]
Mutex statistics script.

22 years agoMake sure there's a statement after the out: label in clockattach().
des [Sun, 26 May 2002 11:23:00 +0000 (11:23 +0000)]
Make sure there's a statement after the out: label in clockattach().

22 years agoCosmetic change (align with other boot blocks):
n_hibma [Sun, 26 May 2002 10:11:17 +0000 (10:11 +0000)]
Cosmetic change (align with other boot blocks):

CONSPEED -> COMSPEED

Approved by: nyan

22 years agoMis-edit in last commit.
phk [Sun, 26 May 2002 09:57:59 +0000 (09:57 +0000)]
Mis-edit in last commit.

22 years agoBe a bit smarter about rewriting data so we don't loose too much performance.
phk [Sun, 26 May 2002 09:38:51 +0000 (09:38 +0000)]
Be a bit smarter about rewriting data so we don't loose too much performance.

Sponsored by: DARPA & NAI Labs.

22 years agoAdd Standards, Diagnostics and History sections.
tjr [Sun, 26 May 2002 07:07:14 +0000 (07:07 +0000)]
Add Standards, Diagnostics and History sections.

22 years agoUse an umazone per unit for allocating the sectors for malloc backing.
phk [Sun, 26 May 2002 06:48:55 +0000 (06:48 +0000)]
Use an umazone per unit for allocating the sectors for malloc backing.

Clean up things properly when we unconfigure malloc backed units.

Sponsored by: DARPA & NAI Labs.

22 years agoIf a file operand cannot be processed, go on to process any remaining files
tjr [Sun, 26 May 2002 06:15:15 +0000 (06:15 +0000)]
If a file operand cannot be processed, go on to process any remaining files
but exit non-zero.

22 years agoRemove extra word.
dd [Sun, 26 May 2002 05:24:53 +0000 (05:24 +0000)]
Remove extra word.

Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>

22 years ago o Acquire and release Giant around pmap operations in vm_fault_unwire()
alc [Sun, 26 May 2002 04:54:56 +0000 (04:54 +0000)]
 o Acquire and release Giant around pmap operations in vm_fault_unwire()
   and vm_map_delete().  Assert GIANT_REQUIRED in vm_map_delete()
   only if operating on the kernel_object or the kmem_object.
 o Remove GIANT_REQUIRED from vm_map_remove().
 o Remove the acquisition and release of Giant from munmap().

22 years agoLog invalid config entries. Make the -d option actually log to
jwd [Sun, 26 May 2002 04:43:26 +0000 (04:43 +0000)]
Log invalid config entries. Make the -d option actually log to
the terminal(-d fix from dwmalone).

Approved by: dwmalone
MFC after: 2 weeks

22 years agoTrim out this subdir; nothing has been made in here for _ages_.
markm [Sat, 25 May 2002 21:11:13 +0000 (21:11 +0000)]
Trim out this subdir; nothing has been made in here for _ages_.

22 years agoGive the "malloc" backing of md(4) an adaptive multilevel index tree to
phk [Sat, 25 May 2002 20:44:20 +0000 (20:44 +0000)]
Give the "malloc" backing of md(4) an adaptive multilevel index tree to
remove the need for a contiguous array with pointers to all the sectors.

Try to make failure to malloc(9) memory a non-hang situation.

Eventually this will allow us to test the 64bit cleanness of the disk
I/O patch, but more work is outstanding here and elsewhere.

Sponsored by: DARPA & NAI Labs.

22 years agoMake discard devices clonable and unloadable. Also, change the
brooks [Sat, 25 May 2002 20:20:35 +0000 (20:20 +0000)]
Make discard devices clonable and unloadable.  Also, change the
interface name from ds# to disc#.

22 years agoMove all unit number management cloned interfaces into the cloning
brooks [Sat, 25 May 2002 20:17:04 +0000 (20:17 +0000)]
Move all unit number management cloned interfaces into the cloning
code.  The reverts the API change which made the <if>_clone_destory()
functions return an int instead of void bringing us into closer
alignment with NetBSD.

Reviewed by: net (a long time ago)

22 years agoThis directory (whis was supposed to do indexes etc for the printable
markm [Sat, 25 May 2002 19:36:09 +0000 (19:36 +0000)]
This directory (whis was supposed to do indexes etc for the printable
documentation) hasn't had its nappies changed since FreeBSD-2.0, and
is now starting to smell rather ripe.

Its dependant on ancient and removed tools, and the last maintainer
can't remember looking at it 1 1/2 years ago.

If we need it, its in the Attic.

Discussed with: asmodai

22 years ago o Remove some unnecessary casting from and add some necessary casting to
alc [Sat, 25 May 2002 18:39:42 +0000 (18:39 +0000)]
 o Remove some unnecessary casting from and add some necessary casting to
   aio_suspend() and lio_listio().

Submitted by: bde

22 years agoPerl left src/.
ru [Sat, 25 May 2002 17:31:27 +0000 (17:31 +0000)]
Perl left src/.

22 years agoPC98 creates different BOOTMFS configs for different floppy sizes.
ru [Sat, 25 May 2002 16:13:52 +0000 (16:13 +0000)]
PC98 creates different BOOTMFS configs for different floppy sizes.

Broken in: rev. 1.672
Spotted by: nyan

22 years agoANSIfy (significant portions were already partly ANSIfied)
des [Sat, 25 May 2002 15:52:53 +0000 (15:52 +0000)]
ANSIfy (significant portions were already partly ANSIfied)

22 years agoRemove register.
des [Sat, 25 May 2002 15:44:38 +0000 (15:44 +0000)]
Remove register.

22 years agoAutomated whitespace cleanup.
des [Sat, 25 May 2002 15:43:06 +0000 (15:43 +0000)]
Automated whitespace cleanup.

22 years agoMake it work for a different endianness binary.
ru [Sat, 25 May 2002 13:43:16 +0000 (13:43 +0000)]
Make it work for a different endianness binary.
(This version is still limited to ELF64.)

Reviewed by: jake

22 years agoGet all the fruit from makefile.
ru [Sat, 25 May 2002 13:39:20 +0000 (13:39 +0000)]
Get all the fruit from makefile.

22 years agoMove elf2aout to usr.sbin/.
ru [Sat, 25 May 2002 13:29:47 +0000 (13:29 +0000)]
Move elf2aout to usr.sbin/.

Approved by: jake

22 years agoRespect -q with "add" and "delete". Document who respects -q.
ru [Sat, 25 May 2002 12:51:34 +0000 (12:51 +0000)]
Respect -q with "add" and "delete".  Document who respects -q.

PR: bin/38531

22 years agosh appeared in Version 1, not System V.1.
tjr [Sat, 25 May 2002 12:18:27 +0000 (12:18 +0000)]
sh appeared in Version 1, not System V.1.

22 years agoImplement `set +o', which displays the currently set options in a format
tjr [Sat, 25 May 2002 12:11:58 +0000 (12:11 +0000)]
Implement `set +o', which displays the currently set options in a format
suitable for re-input into the shell.

22 years agoSync usage message with manual page synopsis.
tjr [Sat, 25 May 2002 11:37:10 +0000 (11:37 +0000)]
Sync usage message with manual page synopsis.

22 years agoFixed printf format errors which apparently crept in while -Wformat was
bde [Sat, 25 May 2002 11:18:03 +0000 (11:18 +0000)]
Fixed printf format errors which apparently crept in while -Wformat was
disabled for gcc-3.

22 years ago"Fixed" printf format errors (64-bit daddr_t casualties; should use %jx
bde [Sat, 25 May 2002 11:12:30 +0000 (11:12 +0000)]
"Fixed" printf format errors (64-bit daddr_t casualties; should use %jx
instead of %llx when %j is available).

Changed nearby output formats from %x to %#x so that it is obvious that the
numbers are in hex (vinum mostly uses 0x%x elsewhere).

Didn't fix nearby format printf errors (long lines).

22 years agoFixed printf format errors. Most of them are 64-bit daddr_t casualties.
bde [Sat, 25 May 2002 11:05:07 +0000 (11:05 +0000)]
Fixed printf format errors.  Most of them are 64-bit daddr_t casualties.
Printing daddr_t's using %d format was always an error, but gcc's
warning about it was ignored for supported 64-bit arches and not printed
for supported 32-bit arches.  Hundreds if not thousands thousands of
previously "fixed" daddr_t printings are now broken on 32-bit machines
by casting daddr_t's to longs.  daddr_t's should be printed using %jd
format, but this fix uses %lld since %j is not implemented in the
kernel yet.

Fixed some nearby format printf errors (style bugs).

22 years agoFixed a printf format error. It was old and should have been detected by
bde [Sat, 25 May 2002 10:48:03 +0000 (10:48 +0000)]
Fixed a printf format error.  It was old and should have been detected by
gcc-2.9x, but somehow wasn't fixed already.

22 years agoBad numeric arguments or usernames should cause non-zero exit status.
tjr [Sat, 25 May 2002 10:37:24 +0000 (10:37 +0000)]
Bad numeric arguments or usernames should cause non-zero exit status.

22 years agoMake these work with one-true-awk.
ru [Sat, 25 May 2002 10:37:00 +0000 (10:37 +0000)]
Make these work with one-true-awk.

Spotted by: nyan

22 years agoDetermine exit status to use before writing diagnostic message; warn()
tjr [Sat, 25 May 2002 03:32:23 +0000 (03:32 +0000)]
Determine exit status to use before writing diagnostic message; warn()
may change errno.

22 years agoTypo: use plural now that we have more than one option.
tjr [Sat, 25 May 2002 03:08:21 +0000 (03:08 +0000)]
Typo: use plural now that we have more than one option.

22 years agoIf a file cannot be processed, try to process any remaining files
tjr [Sat, 25 May 2002 03:04:28 +0000 (03:04 +0000)]
If a file cannot be processed, try to process any remaining files
then exit non-zero.

22 years agoConvert the interrupt queue from an array to a linked list. Implement
jake [Sat, 25 May 2002 02:39:28 +0000 (02:39 +0000)]
Convert the interrupt queue from an array to a linked list.  Implement
intr_dequeue in asm so that it can easily be modified to do light weight
context switching.

22 years agoThe man page is VERY WRONG about using "-o noupdate" with -s.
obrien [Sat, 25 May 2002 01:46:44 +0000 (01:46 +0000)]
The man page is VERY WRONG about using "-o noupdate" with -s.
So fix it, and add an example using -s.

22 years agoTry to handle "double faults" occuring at more trap levels (ie 4 :)).
jake [Sat, 25 May 2002 01:45:11 +0000 (01:45 +0000)]
Try to handle "double faults" occuring at more trap levels (ie 4 :)).

22 years agoMinor style.
jake [Sat, 25 May 2002 01:44:08 +0000 (01:44 +0000)]
Minor style.

22 years agoMake the run queue parameters machine dependent. Optimize 64 bit
jake [Sat, 25 May 2002 01:12:23 +0000 (01:12 +0000)]
Make the run queue parameters machine dependent.  Optimize 64 bit
architectures by using a 64 bit word for the bit array which keeps
track of non-empty queues.

Reviewed by: peter

22 years agoRegen:
sheldonh [Fri, 24 May 2002 22:01:18 +0000 (22:01 +0000)]
Regen:

* Hart: rev 230 of pcidevs.txt (2002-05-21)
* Boemler: vendors.txt (2002-05-24)

22 years agoBackout 1.54 (restore definition for printf0 to actually do something).
alfred [Fri, 24 May 2002 19:16:08 +0000 (19:16 +0000)]
Backout 1.54 (restore definition for printf0 to actually do something).

22 years agoAdd the word ``fields'' to the description, and change an instance from
trhodes [Fri, 24 May 2002 19:12:02 +0000 (19:12 +0000)]
Add the word ``fields'' to the description, and change an instance from
fields to num in the SYNOPSIS

Noticed by: keramida

22 years agoConvert mount_ext2fs(8) to nmount(2).
mux [Fri, 24 May 2002 17:39:37 +0000 (17:39 +0000)]
Convert mount_ext2fs(8) to nmount(2).

Reviewed by: iedowse

22 years agoConvert ext2fs to nmount(2).
mux [Fri, 24 May 2002 17:38:01 +0000 (17:38 +0000)]
Convert ext2fs to nmount(2).

22 years agoForgot to commit this for the `includes' -> `buildincludes',
ru [Fri, 24 May 2002 16:08:13 +0000 (16:08 +0000)]
Forgot to commit this for the `includes' -> `buildincludes',
`incsinstall' -> `installincludes' changes.

22 years agoBack out the ``run shell from $PATH'' change; this was an overkill
ru [Fri, 24 May 2002 15:51:27 +0000 (15:51 +0000)]
Back out the ``run shell from $PATH'' change; this was an overkill
and is insecure.

Requested by: bde

22 years agoAdd release notes for the changed file permissions on sendmail alias
gshapiro [Fri, 24 May 2002 15:50:34 +0000 (15:50 +0000)]
Add release notes for the changed file permissions on sendmail alias
and map databases as well as the statistics file.

MFC after: 1 day
pending RE approval

22 years agoCorrect US Robotics Wireless Card 2410 entry
imp [Fri, 24 May 2002 15:28:38 +0000 (15:28 +0000)]
Correct US Robotics Wireless Card 2410 entry

22 years agoAdd openpam_nullconv.3.
des [Fri, 24 May 2002 13:22:15 +0000 (13:22 +0000)]
Add openpam_nullconv.3.

22 years agoAdd missing include.
des [Fri, 24 May 2002 13:20:40 +0000 (13:20 +0000)]
Add missing include.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r97241,
des [Fri, 24 May 2002 13:18:43 +0000 (13:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r97241,
which included commits to RCS files with non-trunk default branches.

22 years agoVendor import of OpenPAM Cinquefoil.
des [Fri, 24 May 2002 13:18:43 +0000 (13:18 +0000)]
Vendor import of OpenPAM Cinquefoil.

22 years agoFully reset a gem on some error conditions; otherwise it would hang in
tmm [Fri, 24 May 2002 12:47:41 +0000 (12:47 +0000)]
Fully reset a gem on some error conditions; otherwise it would hang in
about 1 of 10 cases.

Proposed and tested by: phk

22 years agoConvert Perl scripts to awk(1).
ru [Fri, 24 May 2002 11:03:41 +0000 (11:03 +0000)]
Convert Perl scripts to awk(1).

22 years agoIf a file argument cannot be processed, process the remaining ones
tjr [Fri, 24 May 2002 10:58:21 +0000 (10:58 +0000)]
If a file argument cannot be processed, process the remaining ones
and exit non-zero (SUSv3)

22 years agoWhen a file name of "-" is given, read from standard input (SUSv3)
tjr [Fri, 24 May 2002 09:56:18 +0000 (09:56 +0000)]
When a file name of "-" is given, read from standard input (SUSv3)

22 years agoThe previous ANSIfication did not take into account earlier,
markm [Fri, 24 May 2002 09:40:51 +0000 (09:40 +0000)]
The previous ANSIfication did not take into account earlier,
non-compliant compilers. Revert to the compatible form to allow
upgrade-builds.

22 years agoThe previous ANSIfication did not take into account upgrade-builds
markm [Fri, 24 May 2002 09:37:10 +0000 (09:37 +0000)]
The previous ANSIfication did not take into account upgrade-builds
uing an earlier, non-compliant compiler. Revert to the compatible
form.

22 years agoAllow byte/character positions >_POSIX2_LINE_MAX to be specified by
tjr [Fri, 24 May 2002 09:11:18 +0000 (09:11 +0000)]
Allow byte/character positions >_POSIX2_LINE_MAX to be specified by
dynamically growing the `positions' array.

22 years agoUse fgetln(3) to handle lines of unlimited length instead of a
tjr [Fri, 24 May 2002 08:56:49 +0000 (08:56 +0000)]
Use fgetln(3) to handle lines of unlimited length instead of a
getc/putc loop.

Suggested by: dd

22 years agoDon't err(3) (and exit prematurely) when a sysctl's object size has
alfred [Fri, 24 May 2002 08:34:18 +0000 (08:34 +0000)]
Don't err(3) (and exit prematurely) when a sysctl's object size has
changed, instead just warn(3)

22 years agoFixed AES encryption algorithm bug
suz [Fri, 24 May 2002 07:26:17 +0000 (07:26 +0000)]
Fixed AES encryption algorithm bug

PR:             kern/38465
Obtained from:  Ramana Yarlagadda <ramana.yarlagadda@analog.com>

22 years agoP1003.2 forbids imposing any limit on line lengths; read character by
tjr [Fri, 24 May 2002 07:05:10 +0000 (07:05 +0000)]
P1003.2 forbids imposing any limit on line lengths; read character by
character instead of manually buffering each line.

22 years agoFix warnings: deprecated use of label at end of compound statement
peter [Fri, 24 May 2002 07:02:04 +0000 (07:02 +0000)]
Fix warnings: deprecated use of label at end of compound statement

22 years agoFix warnings due to macro varargs.
peter [Fri, 24 May 2002 06:32:18 +0000 (06:32 +0000)]
Fix warnings due to macro varargs.

22 years agoRemoved dead code.
ru [Fri, 24 May 2002 06:30:07 +0000 (06:30 +0000)]
Removed dead code.

22 years agoHandle endianness. This completes cross-support for sparc64.
ru [Fri, 24 May 2002 06:24:40 +0000 (06:24 +0000)]
Handle endianness.  This completes cross-support for sparc64.

22 years agoOops, I missed this warning. Comment out extra junk after #endif
peter [Fri, 24 May 2002 06:22:48 +0000 (06:22 +0000)]
Oops, I missed this warning. Comment out extra junk after #endif

22 years agoPacify gcc by preinitializing a variable.
peter [Fri, 24 May 2002 06:17:42 +0000 (06:17 +0000)]
Pacify gcc by preinitializing a variable.

22 years agoExit with non-zero status if any files specified could not be opened
tjr [Fri, 24 May 2002 06:17:29 +0000 (06:17 +0000)]
Exit with non-zero status if any files specified could not be opened
when -s option is given (SUSv3).

22 years agoFix a few warnings by adding a missing prototype
peter [Fri, 24 May 2002 06:17:17 +0000 (06:17 +0000)]
Fix a few warnings by adding a missing prototype

22 years agoFix warning; Extra tokens after #endif
peter [Fri, 24 May 2002 06:11:07 +0000 (06:11 +0000)]
Fix warning; Extra tokens after #endif

22 years agoFix warning; remove unused arg that was passed through uninitialized.
peter [Fri, 24 May 2002 06:10:25 +0000 (06:10 +0000)]
Fix warning; remove unused arg that was passed through uninitialized.

22 years agoFix warnings. Also, removed an unused variable that I found that was just
peter [Fri, 24 May 2002 06:06:18 +0000 (06:06 +0000)]
Fix warnings.  Also, removed an unused variable that I found that was just
initialized and never used afterwards.

22 years agoIf processing of one file fails, try to process the remaining files and
tjr [Fri, 24 May 2002 06:03:12 +0000 (06:03 +0000)]
If processing of one file fails, try to process the remaining files and
exit non-zero instead of immediately exiting. The traditional BSD
behaviour is explicitly forbidden by P1003.2.

22 years agoFix new compiler unhappiness.
peter [Fri, 24 May 2002 06:01:07 +0000 (06:01 +0000)]
Fix new compiler unhappiness.

22 years agoIf processing of one file fails, try to process the remaining files and
tjr [Fri, 24 May 2002 06:00:47 +0000 (06:00 +0000)]
If processing of one file fails, try to process the remaining files and
exit non-zero instead of immediately exiting (SUSv3).

22 years agoFix deprecated use of label at end of compound statement
peter [Fri, 24 May 2002 05:58:13 +0000 (05:58 +0000)]
Fix deprecated use of label at end of compound statement

22 years agoConstify a debug function arg that we pass __func__ to in order to pacify
peter [Fri, 24 May 2002 05:57:47 +0000 (05:57 +0000)]
Constify a debug function arg that we pass __func__ to in order to pacify
gcc-3.1's 'const char *__func__;'

22 years agoFix warnings; deprecated use of label at end of compound statement
peter [Fri, 24 May 2002 05:54:40 +0000 (05:54 +0000)]
Fix warnings; deprecated use of label at end of compound statement

22 years agopacify gcc-3.1's -Wunused checking.
peter [Fri, 24 May 2002 05:53:57 +0000 (05:53 +0000)]
pacify gcc-3.1's -Wunused checking.

22 years agoFix warning; deprecated use of label at end of compound statement
peter [Fri, 24 May 2002 05:50:28 +0000 (05:50 +0000)]
Fix warning; deprecated use of label at end of compound statement

22 years agoFix some low hanging fruit warnings. There are problems in i4b_ing.c
peter [Fri, 24 May 2002 05:46:50 +0000 (05:46 +0000)]
Fix some low hanging fruit warnings.  There are problems in i4b_ing.c
still, but they are due due to some bogosity in netgraph.

22 years agoFix trivial warning:
peter [Fri, 24 May 2002 05:40:51 +0000 (05:40 +0000)]
Fix trivial warning:
smb_iod.c:560: deprecated use of label at end of compound statement

22 years agoFix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanly
peter [Fri, 24 May 2002 05:21:36 +0000 (05:21 +0000)]
Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanly
again.

22 years agoThese files are no longer used.
jake [Fri, 24 May 2002 04:41:02 +0000 (04:41 +0000)]
These files are no longer used.

22 years agoReorder prototypes to be in alphabetical order.
deischen [Fri, 24 May 2002 04:35:55 +0000 (04:35 +0000)]
Reorder prototypes to be in alphabetical order.

22 years agoAdd the prototypes for pthread_suspend_all_np and pthread_resume_all_np.
deischen [Fri, 24 May 2002 04:33:07 +0000 (04:33 +0000)]
Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.

22 years agoRevamp suspend and resume. While I'm here add pthread_suspend_all_np()
deischen [Fri, 24 May 2002 04:32:28 +0000 (04:32 +0000)]
Revamp suspend and resume.  While I'm here add pthread_suspend_all_np()
and pthread_resume_all_np().  These suspend and resume all threads except
the current thread, respectively.  The existing functions pthread_single_np()
and pthread_multi_np(), which formerly had no effect, now exhibit the same
behaviour and pthread_suspend_all_np() and pthread_resume_all_np().  These
functions have been added mostly for the native java port.

Don't allow the uthread kernel pipe to use the same descriptors as
stdio.  Mostily submitted by Oswald Buddenhagen <ossi@kde.org>.

Correct some minor style nits.

22 years agoAdd a nextboot script to make it easier to control the loader nextboot
gordon [Fri, 24 May 2002 04:06:03 +0000 (04:06 +0000)]
Add a nextboot script to make it easier to control the loader nextboot
support. Also, hook it up to the build.

Approved by: jake (mentor)

22 years agoRemove /usr/share/perl/man
ache [Fri, 24 May 2002 03:21:11 +0000 (03:21 +0000)]
Remove /usr/share/perl/man

22 years agoAdd support for reading an additional loader configuration file. By default,
gordon [Fri, 24 May 2002 02:28:58 +0000 (02:28 +0000)]
Add support for reading an additional loader configuration file. By default,
this is called /boot/nextboot.conf. This file is required to have it's first
line be nextboot_enable="YES" for it to be read. Also, this file is
rewritten by the loader to nextboot_enable="NO"<space> after it is read.
This makes it so the file is read exactly once. Finally, the nextboot.conf
is removed shortly after the filesystems are mounted r/w.

Caution should be taken as you can shoot yourself in the foot. This is only
the loader piece. There will be a tool called nextboot(8) that will manage
the nextboot.conf file for you. It is coming shortly.

Reviewed by: dcs
Approved by: jake (mentor)

22 years agoAdd a new make.conf knob, SENDMAIL_MAP_PERMS, which specifies the
gshapiro [Fri, 24 May 2002 01:46:39 +0000 (01:46 +0000)]
Add a new make.conf knob, SENDMAIL_MAP_PERMS, which specifies the
permissions to use for alias and map database files built by
/etc/mail/Makefile.  The default is 0640 to assist users in avoiding
a file locking local denial of service.

MFC after: 1 day
pending RE approval

22 years agoChange the default permissions for the sendmail statistics file to 0640
gshapiro [Fri, 24 May 2002 01:44:53 +0000 (01:44 +0000)]
Change the default permissions for the sendmail statistics file to 0640
instead of 0644 to help protect users against a file locking local
denial of service.

MFC after: 1 day
pending RE approval

22 years ago o Replace the vm_map's hint by the root of a splay tree. By design,
alc [Fri, 24 May 2002 01:33:24 +0000 (01:33 +0000)]
 o Replace the vm_map's hint by the root of a splay tree.  By design,
   the last accessed datum is moved to the root of the splay tree.
   Therefore, on lookups in which the hint resulted in O(1) access,
   the splay tree still achieves O(1) access.  In contrast, on lookups
   in which the hint failed miserably, the splay tree achieves amortized
   logarithmic complexity, resulting in dramatic improvements on vm_maps
   with a large number of entries.  For example, the execution time
   for replaying an access log from www.cs.rice.edu against the thttpd
   web server was reduced by 23.5% due to the large number of files
   simultaneously mmap()ed by this server.  (The machine in question has
   enough memory to cache most of this workload.)

   Nothing comes for free: At present, I see a 0.2% slowdown on "buildworld"
   due to the overhead of maintaining the splay tree.  I believe that
   some or all of this can be eliminated through optimizations
   to the code.

Developed in collaboration with: Juan E Navarro <jnavarro@cs.rice.edu>
Reviewed by: jeff

22 years agoFor now, make the .ifdef GCC3 case default. We should change -Wno-format
peter [Fri, 24 May 2002 01:02:45 +0000 (01:02 +0000)]
For now, make the .ifdef GCC3 case default.  We should change -Wno-format
back to -fformat-extensions (or whatever) when we have the functionality.
We are gaining warnings again that should be fixed but the are being hidden
by NO_WERROR and all the -Wformat noise.