summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in previous commit:Marcel Moolenaar2001-10-181-1/+1
| | | | | | | | o s/sys_narg/sy_narg/ o s/SYS_MPSAFE/SYF_MPSAFE/ Notes: svn path=/head/; revision=85088
* Add support for "__gnuc_va_list". Some overly "smart" libraries assumeDavid E. O'Brien2001-10-185-5/+28
| | | | | | | | | | the existence of the __gnuc_va_list type[*] because our compiler is GCC. [*] __gnuc_va_list is defined in the GCC ginclude/stdarg.h replacement headerwhich we don't use. Notes: svn path=/head/; revision=85085
* Sync comments with i386.David E. O'Brien2001-10-181-6/+6
| | | | Notes: svn path=/head/; revision=85084
* Minor comment tweaking.David E. O'Brien2001-10-171-4/+4
| | | | Notes: svn path=/head/; revision=85083
* - Small cleanups to the Giant handling in trap().John Baldwin2001-10-171-9/+17
| | | | | | | | | | - Only release Giant in trap() if we locked it, otherwise we could release Giant in a kernel trap if we didn't get it for a page fault and the previous frame had grabbed the lock. - Only get Giant for !MP safe syscalls. Notes: svn path=/head/; revision=85082
* Small cleanups to the handling of Giant in trap().John Baldwin2001-10-171-8/+5
| | | | Notes: svn path=/head/; revision=85081
* Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.Jonathan Lemon2001-10-171-2/+22
| | | | | | | | If the syscall fails, fall back on the old method as a compatability measure. Notes: svn path=/head/; revision=85080
* Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.Jonathan Lemon2001-10-173-0/+7
| | | | | | | This will be used to more efficiently support if_nametoindex(3). Notes: svn path=/head/; revision=85079
* Cleanup ifunit(), so it uses the dev_named() function to map an interfaceJonathan Lemon2001-10-171-29/+11
| | | | | | | name into a device. Notes: svn path=/head/; revision=85077
* Add dev_named(dev, name), which is similar in spirit to devtoname().Jonathan Lemon2001-10-173-0/+15
| | | | | | | | This function returns success if the device is known by either 'name' or any of its aliases. Notes: svn path=/head/; revision=85076
* When specifying an interface to ifconfig, first look up the interfaceJonathan Lemon2001-10-171-25/+11
| | | | | | | | | | | index, then retrieve statistics for that index, rather than retrieving all interfaces and then looking for a matching name. This allows the user to refer to an interface via an alias name. While I'm here, also perform a few assorted cleanups. Notes: svn path=/head/; revision=85075
* Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.Ruslan Ermilov2001-10-1716-161/+206
| | | | | | | | | | | | | | | | | | | | | | | Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360 Notes: svn path=/head/; revision=85074
* Change kern.bootfile when mv'ing the kernelBrian Somers2001-10-175-0/+10
| | | | | | | Not tested by: brian Notes: svn path=/head/; revision=85073
* Pull fix for memory leak in in6_losing() from netinet/in_pcb.c,v 1.85.Ruslan Ermilov2001-10-171-3/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=85072
* contigmalloc1() could cause the vm_page_zero_count to become incorrect.Matthew Dillon2001-10-171-0/+2
| | | | | | | | | Properly track the count. Submitted by: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> Notes: svn path=/head/; revision=85070
* Remove some EOL whitespace. Update usage() to current reality.Mike Barcroft2001-10-171-5/+5
| | | | Notes: svn path=/head/; revision=85067
* Use whois.example.com rather than non-existent.host in an example.Mike Barcroft2001-10-171-2/+2
| | | | Notes: svn path=/head/; revision=85066
* Use a array to convert from a attribute for AT to one for PC98.Yoshihiro Takahashi2001-10-171-42/+38
| | | | | | | (merged from sys/pc98/pc98/scvtbpc98.c) Notes: svn path=/head/; revision=85065
* "of the of the" -> "of the"Tom Hukins2001-10-171-1/+1
| | | | | | | | | PR: docs/31336 Submitted by: Sameh Ghane <sw@shaolin.profile4u.com> MFC after: 2 days Notes: svn path=/head/; revision=85064
* Merged from sys/boot/i386/libi386/vidconsole.c revisions 1.16, 1.17 and 1.18.Yoshihiro Takahashi2001-10-171-164/+144
| | | | Notes: svn path=/head/; revision=85063
* Ensure that /var/log/lastlog exists so that login doesn't complain.Brian S. Dean2001-10-175-0/+15
| | | | | | | | Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks Notes: svn path=/head/; revision=85062
* fix style(9)Yoshihiro Takahashi2001-10-171-175/+212
| | | | Notes: svn path=/head/; revision=85061
* Merged from sys/boot/i386/loader/Makefile revision 1.54.Yoshihiro Takahashi2001-10-171-0/+7
| | | | Notes: svn path=/head/; revision=85060
* Change kern.bootfile when mv'ing the kernelBrian Somers2001-10-171-0/+2
| | | | Notes: svn path=/head/; revision=85057
* Add www:www (80:80) for upcoming Apache changesAndrey A. Chernov2001-10-172-0/+2
| | | | Notes: svn path=/head/; revision=85056
* Fixed to process a IPv6 packet when ah transport after esp tunnelHajimu UMEMOTO2001-10-171-3/+42
| | | | | | | | | | | should be applied. the SA of AH transport could not be selected from the SAD because of this bug. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=85055
* The behavior of SPDUPDATE has been changed.Hajimu UMEMOTO2001-10-171-10/+6
| | | | | | | | | | | SPDUPDATE doesn't depend on whether there is a SP or not. This change makes `generate_policy on' of racoon work. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=85054
* Bring in latest CSRG revisions to this file:Ruslan Ermilov2001-10-171-1/+9
| | | | | | | | | | | | | | - Report destination address of a P2P link when servicing routing socket messages. - Report interface name, address, and destination address of a P2P link when servicing NET_RT_{DUMP,FLAGS} sysctls. Part of CSRG revision 8.6 coresponds to revision 1.12. CSRG revision 8.7 corresponds to revision 1.15. Notes: svn path=/head/; revision=85053
* 64-bit fixes from CSRG.Ruslan Ermilov2001-10-172-4/+4
| | | | Notes: svn path=/head/; revision=85052
* Revision 1.32 corresponded to CSRG revision 8.2.Ruslan Ermilov2001-10-171-1/+1
| | | | Notes: svn path=/head/; revision=85051
* Revision 1.13 corresponded to CSRG revision 8.4.Ruslan Ermilov2001-10-171-1/+1
| | | | | | | Revision 1.59 corresponded to CSRG revision 8.5. Notes: svn path=/head/; revision=85050
* Record the fact that revision 1.39 corresponded to CSRG revision 8.4,Ruslan Ermilov2001-10-171-1/+1
| | | | | | | and first hunk of revision 1.76 corresponded to CSRG revision 8.3. Notes: svn path=/head/; revision=85049
* Bring in latest CSRG revisions to this file.Ruslan Ermilov2001-10-171-11/+11
| | | | Notes: svn path=/head/; revision=85048
* Print 4 per line. To do this, we test against i % 16 == 0 rather than i % 4Warner Losh2001-10-171-1/+1
| | | | | | | since that's always true for this loop. Notes: svn path=/head/; revision=85046
* ToPIC fixes. scale back what we do for functional interrupts becauseWarner Losh2001-10-171-1/+2
| | | | | | | | | it appears to break at least the ToPIC 100. Submitted by: Mark Santcroos <marks@ripe.net> Notes: svn path=/head/; revision=85045
* Remove a couple of errant tags.Scott Long2001-10-172-4/+0
| | | | Notes: svn path=/head/; revision=85044
* Back out previous revision. TCBHASHSIZE isn't an option, despite what I'dDag-Erling Smørgrav2001-10-172-10/+0
| | | | | | | | been misled to believe by unknown parties. It probably *should* be an option, but the runtime value is controlled by a tunable, which Ought To Be Enough. Notes: svn path=/head/; revision=85043
* if_index is the highest interface index in the system, not the nextBill Fenner2001-10-171-3/+3
| | | | | | | available index. Notes: svn path=/head/; revision=85042
* The interface index space may be sparsely populated (e.g. when anBill Fenner2001-10-175-4/+22
| | | | | | | | | | interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days Notes: svn path=/head/; revision=85040
* If the remote uptime is less than one minute, print the uptime inBill Fenner2001-10-171-0/+2
| | | | | | | seconds instead of leaving the uptime field blank. Notes: svn path=/head/; revision=85039
* fix minor bug in kern.minvnodes sysctl. Use OID_AUTO.Matthew Dillon2001-10-161-1/+1
| | | | Notes: svn path=/head/; revision=85036
* Make SCSI changer and SES devices standard in generic kernels.Matt Jacob2001-10-166-0/+12
| | | | | | | Reviewed by: ken@kdm.org Notes: svn path=/head/; revision=85035
* When nfsd was started with only UDP servers, the master nfsd wouldIan Dowse2001-10-162-152/+212
| | | | | | | | | | | | | | | | | | | | spin in a loop eating CPU time. This bug has existed since the TI-RPC import. The problem is that we should only enter the select loop if at least one TCP server was started. Fix this by having the master nfsd become a UDP server itself if there are no TCP servers. Also improve/correct the code for cleaning up slave nfsd processes and unregistering with rpcbind when the master nfsd exits. One issue that remains open is that if a slave nfsd dies, then all nfsds will shut down. This is because nfssvc() in the master nfsd returns 0 when the master nfsd receives a SIGCHLD. Submitted by: tmm Notes: svn path=/head/; revision=85034
* Document TCBHASHSIZE.Dag-Erling Smørgrav2001-10-162-0/+10
| | | | Notes: svn path=/head/; revision=85033
* Improve the wording of my last commit.Murray Stokely2001-10-161-1/+1
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=85030
* Deleted most of npxprobe(), and merged npxprobe1() back into npxprobe().Bruce Evans2001-10-163-381/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the normal interrupt handler (npx_intr()) instead of a special probe-time interrupt handler, although this causes problems due to the bus_teardown_intr() not actually even tearing down the interrupt (these problems were avoided by doing interrupt attachment for the special interrupt handler directly). Fixed minor bitrot in comments. The reason for the npxprobe()/npxprobe1() split mostly went away at about the same time it was made (in 1992 or 1993 just before the beginning of history). 386BSD ran all probes with interrupts completely masked, and I didn't want to disturb this when I added an irq probe to npxprobe(). An irq (not necessarily npx) must be acked for at least external npx's to take the cpu out of the wait state that it enters when an npx error occurs, so the probe must be done with a suitable irq unmasked. npxprobe() went to great lengths to unmask precisely the npx irq. Running probes with all interrupts masked was never really needed in FreeBSD, since FreeBSD always masked interrupts well enough using splhigh(), but it wasn't until rev.1.48 (1995/12/12) of autoconf.c that all probes were run with CPU interrupts enabled. This permits npxprobe() to probe its irq using normal interrupt resources. Note that most drivers still can't depend on this. It depends on the interrupt handler being fast and the irq not being shared. Notes: svn path=/head/; revision=85029
* Commit my old fixes for cosmetic bugs in npxprobe() so that they aren'tBruce Evans2001-10-163-39/+24
| | | | | | | | | | | | | | | | | | | lost when the buggy code goes away completely: - don't assume that the npx irq number is >= 8. Rev.1.73 only reversed part of the hard-coding of it to 13 in rev.1.66. - backed out the part of rev.1.84 that added a highly confused comment about an enable_intr() being "highly bogus". The whole reason for existence of npxprobe() (separate from the main probe, npxprobe1()) is to handle the complications to make this enable_intr() safe. - backed out the part of rev.1.94 that modified npxprobe(). It mainly broke the enable_intr() to restore_intr(). Restoring the interrupt state in a nested way is precisely what is not wanted here. It was harmless in practice because npxprobe() is called with interrupts enabled, so restoring the interrupt state enables interrupts. Most of npxprobe() is a no-op for the same reason... Notes: svn path=/head/; revision=85028
* Fixed spelling error in previous commit.Bruce Evans2001-10-162-2/+2
| | | | Notes: svn path=/head/; revision=85027
* Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.Maxim Sobolev2001-10-163-3/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=85026
* Fix bug introduced by the last commit, the caused some ATAPISøren Schmidt2001-10-161-1/+1
| | | | | | | devices to fail to proberly initialize at boot.. Notes: svn path=/head/; revision=85025