summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-2154-1178/+1155
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* - Do not pretend to compile a kernel and remove the definitionrobert2002-08-211-2/+0
| | | | | | | of the _KERNEL macro. - Do not include <sys/pcpu.h> for no reason. Suggested by: jake
* Use the _STA method of a battery control method to see if a battery isjhb2002-08-211-10/+16
| | | | | | present or not. My laptop now properly notices when a battery is removed. Reviewed by: iwasaki
* - Define the macro _KERNEL to pretend we are compiling a kernel.robert2002-08-211-1/+2
| | | | | | | | | | This is required by recent changes to <sys/pcpu.h>, which uses the #error preprocessor directive to keep non-kernel applications from using it. _KERNEL is defined below the #include <stand.h>, because <stand.h> removes the definition of _KERNEL. - Move the inclusion of <sys/queue.h> above the inclusion of <sys/linker.h> to avoid syntax errors.
* Create new functions in_sockaddr(), in6_sockaddr(), andtruckman2002-08-215-84/+130
| | | | | | | | | | | | | | | | | in6_v4mapsin6_sockaddr() which allocate the appropriate sockaddr_in* structure and initialize it with the address and port information passed as arguments. Use calls to these new functions to replace code that is replicated multiple times in in_setsockaddr(), in_setpeeraddr(), in6_setsockaddr(), in6_setpeeraddr(), in6_mapped_sockaddr(), and in6_mapped_peeraddr(). Inline COMMON_END in tcp_usr_accept() so that we can call in_sockaddr() with temporary copies of the address and port after the PCB is unlocked. Fix the lock violation in tcp6_usr_accept() (caused by calling MALLOC() inside in6_mapped_peeraddr() while the PCB is locked) by changing the implementation of tcp6_usr_accept() to match tcp_usr_accept(). Reviewed by: suz
* Fix for stand-alone compilingscottl2002-08-211-0/+4
| | | | Reviewed by: mini
* - Document two cases, one in vget and the other in vn_lock, where the statejeff2002-08-212-0/+2
| | | | | of interlock on exit is not consistent. There are probably several bugs relating to this.
* - If vn_lock fails with the LK_INTERLOCK flag set, interlock will not bejeff2002-08-211-2/+3
| | | | | | | released. vcanrecycle() failed to unlock interlock under this condition. - Remove an extra VOP_UNLOCK from a failure case in vcanrecycle(). Pointed out by: rwatson
* - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKEDjeff2002-08-214-8/+90
| | | | | | | | - Use the new VI asserts in place of the old mtx_assert checks. - Add the VI asserts to the automated lock checking in the VOP calls. The interlock should not be held across vops with a few exceptions. - Add the vop_(un)lock_{pre,post} functions to assert that interlock is held when LK_INTERLOCK is set.
* When setting the WI_RID_ENCRYPTION mode, we have to conditionallyimp2002-08-211-11/+20
| | | | | | | set EXCLUDE_UNENCRYPTED if we're not in OPEN mode (or if we are a symbol card). Obtained from: OpenBSD (looks like a millert@ special)
* comment about the magic number -149imp2002-08-211-0/+6
|
* Treat IBSS the same as ADHOC in wi_get_cur_ssid. This makes ifconfigimp2002-08-211-0/+1
| | | | | work better, but might not make ibss actually work on the prism2 cards that I have (this is the first time I've tried ibss in a long time).
* - Hold the vnode lock across unlink() so that the v_vflag check is safe.jeff2002-08-212-30/+40
| | | | - Fix the long broken error handling for VV_ROOT and VDIR.
* Keep subdirectory list sorted.archie2002-08-201-2/+2
|
* A chunk of cleanup, both stylistic and substantive.mjacob2002-08-206-330/+1021
| | | | | | | | We now also read configuration information for the SCSI cards- this allows us to try and say what the speed settings now are. Start, but not yet complete, the process of reorgs && #defines so that we can backport to RELENG_4 pretty soon.
* Add ng_l2tp module.archie2002-08-202-2/+9
|
* New L2TP netgraph node type.archie2002-08-205-1/+1644
| | | | Obtained from: Packet Design
* Whitespace and style fixes.jhb2002-08-201-12/+15
| | | | Submitted by: bde
* When declaring local variables in macros, always use "_name" insteadarchie2002-08-201-33/+34
| | | | | of "name" to avoid ugly problems when the containing code already has a variable named "name".
* Remove duplicate vinum entry.nyan2002-08-201-2/+1
|
* Merged from sys/dev/syscons/syscons.c revisions 1.386 and 1.387.nyan2002-08-201-5/+58
|
* Use the __BUS_ACCESSOR macro for NEXUS_ACCESSORmux2002-08-203-42/+6
| | | | | | instead of rolling our own implementation. Reviewed by: tmm
* - Use the __BUS_ACCESSOR macro for EISA_ACCESSOR insteadmux2002-08-201-14/+4
| | | | | | | of reimplementing it. - #undef EISA_ACCESSOR after use like we do for other accessors. Reviewed by: tmm
* Implement list of EA return functionality.phk2002-08-201-9/+33
| | | | | | Correctly delete EA's when the content length is set to zero. Sponsored by: DARPA & NAI Labs.
* Back out last commit. Needs slightly more subtle handling.orion2002-08-201-33/+35
|
* Remove the possibility of a race condition when reading the . and ..scottl2002-08-201-15/+16
| | | | entries.
* Don't abuse the stack when translating names.scottl2002-08-201-10/+12
|
* Merge changes in GENERIC to reduce difference (mostly cosmetic).kuriyama2002-08-201-10/+14
|
* Use mv -f. Otherwise if you accidently build as root, and then as a user,obrien2002-08-201-2/+2
| | | | | | it keeps asking you if you want to overwrite it or not. Submitted by: peter
* Prefer NULL to 0 when passing a NULL pointer.rwatson2002-08-202-2/+2
|
* Provide stub mpo_syscall() implementations for mac_none and mac_test.rwatson2002-08-203-0/+27
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Correct one more errant whitespace nit that crept in during changesrwatson2002-08-201-1/+1
| | | | in the arguments to vn_rdwr(). Hopefully the last.
* Handle one more case of a fifofs filetmp: set filetmp.f_cred torwatson2002-08-201-2/+3
| | | | | | | | ap->a_cred, and pass in ap->a_td->td_ucred as the active_cred to soo_poll(). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Untangle this warning a bit:peter2002-08-202-2/+2
| | | | | COMPAT_SVR4 is broken and usage is, until fixed, not recommended BTW; does anybody remember why this is here?
* remove unit counts from atkbdc, pckbd, scpeter2002-08-208-17/+17
|
* de-count pcbkdpeter2002-08-201-1/+1
|
* de-count pckbd for pc98. This file is only compiled if NPCKBD was 1,peter2002-08-202-18/+10
| | | | so the conditional compile should never have been used.
* de-count atkbdc and sc. Folks, remove the '1' from 'device sc 1' andpeter2002-08-195-9/+9
| | | | 'device atkbdc 1'.
* de-count atkbdc. I have more extensive patches to make properly dynamic,peter2002-08-192-4/+2
| | | | | | but since pc hardware only allows one AT-style keyboard controller, this doesn't seem particularly urgent. (I do not know what the old sunriver remote keyboard/mouse/vga cards do, that might be an exception).
* de-count schistory.c. The handling of NSC was rather bogus here and waspeter2002-08-191-4/+13
| | | | | | | | little more than a place holder, because nothing actually counted the number of 'sc' units to compare it against NSC. A bit more work here is needed so that the scaling of SC_MAX_HISTORY_SIZE and extra_history_size goes up when more sc units are added. But, it does not appear that we can have more than one console yet, so it does not seem particularly urgent.
* Typo fix.mux2002-08-191-1/+1
| | | | Reviewed by: tmm
* style(9) nit.mux2002-08-191-1/+1
|
* Use the __BUS_ACCESSOR macro for PCIB_ACCESSOR instead ofmux2002-08-191-14/+2
| | | | | | reimplementing it. Reviewed by: tmm
* Stop trying to align malloc()ed memory. Rely on malloc() instead, just likesemenu2002-08-192-25/+18
| | | | others.
* Close a race in process label changing opened due to dropping therwatson2002-08-199-63/+90
| | | | | | | | | | proc locking when revoking access to mmaps. Instead, perform this later once we've changed the process label (hold onto a reference to the new cred so that we don't lose it when we release the process lock if another thread changes the credential). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Do not reset card in epic_freebsd_attach() as reset is done insemenu2002-08-191-7/+0
| | | | epic_common_attach().
* Regen.rwatson2002-08-195-6/+6
|
* mac_syscall is now implemented, switch to MSTD.rwatson2002-08-191-1/+1
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Enclose IPv6 addresses in brackets when they are displayed printable with ajmallett2002-08-193-7/+15
| | | | | | | | TCP/UDP port seperated by a colon. This is for the log_in_vain facility. Pointed out by: Edward J. M. Brocklesby Reviewed by: ume MFC after: 2 weeks
* Fix a couple of bogus return values in previous commit.brooks2002-08-191-3/+2
| | | | | Submitted by: "Vladimir B. " Grebenschikov <vova@sw.ru> Pointy hat to: brooks
OpenPOWER on IntegriCloud