summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Make the acquisition of Giant in vm_fault_unwire() conditional on thealc2004-03-103-15/+5
| | | | | | | | | | | | pmap. For the kernel pmap, Giant is not required. In general, for other pmaps, Giant is required by i386's pmap_pte() implementation. Specifically, the use of PMAP2/PADDR2 is synchronized by Giant. Note: In principle, updates to the kernel pmap's wired count could be lost without Giant. However, in practice, we never use the kernel pmap's wired count. This will be resolved when pmap locking appears. - With the above change, cpu_thread_clean() and uma_large_free() need not acquire Giant. (The first case is simply the revival of i386/i386/vm_machdep.c's revision 1.226 by peter.)
* Lock down IP-layer encapsulation library:rwatson2004-03-101-51/+35
| | | | | | | | | | | | | | | | | - Add encapmtx to protect ip_encap.c global variables (encapsulation list). - Unifdef #ifdef 0 pieces of encap_init() which was (and now really is) basically a no-op. - Lock encapmtx when walking encaptab, modifying it, comparing entries, etc. - Remove spl's. Note that currently there's no facilite to make sure outstanding use of encapsulation methods on a table entry have drained bfore we allow a table entry to be removed. As such, it's currently the caller's responsibility to make sure that draining takes place. Reviewed by: mlaier
* Scrub unused variable zeroin_addr.rwatson2004-03-102-3/+0
|
* make sure we had the filedesc lock when calling fdinit when RFCFDG is setjmg2004-03-101-0/+4
| | | | | | | on call to rfork. Submitted by: Brian Buchanan Semi-Reviewed by: rwatson
* Another April Fool signs up.peadar2004-03-101-0/+1
|
* Const-poison ethernet and FDDI broadcast address constants, as theyrwatson2004-03-092-2/+2
| | | | are accessed read-only.
* Make this file more generally usable:phk2004-03-092-38/+70
| | | | | | | | Trigger not only on diskless booting sysctls being set, but also on the existence of the file "/etc/diskless". But do not try to extract IP# related keywords in that case. Add a general "remount" facility to allow non-NFS remounting.
* Make libgeom usable by C++ programs:jhb2004-03-094-149/+163
| | | | | | | | | | - Add DECL wrappers to libgeom.h. - Rename structure members in libgeom.h to use a lg_ prefix for member names. This is required because a few structures had members named 'class' which made g++ very unhappy. - Catch gstat(8) and gconcat(8) up to these API changes. Reviewed by: phk
* Remove duplicate code.jb2004-03-091-10/+0
| | | | Requested by: bde
* Trim unneeded includes from if_ndis_pccard.c and if_ndis_pci.c. Also removedwpaul2004-03-092-26/+0
| | | | unused variables from if_ndis_pccard.c
* Introduce stf_mtx to protect global softc list in if_stf. Addrwatson2004-03-091-8/+39
| | | | | | | | | | | | stf_destroy() to handle the common softc destruction path for the two destruction sources: interface cloning destroy, and module unload. NOTE: sc_ro, the cached route for stf conversion, is not synchronized against concurrent access in this change, that will follow in a future change. Reviewed by: pjd
* Many fixes.kientzle2004-03-0937-203/+448
| | | | | | | | | | | | | | | | Portability: Thanks to Juergen Lock, libarchive now compiles cleanly on Linux. Along the way, I cleaned up a lot of error return codes and reorganized some code to simplify conditional compilation of certain sections. Bug fixes: * pax format now actually stores filenames that are 101-154 characters long. * pax format now allows newline characters in extended attributes (this fixes a long-standing bug in ACL handling) * mtime/atime are now restored for directories * directory list is now sorted prior to fix-up to permit correct restore of non-writable dir heirarchies
* Introduce faith_mtx to protect the if_faith global softc list.rwatson2004-03-091-7/+27
| | | | | | Push if_faith softc destruction logic into faith_destroy() so that it can be called after softc list removal in both the clone destroy and module unload paths.
* If the resource listing obtained from BUS_GET_RESOURCE_LIST() inwpaul2004-03-091-0/+20
| | | | | | | | ndis_probe_pci() doesn't contain an entry for an IRQ resource, try to force one to be routed to us anyway by adding an extra call to bus_alloc_resource(). If this fails, then we have to abort the attach. Patch provided by jhb, tweaked by me.
* Make it possible to ``.undef ${VAR}'' (expanding VAR to getru2004-03-091-0/+1
| | | | | | the variable name to undef). Submitted by: Cyrille Lefevre
* Introduce lo_mtx to protect the global loopback softc list. I'm notrwatson2004-03-091-1/+7
| | | | | | | | really sure why we have a softc list for if_loop, given that it can't be unloaded, but that's an issue to revisit in the future as corrupting the softc list would still cause panics. Reviewed by: benno
* Introduce disc_mtx to protect the global softc list in if_disc.rwatson2004-03-091-8/+29
| | | | | | | | | | | Since there are two destroy paths for if_disc interfaces -- module unload and cloan interface destroy, create a new utility function disc_destroy(), which is callded on a softc after it has been removed from the global softc list; the cloaner and module unload entry paths will both remove it before calling disc_destroy(). Reviewed by: pjd
* Fix an integer overflow when dealing with very large volumes. This bugle2004-03-091-1/+1
| | | | | | | | prevented newfs to work on volumes that are larger than 1TB. PR: 63577 Submitted by: Masaki Takakashi <mtakahashi@se.gtd.cosmo.co.jp> Approved by: grog (mentor), bde
* Fix the easy warnings:dwmalone2004-03-096-40/+27
| | | | | | | | | 1) Avoid shadowing index. 2) Constness. 3) Missing prototype for ifcmd. 4) Missing include of string.h. 5) Avoid shadowing error function. 6) ANSI definition for main.
* Misc fixes brought to light by WARNS=6:dwmalone2004-03-091-14/+17
| | | | | | | | 1) Constness, unusedness and size_tness. 2) Don't clobber the value returned by hid_report_size in the daemon case. 3) Don't misspell "sizeof buf" as 100. 4) Don't run off the end of a buffer if the pid is about a google. 5) Avoid shadowing the usage function.
* - Don't take sectorsize from first disk. Calculate it by findingpjd2004-03-091-19/+48
| | | | | | | least common multiple of all disks sector sizes. This will allow to safely concatenate disks with different sector sizes. - Mark unused function arguments. - Other minor cleanups.
* Print a space character between string given as a macro argument andpjd2004-03-091-0/+1
| | | | bio description.
* And a bandaid so that the output of "available space" is correct whenle2004-03-091-1/+2
| | | | | | | | | | using -m and -g switches and "available space" is negative (i.e. when the file system is already using the root-reserved minimum free space). Obtained from: Stefan Farfeleder <stefan@fafoe.narf.at> PR: bin/62536 Submitted by: Peter van Dijk <peter@dataloss.nl> Approved by: grog (mentor), bde
* Since vinum doesn't fake disklabels anymore, remove get_volume_label().le2004-03-092-62/+0
| | | | | | | Also, remove stale write_volume_label() declaration; the write_volume_label() function was deleted 8 months ago. Approved by: grog (mentor)
* Fixed line numbering inside the .for loops.ru2004-03-091-1/+3
| | | | Submitted by: Cyrille Lefevre
* Simplify some logic in converting a buffer to an integer.njl2004-03-091-1/+3
|
* Use an unsigned int instead of an int for the Get/Set Integer interface.njl2004-03-092-6/+6
| | | | Pointed out by: le
* Backout the previous revision due to objections.jb2004-03-092-10/+4
|
* Reset the text attributes when initializing the console. The EFImarcel2004-03-091-0/+1
| | | | | loader typically doesn't do this so that we end up booting the with whatever the EFI loader has set it to last.
* Hook CPUs up to newbus. CPUs will ultimately be a bus driver so thatnjl2004-03-092-0/+68
| | | | | | | multiple CPU-specific drivers can attach. This is a work in progress so children aren't supported yet. Help from: jhb
* Add #ifdef CPU_SOEKRIS in the missing places around the led_* codejb2004-03-091-1/+10
| | | | | | | that is specific to those boards. This allows this file to compile again with CPU_ELAN enabled, but not CPU_SOEKRIS, for a Compulab board.
* AMD's ELAN documentation says that you write to the SYS_RST registerjb2004-03-091-0/+10
| | | | | | | | | in the Memory Mapped Configuration Region (MMCR) to reset the CPU. If CPU_ELAN is set, try this first to reset the CPU before the traditional way. Without this change, my Compulab board powers down on 'reset' instead of rebooting.
* On 4.X it was possible for an application to initialise a local FILEjb2004-03-092-4/+10
| | | | | | | | | structure and call stdio functions. In 5.X this was broken when FILE locking was introduced into libc. This change makes most (relevant) stdio functions work again when the _extra file in FILE isn't initialised (and can't be without a libc function to do it since the __sFILEX structure is private to libc).
* These aren't all binary options.mikeh2004-03-091-1/+1
|
* Fix typos.ale2004-03-081-2/+2
| | | | Approved by: blackend (mentor/implicitly)
* Bump __FreeBSD_version for the pf install and write comments to UPDATING.mlaier2004-03-082-1/+12
| | | | Approved by: bms(mentor)
* Link pf to the build and install:mlaier2004-03-0813-3/+681
| | | | | | | | | | | | | | | | This adds the former ports registered groups: proxy and authpf as well as the proxy user. Make sure to run mergemaster -p in oder to complete make installworld without errors. This also provides the passive OS fingerprints from OpenBSD (pf.os) and an example pf.conf. For those who want to go without pf; it provides a NO_PF knob to make.conf. __FreeBSD_version will be bumped soon to reflect this and to be able to change ports accordingly. Approved by: bms(mentor)
* Mark loadaverage callout as CALLOUT_MPSAFE.rwatson2004-03-081-1/+1
| | | | Reviewed by: jhb
* Add two new sysctls:pjd2004-03-082-4/+92
| | | | | | | | | | | - security.bsd.hardlink_check_uid, when set, means, that unprivileged users are not permitted to create hard links to files not owned by them, - security.bsd.hardlink_check_gid, when set, means, that unprivileged users are not permitted to create hard links to files owned by group they don't belong to. OK'ed by: rwatson
* Shift file locking to source file instead of temp file. This fixeskensmith2004-03-082-8/+5
| | | | | | | | | | | data buffering issue that corrupts files if two pw(8)'s run at the same time as well as changing pw(8) so it uses the same locking mechanism as PAM, vipw(8), pwd_mkdb(8), etc. PR: bin/23501 Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su> Approved by: rwatson (mentor) MFC after: 5 days
* Add a check for wtmp records which have invalid values for ut_time. Wtmpgad2004-03-081-12/+64
| | | | | | | | | | | | | | | records with time==0 get "the time of the last valid record", while records where time goes backwards (compared to the previous record) are skipped. Also prints a message saying how many records were changed or skipped due to these checks. Check was inspired by a simpler check in OpenBSD's version. This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac' when running sparc64 with 64-bit time_t's. The real problem is whatever is creating wtmp records with ut_time==0, of course, but I have not yet figured out what is doing that. Reviewed by: no screams from freebsd-sparc64 or bde MFC after: 2 weeks
* Compile 'ac' with DEBUG when arch==sparc64.gad2004-03-081-0/+5
|
* Add a debug-statement from NetBSD, and then rework all debug-statementsgad2004-03-081-9/+82
| | | | | | | | | | so the program compiles without errors or warnings when DEBUG is defined on sparc64 with 64-bit time_t's. Also have debug statements include the year when printing records from a different year than 'now'. Also print out a special timestamp in debug statements when ut_time==0. Reviewed by: freebsd-sparc, bde MFC after: 2 weeks
* Remove a.out at the end of 'make test'ache2004-03-081-1/+1
|
* String the consumers into the list of the provider they are attached to.phk2004-03-081-1/+5
| | | | Noticed by: jhb
* Fix two instances of improper NULL/0 use idetified by the changes lately.mlaier2004-03-082-2/+2
| | | | | Submitted by: Patrick Marie Approved by: bms(mentor)
* Update pmap_pinit(9) to reflect pmap_pinit2() removal by alc.bms2004-03-081-21/+1
|
* Manual page for the ng_atmllc node type.benno2004-03-082-0/+94
| | | | Currently missing a history section.
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-0884-84/+84
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Fix skipping scripts with given keywords.pjd2004-03-081-3/+3
| | | | Proper syntax is '-s keyword1 -s keyword2', not '-s keyword1 keyword2'.
OpenPOWER on IntegriCloud