summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Silence GCC4 warning.kan2006-09-216-4/+6
| | | | strlen, strcmp live in <string.h> not <string.h>.
* In the spirit of nanoBSD and PicoBSD, add TinyBSD.julian2006-09-2046-0/+5596
| | | | | | Submitted by jmeloatfreebsdbrasil,com-br (Jean Milanez Melo) As PicoBSD becomes slightly less useful, TinyBSD fills the gap below nanoBSD.
* Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, ourcsjp2006-09-201-2/+11
| | | | | | | | | | | | | | | | | | | | | | current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly. To quote the specification: "When both the -k and -P options are specified, the following header line shall be written (in the POSIX locale): "Filesystem 1024-blocks Used Available Capacity Mounted on\n" - If -P has been specified, check to make sure that -k has not already been specified, if so, simply break instead of clobbering the previous blocksize - Use 1024 instead of 1k to make the header POSIX compliant Reported by: Andriy Gapon Discussed with: bde, ru MFC after: 1 week
* Correct 'interrupt interrupt' -> 'interrupt' in the comment.wkoszek2006-09-201-1/+1
| | | | | Requested by: jhb Approved by: cognet (mentor)
* Flushing all IPv4 routes when an interface is removed or unconfiguredbrooks2006-09-202-6/+0
| | | | | | | makes no sense. Remove the undocumented removable_route_flush feature from pccard_ether. X-MFC after: never
* Search the list of up interfaces provided by "ifconfig -ul" instead ofbrooks2006-09-201-5/+7
| | | | | greping for UP in "ifconfig $ifn". This eliminates a dependancy on /usr.
* style(9)netchild2006-09-201-4/+4
| | | | | | | While I'm here add a MFC reminder, I forgot it in the previous commit. Noticed by: ssouhlal MFC after: 1 week
* Add a new 'bce_mgmt_init_locked' function to enable the minimal partsambrisko2006-09-201-0/+44
| | | | | | | | | of the chip to let ASF/IPMI firmware to respond to IPMI after attaching and when the chip is down. David looked at it but could really say what they right minimal config. stuff would be. It's not documented. I figured this out via trial and error. Reviewed by: davidch
* Allow hw.mfi.event_locale/hw.mfi.event_class to be set via loader.ambrisko2006-09-201-2/+8
| | | | | If an event doesn't match the criteria then don't print it. Some events are not saved in the log (<0 class events).
* Bring the i386 linux mmap code more into line with how linux (2.4.x)netchild2006-09-201-2/+42
| | | | | | | | | behaves. This fixes a lot of test which failed before. For amd64 there are still some problems, but without any testers which apply patches and run some predefines tests we can't do more ATM. Submitted by: Marcin Cieslak <saper@SYSTEM.PL> (minor fixups by myself) Tested with: LTP
* In setifcap() only set/unset those capabilities the interface actuallyandre2006-09-201-0/+1
| | | | supports.
* Remove MAC_DEBUG + MPRINTF debugging from System V IPC. This no longerrwatson2006-09-203-73/+16
| | | | | | | | | appears to be serving a useful purpose, as it was used during initial development of MAC support for System V IPC. MFC after: 1 month Obtained from: TrustedBSD Project Suggested by: Christopher dot Vance at SPARTA dot com
* Remove MAC_DEBUG label counters, which were used to debug leaks andrwatson2006-09-2016-174/+0
| | | | | | | | | other problems while labels were first being added to various kernel objects. They have outlived their usefulness. MFC after: 1 month Suggested by: Christopher dot Vance at SPARTA dot com Obtained from: TrustedBSD Project
* Rather than allocating all buffer memory for the completed BSM recordrwatson2006-09-201-19/+17
| | | | | | | | | | | | | | | when allocating the record in the first place, allocate the final buffer when closing the BSM record. At that point, more size information is available, so a sufficiently large buffer can be allocated. This allows the kernel to generate audit records in excess of MAXAUDITDATA bytes, but is consistent with Solaris's behavior. This only comes up when auditing command line arguments, in which case we presume the administrator really does want the data as they have specified the policy flag to gather them. Obtained from: TrustedBSD Project MFC after: 3 days
* Add missing white space in au_to_exec_{args,env}().rwatson2006-09-201-0/+2
| | | | MFC after: 3 days
* Export tcps_rcvmemdrop available in 'struct tcpstat' with netstat(1).wkoszek2006-09-201-0/+1
| | | | | Requested by: Tomasz Pilat <tomasz.pilat (at) axelspringer.pl> Approved by: andre
* Fix 'interrupt interrupt' -> 'interrupt' in the comment.wkoszek2006-09-201-1/+1
| | | | Approved by: cognet (mentor)
* Don't forget to set internal error message in kvm_nlist().wkoszek2006-09-201-2/+7
| | | | Approved by: cognet (mentor)
* Revert back to always using *(int *)arg for now. While thisru2006-09-201-8/+8
| | | | | | | | | | is incorrect, and causes endianness bugs on 64-bit big-endian machines (sparc64), it's the best choice for now, as many of these IOCTLs are used inside the kernel, and bogusly pass an argument as "int *" which results in unaligned access panics on sparc64 when attempting to dereference them via *(intptr_t *). (Several of us are working on a real fix, which is uneasy.)
* Fix the glitch introduced in rev. 1.93. In softdep_sync_metadata(),kib2006-09-201-2/+3
| | | | | | | | | | | | switch by worklist type contains two for() loops, for D_INDIRDEP and D_PAGEDEP. On error, these loops are exited by break, where the switch actually shall be leaved. Use goto instead of break to reach the error handling code. Reported by: Peter Holm Reviewed by: tegge Approved by: pjd (mentor) MFC after: 2 weeks
* There is no need to set 'sp' to NULL anymore.pjd2006-09-202-2/+0
|
* Change some variable names and update some comments to help clarify somescottl2006-09-202-36/+33
| | | | confusing issues.
* spell PCIS_CRYPTO_ENTERTAIN properly...jmg2006-09-201-1/+1
| | | | MFC after: 3 days
* Copy stat information from mount structure before it can change identity.tegge2006-09-202-4/+4
|
* Don't try to obtain a reference to a nonexisting (NULL) mount structure integge2006-09-201-4/+6
| | | | default VOP_GETWRITEMOUNT().
* Add missing parentheses to fix a segmentation fault that is easilyiedowse2006-09-191-3/+3
| | | | | reproducable with `jot -s " " 400 1 | column -t'. The bug was present in the the original CSRG 'column -t' added in 1989.
* Fix races between tty.c and sessrele() / doenterpgrp() / leavepgrp(). The ttymbr2006-09-191-0/+6
| | | | | | | | | | | code is still under giant lock, but the session/pgrp release code just used proctree_locks. This explains why moving the proctree_lock in sys/kern/tty.c rev. 1.258 did fix the panics in our SMP systems. This should also fix some race panics with revoked ttys. Reviewed by: jhb MFC after: 1 week
* Clean up white spaces and fix style(9).jkim2006-09-191-34/+32
|
* Correct multiple vulnerabilities in gzip(1).simon2006-09-194-20/+25
| | | | Security: FreeBSD-SA-06:21.gzip
* Fix the bug in rev. 1.232. If vfs_suser returned false, coveredvp shall bekib2006-09-191-1/+2
| | | | | | | | unlocked only if it really exists. Found with: Coverity Prevent(tm) CID: 1535 Approved by: pjd (mentor)
* Fix the bug in rev. 1.134. In devfs_allocv_drop_refs(), when not_found == 2kib2006-09-191-1/+1
| | | | | | | | | and drop_dm_lock is true, no unlocking shall be attempted. The lock is already dropped and memory is freed. Found with: Coverity Prevent(tm) CID: 1536 Approved by: pjd (mentor)
* Make typecast expressions comply with style(9).ru2006-09-191-5/+5
|
* This time, really fix endian bugs accessing ioctl arguments thatru2006-09-191-8/+8
| | | | | | | are passed by value. These are KDSKBMODE, KDSETLED, KDSKBSTATE, and KDSETRAD. Tested on: amd64, sparc64 (demo code)
* Fix the buggy rev. 1.117. dagmembers are only initialized for dlopen'edkib2006-09-191-5/+63
| | | | | | | | | | | | | dso that are actually loading. If dso a.so depends on b.so, then dlsym with handle from dlopen("b.so") will fail unconditionally. Correct implementation shall use the Obj_Entry.needed list to walk dependencies DAG. Test provided by: jkim Tested (prev. version) by: jkim, Nicolas Blais <nb_root at videotron ca>, h.blanke at chello nl Pointy hat to: kib Approved by: kan (mentor)
* Move readonly.t regression tests file to where it belongs.pjd2006-09-191-0/+0
| | | | I accidentally added it to a wrong directory.
* Back out revision 1.8. The only thing it did was to break LEDs (andru2006-09-191-13/+13
| | | | | | | | | some other less noticeable things) on little-endian 64-bit platforms such as amd64. PR: kern/101931 Discussed with: emax, marius MFC after: 1 day
* Hook up au_open.3 man page (and its symlinks), apparently missed duringrwatson2006-09-191-0/+5
| | | | | | | initial OpenBSM merge. Obtained from: TrustedBSD Project MFC after: 3 days
* Don't forget to add curly braces when doing more than one line of actionsandre2006-09-181-1/+2
| | | | | | after a 'if' statement. Pointy hat to: andre
* Do not try to call keyboard callback unless keyboard is active and busy.emax2006-09-181-4/+6
| | | | | | | This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4). PR: sparc64/96798 MFC after: 1 week
* Do not strip VLAN tag in promiscuous mode.jkim2006-09-181-15/+28
|
* Simplify promiscuous mode check and make ALLMULTI independent from it.jkim2006-09-181-14/+13
|
* Update prototype for smbus callback change.jhb2006-09-181-1/+1
| | | | Reported by: Ian FREISLICH <if at hetzner dot co dot za>
* o Add pthread_yield.3 man page.maxim2006-09-182-1/+33
| | | | | | | PR: docs/100083 Reviewed by: deischen, ru Obtained from: OpenBSD MFC after: 2 weeks
* Make sure that lutimes(2) gets processed and converted into a BSM record.csjp2006-09-181-0/+1
| | | | | Submitted by: rwatson MFC after: 1 day
* remove local changesam2006-09-181-1/+0
| | | | Spotted by: Gavin Atkinson
* Add additional support for generating code for the arm. There's stillimp2006-09-185-0/+201
| | | | | | | | | a few issues in other parts of the tree, but those will be resolved separately. Submitted by: cogenet@ Reviewed by: kan@, obrien@ MFC After: 5 days
* remove this from HEAD too since it got taken off the vendor branchsam2006-09-181-444/+0
|
* fixup build after move of ah_osdep.?sam2006-09-181-2/+2
| | | | MFC after: 2 weeks
* This commit was generated by cvs2svn to compensate for changes in r162413,sam2006-09-182-217/+0
| | | | which included commits to RCS files with non-trunk default branches.
* o move ath hal os glue code from the hal to the driver: this code wassam2006-09-187-15/+580
| | | | | | | | | | | | part of the hal distribution early on when the hal was built for each os but it's been portable for a long time so move the os-specific code out (and off the vendor branch) o correct the copyright on ah_osdep.?; it was mistakenly given a restricted license and not a dual-bsd/gpl license o remove the module api definition as it was never used o fixup include paths for move of ah_osdep.h MFC after: 2 weeks
OpenPOWER on IntegriCloud