summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for memory disk (md). The size of the memory diskmarcel2009-12-132-0/+156
| | | | | | is determined by MD_IMAGE_SIZE. A file system can be embedded into the loader with /sys/tools/embed_mfs.sh. Note that md.c is not included when MD_IMAGE_SIZE is not set.
* Unbreak the ata_atapi() usage. Since r200171 the mode setting functionsmarius2009-12-133-7/+6
| | | | | | | | get a ata_device type device passed instead of a ata_channel one, thus ata_atapi() has to be adjusted accordingly. Reviewed by: mav MFC after: 3 days
* Document PBDRY and SLEEPQ_STOP_ON_BDRY.kib2009-12-122-3/+22
| | | | | Requested and reviewed by: attilio MFC after: 3 days
* Don't free jail parameter values after printing them - jail_param_getjamie2009-12-121-5/+0
| | | | | | | expects them to be there for the next jail in the list. PR: bin/141359 MFC after: 1 week
* Since the change to rc.subr in r198162 it's not necessary to specifydougb2009-12-121-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | command in the rc.d script if we have a corresponding ${name}_program entry, which we do for named. Rename named_precmd to named_prestart to make it more clear and match convention. Move the command_args definition related to -u up into _prestart(). It (and the associated $named_uid value) are only used there, and unlike required_* and pidfile don't need to be used until this stage. Fix a silly bug that would only have affected people who were using the new named_wait or named_auto_forward features, AND had set up an rndc.conf file instead of using the automatically generated rndc.key. For named_conf: Add "-c $named_conf" to command_args if it's not set to the default. If it is set to the default and we're using the base BIND it's not necessary. If we're using BIND from the ports the user is likely to have included it in _flags (due to long necessity for doing so) so don't duplicate that if it's set. Add $named_conf to required_files
* In current code, threads performing an interruptible sleep (on bothattilio2009-12-127-20/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sxlock, via the sx_{s, x}lock_sig() interface, or plain lockmgr), will leave the waiters flag on forcing the owner to do a wakeup even when if the waiter queue is empty. That operation may lead to a deadlock in the case of doing a fake wakeup on the "preferred" (based on the wakeup algorithm) queue while the other queue has real waiters on it, because nobody is going to wakeup the 2nd queue waiters and they will sleep indefinitively. A similar bug, is present, for lockmgr in the case the waiters are sleeping with LK_SLEEPFAIL on. In this case, even if the waiters queue is not empty, the waiters won't progress after being awake but they will just fail, still not taking care of the 2nd queue waiters (as instead the lock owned doing the wakeup would expect). In order to fix this bug in a cheap way (without adding too much locking and complicating too much the semantic) add a sleepqueue interface which does report the actual number of waiters on a specified queue of a waitchannel (sleepq_sleepcnt()) and use it in order to determine if the exclusive waiters (or shared waiters) are actually present on the lockmgr (or sx) before to give them precedence in the wakeup algorithm. This fix alone, however doesn't solve the LK_SLEEPFAIL bug. In order to cope with it, add the tracking of how many exclusive LK_SLEEPFAIL waiters a lockmgr has and if all the waiters on the exclusive waiters queue are LK_SLEEPFAIL just wake both queues. The sleepq_sleepcnt() introduction and ABI breakage require __FreeBSD_version bumping. Reported by: avg, kib, pho Reviewed by: kib Tested by: pho
* For ia32 syscall(), call cpu_set_syscall_retval(). Update comment insidekib2009-12-122-30/+6
| | | | | | cpu_set_syscall_retval() accordingly. MFC after: 1 week
* Don't read the newline character to line buffer because lines are passedjh2009-12-1214-17/+66
| | | | | | | | | | | | | | | to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. [1] PR: bin/140976 Submitted by: D'Arcy Cain (original version) [1] Approved by: trasz (mentor)
* The input line length limit mentioned on the manual page was removed byjh2009-12-121-5/+1
| | | | | | r179374. Approved by: trasz (mentor)
* Install firmware(9) examples.antoine2009-12-122-0/+12
| | | | MFC after: 1 month
* Make the code buildable in userland so it is easier to test it:luigi2009-12-121-8/+25
| | | | | | | | | | | | | | this requires a small reordering of headers and a few #defines to map functions not available in userland. Remove a useless #ifndef block at the beginning of the file. Introduce (temporarily) rn_init2(), see the comment in the code for the proper long term change. No ABI or functional change. MFC after: 7 days
* Over time things that used to be files/directories/links can changedougb2009-12-121-2/+59
| | | | | | | | | | | | | to something else. So add code to detect when things don't match and give the user choices about how to fix it. If we're using -P and something in the above check needs to be moved we need to have the directory there for it, so create it at the beginning and delete empty versions of it at the end. The case where something used to be a file or link and now is supposed to be a directory (e.g., /etc/security) is especially dangerous, so make failure to install a necessary directory in $DESTDIR a fatal error.
* Fix libusb_open_device_with_vid_pid() to return a NULL if no device isscf2009-12-121-2/+2
| | | | | | | found instead of the last device in its search list. Reviewed by: thompsa MFC after: 5 days
* Remove a dead store.scf2009-12-121-2/+2
| | | | MFC after: 5 days
* Remove driver lock assertion in MII register access. This changeyongari2009-12-121-2/+0
| | | | | | was made in r199543 to remove MTX_RECURSE. These routines can be called in device attach phase(e.g. mii_phy_probe()) so checking assertion here is not right as caller does not hold a driver lock.
* The hostname passed to ulog_login(3) may be optional.ed2009-12-111-1/+2
| | | | | | | Don't trip on a null pointer being passed to this function when performing a local login. Noticed by: dougb
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-11121-193/+19
| | | | Tested with: make universe
* Remove unnecessary termcap.h includes inherited from extern.h and otherdelphij2009-12-117-27/+16
| | | | | unneeded headers. While I'm there, make function definations ANSI prototypes.
* Move unistd.h includes to individual .c files and remove unnecessarydelphij2009-12-119-2/+7
| | | | includes.
* Remove unnecessary includes.delphij2009-12-1110-20/+0
| | | | Reviewed by: rodrigc
* Simplify handling of MTREEFILE relative to DESTDIRdougb2009-12-111-7/+8
| | | | | Make the message about a missing MTREEFILE combined with -U more informative
* Reference the correct man page for firmware(9).bcr2009-12-111-1/+1
| | | | | | | | PR: docs/140985 Submitted by: Glen Barber (glen dot j dot barber at gmail dot com) MFC after: 7 days Reviewed by: rpaulo Approved by: rpaulo, jkois (mentor)
* CFA support doesn't exclude FLUSH support.mav2009-12-111-2/+2
| | | | Submitted by: Grzegorz Bernacki
* Convert pam_lastlog(8) to libulog.ed2009-12-114-90/+29
| | | | | | | | | | | The information used by the "Last login:"-line is obtained by using ulog_setutxfile(3) to switch to the lastlog database. Login and logout are performed using the utility functions ulog_login(3) and ulog_logout(3). This also means we must build libulog during bootstrap. Approved by: des
* Bump the man page date to the date of the last update.syrinx2009-12-111-1/+1
| | | | Noticed by: bz
* Cleanups the boot2 for pc98. There is no functional change.nyan2009-12-118-164/+18
| | | | | | | | | - Make setting machine type and getting geom conditional for future. - Remove unused RAWBOOT and CDBOOT supports. - Remove unneeded include. - Fix warnings. MFC after: 1 week
* only export bio_cmd and flags to userland (bio_cmd areluigi2009-12-111-17/+16
| | | | | | | | | | used by ggatectl, flags are potentially useful). Other parts are internal kernel data structures and should not be visible to userland. No API change involved. MFC after: 3 days
* Add support for TACACS+ accounting to libtacplus(3).syrinx2009-12-114-0/+142
| | | | | Submitted by: Michael Pounov misho@aitbg.com OKed by: emaste
* Fix interrupt handling. It started off broken and grew worse over time.marcel2009-12-111-46/+62
| | | | | | | | | | | | | | | The rewrite of the interrupt handler includes: o loop until all pending interrupts are handled. This closes a race condition. o count the number of interrupt sources we handled so that we can properly return FILTER_HANDLED or FILTER_STRAY when we break out of the loop. o When matching the interrupt source to the devices that have that source pending, check only from the set of devices we found to have a pending interrupt. PR: kern/140947 MFC after: 3 days
* Wrap long lines.thompsa2009-12-111-37/+77
|
* Add a quirk for the Curitel UM175 where setting multiplexing for callthompsa2009-12-114-7/+36
| | | | | | | | | management over the data endpoint causes communication to die. Take this one step further and model it on the existing NetBSD quirk and import other device IDs from them. Obtained from: NetBSD
* Apply two vendor fixes for CVE-2009-3720.delphij2009-12-112-2/+1
| | | | | Security: CVE-2009-3720 MFC after: 3 days
* Update to the December 12, 2008 version of this file. The onedougb2009-12-111-18/+19
| | | | | substantive change is to add the IPv6 address of L. The other changes are all CAPS LOCK related.
* Revert r199331, the UM175 is in fact a cdc-acm device handled by umodem(4).thompsa2009-12-111-1/+0
|
* Add one more set of codec IDs.mav2009-12-111-0/+8
|
* Update termcap entries for xterm.ed2009-12-102-127/+150
| | | | | | | | | | It turns out these entries do make Terminal.app behave a little better. According to Thomas Dickey, Terminal.app should use TERM=nsterm anyway, but we don't support this yet. Already having an improved termcap entry helps, so I am going to MFC this change after all. Suggested by: Leonidas Tsampros <ltsampros upnet gr> MFC after: 1 month
* Add a missing else that negated the truncation of ki_ngroups tobrooks2009-12-101-1/+1
| | | | | | NGROUPS. Submitted by: Dmitry Pryanishnikov <lynx dot ripe at gmail dot com>
* use div64 when converting back the burst value for userlandluigi2009-12-101-1/+1
|
* when draining a flowset free the entire chain, not just one packet.luigi2009-12-101-1/+1
|
* Add module dependency for cam if configured as ATA_CAM.takawata2009-12-101-0/+3
|
* centralize the code to free a packet (or a chain) while in dummynet.luigi2009-12-101-32/+27
| | | | Remove an old macro and its stale comment.
* Don't warn about an RSDP with a corrupt checksum. The kernel does a betterjhb2009-12-101-3/+1
| | | | | | | | job about warning about these things later and this message can be confusing. Submitted by: infofarmer MFC after: 1 week
* Record part of history I participated in.kib2009-12-101-0/+11
| | | | No objections from: ed, pho
* No functional changes (who dares to touch this code!) but:luigi2009-12-101-5/+8
| | | | | | | | | | - cast the result of LEN() to int as this is the main usage. - use LEN() in one place where it was forgotten. - Document the use of a static variable in rw mode. More small changes to follow. MFC after: 7 days
* Limit maximum I/O size, depending on command set supported by device.mav2009-12-101-0/+4
| | | | | It is required to suppot non-LBA48 devices with MAXPHYS above 128K. Same is done in ada(4).
* for PV XEN translate page table entries from machine (real) to physical ↵kmacy2009-12-101-0/+16
| | | | | | (logical) addresses so that kgdb can translate them to the correct coredump offsets
* Merge two cpio fixes from libarchive.googlecode.com:kientzle2009-12-101-2/+5
| | | | | | | | | 1) Avoid an infinite loop in the header resync for certain malformed archives. 2) Don't try to match hardlinks if the nlinks count is < 2. This reduces the likelihood of a false hardlink match due to ino truncation. MFC after: 7 days
* - revert pmap_kenter_temporary to taking a physical addresskmacy2009-12-103-9/+11
| | | | - make minidump work
* Simplify arena_run_reg_dalloc(), and remove a bug that was due to incorrectjasone2009-12-101-89/+28
| | | | initialization of ssize_invs.
* Implement a rudimentary suspend/resume methods for PCI P2P bridge.jkim2009-12-102-57/+200
| | | | Reviewed by: jhb, imp
OpenPOWER on IntegriCloud