summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add code to properly translate signal returned in status argument of wait4()swallace1995-10-231-5/+25
| | | | call for STOPPED and SIGNALED status (exit status identical).
* Remove COMPAT_IBCS2 option.swallace1995-10-231-17/+8
| | | | Ibcs2 emulator no longer depends on owait() or any other hack to wait4().
* Fix a sign extension bug that was unleashed by the previous change.bde1995-10-231-3/+9
| | | | | | The total process time was sometimes 2^32 usec too large but that wasn't a problem before because the time was bogusly truncated mod 2^32.
* Reset only one necessary LC_ variableache1995-10-231-3/+2
|
* Simplify the pseudo-argument removal changes by not optimizing forbde1995-10-232-246/+199
| | | | | | | | | | | | | | the !COMPAT_43 case - use a common function even when there is no `old' function. The diffs for this are large because of code motion to restore the function order to what it was before the pseudo-argument changes. Include <sys/sysproto.h> to get correct args structs and prototypes. The diffs for this are large because the declarations of the args structs were moved to become comments in the function headers. The comments may actually match the automatically generated declarations right now. Add prototypes.
* Fix a missing arg to untimeout.phk1995-10-231-1/+1
|
* Get rid of machine-dependent NBPG and replace with PAGE_SIZE.dyson1995-10-234-20/+20
|
* Remove of now unused PG_COPYONWRITE.dyson1995-10-231-2/+1
|
* Removal of unnecessary usage of PG_COPYONWRITE.dyson1995-10-232-4/+4
|
* Support all the tcpflag options in firewall.ugen1995-10-231-14/+43
| | | | | | Add reading options from file, now ipfw <filename> will read commands string after string from file , form of strings same as command line interface.
* First phase of removing the PG_COPYONWRITE flag, and an architecturaldyson1995-10-233-55/+19
| | | | cleanup of mapping files.
* Interface change for the VOP_GETPAGES -- missed in previous commits.dyson1995-10-231-1/+4
|
* Remove PG_W bit setting in some cases where it should not be set.dg1995-10-232-6/+6
| | | | Submitted by: John Dyson <dyson>
* Finalize GETPAGES layering scheme. Move the device GETPAGESdyson1995-10-238-143/+335
| | | | | interface into specfs code. No need at this point to modify the PUTPAGES stuff except in the layered-type (NULL/UNION) filesystems.
* More improvements to the logic for modify-bit checking. Removeddg1995-10-232-218/+20
| | | | | | pmap_prefault() code as we don't plan to use it at this point in time. Submitted by: John Dyson <dyson>
* Remove the last trace of arptnew()phk1995-10-221-2/+1
|
* sio.c:bde1995-10-226-153/+63
| | | | | | | | | | | | | | | | | | | | Fix the tests for being a console by reverting to the ones that were used before the the RB_SERIAL changes. RB_SERIAL only needs to be tested in one place. The initialization of comconsole was wrong before the RB_SERIAL changes for the COMCONSOLE case. This may have been the cause of the unnecessary changes. Start eliminating #includes of <i386/i386/cons.h>. This header is supposed to be included from <machine> although it should be completely machine-independent and included from <sys>. Remove a wrong XXX comment. `comconsole' is used to test for being a console and even the tests for deciding the default termios state are necessary (the semi-reentrant i/o routines don't handle ordinary device i/o). cy.c: Sync with sio.c. The console tests are present but always fail.
* Only allow `sensitive' devices for displays in find_display(). This isbde1995-10-222-6/+12
| | | | | a quick fix for syscons deciding not to become the console because it thinks another tty device has priority.
* Fix order problem: unbusy pages before releasing the buffer.dg1995-10-222-4/+4
| | | | Submitted by: John Dyson <dyson>
* Moved the filesystem read-only check out of the syscalls and into thedg1995-10-2212-404/+446
| | | | | | | | filesystem layer, as was done in lite-2. Merged in some other cosmetic changes while I was at it. Rewrote most of msdosfs_access() to be more like ufs_access() and to include the FS read-only check. Obtained from: partially from 4.4BSD-lite2
* Simplified some expressions.dg1995-10-222-14/+8
|
* Make a lot of things static.phk1995-10-215-66/+66
|
* In bsd_to_ibcs2_sigaction(), flag for ibcs2 system should beswallace1995-10-211-2/+2
| | | | | | IBCS2_SA_NOCLDSTOP and not SA_NOCLDSTOP. Submitted by: bde
* Start including <sys/sysproto.h> to get the correct args structs andbde1995-10-213-53/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prototypes for all syscalls. The args structs are still declared in comments as in VOP implementation functions. I don't like the duplication for this, but several more layers of changes are required to get it right. First we need to catch up with 4.4lite2, which uses macros to handle struct padding. Then we need to catch up with NetBSD, which passes the args correctly (as void *). Then we need to handle varargs functions and struct padding better. I think all the details can be hidden in machine-generated functions so that the args structs and verbose macros to reference them don't have to appear in the core sources. Add prototypes. Add bogus casts to hide the evil type puns exposed by the previous steps. &uap[1] was used to get at the args after the first. This worked because only the first arg in *uap was declared. This broke when the machine- genenerated args struct declared all the args (actually it declares extra args in some cases and depends on the user stack having some accessible junk after the last arg, not to mention the user args being on the stack. It isn't possible to declare a correct args struct for a varargs syscall). The msgsys(), semsys() and shmsys() syscall interfaces are BAD because they multiplex several syscalls that have different types of args. There was no reason to duplicate this sysv braindamage but now we're stuck with it. NetBSD has reimplemented the syscalls properly as separate syscalls #220-231. Declare static functions as static in both their prototype and their implementation (the latter is optional, and this misfeature was used). Remove gratuitous #includes. Continue cleaning up new init stuff.
* Implement mincore system call.dyson1995-10-211-3/+25
|
* Avoid overflow in calcru(). Fixes PR 788.bde1995-10-211-2/+2
| | | | Submitted by: imdave@synet.net (Dave Bodenstab)
* Remove bogus #include <sys/device.h>, and the bogus instances ofpeter1995-10-212-44/+22
| | | | | "struct device" and the bogus unit number mentioned in the error message. Some other minor cleanups, all trivial.
* Killed a few gratuitous #include's.dg1995-10-213-8/+4
|
* sigset() should have sa_flags cleared to sig is maked before callingswallace1995-10-211-23/+27
| | | | | | | | | | handler (remove SA_NODEFER). On the other hand, signal() case should set sa_flags to SA_NODEFER as in previous change. In addition, added #ifdef'd code for signal() to or in SA_RESETHAND flag for when that compatability is implemented.
* Fix panic caused by PRU_CONTROL not being dealt with properly. Bug pointeddg1995-10-211-2/+8
| | | | out by David Maltz <dmaltz@orval.mach.cs.cmu.edu>, but this fix is by me.
* A mixed bag of changes, relating to getting the state in "lsdev" right,phk1995-10-2110-60/+156
| | | | and pccard support to work sensibly. Better by far, but still not good.
* If we clear the B_CACHE flag because a buffer isn't composed fully ofdyson1995-10-191-3/+3
| | | | | | valid bytes, we must also clear the B_DONE flag. Some filesystems depend on this (incl NFS) and is probably the cause of the biodone error and subsequent crash. Anyway this change needs to be made.
* Fix initialization of "bsize" in vnode_pager_haspage(). It must happendg1995-10-191-5/+3
| | | | | after the check for the mount point still existing or else the system will panic if someone forcibly unmounted the filesystem.
* Use sa_flag option SA_NODEFER in sigsys() emulation because SVR3swallace1995-10-191-5/+5
| | | | does not automatically mask signal upon delivery.
* Implement SA_NODEFER sa_flag for sigaction():swallace1995-10-194-6/+18
| | | | | | | | | | | Add SA_NODEFER define to signal.h Add ps_nodefer field to struct sigacts in signalvar.h. Add code to kern_sig.c to handle SA_NODEFER. If flag is set, when the signal is delivered, it is not masked automatically from receiving the same signal again. Reviewed by: wollman, bde
* Make CONF1_ENABLE_MSK1 even less restriktive: Ignore slot ID ...se1995-10-176-12/+12
|
* At least the ASUS Triton motherboards don't disable the PCI bus configurationse1995-10-176-24/+30
| | | | | | | | | accesses after the BIOS bus scan. The previous revision made the assumption, that every PCI motherboard did ... Change the test on the initial value of the CONF1_ADDR_PORT register in a way that makes the probe succeed on triton based motherboards, without breaking the EISA motherboard that has some non-PCI register at the same address.
* Change signature of rt->rt_output() so that it is compatible withwollman1995-10-161-3/+3
| | | | | | ifp->if_output() functions. This way, initial implementations of rt_output functionality can just lazily use if_output until customized versions are written.
* When adding a route fails because there is already a route with the samewollman1995-10-161-1/+23
| | | | | | | (mask,value) in the tree, don't immediately return EEXIST. Instead, check to see if the pre-existing route was generated by protcol-cloning. If so, then it is OK to simply blow away the old route and re-attempt the insertion. If not, then fall back to the same error code as before.
* The ability to administratively change the MTU of an interface presentswollman1995-10-165-15/+36
| | | | | | | a few new wrinkles for MTU discovery which tcp_output() had better be prepared to handle. ip_output() is also modified to do something helpful in this case, since it has already calculated the information we need.
* Add a hack to emulator to emulat spx device for local X connections.swallace1995-10-162-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is truly a hack. The idea is taken from the Linux ibcs2 emulator. To use this feature, you must use the option, options SPX_HACK in your config. Also, in /compat/ibcs2/dev, you must do: lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx Do NOT use old socksys driver as that has been removed. This hack needs /compat/ibcs2/dev/spx to be any device that does NOT exist/configured (so the now non-existant spx major/minor works fine). When an open() is called, the error ENXIO is checked and then the path is checked. If spx open detected, then a unix socket is opened to the hardcoded path "/tmp/.X11-unix/X0". As the Linux hacker author mentioned, the real way would be to detect the getmsg/putmsg through /dev/X0R and /dev/spx. Until this true solution is implemented (if ever), I think this hack is important enough to be put into the tree, even though I don't like it dirtying up my clean code (which is what #ifdef SPX_HACK is for).
* Remove an unnecessary tsleep in the swapin code. This tsleepdyson1995-10-161-2/+1
| | | | can defer swapping in processes and is just not the right thing to do.
* Do a better fake for uname information returned in utssys() call.swallace1995-10-162-6/+25
| | | | | | | | | | | | | | | Currently, the emulator defaults to returning "FreeBSD" as the system name, release "3.2", and version "2.0". Some programs want to make sure they are on a SYSV 3.2 system and check for 3.X release number. Use the following defines to override the defaults: IBCS2_UNAME_SYSNAME IBCS2_UNAME_RELEASE IBCS2_UNAME_VERSION (should be string) for system name, release, and version, respectively. This allows someone to compile the emulator into the kernel so it can pretend to be a specific system if needed.
* Go back to separate tests for configuration mechanism 1 and mechanism 2.se1995-10-156-324/+342
| | | | | | | | | | Require the state of the configuration enable bits to be OFF assuming that the BIOS left them that way, as it should anyway to avoid bad things to happen. The tests themselves are copied from the previous release, with the exception of CONF1_ENABLE_MSK1 having the LSB set. This bit should be read back as '0', since only DWORD addresses are legal.
* Pull all of libkern.a in (though not mcount) so the LKM's don't comephk1995-10-153-3/+60
| | | | out shorthanded. Makes the idea of libkern pretty void now...
* Revert to default entry point.phk1995-10-151-2/+1
|
* Make LKM entry consisten with tradition: pcic_mod().phk1995-10-151-1/+1
|
* An even better idea: The default will be that on _${KMOD} (_nfs_mod...) willphk1995-10-151-2/+3
| | | | | be exported. This breaks the compilation of some lkms, the owners of which is kindly requested to consider what should be exported.
* Automatically DTRT for VFS_LKMphk1995-10-151-1/+2
|
* Only export our 'init' symbol.phk1995-10-151-1/+2
|
OpenPOWER on IntegriCloud