summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue where shutdown(socket, SHUT_RD) was effectivelysilby2002-09-222-6/+20
| | | | | | | | ignored for TCP sockets. NetBSD PR: 18185 Submitted by: Sean Boudreau <seanb@qnx.com> MFC after: 3 days
* Remove unneeded opt headers.jake2002-09-221-3/+0
| | | | Noticed by: benno
* - Move the init of %gs and pcb_gs before user_ldt_free().mdodd2002-09-222-26/+8
| | | | | | | - Always call load_gs() - Trim comments. This addresses some of the issues raised by BDE.
* It's Apple GMAC, not HMAC.benno2002-09-222-2/+2
| | | | Approved by: jake (for sparc64)
* Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.cjake2002-09-229-390/+246
| | | | | | | so that it is MI. Allow nfs_mountroot to return an error if the nfs_diskless struct is not valid, rather than panicing later on. Call nfs_setup_diskless() from nfs_mountroot if NFS_ROOT is defined, like bootpc_init(). Removed legacy root mount support for sparc64, and enabled NFS_ROOT by default.
* Whitespace fixes (mainly for many more messes in the definitions of thebde2002-09-211-17/+17
| | | | rfork() constants).
* Use the fields in the sysentvec and in the vm map header in place of thejake2002-09-2120-93/+102
| | | | | | | | constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS. This is mainly so that they can be variable even for the native abi, based on different machine types. Get stack protections from the sysentvec too. This makes it trivial to map the stack non-executable for certain abis, on machines that support it.
* Remove #ifdef'ed Giant mutex wrappers round debugging statements.markm2002-09-212-10/+0
|
* Cleanup of amdpm(4).nsouch2002-09-214-137/+183
| | | | | | Add of NVIDIA nForce (nfpm) smbus support. Obtained from: Thomas D. Dean <tomdean@speakeasy.org>
* No functional change. Fix comments and whitespace.markm2002-09-211-4/+3
|
* Remove another missed trailing space.rwatson2002-09-211-1/+1
|
* o Remove an initialized but unused variable from pmap_remove_all().alc2002-09-211-2/+0
|
* Trim trailing whitespace from the ends of lines.rwatson2002-09-212-23/+23
|
* Continue cleanup and sync of mac_biba and mac_mls policies to therwatson2002-09-212-26/+0
| | | | | | | | | TrustedBSD MAC Perforce tree. Remove unused functions mac_biba_equal_range and mac_mls_equal_range, which determined if the ranges in two range-enabled labels were equal. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Wrap GNUish asm() code in #ifdef __GNUC__markm2002-09-211-0/+24
|
* Use a function instead of a non-portable, GCC-specific asm() entry.markm2002-09-211-1/+2
|
* A good dose of style.9. No functional change.markm2002-09-212-42/+34
|
* Remove mac_biba_high_single() check for interface renaming: we nowrwatson2002-09-211-12/+0
| | | | | | | | use the notion that a subject range of (low-high) connotes Biba privilege rather than a single of high. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Code tidy-up. ISOfy, turn a macro into an inline for lint(1) (perhapsmarkm2002-09-212-32/+30
| | | | this needs to go to cpufunc.h?), de-register.
* Use a function instead of embedding non-portable asm() constructsmarkm2002-09-212-2/+4
| | | | in C code.
* Sort includes.markm2002-09-212-26/+28
|
* As INVARIANTS isn't supported for code that loads only as a kernelrwatson2002-09-212-4/+4
| | | | | | | | | module and is not linked into the base system, two KASSERT's rotted. Fix them by fixing variable names. It would be really nice if opt_global.h was used when building modules as part of a buildkernel. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Provide in inline function for the (GNUC) assembler "hlt" instruction.markm2002-09-212-0/+14
|
* Wrap GCC-specific asm() code in #ifdef __GNUC__markm2002-09-212-0/+4
|
* Don't include opt_bus.h here, it breaks stuff trying tomux2002-09-211-1/+0
| | | | | | include machine/bus.h. Reviewed by: tmm
* Constify to kill some warnings.markm2002-09-212-2/+2
|
* Everywhere else, an argument passed to a device containing flagsmarkm2002-09-211-5/+4
| | | | is called "flags". Make it so here.
* Firewire can be built on other than i386 after sbp.c fix.simokawa2002-09-211-2/+1
| | | | Tested on: Alpha (beast.freebsd.org)
* don't include bus_dma.h which doesn't need.simokawa2002-09-211-3/+0
|
* remove unused code.simokawa2002-09-211-15/+0
|
* Remove empty #if*/#endif clauses.phk2002-09-213-7/+0
|
* Remove #ifdef/#endif 3 years after the stuff they protected was removed.phk2002-09-213-6/+0
| | | | Spotted by: peter.
* Fix a 3 year old oversight: Remove the #ifdef/#endif pair now that therephk2002-09-215-10/+0
| | | | | | is nothing between them anymore. Spotted by: peter.
* Reduce namespace pollution.alc2002-09-211-3/+0
| | | | Submitted by: bde
* Claim to be 1003.1-2001. We're not quite, yet, but that's a more usefulwollman2002-09-213-150/+86
| | | | | | | | | | | | | | | | | | target than any pre-C99 POSIX (which we could never have conformed to under our ia32 ABI). Document why HOST_NAME_MAX (and hopefully other similar constants in the future) is not defined. Define in <sys/unistd.h> all 1003.1-2001 option and option group constants which did not meet the standard for inclusion in <unistd.h>. Delete from <sys/unistd.h> all sysconf(3) constants and those option constants which were moved to <unistd.h>. pathconf(3) keys remain here as pathconf() is implemented directly as a system call. Add a comment noting brokenness in some .1e additions here. Fix whitespace in definition of constants for rfork(). (5 of 5)
* Insert a missing call to MAC protection check for delivering anrwatson2002-09-211-1/+5
| | | | | | | | mbuf to a bpf device. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Submitted by: phk
* Add missing semicolongrehan2002-09-201-1/+1
|
* Assert my copyright on this file (using the default 2-clause BSD).phk2002-09-201-11/+4
| | | | | The vast majority of the contents is from my keyboard and no significant pieces remain of the former copyright holders code.
* (This commit touches about 15 disk device drivers in a very consistentphk2002-09-2022-219/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs.
* Remove NVIDIA ioctl bits. They will be provided in a kernel module.mdodd2002-09-202-29/+0
|
* Axe unused include.jhb2002-09-203-3/+0
|
* mistakenly set IFF_UP by SIOCSIFPHYADDR.ume2002-09-201-4/+0
| | | | Obtained from: KAME
* This file does not <sys/disklabel.h>phk2002-09-201-1/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h>phk2002-09-204-11/+0
| | | | | Sponsored by: DARPA & NAI Labs. Approved by: sos
* We need neither <sys/diskslice.h> nor <sys/disklabel.h> here.phk2002-09-202-4/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Put an XXX comment here to point somebody in the right direction.phk2002-09-201-0/+1
|
* Fix various style(9) bugs:mike2002-09-201-19/+19
| | | | | | | | o Unusual order of #ifndef _FOO_H_, followed by license. o Missing tabs in typedef. o Missing tabs in struct between types and member names. o Unaligned, unordered function prototypes. o Reversed comment for #endif.
* For reasons now lost in historical fog, the bounds_check_with_label()phk2002-09-207-358/+58
| | | | | | | | | | | | function were put in i386/i386/machdep.c from where it has been cut and pasted to other architectures with only minor corruption. Disklabel is really a MI format in many ways, at least it certainly is when you operate on struct disklabel. Put bounds_check_with_label() back in subr_disklabel.c where it belongs. Sponsored by: DARPA & NAI Labs.
* We don't need the <sys/disklabel.h> include for alpha anymore.phk2002-09-201-3/+0
| | | | Sponsored by: DARPA & NAI Labs.
* #include <sys/disk.h> to get disk_err() prototype.phk2002-09-203-0/+3
| | | | Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud