summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix wording nit.gjb2012-12-281-1/+1
| | | | | | PR: 174787 Submitted by: Cody Rank MFC after: 3 days
* Fix typo in comment.bapt2012-12-281-1/+1
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* Add DEVICE_IDENTIFY method for wbwd(4), required on most of recentdelphij2012-12-281-95/+158
| | | | | | | | | Supermicro motherboards. Tested on X8STi and X8DTH boards. Sponsored by: iXsystems, Inc. MFC after: 2 weeks
* Use DEVMETHOD_END.delphij2012-12-281-1/+1
| | | | MFC after: 2 weeks
* Simplify pointing dst after the end of all the gr_mem pointers in newgrbapt2012-12-281-2/+1
| | | | | Submitted by: pjd Reviewed by: db
* errno = ENOMEM was supposed to be removed not return (NULL);bapt2012-12-281-1/+1
| | | | Submitted by: gcooper
* malloc() sets errno to ENOMEM already.bapt2012-12-281-5/+1
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* Do not leave parts of the new group uninitialized in gr_dup().bapt2012-12-281-0/+4
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reported by: pjd
* gcc: avoid generating negative values to DW_AT_byte_size.pfg2012-12-281-3/+3
| | | | | | | | | | | | | | | | | There is a bug in gcc (GCC/35998) where dwarf reports sizes of unsigned -1 (0xffffffff). On NetBSD this generated a faulty CTF entry which then caused a segfault in ctfmerge. The issue was worked around in NetBSD's Dtrace but since the issue originated in gcc, it seems reasonable to fix it here. Upstream gcc has been slow to react to this issue and the author that submitted the patch is not interested in licensing the change to us, so I did an independent workaround for the issue. MFC after: 1 week
* Improve bufring impl:attilio2012-12-281-21/+19
| | | | | | | | | | | | | | | | | | | | | | | - Remove unused br_prod_bufs member - Fixup r241037: buf_ring pads br_prod_* and br_cons_* members at 128 bytes, assuming a fixed cache line size for all the architectures. However, the above mentioned revision broke the padding. Use explicit padding to the CACHE_LINE_SIZE on the members that mark the initial new padded sections. Of course, the padding is not important for performance reasons in the DEBUG_BUFRING case, leaving br_cons members to share the cache line with br_lock. - Fixup r244732: by removing incorrectly added membar in buf_ring_dequeue_sc() where surrounding locking shoud be enough. - Drastically reduce the number of membar used (pratically reverting r244732) by switching rmb() in buf_ring_dequeue_mc() and wmb() in buf_ring_enqueue() to be complete barriers. This, along with br_prod_bufs departure, should fix ordering issues as explained in the provided comments. This patch is not targeted for MFC. Sponsored by: EMC / Isilon storage division Reviewed by: glebius
* Fix location of /var/audit/dist and /var/audit/remote.ume2012-12-281-1/+1
| | | | | | | Note that those who did installworld after r243752 should remove wrongly created /var/dist and /var/remote. Reviewed by: pjd
* In netpfil/pf:glebius2012-12-2810-34/+31
| | | | | | | - Add my copyright to files I've touched a lot this year. - Add dash in front of all copyright notices according to style(9). - Move $OpenBSD$ down below copyright notices. - Remove extra line between cdefs.h and __FBSDID.
* Add the AR9280 and later spectral scan register definitions.adrian2012-12-281-0/+14
| | | | Obtained from: Linux ath9k, Qualcomm Atheros (datasheet)
* Add radar_bin_thresh_sel (bit 24:26), which defines whenadrian2012-12-281-0/+2
| | | | to consider the radar FFT report bins as "strong".
* Fix build on ARM (and probably other platforms)gonzo2012-12-282-3/+3
|
* Add makeshift implementation for framebuffer console's cursorgonzo2012-12-281-2/+139
| | | | | | Basically it's replica of VersatilePB code which is replica of XBox FB code. All of them are linear framebuffers and should have common bits moved to reusable framework.
* Use strlcpy to NULL-terminate error message even if user provided a shortdavidxu2012-12-281-3/+3
| | | | buffer.
* Fix event timer on Raspberry Pigonzo2012-12-281-2/+16
| | | | | | | | | | | | | | - Disable interrupt when updating compare value in order to make this operation atomical - Increase minimum period for event timer. Systimer on BCM2835 is compare timer, so if minimum period is too small it might be less then fraction of time between "read current value" and "set compare timer" operations. It means that when timer is armed actual counter value is more then compare value and it will take whole cycle (~32sec for 1MHz timer) to fire interrupt. Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp>
* Add derived versions for common Simplified Chinese encodings.delphij2012-12-283-0/+596
| | | | MFC after: 2 weeks
* Add zh_CN.UTF-8 catalog.delphij2012-12-282-0/+296
| | | | | Reviewed by: alphachi <alphachi mediaspirit.org> MFC after: 2 weeks
* Add custom renderer for poor man's cursor support for framebuffer consolegonzo2012-12-281-2/+133
|
* Add an ability to set net.link.stf.permit_rfc1918 from the loader.ae2012-12-271-1/+2
| | | | MFC after: 2 weeks
* Add net.link.stf.permit_rfc1918 sysctl variable. It can be used to allowae2012-12-272-3/+24
| | | | | | the use of private IPv4 addresses with stf(4). MFC after: 2 weeks
* avoid arithmetic on uintptr_tbapt2012-12-271-1/+1
| | | | | Submitted by: pjd Reviewed by: jilles
* cast to uintptr_t to properly calculate offsetbapt2012-12-271-1/+1
| | | | | Reported by: mdf Submitted by: db
* Add O_CLOEXEC to flopenbapt2012-12-272-2/+2
| | | | Requested by: jilles
* Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.bapt2012-12-271-169/+67
|
* gr_dup: simplify duplication of groupbapt2012-12-271-21/+20
| | | | Submitted by: db
* - Clean up previous gr_add use malloc instead of callocbapt2012-12-272-5/+4
| | | | | | - Fix tinderbox error Submitted by: db
* Fix a regression in "pw group show" introduced r242349:bapt2012-12-271-1/+1
| | | | | | | print a newline after printing each group line. PR: bin/174731 Submitted by: Jan Beich <jbeich@tormail.org>
* Simplify the code by using the new gr_add functionbapt2012-12-271-15/+9
|
* New gr_add function to provide a clean and safe method to append a new memberbapt2012-12-272-0/+42
| | | | | | into an existing group. Submitted by: db
* Use flopen(3) instead of open(2) + flock(2)bapt2012-12-272-9/+4
|
* test(1): Document == alias for =.jilles2012-12-271-1/+8
| | | | | | Reviewed by: gjb Requested by: gjb MFC after: 1 week
* Remove an unused var.attilio2012-12-271-5/+1
| | | | | Sponsored by: EMC / Isilon storage division MFC after: 3 days
* br_prod_tail and br_cons_tail members are used as barrier toattilio2012-12-271-5/+5
| | | | | | | | | | | signal bug_ring ownership. However, instructions can be reordered around members write leading to stale values for ie. br_prod_bufs. Use correct memory barriers to ensure proper ordering of the ownership tokens updates. Sponsored by: EMC / Isilon storage division MFC after: 2 weeks
* use nanosecond resolution, make sure gettimeofdayluigi2012-12-271-7/+12
| | | | is called at most every 100 packets.
* Some cleanups.tuexen2012-12-271-15/+9
| | | | MFC after: 3 days
* Minor cleanups of debug messages.tuexen2012-12-271-2/+2
| | | | MFC after: 3 days
* Fix a copy and paste error.tuexen2012-12-271-1/+1
| | | | MFC after: 3 days
* Comments and fit to 80-columns.dteske2012-12-271-10/+11
|
* Simplify copying of group members by using memcpybapt2012-12-261-2/+1
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* Fix off-by-one error in memory allocation: j entries, one new and a nullbapt2012-12-261-1/+1
| | | | | | terminator is j + 2. Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* Add the NO_SYNC_CACHE quirk for all Apple USB MSC devices, as theymarkj2012-12-262-0/+2
| | | | | | | | | typically do not handle the SYNCHRONIZE_CACHE command - they either return an error or the firmware enters a reset loop. Reviewed by: hselasky Approved by: rstone (co-mentor) MFC after: 2 weeks
* Reset provider-specific fields when resending I/O request in low memorypjd2012-12-261-0/+3
| | | | | | | | conditions. This fixes assertion which checks those fields when kernel is compiled with DIAGNOSTIC. Reported by: kib, pho MFC after: 1 week
* Use DEVMETHOD_END, as suggested by hselasky@.rakuco2012-12-261-1/+1
| | | | Approved by: glebius
* Use the correct USB interface macros instead of USB_IF_CSI.rakuco2012-12-261-1/+3
| | | | | | | | | | | | As pointed out by hselasky@, USB_IF_CSI is the wrong macro here since we want to declare the device's interface class, subclass and protocol, not class, subclass and driver info. Follow-up to r244704. PR: kern/174707 Approved by: glebius MFC after: 1 week
* In case of the deletion of a user those whole database has to be regenerated,bapt2012-12-261-1/+5
| | | | | otherwise the user planned to be deleted remain in the pwd.db while removed from the plain text password file.
* Fix creating a user and adding it to a groupbapt2012-12-261-7/+8
| | | | Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim
* Fixup r244240: mp_ncpus will be 1 also in the !SMP and smp_disabled=1attilio2012-12-261-8/+1
| | | | | | | | | | | case. There is no point in optimizing further the code and use a TRUE litteral for a path that does heavyweight stuff anyway (like lock acq), at the price of obfuscated code. Use the appropriate check where necessary and remove a macro. Sponsored by: EMC / Isilon storage division MFC after: 3 days
OpenPOWER on IntegriCloud