Commit Graph

49648 Commits

Author SHA1 Message Date
Ollivier Robert
4f437f951e Add ftp4.fr.freebsd.org (aka altair.worldonline.fr) and ftp5.fr.freebsd.org
(aka ns1.bsdfr.org)

Strong MFC 4.1 candidate.
2000-07-02 14:25:26 +00:00
Ollivier Robert
c790e2240e This is the patch to make my soundcard, a Creative Ensoniq AudioPCI (an
es1371 chip, device id 0x58801274 rev 0x02).

Submitted by:	Kenneth Wayne Culver <culverk@wam.umd.edu>
2000-07-02 14:17:41 +00:00
Daniel C. Sobral
e6a886d8db Enhance the optimization provided by pre-matching. Fix style bugs with
previous commits.

At the time we search the pattern for the "must" string, we now compute
the longest offset from the beginning of the pattern at which the must
string might be found. If that offset is found to be infinite (through
use of "+" or "*"), we set it to -1 to disable the heuristics applied
later.

After we are done with pre-matching, we use that offset and the point in
the text at which the must string was found to compute the earliest
point at which the pattern might be found.

Special care should be taken here. The variable "start" is passed to the
automata-processing functions fast() and slow() to indicate the point in
the text at which they should start working from. The real beginning of
the text is passed in a struct match variable m, which is used to check
for anchors. That variable, though, is initialized with "start", so we
must not adjust "start" before "m" is properly initialized.

Simple tests showed a speed increase from 100% to 400%, but they were
biased in that regexec() was called for the whole file instead of line
by line, and parenthized subexpressions were not searched for.

This change adds a single integer to the size of the "guts" structure,
and does not change the ABI.

Further improvements possible:

Since the speed increase observed here is so huge, one intuitive
optimization would be to introduce a bias in the function that computes
the "must" string so as to prefer a smaller string with a finite offset
over a larger one with an infinite offset. Tests have shown this to be a
bad idea, though, as the cost of false pre-matches far outweights the
benefits of a must offset, even in biased situations.

A number of other improvements suggest themselves, though:

	* identify the cases where the pattern is identical to the must
	string, and avoid entering fast() and slow() in these cases.

	* compute the maximum offset from the must string to the end of
	the pattern, and use that to set the point at which fast() and
	slow() should give up trying to find a match, and return then
	return to pre-matching.

	* return all the way to pre-matching if a "match" was found and
	later invalidated by back reference processing. Since back
	references are evil and should be avoided anyway, this is of
	little use.
2000-07-02 10:58:07 +00:00
Daniel C. Sobral
5ead635430 Remove from the notes a bug that it's said to have been fixed.
PR: 15561
Submitted by: Martin Kammerhofer <mkamm@gmx.net>
Confirmed by: ache
2000-07-02 10:34:25 +00:00
Brian Feldman
42ebfbf227 Modify ktrace's general I/O tracing, ktrgenio(), to use a struct uio *
instead of a struct iovec * array and int len.  Get rid of stupidly trying
to allocate all of the memory and copyin()ing the entire iovec[], and
instead just do the proper VOP_WRITE() in ktrwrite() using a copy of
the struct uio that the syscall originally used.

This solves the DoS which could easily be performed; to work around the
DoS, one could also remove "options KTRACE" from the kernel.  This is
a very strong MFC candidate for 4.1.

Found by:	art@OpenBSD.org
2000-07-02 08:08:09 +00:00
Andrey A. Chernov
3d99cebff4 Call login_close() to prevent parent from memory leaking in some
cases due to vfork()
2000-07-02 04:15:15 +00:00
Warner Losh
9fb5801442 fix fd leak by close(fd) at end of loop. 2000-07-02 03:34:08 +00:00
Andrey A. Chernov
f8ca1b7655 Fix manpath for new perl 2000-07-02 03:17:31 +00:00
Andrey A. Chernov
fe46d6a8f3 Prevent user from breaking his limits and restrictions or
abusing sendmail by any other way via MAILTO tag (since sendmail is running
from daemon). Now run sendmail from user, as any other cron user command.

Obtained from:	Inspired by OpenBSD, but implementation is different
2000-07-01 22:58:16 +00:00
Andrey A. Chernov
c38d808de1 Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS arguments
Obtained from:	OpenBSD popen.c v1.3
2000-07-01 22:37:02 +00:00
John Baldwin
c27edf93b0 - Build modules with world so that modules are back in the bin dist.
- Small cleanups to kernel installs.
- Don't install kernel.config and loader.config on the boot floppy since
  they haven't been used in quite some time.
2000-07-01 21:48:05 +00:00
Nick Hibma
f1f05bbb10 Print the correct speed when speed is less than 1MB/s.
Fixed in cam_xpt.c, r1.81

Submitted by:           Gerd Knops <gerti@bitart.com>
2000-07-01 21:28:49 +00:00
Andrey A. Chernov
5e4a74ec02 Enable SIGCHLD to stop childs complaining to SIG_IGN of it.
It helps perl f.e.

Obtained from:	OpenBSD do_command.c v1.7
2000-07-01 21:25:33 +00:00
Dan Moschuk
d81584ae91 Style fixes. 2000-07-01 17:49:34 +00:00
Dan Moschuk
e63a7af508 Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE.
Since alex is a -doc committer, he can update his own manpage. :-)

Also add $FreeBSD$ while I'm here.

Submitted by: alex
2000-07-01 15:55:49 +00:00
Roger Hardiman
7bae8dfb17 Add .image.list to the list of temporary files which can be deleted 2000-07-01 13:51:22 +00:00
Roger Hardiman
3092789a18 Add a missing 'fi' from an if statement 2000-07-01 12:04:15 +00:00
Paul Saab
61c3dd35ce Backout rev 1.8. This really does not give us the version number
of the kld's.

Pointed out by:		bp
2000-07-01 07:57:28 +00:00
Alfred Perlstein
64566a3e2a bring in binary search tree code.
Obtained from: NetBSD
2000-07-01 06:55:11 +00:00
Brian Feldman
b4739f39af The SVR4 module calls itself ELFOSABI_SOLARIS, and who am I to disagree
if it runs my Solaris binaries?  Add the missing "Solaris" type here
so that binaries may be branded with it rather than the seemingly-
defunct ELFOSABI_SVR4.
2000-07-01 05:48:33 +00:00
Brian Feldman
c15c898eff Various cleanups are made to reduce warnings and make code prettier :)
Also, check for ftruncate() return value and die on failure, but only
try to ftruncate() when the file is a regular file.
2000-07-01 05:36:25 +00:00
Roger Hardiman
5bbd55b415 Add 'bridge' so we can clean up the bridge files too 2000-07-01 04:40:01 +00:00
Brian S. Dean
c6d3f3bfc1 Fix my own style bugs (use of spaces instead of tabs for indentation).
This is a style-only change.
2000-07-01 02:40:13 +00:00
Matthew Hunt
e97781bf25 Quit on EOF from terminal instead of redisplaying the prompt. 2000-06-30 20:05:21 +00:00
Warner Losh
27dc3a2b96 Note des' libfetch/fetch changes.
Clarify requirements for dev random, et al, from markm's commit.

Initial diffs for the latter by: archie
2000-06-30 17:19:07 +00:00
Archie Cobbs
c38d75f43d Previous commit didn't work; this time really fix it. 2000-06-30 16:38:24 +00:00
Garrett Wollman
9ec4c09af1 Use consistent markup for literals and quoted metasyntactic variables.
Left unfixed: `NIS' should be marked up as a tradename.
2000-06-30 15:59:48 +00:00
Garrett Wollman
c9e5fb39e5 Spell `99%' correctly. 2000-06-30 15:28:06 +00:00
Garrett Wollman
4469e49ba8 Fix spelling of `whose'. 2000-06-30 15:22:18 +00:00
Andrey A. Chernov
84cbde3ac5 Update cons* entries from termcap 2000-06-30 14:01:49 +00:00
Sheldon Hearn
c5eadb2bdb Do not link bktr.4 and bt.4 into ../, since these are no longer
installed from man4.i386.

PR:		19601
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
2000-06-30 11:50:46 +00:00
Sheldon Hearn
98a83e2dd1 Use "yesterday's" instead of "yesterdays" as required for correct
grammar.

Since this pushes the line to an unacceptable length, apply the
accepted line breaking style.
2000-06-30 11:24:31 +00:00
Peter Wemm
f1cfac6222 Fix the perl build on the Alpha. int32 is 'int' not 'long'. int64 is
'long', not 'long long'.  Maybe the intXX_t types should have been used.
2000-06-30 11:22:19 +00:00
Brian Somers
1fb83b0a07 De-spam (oops!)
Spotted by: sheldonh
2000-06-30 11:18:19 +00:00
Brian Somers
2d60050a94 Add $daily_status_mail_rejects_logs, defaulting to 3 to control
how many /var/log/maillog* files to check

PR:	19587
2000-06-30 09:41:16 +00:00
Brian Somers
7c26f8927b Correct two variable names
Mostly submitted by:	howardjp@wam.umd.edu
PR:			19567
2000-06-30 09:39:51 +00:00
Sheldon Hearn
cbe10916b3 Only punctuation is an allowed argument type for open-close macros
such as Po/Pc, as explained by phantom.

Reported by:	billf
2000-06-30 06:30:53 +00:00
Bill Fumerola
765823fba4 add a real prototype for printit() 2000-06-30 03:17:42 +00:00
Archie Cobbs
44ce4b7dcd Provide forward declarations for struct ifnet and struct mbuf
to avoid compiler warnings.
2000-06-29 22:30:42 +00:00
Archie Cobbs
6ec86086e7 Fix kernel build breakage when 'device ether' was not included. 2000-06-29 19:14:28 +00:00
Daniel C. Sobral
6b709b74ae Initialize variables used by the Boyer-Moore algorithm.
This should fix core dumps when the must pattern is of length
three or less.

Bug found by: knu
2000-06-29 18:53:55 +00:00
Mark Murray
8bea8d9daa Tweaks to the build to allow "make -DNOCLEAN" and "make release" to
work.
2000-06-29 18:21:51 +00:00
Archie Cobbs
6c66bbed1a Move the securelevel check before loading KLD's into linker_load_file(),
instead of requiring every caller of linker_load_file() to perform the
check itself. This avoids netgraph loading KLD's when securelevel > 0,
not to mention any future code that may call linker_load_file().

Reviewed by:	dfr
2000-06-29 17:57:04 +00:00
Andrey A. Chernov
849c64f5ff Fix assigning alt_month in compatibility code 2000-06-29 17:21:45 +00:00
Yoshihiro Takahashi
7ec62217f0 - Removed machine dependent directory and command from
src/release/{boot,fixit}_crunch.conf.
- Added machine specific fixit_crunch.conf for PC/AT and PC-98 to
  src/release/$MACHINE.
- Use config file in src/release/$MACHINE if exist. If it does not exist,
  use in src/release.
2000-06-29 13:34:54 +00:00
Alexander Langer
dba11ce52b - MSDOSFS can do both FAT _and_ FAT32. Since the name "MSDOS" might be
confusing, explecitely mention this.
- softupdates' README is no longer in contrib/softupdates. Fix new location.
2000-06-29 10:45:55 +00:00
Dag-Erling Smørgrav
893980ad29 Make restart work in active mode, too.
PR:		bin/18688
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
2000-06-29 10:44:10 +00:00
Dag-Erling Smørgrav
047843dd61 Note that the -h, -c and -f options are deprecated, and remove note that
incorrectly stated that they were not implemented.
Document the -d option.
2000-06-29 10:35:24 +00:00
Dag-Erling Smørgrav
a8369cd91b Implement the -c option 2000-06-29 10:32:56 +00:00
Ruslan Ermilov
f685a909b5 "Ease understanding" of how -punch_fw works.
Reviewed by:	sheldonh
2000-06-29 09:52:14 +00:00