summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow selection of the affected terminal using redirectionrobert2002-07-242-1/+10
| | | | | | of standard input or standard output, like mesg(1) does. Suggested by: sheldonh
* Under #ifdef DIAGNOSTIC, NULL out componentname pointers if we free therwatson2002-07-241-2/+18
| | | | | | pnbuf to increase the chances of detecting use of a free'd name buffer if SAVENAME or SAVESTART wasn't passed in. Curiously, running with these changes doesn't panic the kernel, and should.
* Remove the outdated casts to "char *" from the setsockopt(2),yar2002-07-242-17/+15
| | | | | | | | | write(2), and getipnodebyaddr(3) calls. Now all the above functions accept "void *" in that arguments and have prototypes. Thus, the casts are useless under the normal circumstances (and would be harmful if the functions had no prototypes.) MFC after: 2 weeks
* Move m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantagebmilekic2002-07-242-8/+48
| | | | | | | | | | | of the inlines, like its cousin, m_free(). Also, make a small (first step?) optimisation of m_free() to use the MBP_PERSIST{,ENT} interface to hold the lock across frees when possible. The thing is that right now, we can only do this easily for at most across one mbuf + one cluster free, as the comment mentions (it also explains why). Anyway, some basic tests revealed a 5-10% overall improvement. Some of the results can be found here: http://people.freebsd.org/~bmilekic/code/measure.txt
* Move whereis(1) relnote to 'userland changes' section.johan2002-07-242-10/+10
| | | | Approved by: bmah, sheldonh (mentor)
* Clean up the syslog(3) messages on the setsockopt(2) errors:yar2002-07-241-12/+14
| | | | | | | | | o Always check a setsockopt(2) return value o Use a consistent message format o Don't abort if the failed setsockopt(2) was actually not vital o Use LOG_WARNING, not LOG_ERR, in non-fatal cases MFC after: 1 week
* Teach whereis(1) about games.johan2002-07-243-5/+9
| | | | Approved by: joerg, sheldonh (mentor)
* Stick a dark comment in about the fact that the NFS server code allocatesrwatson2002-07-241-0/+7
| | | | | | | | a ucred by itself as part of an nfs descriptor, then bzero's the ucred, fails to initialize the mutex, etc. This is very bad, but I don't have time to fix it right now. nfsd should instead hold a cred pointer, and the credential should be properly initialized, probably from a descendent of a kernel process credential.
* Catch up to rev 1.87 of sys/sys/socketvar.h (sb_cc changed from u_longmike2002-07-241-1/+1
| | | | | | to u_int). Noticed by: sparc64 tinderbox
* Move sio's ebus attachment to the MI files section so it is compiled injhb2002-07-242-1/+1
| | | | for any machines that use ebus.
* Move sio_isa.c back to MD files files due to PC98 brain damage.jhb2002-07-246-1/+5
|
* MFi386: revision 1.407 (move the em driver entry to MI file)nyan2002-07-241-2/+0
|
* Remove the word IPSec to respect RFCs (for exampleblackend2002-07-241-1/+0
| | | | | | | | | http://www.ietf.org/rfc/rfc2401.txt), IPsec is the right word and already in the dictionary. PR: in part docs/38668 Reviewed by: murray MFC after: 10 days
* When suspending a thread, update the appropriate (sic) statistic.julian2002-07-242-0/+2
|
* revert some of the handling of STOP signals injulian2002-07-241-8/+0
| | | | | | | issignal(). Let thread_suspend_check() actually do the suspension at the user boundary. Submitted by: David Xu <bsddiy@yahoo.com>
* Widen struct sockbuf's sb_timeo member to int from short. Withjdp2002-07-2412-30/+30
| | | | | | | | | | | | | non-default but reasonable values of hz this member overflowed, breaking NFS over UDP. Also, as long as I'm plowing up struct sockbuf ... Change certain members from u_long/long to u_int/int in order to reduce wasted space on 64-bit machines. This change was requested by Andrew Gallatin. Netstat and systat need to be rebuilt. I am incrementing __FreeBSD_version in case any ports need to change.
* Only log things net.inet.ip.fw.verbose is setluigi2002-07-241-1/+2
|
* Avoid calling el_resize() from a signal handler, even though libedittjr2002-07-243-2/+11
| | | | | | | itself does that if you set EL_SIGNAL. Instead, set a flag and check it before calling el_gets(). This is safer, but slower to respond to changes. Pointed out by: mp
* Fix warning.jake2002-07-241-0/+4
|
* Attempt to clarify comment in selrecord.alfred2002-07-241-4/+8
|
* More userland section translationgioria2002-07-231-166/+164
|
* Install more man pages - I thought I'd committed this ages ago...des2002-07-231-0/+5
|
* Whitespace nit.des2002-07-231-1/+1
|
* Updated release notes: lint 20020719, smbfs-1.4.5, texinfo 4.2.bmah2002-07-232-8/+8
|
* Revert previous delta for cut(1) and calendar(1) as they were not appliedtrhodes2002-07-232-3/+11
| | | | correctly. My fault, forgot that -current was checked out.
* Catch SIGWINCH in interactive shells and call el_resize() to updatetjr2002-07-231-0/+15
| | | | libedit's idea of the window size.
* Introduce mb_free() to the MBP_PERSIST{,ENT} interface. What this meansbmilekic2002-07-231-17/+70
| | | | | | | | | | | | | | | is that grouped frees will be done as most often as possible without dropping the cache lock in between. So, for the most part, they'll be done without the lock being dropped. This is particularly true if you have something that does a grouped m_getm() or m_getcl() (a cluster and mbuf at the same time) - most likely getting the buffers from the same per-CPU cache - and then frees them with m_free{,m}(). Unless the buffers' underlying buckets were moved, the free will be done without the lock getting dropped in between. So far, only m_free() has been shown how to do this, and m_freem() will shortly follow. Since I'm here, I also fixed a small (but mostly harmless) type-mismatch introduced in the last commit.
* Fix the sound driver vchan support to work when hw.snd.maxautovchanskan2002-07-231-1/+2
| | | | | | | | | | has been specified through /boot/loader.conf as opposed to setting it in /etc/sysctl.conf. Only PCMDIR_PLAY channel can be used as a parent of virtual channel. Do not initialize a new vchan for a given physical channel if other physical channel already has one created. PR: 31597 Approved by: obrien (mentor)
* Remove duplicate __FBSDID() - spotted by trying to build with a non-GNUjmallett2002-07-231-3/+0
| | | | compiler.
* Mention the new bind(1) sh builtin.tjr2002-07-232-0/+3
|
* Fix DIOCGMEDIASIZE and DIOCGSECTORSIZE ioctls to work for allkan2002-07-231-13/+13
| | | | | | | | | | disk devices. This fixes the problem with these ioctls returning EINVAL for plain slice devices with no disklabel on them. The patch incorporates improvements and style fixes from BDE. Reviewed by: bde Approved by: obrien (mentor)
* Mention SAVENAME and SAVESTART in the namei(9) operation flag descriptionrwatson2002-07-231-0/+11
| | | | | | | | | since apparently people were missing that you aren't supposed to access the name buffer following namei() unless you specify one of these flags. Pointed out by: green Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Update ucred.9 to talk a bit more about correct use of credentials,rwatson2002-07-231-8/+58
| | | | | | | | | including documenting that ucreds must not be pulled out of thin air, when to use td_cred vs. p_ucred, how to avoid race conditions in credential updates, and why to use p_ucred when targetting a thread or process in an access control operation involving two processes. Reviewed by: julian, jhb (earlier revision)
* Turn on emacs line editing mode by default, as this is what most shells dojmallett2002-07-231-3/+7
| | | | | | | | | | these days, and the average user expects ^A and arrow keys to work, however if they know nothing of editing modes, they will think sh(1) just sucks. It is likely that because of defaults on most systems and with most shells that anyone who actually wants vi(1) editing mode will have 'set -o vi'. This won't affect existing accounts, this way, of course. Only accounts with .shrc from new etc/skel will be affected. This is much better than making the change in sh(1).
* Call el_source() to read the contents of .editrc when line editing is enabled.tjr2002-07-231-0/+1
| | | | | Obtained from: NetBSD MFC after: 2 weeks
* s/ifdef/ifndef/.dcs2002-07-231-1/+1
| | | | Fenner got this inverted through a misunderstanding between us.
* Add a `bind' builtin command, which is simply a wrapper around libedit'stjr2002-07-234-0/+24
| | | | | | | builtin command of the same name. This allows the key bindings for the shell's line editor to be changed. MFC after: 2 weeks
* Dependencies are delimited by space not tab.ru2002-07-231-2/+2
|
* s/IPSEC/IPsec according to RFCsblackend2002-07-232-2/+2
| | | | | | PR: in part docs/38668 Reviewed by: charnier MFC after: 10 days
* de-count pcipeter2002-07-239-9/+9
|
* de-count pci now that ahc/ahd are taken care of.peter2002-07-233-3/+3
|
* pci is (finally) no longer a 'count' device. ahc/ahd were the lastpeter2002-07-231-1/+1
| | | | holdouts.
* Minimal tweak to not depend on NPCI, but still maintain portabilitypeter2002-07-232-6/+12
| | | | | to 4.x which still does need it (since pci_if.h isn't generated without pci being present)
* Handle directories correctly.eric2002-07-231-3/+6
| | | | | PR: 40801 MFC after: 5 days
* o Lock page queue accesses by vm_page_dontneed().alc2002-07-232-4/+5
| | | | o Assert that the page queue lock is held in vm_page_dontneed().
* - Pass the VM_ALLOC_WIRED flag to vm_page_alloc() in pmap_growkernel() soarr2002-07-231-5/+2
| | | | | | that we can avoid a call to vm_page_lock_queues(). Approved by: peter
* o Extend the scope of the page queues lock in vm_pageout_scan()alc2002-07-231-2/+1
| | | | to cover the traversal of the cache queue.
* - Make use of the VM_ALLOC_WIRED flag in the call to vm_page_alloc() inarr2002-07-231-12/+12
| | | | | | | | do_sendfile(). This allows us to rearrange an if statement in order to avoid doing an unnecesary call to vm_page_lock_queues(), and an attempt at re-wiring the pages (which were wired in the vm_page_alloc() call). Reviewed by: alc, jhb
* Add '+FreeBSD' to the version string, to reflect that this programfenner2002-07-232-2/+4
| | | | | bears little relationship to the one from LBL with the same name and version number.
* Add NULL check for the output buffer from AcpiEvaluateObject().iwasaki2002-07-231-2/+2
| | | | Submitted by: jon
OpenPOWER on IntegriCloud