summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handling all the three clocks (hardclock, softclock, profclock) with theattilio2010-01-158-77/+129
| | | | | | | | | | | | | | | | | | LAPIC may lead to aliasing for softclock and profclock because frequencies are sized in order to fit mainly hardclock. atrtc used to take care of the softclock and profclock and it does still do, if the LAPIC can't handle the clocks properly. Revert the change when the LAPIC started taking charge of all three of them and let atrtc handle softclock and profclock if not explicitly requested. Such request can be made setting != 0 the new tunable machdep.lapic_allclocks or if the new device ATPIC is not present within the i386 kernel config (atrtc is linked to atpic presence). Diagnosed by: Sandvine Incorporated Reviewed by: jhb, emaste Sponsored by: Sandvine Incorporated MFC: 3 weeks
* Use the newly brought %U macro.ru2010-01-1545-59/+59
|
* Whitespace change to be able to provide the correct commit log for r202364:netchild2010-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---snip--- Add video clipping support but with the caveats below. Background info: Video clipping allows the user to provide either a series of clip rectangles or a clip bitmap to the driver and have the driver mask the video according to the clipping specs provided. Adding support for clipping to the FreeBSD Linux emulator is problematic because it seems that this feature is not supported by many drivers and therefore it is ignored by many applications. Unfortunately, when not using it, rather than passing in a null clipping list, some apps leave the clipping fields uninitialized, casuing random values to be passed in. In the case where the driver does not use the clipping info, this is not a problem (although it is bad form). But the Linux emulator does not know which drivers will use this and which won't, so the Linux emulator must try to handle this clip list, and deal gracefully with cases where the values seem to be uninitialized. Video clipping info is passed in using the VIDIOCSWIN ioctl in two fields in the video_window structure: the integer clipcount and the pointer clips. How the linuxulator handles this from this commit on: * if (clipcount == VIDEO_CLIP_BITMAP) The clips variable is a void * pointer to a 128*625 byte (1024*625 bit) memory area containing a bitmap of the clipping area. The pointer in the video_window structure is copied, but no video_clip structures are copied. * if (clipcount > 0 && clipcount <= 16384) The clips variable is pointer to a list of video_clip structures. Up to clipcount structures are copied and passed to the driver. The upper limit of 16384 was imposed here so that user code that does not properly initialize clipcount falls through below and no attempt is made to copy an uninitialized list. This value was found by examining Linux drivers that support the clip list. * else The clipcount is either negative (but not VIDEO_CLIP_BITMAP), zero or positive (> 16384). All these cases are treated as invalid data. Both the clipcount field and clips pointer are forced to zero/NULL and passed to the driver. It should be noted that, at the time of developing this V4L emulator code, the pwc(4) V4L driver does not support clipping. Submitted by: J.R. Oldroyd <fbsd@opal.com> MFC after: 1 month ---snip---
* Pull up vendor changes.ru2010-01-153-4/+79
|
* This is v4l support for the linuxulator. This allows to access FreeBSDnetchild2010-01-151-33/+80
| | | | | | | | | | | | | | | native devices which support the v4l API from processes running within the linuxulator, e.g. skype or flash can access the multimedia/pwcbsd driver. Not tested is firmware upload, framebuffer stuff and video tuner stuff due to lack of hardware. The clipping part (VIDIOCSWIN) needs a little bit of further work (partly in progress, but can not be tested due to lack of a suitable device). The submitter tested this sucessfully with Skype and flash apps on amd64 and i386 with the multimedia/pwcbsd driver. Submitted by: J.R. Oldroyd <fbsd@opal.com>
* Moved the doc-str-Lb-libulog string definition to where it belongs.ru2010-01-152-1/+1
|
* Pull up vendor changes. The following local changes made obsolete:ru2010-01-158-34/+105
| | | | | - Addition of several FreeBSD versions. - r192561 that attempted to fix UTF-8 issues.
* Do not free the dmamap if it is still busy.cognet2010-01-151-1/+1
| | | | | Submitted by: Mark Tinguely MFC after: 3 days
* Only allocate the space we need before calling kern_getgroups insteadbrooks2010-01-152-4/+14
| | | | | | | | | | | | of allocating what ever the user asks for up to "ngroups_max + 1". On systems with large values of kern.ngroups this will be more efficient. The now redundant check that the array is large enough in kern_getgroups() is deliberate to allow this change to be merged to stable/8 without breaking potential third party consumers of the API. Reported by: bde MFC after: 28 days
* Since all other comparisons involving ngroups_max usebrooks2010-01-152-2/+2
| | | | | "ngroups_max + 1", use ">= ngroups_max+1" instead of the equivalent "> ngroups_max" to reduce confusion.
* Oops, deleted one line too many. Add back the null case for IGNORE_MOTDdougb2010-01-151-0/+1
|
* Now that we've officially arrived at FreeBSD 9, remove the IGNORE_MOTDdougb2010-01-151-5/+2
| | | | compat shim as advertised. This change should not be MFC'ed.
* Also call sem_module_init in sem_close to initialize mutexdavidxu2010-01-151-0/+2
| | | | with some attributes.
* In 'make delete-old', use 'exec' to redirect an fd persistently.jilles2010-01-141-1/+1
| | | | | | | | That is, write 'exec 3<&0' instead of '3<&0'. Due to an sh(1) bug fixed in r199953, the latter also persisted, provided that fd 3 was not open before. With newer sh or fd 3 open, it would not delete orphaned catpages. MFC after: 2 weeks
* Add manpages for ipwfw(4) and iwifw(4), based on iwnfw(4).brueffer2010-01-143-0/+152
| | | | MFC after: 2 weeks
* Fix a typo: accouting -> accounting.ed2010-01-141-1/+1
|
* Fix a few whitespace issues and comment typos that I found while readingjoel2010-01-141-11/+9
| | | | through this file.
* Add wtmpcvt(1).ed2010-01-146-1/+214
| | | | | | | | | | This utility allows users to convert their wtmp databases to the new format. It makes no sense for users to keep their wtmp log files if they are unable to view them. It basically copies ut_line into ut_id as well. This makes it possible for last(1) and ac(8) to match login records with their corresponding logout record.
* Fix bugs introduced in previous commit: off-by-one in add_meshconf() andrpaulo2010-01-141-2/+4
| | | | big-endian bug on verify_meshconf()
* Add check for fiber mode for BCM5714 PHY. This PHY supports bothyongari2010-01-141-0/+1
| | | | | | | | | copper and fiber interfaces over GMII so an explicit check is necessary to know whether it was configured for fiber interface. This change make BCM5715S work. Tested by: olli MFC after: 1 week
* For controllers that has dual mode PHY(copper or fiber) interfacesyongari2010-01-142-12/+23
| | | | | | | | | | | | | over GMII, make sure to enable GMII. With this change brgphy(4) is used to handle the dual mode PHY. Since we still don't have a sane way to pass PHY specific information to mii(4) layer special handling is needed in brgphy(4) to determine which mode of PHY was configured in parent interface. This change make BCM5715S work. Tested by: olli Obtained from: OpenBSD MFC after: 1 week
* Build iwi(4) and iwifw(4) modules on amd64 as well.brueffer2010-01-141-0/+2
| | | | | | PR: 113117 Submitted by: "O. Hartmann" <ohartman@zedat.fu-berlin.de> MFC after: 1 week
* Reject invalid CIDR widths rather than silently stopping at the firstemaste2010-01-141-4/+8
| | | | | | | | | | | | non-digit character. Due to an issue with rc(8) in a test configuration, ifconfig was being invoked with the address used again as the width - for example, ifconfig vlan0 10.0.0.1/10.0.0.1 Prior to this change, that address/width would be interpreted as 10.0.0.1/10.
* Remove ttyslot from Symbol.map anyway.ed2010-01-141-1/+0
| | | | Requested by: kan
* Unbreak pututxline() on 32-bit architectures.ed2010-01-141-4/+4
| | | | | | | | I forgot to cast the size_t's back to off_t before negating them, causing all sorts of artifacts where the log files would grow to 2^32 - 197 bytes. Reported by: ume
* Update the ident for the XENHVM kernel config to match the filename.jhb2010-01-141-1/+1
| | | | MFC after: 1 week
* - Note that if_xname, if_dname, and if_dunit are usually initialized viajhb2010-01-141-16/+40
| | | | | | | | | | | | if_initname(). - Document if_drv_flags and replace references to IFF_(RUNNING|OACTIVE) with references to IFF_DRV_(RUNNING|OACTIVE). - Complete truncated sentence in the description of if_transmit by copying from the description in if_qflush. - Add missing line breaks for translators. Reviewed by: brooks (1) MFC after: 3 days
* - Update required headers for namei() to add <sys/fcntl.h> and removejhb2010-01-142-2/+31
| | | | | | | | | | <sys/proc.h>. - Add RETURN VALUES and ERROR sections for namei()'s error return values. - Add a missing link to NDHASGIANT.9. PR: docs/142815, docs/142816 Submitted by: Lachlan Kang (1, 2) MFC after: 3 days
* Bring in the ext2fs work done by Aditya Sarawgi during and after Google Summerlulf2010-01-1428-3393/+2155
| | | | | | | | | | | | | | | of Code 2009: - BSDL block and inode allocation policies for ext2fs. This involves the use FFS1 style block and inode allocation for ext2fs. Preallocation was removed since it was GPL'd. - Make ext2fs MPSAFE by introducing locks to per-mount datastructures. - Fixes for kern/122047 PR. - Various small bugfixes. - Move out of gnu/ directory. Sponsored by: Google Inc. Submitted by: Aditya Sarawgi <sarawgi.aditya AT SPAMFREE gmail DOT com>
* The group field is called `gid', not `group'.ed2010-01-141-1/+1
|
* Make whois capable of searching for IPv6 addresses just like it canedwin2010-01-141-0/+4
| | | | | | | | | do for IPv4 addresses without having to explicetly specify that the ARIN server should be used to get the initial information PR: bin/128725 Submitted by: "Matt D. Harris" <mdh_lists@yahoo.com> MFC after: 1 week
* Remove -d option, whois.nic.mil doesn't exist anymore.edwin2010-01-142-12/+3
| | | | | | PR: bin/142507 Submitted by: Dan Mahoney <danm@prime.gushi.org> MFC after: 1 week
* Revert the change to Symbol.map, made in r202274.ed2010-01-141-0/+1
| | | | | | | | | | | | | Even though we use __sym_compat(), we should list the symbol in Symbol.map. ttyslot() is now listed as follows, which seems to do the right thing: | Symbol table '.dynsym' contains 2755 entries: | Num: Value Size Type Bind Vis Ndx Name | 613: 00000000000477b0 121 FUNC GLOBAL DEFAULT 10 ttyslot@FBSD_1.0 Reported by: kib
* Document that the IEEE80211_DEBUG kernel option is needed forroam2010-01-141-1/+4
| | | | | | | | | using the wlan(4) debugging controls with wording slightly different from that in the PR. PR: 142367 Submitted by: Matthew Thyer <matt.thyer@gmail.com> MFC after: 2 weeks
* Don't use fseeko() to obtain the file offset.ed2010-01-141-1/+1
| | | | | I was a bit confused with lseek(), which returns the new offset. We should ftello() to obtain it using stdio.
* Add two changes that should have gone into commit r202274.ed2010-01-142-2/+1
| | | | | | | | | | Phase out ttyslot(3). The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
* Phase out ttyslot(3).ed2010-01-146-24/+8
| | | | | | | | The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
* Add ioctl requests to /dev/io on ia64 for reading and writingmarcel2010-01-142-0/+158
| | | | | | EFI variables. The primary reason for this is that it allows sysinstall(8) to add a boot menu item for the newly installed FreeBSD image.
* Fix previous commitr:. efi_var_set() was copied from efi_var_get(),marcel2010-01-142-4/+4
| | | | but wasn't actually changed.
* Add wrappers for the RT Variable Services. While here, translate themarcel2010-01-142-3/+74
| | | | | | | EFI status into a standard errno value and change efi_set_time() to return a standard error. MFC after: 1 week
* Grammar nits.thompsa2010-01-142-9/+9
| | | | Submitted by: Ben Kaduk
* Add BCM5754 PHY id that is found on Dell Studio XPS 16.yongari2010-01-142-0/+2
| | | | | Tested by: scf MFC after: 1 week
* o Add PCI ID for BCM 5756.delphij2010-01-132-1/+4
| | | | | | | | | | o Don't enable BGE_FLAG_BER_BUG on both 5722 and 5756, and based on their PCI IDs rather than their chip IDs. Reported by: several PC-BSD users via kmoore Reviewed by: yongari, imp, jhb, davidch Sponsored by: iXsystems, Inc. MFC after: 2 weeks
* Hide from default sndstat some information not used on daily basis,mav2010-01-132-11/+16
| | | | to make it readable by average user with average screen size.
* Remove the 1000 pseudo terminal limit from pts(4).ed2010-01-132-34/+0
| | | | | Even with the old utmp format, we could in fact go to pts/9999, because ut_line wasn't guaranteed to be null terminated there.
* Update to Fredrik's latest uhso driver. This changes port detection, addsthompsa2010-01-133-97/+169
| | | | | | comments and other code nits. Submitted by: Fredrik Lindberg <fli@shapeshifter.se>
* Add a missing $FreeBSD$ string.ed2010-01-131-0/+1
| | | | | | | I was requested to add this string to any file that was modified by my commit, which I forgot to do so. Requested by: des
* Complete the migration towards utmpx.ed2010-01-132-1/+18
| | | | | | - Add a notice to UPDATING, explaining users may need to recompile applications that use the old database. - Bump __FreeBSD_version.
* Let rc and periodic infrastructure and newsyslog use the utmpx files.ed2010-01-134-11/+11
|
* Remove <utmp.h> and its corresponding manual page.ed2010-01-134-342/+5
|
OpenPOWER on IntegriCloud