summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix namespace issues by using the relatively new visibilitymike2002-09-101-3/+9
| | | | primitives.
* - Forgot to remove `cardattached` declaration in revision 1.22.arr2002-09-101-1/+1
|
* Add missing calls to mtx_init().phk2002-09-101-0/+12
| | | | | | It seems counter-intuitive that all drivers have to do this. Pointed in right direction by: gj
* Fixed namespace pollution in uma changes:bde2002-09-101-2/+3
| | | | | | | | | | | | | - use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't a prerequisite. - don't include <sys/uma.h>. Namespace pollution makes "opaque" types like uma_zone_t perfectly non-opaque. Such types should never be used (see style(9)). "Fixed" subsequently grown dependencies of this header on its own pollution by polluting explicitly: - include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of depending on namespace pollution 2 layers deep in <sys/uma.h>.
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-102-0/+2
| | | | layers deep in <sys/proc.h> or <sys/vnode.h>.
* Fixed namespace pollution in uma changes:bde2002-09-101-2/+1
| | | | | | | | - use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't a prerequisite. - don't include <sys/uma.h>. Namespace pollution makes "opaque" types like uma_zone_t perfectly non-opaque. Such types should never be used (see style(9)).
* Include <sys/malloc.h> instead of depending on namespace pollution 2bde2002-09-101-8/+5
| | | | | | layers deep in <sys/proc.h> or <sys/vnode.h>. Removed unused includes. Sorted includes.
* vfs_syscalls.c:bde2002-09-105-168/+24
| | | | | | | | | | | | | | | | | | | | | | Changed rename(2) to follow the letter of the POSIX spec. POSIX requires rename() to have no effect if its args "resolve to the same existing file". I think "file" can only reasonably be read as referring to the inode, although the rationale and "resolve" seem to say that sameness is at the level of (resolved) directory entries. ext2fs_vnops.c, ufs_vnops.c: Replaced code that gave the historical BSD behaviour of removing one link name by checks that this code is now unreachable. This fixes some races. All vnodes needed to be unlocked for the removal, and locking at another level using something like IN_RENAME was not even attempted, so it was possible for rename(x, y) to return with both x and y removed even without any unlink(2) syscalls (one process can remove x using rename(x, y) and another process can remove y using rename(y, x)). Prodded by: alfred MFC after: 8 weeks PR: 42617
* Cosmetics: #define NETATALK --> #define NETATALK 1, so that it is in line withsobomax2002-09-101-1/+1
| | | | other #define FOO.
* Remove superfluous break.sobomax2002-09-101-1/+0
|
* Remove extraneous extern from function prototype introduced in rev.1.14.sobomax2002-09-101-1/+1
|
* reprobe not needed here eitherimp2002-09-101-30/+0
|
* Remove more bogus reprobe code. I don't think it is needed here either.imp2002-09-101-14/+1
|
* o Dike out the bogus reprobe stuff. It was getting in the way of newbus' ownimp2002-09-102-16/+0
| | | | | | | | reprobe code working. This bogusness was thrust upon me. o Don't delete the device if no drivers attach. I had thrust this bogusness upon others. These two changes make kldload of a pccard driver work again.
* regen for 1.34imp2002-09-101-1/+5
|
* Add ARGOSY SP320imp2002-09-101-0/+2
| | | | cis submitted by: phk
* move some printfs under bootverbosesam2002-09-101-4/+5
| | | | Reviewed by: phk
* - Spell "these" properly.arr2002-09-101-2/+2
|
* Make sure a $PIR table header has a valid length before accepting the tablejhb2002-09-093-3/+6
| | | | | | as valid. Submitted by: Michal Mertl <mime@traveller.cz>
* add missing \n to printfticso2002-09-094-8/+8
| | | | Approved by: gallatin (mentor)
* Add security.mac.mmap_revocation, a flag indicating whether werwatson2002-09-099-0/+72
| | | | | | | should revoke access to memory maps on a process label change. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Minor code sync to MAC tree: push Giant locking up fromrwatson2002-09-099-18/+18
| | | | | | | mac_cred_mmapped_drop_perms() to the caller. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* - Fix iBCS2 emulation of COFF files that have multiple librariesrobert2002-09-091-3/+7
| | | | | | | | | in their library (STYP_LIB) section. - Attempt to make the code which calculates the next entry and string offsets look clearer. PR: kern/42580 Tested by: Olaf Klein <ok@adimus.de> (on 4.7-PRERELEASE)
* Since from now on encap_input() also catches IPPROTO_MOBILE and IPPROTO_GREsobomax2002-09-092-3/+3
| | | | | | | | packets in addition to IPPROTO_IPV4 and IPPROTO_IPV6, explicitly specify IPPROTO_IPV4 or IPPROTO_IPV6 instead of -1 when calling encap_attach(). MFC after: 28 days (along with other if_gre changes)
* - Do not swap out a process if it is in creation. The process may have notanimura2002-09-091-0/+24
| | | | | | | | address space yet. - Check whether a process is a system process prior to dereferencing its p_vmspace. Aio assumes that only the curthread switches the address space of a system process.
* #include "opt_bla.h" goes first says Bruce.phk2002-09-092-4/+4
|
* Add `device gre'.sobomax2002-09-091-0/+3
| | | | | | Reminded by: bde MFC after: 28 days (along with other if_gre stuff)
* Prevent namespace pollution in use-land by putting everything used only insobomax2002-09-091-0/+3
| | | | | | kernel (softc and such) under #ifdef _KERNEL. Submitted by: bde
* Remove duplicate entry. Since we call things cbb in the source, pccbbimp2002-09-091-9/+0
| | | | is obsolete.
* Use "options " rather than "options<tab>".kuriyama2002-09-097-24/+24
|
* Change the order that we look for free memory windows from 0 -> MAX-1imp2002-09-081-4/+4
| | | | | | to MAX-1 -> 0. This should allow for less potential for conflict between pccardd/pccardc and drivers. As far as I can tell no drivers try to use window 4, so this should be a no-op for them.
* Add support for the BCM5703x chips. I do not have one of thesejdp2002-09-085-3/+32
| | | | | | | | cards to test; however the submitter reports that this patch works with the on-board interface on the IBM x235 server. Submitted by: Jung-uk Kim <jkim@niksun.com> MFC after: 1 month
* Fix style(9) bugs.phk2002-09-083-5/+5
| | | | Brucified by: bde
* Fix a logic bug in the struct dev_t allocation code.phk2002-09-081-5/+5
| | | | Spotted by: Neelkanth Natu <neelnatu@yahoo.com>
* Deal with a new exteded MBR paritition typephk2002-09-084-1/+4
| | | | Submitted by: Michal Mertl <mime@traveller.cz>
* Now that we have a cached mount credential in struct mount, use it isteadphk2002-09-083-5/+1
| | | | of a private cached copy.
* Make this driver work a whole lot better.jake2002-09-082-141/+170
| | | | | | | | | | | | | - Get the initial mode from the prom settings and don't clobber the mode on open. - Copy output into an internal ring buffer instead of accessing the tty outq directly in the interrupt handler. This fixes a problem where garbage would show up in the output stream. - Reset the console port completely and reprogram all the parameters before enabling it. This fixes seemingly random hangs on startup when using a fast interrupt handler. - Add minimal locking in place of spls. - Remove dead code and minor cleanups.
* opt_kstack_pages.h is not needed anymore. It would have been a Bad Thingpeter2002-09-083-4/+3
| | | | if it had been different to the running kernel.
* Note that 'device gzip' *requires* COMPAT_AOUT. Maybe this "device"peter2002-09-081-1/+1
| | | | should be renamed to COMPAT_GZIPAOUT or something like that.
* Do not blow up when we walk off the end of the brands list.peter2002-09-081-1/+3
| | | | Found by: kris, jake
* Tidy up some loose ends that bde pointed out. caddr_t bad, ok?peter2002-09-073-22/+20
| | | | | | | Move fill_kinfo_proc to before we copy the results instead of after the copy and too late. There is still more to do here.
* Remove bogus fill_kinfo_proc() before ptrace_set_pc(). There was no needpeter2002-09-071-1/+0
| | | | | | for this. Submitted by: bde
* The true value of how the kernel was configured for KSTACK_PAGES was notpeter2002-09-073-22/+19
| | | | | | available at module compile time. Do not #include the bogus opt_kstack_pages.h at this point and instead refer to the variables that are also exported via sysctl.
* Make UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, likepeter2002-09-072-0/+8
| | | | | | | | PS_STRINGS and USRSTACK is. This is necessary in order to decode a.out core dumps. kern_proc.c was already referring to both of these values but was missing the #include "opt_kstack_pages.h". Make the sysctl variables visible so that certain kld modules can see how their parent kernel was configured.
* Move the KSTACK_PAGES option from MD to MI. Although not all platformspeter2002-09-074-3/+1
| | | | | | | | support this, we do have MI code that references it and is otherwise unaware of an override. The alternative is to put knowledge in these MI files about which platforms have the opt_kstack_pages.h option file. It is more likely that other platforms will gain the ability to tune the kstack size.
* Fill out two fields (si_pid, si_uid) in the siginfo structure handed backjmallett2002-09-077-0/+14
| | | | | | | | | | | | | | | | to userland in the signal handler that were not being iflled out before, but should and can be. This part of sendsig could be slightly refactored to use an MI interface, or ideally, *sendsig*() would have an API change to accept a siginfo_t, which would be filled out by an MI function in the level above sendsig, and said MI function would make a small call into MD code to fill out the MD parts (some of which may be bogus, such as the si_addr stuff in some places). This would eventually make it possible for parts of the kernel sending signals to set up a siginfo with meaningful information. Reviewed by: mux MFC after: 2 weeks
* Diff reduction in comments for filling the siginfo structure - refer tojmallett2002-09-073-3/+3
| | | | | filling in the POSIX parts, when doing the same thing in every port of FreeBSD.
* Match the more modern ports and comment the filling of POSIX parts of siginfojmallett2002-09-072-2/+2
| | | | with 'Fill in POSIX parts'. (Diff reduction.)
* Unbreak the modules build:tmm2002-09-072-2/+3
| | | | | | | | | - add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module Makefile in the i386 case. The latter is needed by an i386-only file, the former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for architecture-dependent options, so I added it only for i386, although this file is also generated for the alpha). - add a dependency on opt_kstack_pages.h to the pecoff module Makefile.
* The size argument to snprintf does not have to be backed off by onemjacob2002-09-071-17/+17
| | | | | | to account for a NULL byte. Submitted by: Jacques A. Vidrine <nectar@celabo.org>
OpenPOWER on IntegriCloud