summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-2014-35/+37
|
* Merged from sys/i386/i386/machdep.c revision 1.421.kato2000-11-202-0/+4
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-2025-51/+51
|
* Fix typo; s/demon/daemon/ben2000-11-202-2/+2
| | | | | PR: 22955, 22956 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* More aggressively rate limit the growth of soft dependency structuresmckusick2000-11-201-33/+21
| | | | | | | | | | | in the face of multiple processes doing massive numbers of filesystem operations. While this patch will work in nearly all situations, there are still some perverse workloads that can overwhelm the system. Detecting and handling these perverse workloads will be the subject of another patch. Reviewed by: Paul Saab <ps@yahoo-inc.com> Obtained from: Ethan Solomita <ethan@geocast.com>
* Add -lcrypt. This fixes cross-building.marcel2000-11-201-1/+1
|
* Fix cross-building.marcel2000-11-208-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Move building libperl and miniperl from build-tools to cross-tools. libperl uses MACHINE_ARCH to determine the right configuration, which doesn't match the build machine when cross-building if they are built as build- tools. o Since miniperl needs to be built as a cross-tool, it needs to be installed under /usr/obj so that it can be used (cross-tools have a special object directory to avoid build conflicts. As a downside, you can't easily run cross-tools from their object directory). Remove the install and distribute override targets. To avoid having miniperl installed by installworld, remove it from SUBDIR. o We can't pickup miniperl from the object directory but since it's installed, depend on PATH. This is save, because the makefiles are run with a known path. o Build libperl again as part of the library target. A _libperl variable existed, but it was never defined. o Add chmod to the list of saved tools, because perl conditionally uses it during install. The bootstrap-tools and cross-tools targets are modified to avoid building profiled and shared libraries. While here, have these targets build static binaries instead of shared binaries. Approved by: markm
* Fix MD macros to work for alpha. Without this fix, threads under alphadeischen2000-11-203-12/+12
| | | | | | | | seem to be totally broke. MFC Candidate Submitted by: gallatin
* Accept filters broke kernels compiled without options INET.alfred2000-11-202-7/+20
| | | | | | | Make accept filters conditional on INET support to fix. Pointed out by: bde Tested and assisted by: Stephen J. Kiernan <sab@vegamuse.org>
* o Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE.rwatson2000-11-201-0/+3
| | | | | This removes a reason that systat requires setgid kmem. More to come.
* o Export nchstats ("VFS cache effectiveness statistics") usingrwatson2000-11-201-0/+4
| | | | | SYSCTL_OPAQUE. This removes a reason that systat requires setgid kmem. More to come.
* o Export dmmax ("Maximum size of a swap block") using SYSCTL_INT.rwatson2000-11-201-0/+3
| | | | | This removes a reason that systat requires setgid kmem. More to come.
* Disable calling timeout() when doing bio. It was causing more prolems thanscottl2000-11-191-2/+8
| | | | solving. This will be fixed for real soon.
* Make sbcompress use the new M_WRITABLE macro. Previously sbcompressdwmalone2000-11-192-4/+8
| | | | | | | | | | | | | | could not compress into clusters. This could result in lots of wasted clusters while recieving small packets from an interface that uses clusters for all it's packets. Patch is partially from BSDi (limiting the size of the copy) and based on a patch for 4.1 by Ian Dowse <iedowse@maths.tcd.ie> and myself. Reviewed by: bmilekic Obtained From: BSDi Submitted by: iedowse
* Standardize spelling of "optimization" in commentsdougb2000-11-192-6/+6
| | | | | PR: conf/22622 Submitted by: knu
* When to run the periodic/daily event has had several rounds of discussiondougb2000-11-191-1/+1
| | | | | | | | | | | | over the past couple years. The most recent came to the general consensus that this was the best time, but no one actually made the change, so I'll don my asbestos undies and dive in. Please note that this time was chosen with input from people in various countries with various methods and schedules for switching to and from DST. There is no perfect time to schedule this job that works for everyone, but this time both A) Works for more people, and B) Causes problems for fewer people. And, ultimately, you can always change it if you need to.
* Some gratuitous whitespace changes.brian2000-11-192-16/+22
|
* Describe how to tunnel properly.brian2000-11-192-8/+152
| | | | Requested by: Greg Quinlan <greg@macquarrie.com.au>
* Accept MSCHAPv2 by default.brian2000-11-193-2/+6
| | | | Enable and accept MPPE by default.
* Format string paranoiakris2000-11-193-5/+5
|
* Format string error in warn()kris2000-11-191-2/+2
|
* Use mktemp -t to respect TMPDIRkris2000-11-191-7/+7
| | | | Clean up temporary file at runtime
* Correct typokris2000-11-191-1/+1
|
* Format string paranoiakris2000-11-191-2/+2
|
* Convert various calls to splhigh() to disable_intr() since splhigh() isdfr2000-11-198-28/+34
| | | | now a no-op.
* We don't need <stddef.h> for offsetof() any more.dfr2000-11-192-4/+0
|
* Unlink the temporary file immediately so it is removed on exit.kris2000-11-191-19/+15
| | | | Obtained from: OpenBSD
* MAXPATHNAMELEN -> MAXPATHLENkris2000-11-191-1/+1
| | | | | Submitted by: ianm@kashmir.cit.nepean.uws.edu.au via OpenBSD Obtained from: OpenBSD
* L_SET -> SEEK_SETkris2000-11-191-1/+1
| | | | Obtained from: OpenBSD
* Format string paranoiakris2000-11-191-1/+2
| | | | Obtained from: OpenBSD
* Don't suggest people use getpid() to construct temporary filenames;kris2000-11-191-2/+6
| | | | | | point them to mkstemp() instead. Obtained from: OpenBSD (based on)
* Update the documentation to describe the new mktemp() family behaviour.kris2000-11-191-8/+33
| | | | | | | Also notes that mkstemp() first appeared in 4.4BSD (change obtained from OpenBSD) Reviewed by: sheldonh
* Fix a buffer overflow from a long local hostname.kris2000-11-193-6/+6
| | | | Obtained from: OpenBSD
* Don't use sizeof() on a pointer when we really wanted to measurekris2000-11-193-9/+4
| | | | | | | the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD
* - Protect the callout wheel with a separate spin mutex, callout_lock.jake2000-11-1911-20/+50
| | | | | | | | | | | - Use the mutex in hardclock to ensure no races between it and softclock. - Make softclock be INTR_MPSAFE and provide a flag, CALLOUT_MPSAFE, which specifies that a callout handler does not need giant. There is still no way to set this flag when regstering a callout. Reviewed by: -smp@, jlemon
* Check return code from login_tty. Allow getty to try and becomejwd2000-11-191-1/+12
| | | | | | | a daemon and session leader (thus allowing getty to be run from a shell command line or script). Partially Reviewed by: bde
* Add/fix the ability to split a file larger than 2 gigabytes.jwd2000-11-191-4/+6
| | | | | | | | Added $FreeBSD tag (in the way the already present sccsid is done). I've been told the rcsid stuff may be of dubious value so I'm curious to know if folks (still) use it. Submitted by: Brad Chisholm <blc@bsdwins.com>
* Implement a low-memory deadlock solution.dillon2000-11-1814-185/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed most of the hacks that were trying to deal with low-memory situations prior to now. The new code is based on the concept that I/O must be able to function in a low memory situation. All major modules related to I/O (except networking) have been adjusted to allow allocation out of the system reserve memory pool. These modules now detect a low memory situation but rather then block they instead continue to operate, then return resources to the memory pool instead of cache them or leave them wired. Code has been added to stall in a low-memory situation prior to a vnode being locked. Thus situations where a process blocks in a low-memory condition while holding a locked vnode have been reduced to near nothing. Not only will I/O continue to operate, but many prior deadlock conditions simply no longer exist. Implement a number of VFS/BIO fixes (found by Ian): in biodone(), bogus-page replacement code, the loop was not properly incrementing loop variables prior to a continue statement. We do not believe this code can be hit anyway but we aren't taking any chances. We'll turn the whole section into a panic (as it already is in brelse()) after the release is rolled. In biodone(), the foff calculation was incorrectly clamped to the iosize, causing the wrong foff to be calculated for pages in the case of an I/O error or biodone() called without initiating I/O. The problem always caused a panic before. Now it doesn't. The problem is mainly an issue with NFS. Fixed casts for ~PAGE_MASK. This code worked properly before only because the calculations use signed arithmatic. Better to properly extend PAGE_MASK first before inverting it for the 64 bit masking op. In brelse(), the bogus_page fixup code was improperly throwing away the original contents of 'm' when it did the j-loop to fix the bogus pages. The result was that it would potentially invalidate parts of the *WRONG* page(!), leading to corruption. There may still be cases where a background bitmap write is being duplicated, causing potential corruption. We have identified a potentially serious bug related to this but the fix is still TBD. So instead this patch contains a KASSERT to detect the problem and panic the machine rather then continue to corrupt the filesystem. The problem does not occur very often.. it is very hard to reproduce, and it may or may not be the cause of the corruption people have reported. Review by: (VFS/BIO: mckusick, Ian Dowse <iedowse@maths.tcd.ie>) Testing by: (VM/Deadlock) Paul Saab <ps@yahoo-inc.com>
* Add the splvm()'s suggested in PR 20609 to protect vm_pager_page_unswapped().dillon2000-11-181-0/+3
| | | | | | The remainder of the PR is still open. PR: kern/20609 (partial fix)
* This patchset fixes a large number of file descriptor race conditions.dillon2000-11-1817-245/+1789
| | | | | | | | | | | | Pre-rfork code assumed inherent locking of a process's file descriptor array. However, with the advent of rfork() the file descriptor table could be shared between processes. This patch closes over a dozen serious race conditions related to one thread manipulating the table (e.g. closing or dup()ing a descriptor) while another is blocked in an open(), close(), fcntl(), read(), write(), etc... PR: kern/11629 Discussed with: Alexander Viro <viro@math.psu.edu>
* Fix typo.ben2000-11-181-1/+1
| | | | | PR: 22923 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* Fix typos.ben2000-11-181-3/+3
| | | | | PR: 22922 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* Fix another typo.ben2000-11-181-1/+1
| | | | | PR: 22924 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* While in the SYNOPSIS section, Nm macro always required anru2000-11-181-6/+4
| | | | | | | | | | | | | | | | argument to setup indentation for the rest of the synopsis line and to automatically emit a line break for a non-first synopsis line. It does not require it anymore. The following now works as expected: .Sh NAME .Nm utility .Sh SYNOPSIS .Nm .Cm start .Nm .Cm stop
* mdoc(7) police: fix errors uncovered by the new feature of the Nm macro.ru2000-11-182-3/+2
|
* Further use of M_ZERO.dwmalone2000-11-185-13/+7
| | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: msmith
* Add the use of M_ZERO to netgraph.dwmalone2000-11-1823-66/+36
| | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Submitted by: archie Approved by: archie
* mdoc(7) police: now that Nm macro accepts punctuation charactersru2000-11-181-1/+1
| | | | | | as argument, unbreak this page by escaping the `[' character. Noticed by: sheldonh
* Fix a braino ..sos2000-11-181-1/+1
|
* do not blindly assume 8khz is supported on open(). try for 8khz but respectcg2000-11-181-3/+6
| | | | | | minspeed/maxspeed specified by the hw driver. Submitted by: Andrew Gordon <arg@arg1.demon.co.uk>
OpenPOWER on IntegriCloud