summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement atomic_swap_{int|long|ptr}. Define atomic_swap_ptr as aMarcel Moolenaar2003-06-232-0/+94
| | | | | | | | macro that expands to atomic_swap_long() to avoid compiler warnings caused by incompatible pointer passing. Notes: svn path=/head/; revision=116707
* Remove _atomic_lock. It's not used.Marcel Moolenaar2003-06-232-93/+0
| | | | Notes: svn path=/head/; revision=116706
* Move the machine specific files from sys/Makefile.inc and put themMarcel Moolenaar2003-06-239-12/+35
| | | | | | | | in a machine specific makefile. While here, sort the sub-directories in Makefile and remove _atomic_lock.S from all makefiles. Notes: svn path=/head/; revision=116705
* prevent the number of patterns from exceeding the number of pci devices.John-Mark Gurney2003-06-231-1/+1
| | | | | | | Submitted by: rwatson Notes: svn path=/head/; revision=116704
* add verbage on various failure cases to match the /dev/pci interface.John-Mark Gurney2003-06-231-6/+15
| | | | Notes: svn path=/head/; revision=116703
* cleanup /dev/pci code some:John-Mark Gurney2003-06-231-54/+20
| | | | | | | | | | | | read permision only required for listing, read/write required for read/write to registers fix a possible memory leak clean up error handling a bit Reviewed by: silence Notes: svn path=/head/; revision=116702
* Redesign the externalization APIs from the MAC Framework toRobert Watson2003-06-2318-547/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the MAC policy modules to improve robustness against C string bugs and vulnerabilities. Following these revisions, all string construction of labels for export to userspace (or elsewhere) is performed using the sbuf API, which prevents the consumer from having to perform laborious and intricate pointer and buffer checks. This substantially simplifies the externalization logic, both at the MAC Framework level, and in individual policies; this becomes especially useful when policies export more complex label data, such as with compartments in Biba and MLS. Bundled in here are some other minor fixes associated with externalization: including avoiding malloc while holding the process mutex in mac_lomac, and hence avoid a failure mode when printing labels during a downgrade operation due to the removal of the M_NOWAIT case. This has been running in the MAC development tree for about three weeks without problems. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=116701
* Add the date of Turing's death.Greg Lehey2003-06-231-1/+2
| | | | | | | | Change the entry for Turing's birthday to be the same as in calendar.birthday. This enables cron jobs to uniq(1) the entry. Notes: svn path=/head/; revision=116700
* Prefer the vop_rmextattr() vnode operation for removing extendedRobert Watson2003-06-223-5/+12
| | | | | | | | | | | | attributes from objects over vop_setextattr() with a NULL uio; if the file system doesn't support the vop_rmextattr() method, fall back to the vop_setextattr() method. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=116699
* Expose vop_rmextattr as an explicit operation at the vnode operationRobert Watson2003-06-221-0/+11
| | | | | | | | | | | interface, rather than relying on a NULL uio for the deletion operation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=116698
* Add an explicit credential argument to alq_open() to allow the caller toRobert Watson2003-06-223-6/+10
| | | | | | | | | | | | | | specify what credential to use when authorizing vn_open() and later write operations, rather than curthread->td_ucred. When writing KTR traces to an ALQ, specify the credential of the thread generating the sysctl request. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=116697
* Do the upgrade checks quietly.Ruslan Ermilov2003-06-221-2/+2
| | | | Notes: svn path=/head/; revision=116696
* Maintain a lock on the vm object of interest throughout vm_fault(),Alan Cox2003-06-224-12/+15
| | | | | | | | | releasing the lock only if we are about to sleep (e.g., vm_pager_get_pages() or vm_pager_has_pages()). If we sleep, we have marked the vm object with the paging-in-progress flag. Notes: svn path=/head/; revision=116695
* Don't check the state of the vnode interlock if the specification saysDon Lewis2003-06-221-1/+7
| | | | | | | | | | that the lock should not be checked. Skip the lock assertion checks for *vpp or any other pointer to a vnode pointer if vpp (or equivalent) is NULL. Notes: svn path=/head/; revision=116694
* Protect against .depend file somewhere else in the .PATH.Ruslan Ermilov2003-06-221-37/+9
| | | | | | | Also consolidate building rules for special files. Notes: svn path=/head/; revision=116691
* Add support for multiple values and ranges for the "iplen", "ipttl",Luigi Rizzo2003-06-223-41/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | "ipid" options. This feature has been requested by several users. On passing, fix some minor bugs in the parser. This change is fully backward compatible so if you have an old /sbin/ipfw and a new kernel you are not in trouble (but you need to update /sbin/ipfw if you want to use the new features). Document the changes in the manpage. Now you can write things like ipfw add skipto 1000 iplen 0-500 which some people were asking to give preferential treatment to short packets. The 'MFC after' is just set as a reminder, because I still need to merge the Alpha/Sparc64 fixes for ipfw2 (which unfortunately change the size of certain kernel structures; not that it matters a lot since ipfw2 is entirely optional and not the default...) PR: bin/48015 MFC after: 1 week Notes: svn path=/head/; revision=116690
* Forward declare a boatload of structures referenced in the MACRobert Watson2003-06-222-0/+24
| | | | | | | | | | | | | policy definition structure; this permits policies to reduce their number of gratuitous includes for required for entry points they don't implement. This also facilitates building the MAC Framework on Darwin. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=116689
* comment out the 'sshd' entries as the image is now 1460KBLuigi Rizzo2003-06-221-2/+2
| | | | | | | | | | | | | | | and does not fit into a floppy anymore (1403kb available). There is not much you can do now except bumping up the image size (by uncommenting the "fd_size=2880" line in ./config), at which point you can uncomment sshd, the associated library, and all the good stuff such as tcpdump and natd and ppp that you might want on such a box. A similar change should be applied to other picobsd image types. Notes: svn path=/head/; revision=116688
* Make this compile again: we need to specify a scheduler,Luigi Rizzo2003-06-221-2/+3
| | | | | | | | | and remove the count for devices "sc" and "atkbdc" This change does not apply to RELENG_4. Notes: svn path=/head/; revision=116687
* Move KERNBASE to -2GB.Hidetoshi Shimokawa2003-06-221-1/+1
| | | | | | | Currently, we cannot increase KVA more than 2GB. Notes: svn path=/head/; revision=116685
* - Allow access to direct mapped region via /dev/kmem. This makesHidetoshi Shimokawa2003-06-221-13/+16
| | | | | | | | 'netstat -r' work. - Use direct map for /dev/mem. Notes: svn path=/head/; revision=116684
* - Allocate a new PD Table if kernel grows beyond 1GB boundary.Hidetoshi Shimokawa2003-06-221-37/+21
| | | | | | | | | Reviewed by: peter - Use direct map in pmap_mapdev(). Notes: svn path=/head/; revision=116683
* Remove 256 unit limit, there is no evil minor number encoding toPoul-Henning Kamp2003-06-221-2/+0
| | | | | | | | | deal with any more. Spotted by: "Darren Freestone" <df@cops.org> Notes: svn path=/head/; revision=116682
* FreeBSD now has the locale(1) utility.Ruslan Ermilov2003-06-221-2/+4
| | | | Notes: svn path=/head/; revision=116681
* Remove argument names from a function declaration.David Malone2003-06-221-1/+1
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=116680
* Allow installkernel.debug and reinstallkernel.debug.Hidetoshi Shimokawa2003-06-222-4/+9
| | | | Notes: svn path=/head/; revision=116679
* Add a f_vnode field to struct file.Poul-Henning Kamp2003-06-2229-94/+105
| | | | | | | | | | | | | | | Several of the subtypes have an associated vnode which is used for stuff like the f*() functions. By giving the vnode a speparate field, a number of checks for the specific subtype can be replaced simply with a check for f_vnode != NULL, and we can later free f_data up to subtype specific use. At this point in time, f_data still points to the vnode, so any code I might have overlooked will still work. Notes: svn path=/head/; revision=116678
* Hook locale(1) to buildAlexey Zelkin2003-06-221-0/+1
| | | | Notes: svn path=/head/; revision=116677
* document 'list' keyword & fix few typosAlexey Zelkin2003-06-221-3/+7
| | | | Notes: svn path=/head/; revision=116676
* Add FreeBSD specific keyword 'list' implementation. 'locale -k list' canAlexey Zelkin2003-06-221-97/+138
| | | | | | | be used to retrieve list of all available keywords now. Notes: svn path=/head/; revision=116675
* Add WARNSAlexey Zelkin2003-06-221-0/+1
| | | | Notes: svn path=/head/; revision=116674
* support saving both user/group and permissions on symlinks (from PR)John-Mark Gurney2003-06-221-13/+20
| | | | | | | | | | | also fix a slight bogon that assumed an fd of 0 was not valid. Changed it to be -1. PR: bin/25017 Submitted by: Martin Kammerhofer Notes: svn path=/head/; revision=116673
* Add ID for VT8233A.Matthew N. Dodd2003-06-221-0/+2
| | | | | | | | PR: i386/38299 Submitted by: Rob Schulhof <rrs@there.net> Notes: svn path=/head/; revision=116671
* Re-enabled PCI irq routing on pc98.Yoshihiro Takahashi2003-06-221-1/+1
| | | | Notes: svn path=/head/; revision=116670
* - Set close on exec flag for device file descriptors.Matthew N. Dodd2003-06-221-0/+11
| | | | | | | | | | - Reset signal handlers in event_cmd_exec_act(). PR: i386/35182 Submitted by: Daniel O'Connor <darius@dons.net.au> Notes: svn path=/head/; revision=116668
* As vm_fault() descends the chain of backing objects, set paging-in-Alan Cox2003-06-221-8/+8
| | | | | | | progress on the next object before clearing it on the current object. Notes: svn path=/head/; revision=116667
* - Don't ignore SIGTERM.Matthew N. Dodd2003-06-222-4/+20
| | | | | | | | | | | - Add a command line switch to trigger POWERSTATECHANGE actions on un-reported power state changes. PR: i386/32251 Submitted by: Walter C. Pelissero <walter@pelissero.org> Notes: svn path=/head/; revision=116666
* Implement a loader tunable/sysctl to allow the user to request thatMatthew N. Dodd2003-06-221-0/+8
| | | | | | | | | | the APM driver byte-swap battery time values. (For broken laptops.) PR: i386/42439 Submitted by: Bruce M Simpson <bms@spc.org> Notes: svn path=/head/; revision=116665
* When DDB is active, always send printf() output directly to theIan Dowse2003-06-221-1/+5
| | | | | | | | | console, even if there is a TIOCCONS console tty. We were already doing this after a panic, but it's also useful when entering DDB for some other reason too. Notes: svn path=/head/; revision=116664
* Use a new message buffer `consmsgbuf' to forward messages to aIan Dowse2003-06-224-16/+89
| | | | | | | | | | | | | | | | | | TIOCCONS console (e.g. xconsole) via a timeout routine instead of calling into the tty code directly from printf(). This fixes a number of cases where calling printf() at the wrong time (such as with locks held) would cause a panic if xconsole is running. The TIOCCONS message buffer is 8k in size by default, but this can be changed with the kern.consmsgbuf_size sysctl. By default, messages are checked for 5 times per second. The timer runs and the buffer memory remains allocated only at times when a TIOCCONS console is active. Discussed on: freebsd-arch Notes: svn path=/head/; revision=116663
* Complete the vm object locking in vm_object_backing_scan(); specifically,Alan Cox2003-06-221-5/+12
| | | | | | | | deal with the case where we need to sleep on a busy page with two vm object locks held. Notes: svn path=/head/; revision=116662
* use a REG macro that was already defined.John-Mark Gurney2003-06-221-3/+10
| | | | | | | | | | | Reorder how the pci probing in handled. before adding devices, check to see if the slot is a multi-function device to see if we should probe all the functions. Original idea by: imp Notes: svn path=/head/; revision=116661
* Replace the code for reading and writing the kernel message bufferIan Dowse2003-06-226-119/+296
| | | | | | | | | | | | | | | | | | | | with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides the implementation details from callers. The new code uses a kind of sequence number to represend the current read and write positions in the buffer. This approach (suggested mainly by bde) permits the read and write pointers to be maintained separately, which reduces the number of atomic operations that are required. The "mostly reentrant" above refers to the way that while it is now always safe to have any number of concurrent writers, readers could see the message buffer after a writer has advanced the pointers but before it has witten the new character. Discussed on: freebsd-arch Notes: svn path=/head/; revision=116660
* add support for peeking at pci busses on UltraSparc systems. This preventsJohn-Mark Gurney2003-06-225-12/+132
| | | | | | | | | | | | data access errors when trying to read/write to non-existant PCI devices. fix the psycho bridge to use peek for probing devices. This no longer fakes it if the OFW node doesn't exist (and the reg == 0). Reviewed by: jake, tmm Notes: svn path=/head/; revision=116659
* Make some style and white-space changes to the copy-on-write path throughAlan Cox2003-06-221-10/+5
| | | | | | | vm_fault(); remove a pointless assignment statement from that path. Notes: svn path=/head/; revision=116658
* Increase the size of the NFS server hash table to improve performanceKirk McKusick2003-06-211-4/+4
| | | | | | | | | | | | | when serving up more than about 32 active files. For details see section 6.3 (pg 111) of Daniel Ellard and Margo Seltzer, ``NFS Tricks and Benchmarking Traps'' in the Proceedings of the Usenix 2003 Freenix Track, June 9-14, 2003 pg 101-114. Obtained from: Daniel Ellard <ellard@eecs.harvard.edu> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=116657
* Add clarifications about the information that ntp_gettime returns.Warner Losh2003-06-211-8/+18
| | | | | | | | | | | | | TAI is a timescale, just like UTC. The tai field returns the offset between the two, and isn't really used for precision time keeping. Explain in brief what a positive and a negative leap seconds are. Add some URLs to very useful web pages about time and time keeping for more information on using this API. Reviewed by: phk Notes: svn path=/head/; revision=116656
* Don't declare unneeded extern variables,Yaroslav Tykhiy2003-06-211-2/+0
| | | | | | | leave alone specifying a wrong type for one of them. Notes: svn path=/head/; revision=116655
* Though manpage says that 0.0.0.0 can be used as HISADDR for gwHajimu UMEMOTO2003-06-211-2/+4
| | | | | | | | | | in Framed-Route, it didn't work. Since ncprange_aton() treats 0.0.0.0 and :: as prefixlen=0, we need to care the case. MFC after: 1 week Notes: svn path=/head/; revision=116654
* Use a do {...} while (0); and a couple of breaks to reduce the levelPoul-Henning Kamp2003-06-211-78/+80
| | | | | | | of indentation a bit. Notes: svn path=/head/; revision=116653