summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement flopen(3) using fcntl(2) locks instead of flock(2) locks.des2008-10-202-13/+16
|
* pidfile(3) uses flopen(3) - don't make any assumptions about how thedes2008-10-201-9/+8
| | | | latter is implemented.
* There is no point in releasing a lock on a file which we've unlinked anddes2008-10-201-4/+0
| | | | | are about to close, so don't. As a bonus, pidfile_remove(3) will now work with an fcntl(2)-based flopen(3).
* #ifdef out the lock-against-self test. I'm not sure it makes sense, anddes2008-10-201-0/+4
| | | | | | it relies on non-portable flock(2) semantics. Not only is flock(2) not portable, but on some OSes that do have it, it is implemented in terms of fcntl(2) locks, which are per-process rather than per-descriptor.
* Tune boot messages a bit.mav2008-10-201-4/+4
| | | | Use <> brackets only at device name line.
* Since in_lt() and in_lts() are not static, assume that they are intended todes2008-10-202-2/+22
| | | | be part of the public API. Accordingly, add prototypes and document them.
* Additional style and whitespace fixes.des2008-10-201-1/+3
|
* Style and whitespacedes2008-10-201-17/+17
|
* Unbreakdes2008-10-201-3/+3
|
* Since setclasscpumask() is not static, assume that it is intended to bedes2008-10-202-5/+10
| | | | part of the public API. Accordingly, add a prototype and document it.
* Style and whitespace.des2008-10-201-15/+19
|
* Parenthesize return values.des2008-10-201-11/+11
|
* include and whitespace cleanup.des2008-10-201-7/+8
|
* Assert that v_holdcnt is non-zero before entering lockmgr in vn_lockkib2008-10-202-0/+8
| | | | | | | | | and ffs_lock. This cannot catch situations where holdcnt is incremented not by curthread, but I think it is useful. Reviewed by: tegge, attilio Tested by: pho MFC after: 2 weeks
* In vfs_busy(), lockmgr() cannot legitimately sleep, because code checkedkib2008-10-201-1/+1
| | | | | | | | | | MNTK_UNMOUNT before, and mnt_mtx is used as interlock. vfs_busy() always tries to obtain a shared lock on mnt_lock, the other user is unmount who tries to drain it, setting MNTK_UNMOUNT before. Reviewed by: tegge, attilio Tested by: pho MFC after: 2 weeks
* Actually fix pty detection for autologout setting.ru2008-10-202-2/+2
| | | | (The fix has been submitted upstream.)
* Import interrupt management defines from latest xenlinuxkmacy2008-10-201-12/+28
|
* Add support for multiple attributes. This is required for themarcel2008-10-201-6/+13
| | | | PC98 scheme.
* The active and bootable flags are not part of the type.marcel2008-10-201-11/+82
| | | | | | | | | | Export the active and bootable flags as attributes in the configuration XML and allow them to be manipulated with the set/unset commands. Since libdisk treats the flags as part of the partition type, preserve behavior by keeping them included in the configuration text.
* In realtimer_delete(), clear timer's value and interval to telldavidxu2008-10-201-0/+8
| | | | | | | realtimer_expire() to not rearm the timer, otherwise there is a chance that a callout will be left there and be tiggered in future unexpectly. Bug reported by: tegge@
* fix static key wep; r183248 caused drivers to be called for keys to besam2008-10-191-1/+2
| | | | | assigned to slots in the global key table but ath_key_alloc was not updated to handle that
* Atomically increment the number of awoken APs as all APs willmarcel2008-10-191-1/+1
| | | | | | be unleashed here. Pointed out by: christian.kandeler@hob.de
* Remove trailing comma in SEE ALSO section.simon2008-10-191-1/+1
|
* Ktr(9) stores format string and arguments in the event circular buffer,kib2008-10-191-21/+25
| | | | | | | | | | | | not the string formatted at the time of CTRX() call. Stack_ktr(9) uses an on-stack buffer for the symbol name, that is supplied as an argument to ktr. As result, stack_ktr() traces show garbage or cause page faults. Fix stack_ktr() by using pointer to module symbol table that is supposed to have a longer lifetime. Tested by: pho MFC after: 1 week
* - License change to a less restrictive one;delphij2008-10-191-33/+16
| | | | | | | | - ANSIfy; - Convert do {} while loop -> while {} for clarity; - Sync RCS ID with OpenBSD; Obtained from: OpenBSD
* Correctly fill siginfo for the signals delivered by linux tkill/tgkill.kib2008-10-196-53/+132
| | | | | | | | | | | | | | | | | | | | | It is required for async cancellation to work. Fix PROC_LOCK leak in linux_tgkill when signal delivery attempt is made to not linux process. Do not call em_find(p, ...) with p unlocked. Move common code for linux_tkill() and linux_tgkill() into linux_do_tkill(). Change linux siginfo_t definition to match actual linux one. Extend uid fields to 4 bytes from 2. The extension does not change structure layout and is binary compatible with previous definition, because i386 is little endian, and each uid field has 2 byte padding after it. Reported by: Nicolas Joly <njoly pasteur fr> Submitted by: dchangin MFC after: 1 month
* Tiny wording nits.keramida2008-10-191-4/+5
| | | | MFC after: 1 week
* Further simplify the code.delphij2008-10-191-11/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de>
* add -n option to suppress clearing the build tree and add -DNO_CLEANsam2008-10-191-2/+18
| | | | to buildworld and/or buildkernel
* - Forward port flush of page table updates on context switch or userretkmacy2008-10-193-2/+25
| | | | - Forward port vfork XEN hack
* GC gratuitous XEN defineskmacy2008-10-191-6/+0
|
* - move gdt, ldt allocation to before KPT allocationkmacy2008-10-192-42/+65
| | | | | | | | | - fix bugs where we would: - try to map the hypervisors address space - accidentally kick out an existing kernel mapping for some domain creation memory allocation sizes - accidentally skip a 2MB kernel mapping for some domain creation memory allocation sizes - don't rely on trapping in to xen to read rcr2, reference through vcpu - whitespace cleanups
* GC unused valueskmacy2008-10-192-13/+0
|
* Add test to verify ACL restores on FreeBSD, verify kern/128203 (mtimekientzle2008-10-193-4/+248
| | | | | | | | restore fails if ACL provided), apply patch from kern/128203, and verify fix. PR: kern/128203 Submitted by: Udo Schweigert MFC after: 3 days
* Style: Mark private data 'static', correct an old comment.kientzle2008-10-191-5/+4
| | | | MFC after: 3 days
* Coalesce sequentional BIO_DELETE requests to slightly relax size and alignmentmav2008-10-181-8/+23
| | | | constraints required by the card.
* Implement BIO_DELETE command with MMC and SD erase commands.mav2008-10-184-149/+333
| | | | | | | | | | | | | | | | | Erase operation gives card's logic information about unused areas to help it implement wear-leveling with lower overhead comparing to usual writing. Erase is much faster then write and does not depends on data bus speed. Also as result of hitting in-card write logic optimizations I have measured up to 50% performance boost on writing undersized blocks into preerased areas. At the same time there are strict limitations on size and allignment of erase operations. We can erase only blocks aligned to the erase sector size and with size multiple of it. Different cards has different erase sector size which usually varies from 64KB to 4MB. SD cards actually allow to erase smaller blocks, but it is much more expensive as it is implemented via read-erase-write sequence and so not sutable for the BIO_DELETE purposes. Reviewed by: imp@
* The flags value was not always being copied out in the recv routine like itrrs2008-10-181-2/+3
| | | | | should be. Obtained from: Michael Tuexen
* New sockets (accepted) were not inheriting the proper snd/rcv buffer value.rrs2008-10-181-3/+5
| | | | Obtained from: Michael Tuexen
* - Peers rwnd is now available for the MIB.rrs2008-10-182-0/+2
| | | | Obtained from: Michael Tuexen
* - Adapt layer indication was always being given (it should onlyrrs2008-10-181-33/+28
| | | | | | | | | | be given when the user has enabled it). (Michael Tuexen) - Sack Immediately was not being set properly on the actual chunk, it was only put in the rcvd_flags which is incorrect. (Michael Tuexen) - added an ifndef userspace to one of the already present macro's for inet (Brad Penoff) Obtained from: Michael Tuexen and Brad Penoff MFC after: 4 weeks
* Reported by Yehuda Weinraub (yehudasa@gamil.com) - CRC32C algorithmrrs2008-10-181-3/+3
| | | | | | | | uses incorrect init_bytes value. It SHOULD have the number of bytes to get to a 4 byte boundary. PR: 128134 MFC after: 4 weeks
* Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries.kib2008-10-181-1/+2
| | | | | Tested by: dchagin MFC after: 3 days
* Increase the date in the manual page, which should have been done in r183922.ed2008-10-181-1/+1
| | | | | | | In r183922 I introduced a new DDB command, documented it, but forgot to bump the date in the manual page. Pointed out by: bz
* Use strlcpy() in !localized case to avoid the -1's.delphij2008-10-171-2/+1
|
* Use strlcpy() when we mean it.delphij2008-10-173-6/+3
|
* Use strlcpy() when we mean it.delphij2008-10-172-6/+3
|
* - Use static for usage()delphij2008-10-171-3/+5
| | | | | | - Include necessary header files. setfib(1) should pass WARNS=6 with this changes.
* Reduce code duplication: use calloc() intead of malloc()delphij2008-10-171-4/+2
| | | | and memset afterward.
* _kvm_malloc allocates memory through calloc() whichdelphij2008-10-172-2/+0
| | | | returns zeroed memory, so don't redo the initialization.
OpenPOWER on IntegriCloud