summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* expand_name fixes:alfred2002-05-081-38/+32
| | | | | | | | | | | | | | | .) don't use MAXPATHLEN + 1, fix logic to compensate. .) style(9) function parameters. .) fix line wrapping. .) remove duplicated error and string handling code. .) don't NUL terminate already NUL terminated string. .) all string length variables changed from int to size_t. .) constify variables. .) catch when corename would be truncated. .) cast pid_t and uid_t args for format string. .) add parens around return arguments. Help and suggestions from: bde
* zapnot the signed bits in atomic_cmpset_32. Previously this did not work withjeff2002-05-081-0/+1
| | | | | negative values because the original value was sign extended but the compared value was not.
* Remove runq_findproc. This never worked right in the first place and canjake2002-05-081-23/+0
| | | | be prohibitively expensive.
* Remove unneeded include.jake2002-05-081-1/+0
|
* Make a macro for the guts of tl0_immu_miss, like dmmu_miss and prot.jake2002-05-082-102/+152
| | | | | | Rearrange things slightly so that the contents of the tag access register are read and restored outside of the macros. The intention is to pass the page size to look up as an argument to the macros.
* Roll my own min() (named ISO88025_MIN() so as to not cause conflicts) sokbyanc2002-05-081-2/+4
| | | | | | that this header may be included from userland where min() may not be declared (or worse, declared differently). I open to alternative solutions.
* Detect and attach to the ICH3 SMBus controller.jhb2002-05-081-0/+4
| | | | | | | PR: i386/36972 Submitted by: Colin Perkins <csp@isi.edu> Requested by: Larry Rosenman <ler@lerctr.org> MFC After: 7 days
* M_ZERO the temp buffer in expand_name() otherwise if an error occursalfred2002-05-071-1/+1
| | | | | while logging we may pass a non NUL terminated string to log(9) for a %s format arg.
* Move ISO88025 source routing information into sockaddr_dl's sdl_datakbyanc2002-05-074-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | field. This returns the sdl_data field to a variable-length field. More importantly, this prevents a easily-reproduceable data-corruption bug when the interface name plus the hardware address exceed the sdl_data field's original 12 byte limit. However, token-ring interfaces may still overflow the new sdl_data field's 46 byte limit if the interface name exceeds 6 characters (since 6 characters for interface name plus 6 for hardware address plus 34 for source routing = the size of sdl_data). Further refinements could overcome this limitation but would break binary compatibility; this commit only addresses fixing the bug for commonly-occuring cases without breaking binary compatibility with the intention that the functionality can be MFC'ed to -stable. See message ID's (both send to -arch): 20020421013332.F87395-100000@gateway.posi.net 20020430181359.G11009-300000@gateway.posi.net for a more thorough description of the bug addressed and how to reproduce it. Approved by: silence on -arch and -net Sponsored by: NTT Multimedia Communications Labs MFC after: 1 week
* Re-remove kern_random.c and svr4_signal.c. Somehow dillon managed to keeppeter2002-05-072-1063/+0
| | | | | | | | | | | on committing to these while they were in the Attic after they had been removed. I think this was because he had the file checked out and already 'modified' while markm cvs rm'ed them, and cvs screws up when trying to "merge" the modifications with the "rm". And after that the client state was sufficiently hosed to keep it messed up. Yay CVS! (CVS is very fragile for adding and removing files remotely) The existence of these files was pointed out by: ru
* - Remove the init routine for loop -- it broke something and I don't havearr2002-05-071-11/+4
| | | | the time to fix it properly at the moment.
* - Use an array of init functions to be used in a for loop in ourarr2002-05-071-4/+11
| | | | initialization routine.
* - Add atm_init_fnarr2002-05-071-0/+2
|
* - Add atm_sock_init()arr2002-05-073-9/+16
| | | | - Move the Atm_pcb storage pool (atm_pcb_pool) to be an UMA zone.
* - Change the atm_cm_init function to take no argument.arr2002-05-072-2/+2
|
* MFOpenBSD: ibss and ibss-master.imp2002-05-071-0/+4
| | | | | | | | | | | | | ibss is the modern ad-hoc mode. ibss-master is the same, except that it creates the ibss network. This distinction is necessary because some supported cards (symbol) support the former without supporting the latter. A seprate commit will introduce a demo-adhoc mode so that we can disentwingle the multiple, mutually exclusive meandings of adhoc in the present state of affairs. Submitted by: jhay
* Minor style nitimp2002-05-071-1/+1
|
* Try to use spls more correctlyimp2002-05-071-7/+10
|
* Do not forget to increase the number of completely connected sockets intanimura2002-05-072-0/+2
| | | | | | soisconnected_locked(). Forgotten by: tanimura
* Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). Itbde2002-05-075-2/+22
| | | | doesn't actually build yet.
* o Add ar.lc to the pcb.marcel2002-05-072-139/+190
| | | | | | | | | o Create pcb_save as the backend for savectx and cpu_switch. o While here, use explicit bundling for pcb_save and optimize for compactness (~87% density). o Not part of the commit is a backend pcb_restore. restorectx() still jumps halfway into cpu_switch().
* Switch from just holding the interlock to holding the standard lock throughoutjeff2002-05-071-12/+17
| | | | | getnewvnode(). This is safer. In the future, we should investigate requiring only the interlock to get the vnode object.
* Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --bde2002-05-061-0/+1
| | | | don't depend on namespace pollution in other headers.
* Make funsetown() take a 'struct sigio **' so that the locking canalfred2002-05-0613-43/+56
| | | | | | | | | | | | | | | | be done internally. Ensure that no one can fsetown() to a dying process/pgrp. We need to check the process for P_WEXIT to see if it's exiting. Process groups are already safe because there is no such thing as a pgrp zombie, therefore the proctree lock completely protects the pgrp from having sigio structures associated with it after it runs funsetownlst. Add sigio lock to witness list under proctree and allproc, but over proc and pgrp. Seigo Tanimura helped with this.
* MFNetBSD: ugen.c (1.57), ulpt.c (1.48), usb.c (1.67), usbdi.c (1.96),joe2002-05-067-28/+27
| | | | | | | | usbdi.h (1.60) (and local changes compatibility changes to ufm.c and urio.c) date: 2002/02/11 15:11:49; author: augustss; Give usbd_do_request_flags() an extra argument for the timeout.
* When checking to see if the init process calls exit1(), compare p to thejhb2002-05-061-1/+1
| | | | | | initproc proc pointer instead of checking to see if the pid is 1. Submitted by: bde
* Style fixes in local variable declarations.jhb2002-05-061-9/+10
| | | | Submitted by: bde
* Revised MLD-related definitionsume2002-05-063-69/+94
| | | | | | | | | | | | - Used mld_xxx and MLD_xxx instead of mld6_xxx and MLD6_xxx according to the official defintions in rfc2292bis (macro definitions for backward compatibility were provided) - Changed the first member of mld_hdr{} from mld_hdr to mld_icmp6_hdr to avoid name space conflict in C++ This change makes ports/net/pchar compilable again under -CURRENT. Obtained from: KAME
* - Style fixes in some comments.jhb2002-05-061-9/+10
| | | | | | | - Whitespace nit. - Sort some includes. Submitted by: bde (mostly)
* Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139jhb2002-05-062-1/+9
| | | | with its own PCI ID.
* Add suspend/resume code mostly merged from fxp/rl driver.iwasaki2002-05-064-0/+176
| | | | | | | This is temporary hack, better and generalized solution probably should be implemented at lower layer(MII or PCI?). Tested by: shoko.araki@soliton.co.jp MFC after: 1 week
* Add another Askey ISA modem ID.dwmalone2002-05-061-0/+1
| | | | | PR: 35813 Submitted by: Chris Knight <chris@aims.com.au>
* o Header files shouldn't depend on options: Provide prototypesalc2002-05-062-5/+0
| | | | | | | for uiomoveco(), uioread(), and vm_uiomove() regardless of whether ENABLE_VFS_IOOPT is defined or not. Submitted by: bde
* o Condition the compilation and use of vm_freeze_copyopts()alc2002-05-064-3/+16
| | | | on ENABLE_VFS_IOOPT.
* Hold the currently selected vnode's lock across the call to VOP_GETVOBJECT.jeff2002-05-061-2/+4
| | | | | | | Don't try to create a vm object before the file system has a chance to finish initializing it. This is incorrect for a number of reasons. Firstly, that VOP requires a lock which the file system may not have initialized yet. Also, open and others will create a vm object if it is necessary later.
* o Some improvements to the page coloring of vm objects, particularly,alc2002-05-061-9/+17
| | | | | | for shadow objects. Submitted by: bde
* Include <sys/queue.h> so that this file provides its own namespacebde2002-05-061-0/+1
| | | | | pollution which is required for its includes of <sys/_lock.h> and <sys/_mutex.h> to work.
* s/sysctl -w/sysctl/jedgar2002-05-061-1/+1
|
* o Move vm_freeze_copyopts() from vm_map.{c.h} to vm_object.{c,h}. It's plainlyalc2002-05-064-78/+78
| | | | an operation on a vm_object and belongs in the latter place.
* Restored db_elf.c from the Attic. This will be used for a quick fix forbde2002-05-061-0/+381
| | | | | the longstanding brokenness of symbols in ddb at boot time. It doesn't compile and is not attached to the build yet.
* Add the lchflags(2) syscall.mux2002-05-058-7/+63
| | | | Reviewed by: rwatson
* Add an entry for the lchflags(2) syscall. It's useful to preventmux2002-05-051-0/+1
| | | | | | a symlink deletion. Reviewed by: rwatson
* Move a KASSERT() in open() prior to unlocking the vnode. It's not safe tojeff2002-05-052-6/+8
| | | | call VOP_GETVOBJECT without a lock.
* o Condition the compilation of uiomoveco() and vm_uiomove()alc2002-05-054-4/+16
| | | | | | on ENABLE_VFS_IOOPT. o Add a comment to the effect that this code is experimental support for zero-copy I/O.
* Indentation and comments cleanup, no functional change.luigi2002-05-051-51/+58
| | | | MFC after: 3 days
* Expand the one-line function pbreassignbuf() the only place it is or couldphk2002-05-053-16/+1
| | | | be used.
* Move some UFS related stuff home where it belongs.phk2002-05-052-7/+7
|
* No longer attempt to power off the ACLINK during suspend - luigiorion2002-05-051-3/+0
| | | | reports this causes his ich machine to hang.
* Add a KERNELDUMPMAGIC_CLEARED macro to unbreak savecore. Sincemux2002-05-051-0/+1
| | | | | | | | it is a "magic" value, what it expands to is not really important. I set it to "Cleared Kernel Dump", but that can be changed later if someone thinks it's not good enough. Pointy hat to: fenner
* o Add struct mca_guidmarcel2002-05-051-6/+28
| | | | | o Add currently known GUIDs o Slight restyling
OpenPOWER on IntegriCloud