summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Diff reduction against OpenBSD: ANSI'fy prototypes.delphij2009-03-0228-485/+196
| | | | | | | | (This is part of a larger changeset which is intended to reduce diff only, thus some prototypes were left intact since they will be changed in the future). Verified with: md5(1)
* Extend the "vfsopt" mount options for more general use. Make structjamie2009-03-026-90/+202
| | | | | | | | | | | | | | | | vfsopt and the vfs_buildopts function public, and add some new fields to struct vfsopt (pos and seen), and new functions vfs_getopt_pos and vfs_opterror. Further extend the interface to allow reading options from the kernel in addition to sending them to the kernel, with vfs_setopt and related functions. While this allows the "name=value" option interface to be used for more than just FS mounts (planned use is for jails), it retains the current "vfsopt" name and <sys/mount.h> requirement. Approved by: bz (mentor)
* curr_time is a 64 bit variable so SYSCTL_LONG is not appropriateluigi2009-03-021-0/+2
| | | | | | | | as a handler. The variable was exported only for debugging, but there is little reason to do it now that the timekeeping is supported by various other variables. For the time being just comment out the sysctl, but I think this should go away.
* fw_debug has been unused for ages, so remove it from the listluigi2009-03-022-5/+1
| | | | | | | | | | of sysctl_variables. I would also remove it from the VNET record but I am unsure if there is any ABI issue -- so for the time being just mark it as unused in ip_fw.h, and then we will collect the garbage at some appropriate time in the future. MFC after: 3 days
* Change vfs_busy to wait until an outcome of pending unmountkan2009-03-021-5/+13
| | | | | | | | | | | | operation is known and to retry or fail accordingly to that outcome. This fixes the problem with namespace traversing programs failing with random ENOENT errors if someone just happened to try to unmount that same filesystem at the same time. Reported by: dhw Reviewed by: kib, attilio Sponsored by: Juniper Networks, Inc.
* Switch the default buffer mode in bpf(4) to zero-copy buffers.csjp2009-03-021-1/+1
| | | | Discussed with: rwatson
* Disable INTx when enabling MSI/MSIXrnoland2009-03-022-0/+5
| | | | | | | | | | | | | | | This addresses interrupt storms that were noticed after enabling MSI in drm. I think this is due to a loose interpretation of the PCI 2.3 spec, which states that a function using MSI is prohibitted from using INTx. It appears that some vendors interpretted that to mean that they should handle it in hardware, while others felt it was the drivers responsibility. This fix will also likely resolve interrupt storm related issues with devices other than drm. Reviewed by: jhb@ MFC after: 3 days
* Correct types of variables used to track amount of allocated SysV sharedkib2009-03-025-9/+31
| | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
* Use the p_sysent->sv_flags flag SV_ILP32 to detect 32bit processkib2009-03-025-22/+16
| | | | | | executing on 64bit kernel. This eliminates the direct comparisions of p_sysent with &ia32_freebsd_sysvec, that were left intact after r185169.
* Some Apple I2C buses give the device's I2C address in a property with thenwhitehorn2009-03-021-2/+9
| | | | | | | | name i2c-address instead of reg. Change the OFW I2C probe to check both locations for the address. Submitted by: Marco Trillo Reported by: Justin Hibbits
* Merge OpenBSM 1.1 beta 1 from OpenBSM vendor branch to head, bothrwatson2009-03-0232-317/+910
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). OpenBSM history for imported revision below for reference. MFC after: 1 month Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 beta 1 - The filesz parameter in audit_control(5) now accepts suffixes: 'B' for Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes. For legacy support no suffix defaults to bytes. - Audit trail log expiration support added. It is configured in audit_control(5) with the expire-after parameter. If there is no expire-after parameter in audit_control(5), the default, then the audit trail files are not expired and removed. See audit_control(5) for more information. - Change defaults in audit_control: warn at 5% rather than 20% free for audit partitions, rotate automatically at 2mb, and set the default policy to cnt,argv rather than cnt so that execve(2) arguments are captured if AUE_EXECVE events are audited. These may provide more usable defaults for many users. - Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert au_to_socket_ex(3) arguments to BSM format. - Fix error encoding AUT_IPC_PERM tokens.
* Bump __FreeBSD_version for the ushub to uhub rename.thompsa2009-03-021-1/+1
| | | | Requested by: marcus
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-0243-45/+45
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* add -b option to suppress the bannersam2009-03-021-4/+8
|
* Write the MBR by using the bootcode verb of the gpart class.marcel2009-03-021-27/+22
| | | | | The "write MBR" verb is kept for backward compatibility, but the DIOCSMBR ioctl has been removed.
* uupdate for 0.6.8sam2009-03-021-2/+3
|
* Rewrite asprintf() as a wrapper around vasprintf(), thus reducing thedas2009-03-021-43/+22
| | | | | number of functions that have an incestuous relationship with the arcane innards of stdio.
* update for 0.6.8sam2009-03-021-4/+2
|
* update for 0.6.8sam2009-03-021-2/+3
|
* The argument corresponding to %zn is supposed to be an ssize_t *, notdas2009-03-022-6/+6
| | | | a size_t *, although the distinction is moot in practice.
* Verify that the filesystem being referenced in fstab is indeed a UFScy2009-03-021-2/+3
| | | | | | | | filesystem. This avoids confusion with nullfs and unionfs filesystems which reference the root of a UFS filesystem as a target. PR: 116849 Approved by: kib
* Move the serial drivers from Giant to using their own mutexs.thompsa2009-03-0218-65/+119
| | | | Tested with: u3g, ubser, uplcom
* don't need these any more; we are now using a combined treesam2009-03-02400-165860/+0
|
* update to 0.6.8sam2009-03-028-96/+107
| | | | Reviewed by: thompsa
* bring in local changes for:sam2009-03-026-4/+102
| | | | | | CONFIG_DEBUG_SYSLOG CONFIG_TERMINATE_ONLASTIF EAP_SERVER
* connect vendor wpa area to contribsam2009-03-02435-0/+184156
|\
| * remove unused bitssam2009-03-01131-51018/+0
| |
| * import wpa_supplicant+hostapd 0.6.8sam2009-03-01566-0/+235174
|
* removesam2009-03-020-0/+0
|
* Give controller a chance to issue Soft Reset clear command before checkingmav2009-03-011-2/+1
| | | | | | | | | | | ready status. Most of controllers managed to issue coommand and set BUSY bit almost simultaneously, before we will read it, but at least JMicron JMB363 don't. Ignore timeout errors to keep old behavior when error there was impossible. For me this fixes timeout errors on the first command after channel attach or reinit. Boot in my case is not affected, as there is much time passing between reset and next command giving reset time to complete.
* Use C99-style initializers. No functional change.das2009-03-011-4/+9
| | | | Reviewed by: md5(1)
* Add verbage about needing to remap libusb-0.1 to libusb20 to get oldimp2009-03-011-1/+8
| | | | programs to work with the new usb stack.
* Hide __restrict from lint, just like we do with other keywords.ed2009-03-011-1/+1
| | | | | | | | | Unlike GCC, LLVM defines __STDC_VERSION__ to 199901L by default. This means `restrict' keywords in files end up being given to lint, which results in errors during compilation of usr.bin/xlint. Other keywords are also expanded to nothing when using lint, so do the same with restrict.
* Comment out enabling FIS Based Switching inside ata_ahci_issue_cmd() as itmav2009-03-011-1/+1
| | | | | | | | done in other places. Until we have no support for command queueing we have no any benefit from FBS, while enabling it only here somehow leads to "port not ready" errors on Intel 63XXESB2 controller. Tested by: Larry Rosenman <ler AT lerctr.org>
* remove duplicate entries for isa and npx, they areluigi2009-03-011-4/+0
| | | | in by default now
* Remove self.sos2009-03-011-1/+0
|
* Fix range-check error introduced in r182292. Also do not do anythingdchagin2009-03-011-1/+3
| | | | | | | if all processors in the map are not available, simply return. Approved by: kib (mentor) MFC after: 1 week
* Note that network device driver modules need rebuilding.rwatson2009-03-011-0/+4
|
* Do a bit of struct ifnet cleanup in preparation for 8.0: group functionrwatson2009-03-011-7/+12
| | | | | | | | | | | pointers together, move padding to the bottom of the structure, and add two new integer spares due to attrition over time. Remove unused spare "flags" field, we can use one of the spare ints if we need it later. This change requires a rebuild of device driver modules that depend on the layout of ifnet for binary compatibility reasons. Discussed with: kmacy
* Add size-guards evaluated at compile-time to the main struct vnet_*bz2009-03-014-0/+12
| | | | | | | | | | which are not in a module of their own like gif. Single kernel compiles and universe will fail if the size of the struct changes. Th expected values are given in sys/vimage.h. See the comments where how to handle this. Requested by: peter
* Add the infrastructure and expected sizeof() values for each supportedbz2009-03-011-0/+99
| | | | | | | | | | | | | architecture to implement size-guards on the vimage vnet_* structures. As CTASSERT_EQUAL() needs special compile time options we back it by CTASSERT() in the default case. Unfortunately CTASSERT() triggers first, thus add an option to allow compilation with CTASSERT_EQUAL() only. See the comments how to get new values if you trigger the assert and what to do in that case. Reviewed by: rwatson, zec (earlier versions)
* Improve my previous changes to the TTY code: also remove memcpy().ed2009-03-012-6/+6
| | | | | | | | It's better to just use internal language constructs, because it is likely the compiler has a better opinion on whether to perform inlining, which is very likely to happen to struct winsize. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Add the new compile-time assertion macro CTASSERT_EQUAL().bz2009-03-011-0/+24
| | | | | | | | | | | | | | | | | | | | | It takes a positive integer constant (the expected value) and another positive integer, usually compile-time evaluated, e.g. CTASSERT_EQUAL(FOO_EXPECTED_SIZE, sizeof (struct foo)); While the classic CTASSERT() gives: error: size of array '__assert60' is negative this gives you: In function '__ctassert_equal_at_line_60': warning: '__expected_42_but_got[464ul]' is used uninitialized in this function and you can directly see the difference in the expected and the real value. CTASSERT_EQUAL() needs special compile time options to trigger thus keep it locally to this header. If it proves to be of general interest it can be moved to systm.h. Submitted by: jmallett Reviewed by: sam, warner, rwatson, jmallett (earlier versions)
* use ansi prototypessam2009-03-011-11/+4
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* - Remove kH (kp_kll) from screen. It has the identical key sequence asrafan2009-03-011-1/+1
| | | | | | | | | | | | @7 (kp_end). As ncurses has the limitation that it returns the first matched key symbol, you can not use END in ncurses based program under screen (like ports/misc/mc). We did similar changes to xterm entry last year for exactly the same reason. PR: 132199 Submitted by: Timur I. Bakeyev <timur at FreeBSD.org> MFC after: 2 month
* Fix a typo in the previous commit.das2009-03-011-1/+1
| | | | Submitted by: Mel <mel@rachie.is-a-geek.net>
* Add a missing .El.delphij2009-03-011-0/+1
|
* "-isoC-99" should be spelled without 'c'.delphij2009-03-011-1/+1
|
* In sys/tree.h:bms2009-03-011-1/+16
| | | | | | | | | | | | | | | | * Add RB_FOREACH_FROM() which continues traversal *at* the y-node provided. There is no pre-increment. * Nuke RB_FOREACH_SAFE as it was buggy; it would omit the final node. * Replace RB_FOREACH_SAFE() with a working implementation derived from RB_FOREACH_FROM(). The key observation is that we now only check the loop-control variable, but still cache the next member pointer. * Add RB_FOREACH_REVERSE_FROM() which continues backwards traversal *at* the y-node provided. There is no pre-increment. Typically this is used to back out of allocations made whilst walking an RB-tree. * Add RB_FOREACH_REVERSE_SAFE() which performs insertion and deletion safe backwards traversal.
* Remove unreachable code for generating RST segments from tcp_twcheck();rwatson2009-02-281-45/+0
| | | | | | | this code became stale when T/TCP support was removed. Discussed with: bz, sam MFC after: 1 month
OpenPOWER on IntegriCloud