summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ls: Make -p not inhibit following symlinks.jilles2009-10-131-1/+1
| | | | | | | | | According to the man page, when neither -H/-L nor -F/-d/-l are given, -H is implied. This agrees with POSIX, GNU ls and Solaris ls. This means that -p, although it is very similar to -F, does not prevent the implicit following of symlinks. PR: standards/128546
* Make getcwd(3) faster, simpler and more compliant using *at syscalls.jilles2009-10-131-45/+18
| | | | | It is no longer necessary to construct long paths consisting of repeated "../" which may be slow to process and may exceed PATH_MAX.
* Compare pointer to NULL rather than 0.bz2009-10-131-1/+1
| | | | MFC after: 1 month
* Immediately after clearing a pending callout that didn't make it duebz2009-10-131-10/+10
| | | | | | | | | | | | | | to the lock we hold, disable interrupts, and announce to the firmware that we are shutting down. Especially do this before disabling blocks. This makes some types of machines with asf enabled no longer hang upon boot, when we start configuring the interface. PR: i386/96382, kern/100410, kern/122252, kern/116328 Reported by: erwin Hardware provided by: TDC A/S Reviewed by: stas Tested by: stas
* Sync with other GENERIC kernel configs:jhb2009-10-132-23/+31
| | | | | | | | - Move USB serial drivers earlier to match their placement in other kernel configs. - Add descriptions to various USB drivers. - Move the USB wireless drivers into a new section. - Add ulscom to the list of USB serial drivers.
* Move the USB wireless drivers down into their own section next to the USBjhb2009-10-134-16/+20
| | | | | | | ethernet drivers. Submitted by: Glen Barber glen.j.barber @ gmail MFC after: 1 month
* Fix this module so it at least builds. Note that it isn't hooked up tojhb2009-10-131-2/+2
| | | | | the build however, and ubser(4) is also not present in any kernel configs (including NOTES).
* Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,rwatson2009-10-131-0/+10
| | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com> MFC after: 3 days (most)
* Correct typo: thetime -> the timeemaste2009-10-131-1/+1
| | | | | PR: docs/139447 Submitted by: Guido Falsi mad at madpilot dot net
* Correct a copy/paste bug in a comment. lptclose() checks once a second tojhb2009-10-131-1/+1
| | | | see if the ppc hardware has gone idle rather than four times a second.
* Properly initialize the mesh conf capabilities byte.rpaulo2009-10-131-0/+1
| | | | MFC after: 2 days
* EXPORT_SYMS is not, in fact, required, for a dependent module to accessrwatson2009-10-131-10/+0
| | | | | | | non-static symbols in a module they depend on, so remove dtrace symbols from nfsclient's EXPORT_SYMS again. Suggested by: jhb
* Make number(6) build with WARNS=6.ed2009-10-132-4/+4
|
* Chase dependency changes in libgssapi_krb5 module introruced bybland2009-10-131-1/+1
| | | | revision r197995.
* Use printb() to display the "nd6 options=" line.hrs2009-10-121-29/+7
|
* We haven't installed usbdevs for many moons now, and it doesn't work anymarkm2009-10-121-0/+2
| | | | more anyway. Add it to the "obsolete" list.
* Fix the 106/109 USB Japanese keyboard "underscore" issue.hrs2009-10-121-12/+51
| | | | | | | | | Sun Type 6 USB keyboard support added in rev 1.46 conflicted with some scan codes used in Japanese keyboards because the scan code conversion routine was ambiguous for the overlapped codes. PR: ports/134005 Submitted by: YAMASHIRO Jun
* Export DTrace symbols from nfsclient so that dtnfsclient can get to them.rwatson2009-10-121-0/+10
| | | | | | | This fixes DTrace with nfsclient built as a module. MFC after: 3 days Reported by: markm
* Add a MODULE_DEPEND() on the NFS client from dtnfsclient so that dtnfsclientrwatson2009-10-121-0/+1
| | | | | | | | can access NFS client symbols. MFC after: 3 days Discussed with: kib Reported by: markm
* - Do not assign a link-local address when ND6_IFF_IFDISABLED.hrs2009-10-121-0/+3
| | | | | | | | | | Adding a tentative address is useless. - Comment out a confused warning message when in6_ifattach_linklocal() fails. This can occur when the interface does not support ioctl(SIOCAIFADDR) (interfaces associated with 802.11 wireless network device drivers, for example).
* Link GSS mechanics modules against libgssapi so they will not fail duebland2009-10-122-4/+4
| | | | | | | | unresolved symbol errors when in turn libgssapi was loaded with RTLD_LOCAL flag set (which is the default). Reviewed by: dfr, jhb MFC after: 3 days
* Improve the description of sysctl "kern.sugid_coredump".jkoshy2009-10-121-1/+1
| | | | | Submitted by: Mel Flynn <mel.flynn+fbsd.hackers at mailing.thruhere.net> on -hackers
* Update for latest 802.11s changes in meshconf format.rpaulo2009-10-121-15/+21
| | | | MFC after: 3 days
* Fix a wrong initialization that snuck in the latest commit.rpaulo2009-10-121-1/+1
| | | | MFC after: 3 days
* Fix typo.kib2009-10-121-1/+1
| | | | | Submitted by: rdivacky MFC after: 1 month
* Another 3.03 draft bit that I missed in the previous 802.11s stackrpaulo2009-10-123-85/+48
| | | | | | | update. The Mesh Configuration IE has changed quite a bit. Refactor the code to handle this change. MFC after: 3 days
* Scan for option ROMs on i386 and amd64 only.marcel2009-10-113-1/+2
|
* Make openat(2) a cancellation point.jilles2009-10-116-0/+38
| | | | | | | This is required by POSIX and matches open(2). Reviewed by: kib, jhb MFC after: 1 month
* Tweaks for sigqueue tests:kib2009-10-112-12/+27
| | | | | | | | | | | - slightly adjust code for style, sort headers. - in sigqtest2, print received signals, to make it easy to see why test failed. - in sigqtest2, job_control_test(), cover a race by adding sleep after child stopped itself to allow for SIGCHLD due to stop and exit to not be coalesced. MFC after: 2 weeks
* Currently, when signal is delivered to the process and there is a threadkib2009-10-114-34/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not blocking the signal, signal is placed on the thread sigqueue. If the selected thread is in kernel executing thr_exit() or sigprocmask() syscalls, then signal might be not delivered to usermode for arbitrary amount of time, and for exiting thread it is lost. Put process-directed signals to the process queue unconditionally, selecting the thread to deliver the signal only by the thread returning to usermode, since only then the thread can handle delivery of signal reliably. For exiting thread or thread that has blocked some signals, check whether the newly blocked signal is queued for the process, and try to find a thread to wakeup for delivery, in reschedule_signal(). For exiting thread, assume that all signals are blocked. Change cursig() and postsig() to look both into the thread and process signal queues. When there is a signal that thread returning to usermode could consume, TDF_NEEDSIGCHK flag is not neccessary set now. Do unlocked read of p_siglist and p_pendingcnt to check for queued signals. Note that thread that has a signal unblocked might get spurious wakeup and EINTR from the interruptible system call now, due to the possibility of being selected by reschedule_signals(), while other thread returned to usermode earlier and removed the signal from process queue. This should not cause compliance issues, since the thread has not blocked a signal and thus should be ready to receive it anyway. Reported by: Justin Teller <justin.teller gmail com> Reviewed by: davidxu, jilles MFC after: 1 month
* Correct another typo. Actually save the condition register insteadnwhitehorn2009-10-111-1/+1
| | | | of overwriting r12 by mistake.
* Correct a typo here and actually save DSISR instead of overwriting it.nwhitehorn2009-10-111-1/+1
|
* In nanosleep(2), note that the calling thread is put to sleep, not thekib2009-10-111-1/+3
| | | | | whole process. Also explicitely name the parameter that specifies sleep interval.
* Remove dupe.des2009-10-111-1/+0
|
* - Catch SIGHUP to perform cleanup before exiting.jh2009-10-112-4/+8
| | | | | | | | | | | | | | | | - Exit if getch() returns with an error other than EINTR. Otherwise systat(1) may get stuck in an infinite loop if it doesn't receive SIGHUP when terminal closes. [1] - Remove attempt to clear stdio error indicators. getch() doesn't use stdio, making it useless. [2] - Remove unneeded masking of getch() return value. [2] PR: bin/107171 Reviewed by: bde Approved by: trasz (mentor) Obtained from: OpenBSD [1] Suggested by: bde [2] MFC after: 1 month
* Fix a race condition where a mutex was destroyed while sleeping on it.tuexen2009-10-112-1/+1
| | | | | | Found while analyzing a report from julian. It might fix his bug. Approved by: rrs (mentor) MFC after: 3 days
* Add locking around access to parent node, and bail out when the parentdelphij2009-10-113-8/+115
| | | | | | | | | node is already freed rather than panicking the system. PR: kern/122038 Submitted by: gk Tested by: pho MFC after: 1 week
* Virtualize the pfil hooks so that different jails may chose differentjulian2009-10-1115-128/+197
| | | | | | | | packet filters. ALso allows ipfw to be enabled on on ejail and disabled on another. In 8.0 it's a global setting. Sitting aroung in tree waiting to commit for: 2 months MFC after: 2 months
* Add support for Intel G41 chipsetrnoland2009-10-112-1/+4
| | | | | Submitted by: Artyom Mirgorodsky <man@email.com.ua> MFC after: 3 days
* Add pci id's for Intel G41 chipsetrnoland2009-10-111-0/+2
| | | | | Submitted by: Artyom Mirgorodsky <man@email.com.ua> MFC after: 3 days
* Document errno codes added in r144530.das2009-10-111-0/+8
|
* Atheros EEPROM version 4K. This version is mostly based on version 1.4.rpaulo2009-10-102-0/+561
| | | | | | | | | This is needed by the upcoming AR9285 support. Information on the layout gathered from Linux ath9k. Not yet connected to the build. Tested by: Eugeny Dzhurinsky
* In regards to the "Starting foo:" type messages at boot time, create anddougb2009-10-1017-36/+45
| | | | | | | | | | | | | | | | | | | | | | | employ a more generic solution, and use it in the individual rc.d scripts that also have an $rc_quiet test: 1. Add check_startmsgs() to rc.subr. 2. In the rc.d scripts that use rc_quiet (and rc.subr) substitute variations of [ -z "$rc_quiet" ] with check_startmsgs 3. In savecore add a trailing '.' to the end of the message to make it more consistent with other scripts. 4. In newsyslog remove a : before the terminal '.' since we do not expect there to be anything printed out in between to make it more consistent. 5. In the following scripts change "quotes" to 'quotes' where no variables exist in the message: savecore pf newsyslog 6. In the following scripts substitute if/then/fi for the simpler (and more consistent) check_startmsgs &&: faith stf 7. In the following scripts separate the "Starting foo:" from the terminal '.' to make them more consistent: moused hostname pf 8. In nfsclient move the message to its own line to avoid a style bug 9. In pf rc_quiet does not apply to the _stop method, so remove the test there. 10. In motd add 'quotes' around the terminal '.' for consistency
* Orphaning provider with EXDEV seems weird; perhaps the author meanttrasz2009-10-101-1/+1
| | | | ENXIO here?
* Refine r195509, instead of checking that vnode type is VBAD, that iskib2009-10-101-3/+3
| | | | | | | | set quite late in the revocation path, properly verify that vnode is not doomed before calling VOP. Reported and tested by: Harald Schmalzbauer <h.schmalzbauer omnilan de> MFC after: 3 days
* Map PIE binaries at non-zero base address.kib2009-10-101-10/+14
| | | | | | | Discussed with: bz Reviewed by: kan Tested by: bz (i386, amd64), bsam (linux) MFC after: some time
* Define architectural load bases for PIE binaries. Addresses were selectedkib2009-10-108-0/+21
| | | | | | | | | | by looking at the bases used for non-relocatable executables by gnu ld(1), and adjusting it slightly. Discussed with: bz Reviewed by: kan Tested by: bz (i386, amd64), bsam (linux) MFC after: some time
* Do not map segments of zero length.kib2009-10-101-1/+4
| | | | | | | Discussed with: bz Reviewed by: kan Tested by: bz (i386, amd64), bsam (linux) MFC after: some time
* Calculate relocation base for the main object, and apply the relocationkib2009-10-101-14/+15
| | | | | | | | | | | | | | adjustment for all virtual addresses encoded into the ELF structures of it. PIE binary could and should be loaded at non-zero mapbase. For sym_zero pseudosymbol used as a return value from find_symdef() for undefined weak symbols, st_value also should be adjusted, since _rtld_bind corrects symbol values by relocbase. Discussed with: bz Reviewed by: kan Tested by: bz (i386, amd64), bsam (linux) MFC after: some time
* Postpone dropping fp till both kq_global and kqueue mutexes arekib2009-10-101-3/+3
| | | | | | | | | | unlocked. fdrop() closes file descriptor when reference count goes to zero. Close method for vnodes locks the vnode, resulting in "sleepable after non-sleepable". For pipes, pipe mutex is before kqueue lock, causing LOR. Reported and tested by: pho MFC after: 2 weeks
OpenPOWER on IntegriCloud