summaryrefslogtreecommitdiffstats
path: root/sys/kern
Commit message (Collapse)AuthorAgeFilesLines
* Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>se1995-01-051-1/+4
| | | | | | Reviewed by: <wollman> First hooks and defines for the ISDN driver, that soon will see the light ...
* Fight against hanging modems: add timeout to ttywait.ache1995-01-051-2/+15
| | | | Reviewed by: Bruce
* Another part of Bill Paul's fix to swapgeneric to properly use the -a flag.jkh1994-12-311-2/+2
| | | | Submitted by: wpaul
* Change an 0 to WHOLE_DISK_SLICE.bde1994-12-301-1/+1
|
* Print "(null)" instead of "<null>" for NULL string args for consistencybde1994-12-301-5/+3
| | | | | | with the libc and ddb printf's. Print "(fmt null)\n" for NULL formats.
* Make printf() a bit more robust and allow NULL strings (print them asdg1994-12-281-1/+7
| | | | | "<null>"). It bad to have diagnostic printfs cause panics when they are trying to tell you about another problem.
* Fixed multiple bugs that cause null pointers to be followed or FREEed datadg1994-12-282-27/+30
| | | | to be accessed if a process blocks when it is being run down.
* Obtained from: 1.1.5bde1994-12-241-4/+10
| | | | | | | Fix single-stepping of emulated FPU instructions. Don't panic if an FPU instruction is attempted but there is no FPU and no FPU emulator is configured.
* Protect vnode buffer chain manipulation with splbio to prevent listdg1994-12-232-2/+16
| | | | corruption..
* Print `slicename' and not a bogus pointer in diskerr()bde1994-12-221-2/+2
|
* Ooops, i forgot one NVT > 0 in a previous commit. Now pcvt will alsojoerg1994-12-181-2/+2
| | | | work as the system's console.
* Move the code providing the equivalent of ICRNL for console input fromjoerg1994-12-181-2/+5
| | | | the device driver(s) to cons.c.
* Fix bug in sysctl_string so that when a string has a length that is toguido1994-12-181-2/+2
| | | | | | | | | | | | | | short, it gets filled uop to its length. This matches the getdomainname and gethostname manual pages. (getbootfile also uses this function and I think it should have the same behaviour) This also fixes a bug with keyinit where the seed was not saved in /etc/skeykeys. So S/Key should be fully functional again. Reviewed by: Submitted by: Obtained from:
* Fix possible off by one in b_save allocation size.dg1994-12-181-2/+2
|
* Changed splimp to splhigh to close a potential hole that could leaddg1994-12-171-3/+3
| | | | | to corrupted malloc data structures caused by frees occurring at other than splimp.
* Duplicate readdisklabel() and writedisklabel() and remove DOS stuff frombde1994-12-161-7/+145
| | | | | | | from the copies to create correct_readdisklabel() and correct_writedisklabel(). Print the slice number in diskerr() if it is nonzero.
* Separate go-away code from dsinit() to produce dsgone().bde1994-12-161-16/+27
| | | | | | | Call correct_writedisklabel() instead of writedisklabel() (temporary compatibility hack). Remove kludge for allowing a label on slice 0.
* Actually enable NTP kernel PLL. (Oops!)wollman1994-12-142-3/+4
| | | | Noticed by Pete Carah.
* Obtained from: my fix for 1.1.5bde1994-12-121-1/+4
| | | | | Remove compatibility hack so that dup(fd) isn't interpreted as dup2(fd & 0x3f, random_junk_on_stack_fd) when (fd & 0x3f) != 0.
* Obtained from: my old fix for 1.1.5bde1994-12-123-48/+126
| | | | | | | | | | | | | | | | | | Improve hzto(): Round up instead of down and then add 1 tick. This fixes sleep(1) sometimes sleeping for < 1 second and usleep(10000) sometimes sleeping for as little as 1 usec + syscall time. Don't do all the calculations at splhigh(). Don't depend on `tick' being a multiple of 1000. Don't lose accuracy for `sec' between 0x7fffffff / 1000 - 1000 and 0x7fffffff / hz. Don't assume that longs are 32 bits or that ints have the same size as longs.
* Don't mess with already freed structures when a process is being rundg1994-12-121-13/+15
| | | | down.
* diskslice_machdep.c implements reading and checking of DOS slice tables.bde1994-12-121-0/+212
| | | | It will eventually replace readMBR.c.
* subr_diskslice.c implements everything related to slices and labels exceptbde1994-12-122-0/+680
| | | | | | | reading and writing the slice tables and labels. subr_dkbad.c implements everything related to bad sector remapping using the bad144 format.
* Don't allow negative limits at all. Convert them to RLIM_INFINITY insteadbde1994-12-061-6/+15
| | | | | | | of returning EINVAL since something may depend on them being broken. Allowing negative limits caused bugs almost everywhere. The recent fixes for MAXSSIZ checked the limits too late to stop anyone defeating limits set by root...
* Implemented a "TEXT_SET" called 'cleanup_set' which will be called beforephk1994-12-041-1/+20
| | | | | the reboot takes place (if not RB_NOSYNC that is). The vn driver needs this. Other places might benefit too.
* don't allow ctty to be set to ctty - infinite kernel recursionache1994-12-041-1/+3
| | | | Obtained from: 1.1.5.1
* Call d_stop in ttyflush not only for WRITE but for READ tooache1994-12-041-7/+8
| | | | Obtained from: 1.1.5.1
* Add one forgotten u_quad_t typecast in dosetrlimit.ats1994-12-021-2/+2
|
* The values for setrlimit in the data size and stack size case areats1994-12-011-6/+6
| | | | | | | | | | used as an address value. Then all comparisons should be done unsigned and not signed. Fix it with a typecast of u_quad_t. Error can be demonstrated with the current bash in port, do a ulimit -s unlimited and the machine hangs. bash delivers through an internal error a large negative value for the stacksize, the comparison saw this smaller than MAXSSIZ and then tried to expand the stack to this size.
* Fix cblock starvation bugs by reserving enough cblocks for minimalbde1994-11-263-146/+279
| | | | | | | | | operation of each clist. Limit the growth of each clist. Clists can only grow larger than the reserved minimum if there are free cblocks in a shared pool. The size of this pool is now fixed (this could be improved). The reserved and maximum sizes are more carefully allocated for slip and ppp, depending on the mtu. A maximum MTU of 16384 is now enforced for ppp.
* Don't block for output in non-blocking mode if clists run out.bde1994-11-261-5/+11
| | | | | Remove an unnecessary test (if the output queue is above high water then it is nonempty).
* These changes fix a couple of lingering VM problems:dg1994-11-251-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The pageout daemon used to block under certain circumstances, and we needed to add new functionality that would cause the pageout daemon to block more often. Now, the pageout daemon mostly just gets rid of pages and kills processes when the system is out of swap. The swapping, rss limiting and object cache trimming have been folded into a new daemon called "vmdaemon". This new daemon does things that need to be done for the VM system, but can block. For example, if the vmdaemon blocks for memory, the pageout daemon can take care of it. If the pageout daemon had blocked for memory, it was difficult to handle the situation correctly (and in some cases, was impossible). 2. The collapse problem has now been entirely fixed. It now appears to be impossible to accumulate unnecessary vm objects. The object collapsing now occurs when ref counts drop to one (where it is more likely to be more simple anyway because less pages would be out on disk.) The original fixes were incomplete in that pathological circumstances could still be contrived to cause uncontrolled growth of swap. Also, the old code still, under steady state conditions, used more swap space than necessary. When using the new code, users will generally notice a significant decrease in swap space usage, and theoretically, the system should be leaving fewer unused pages around competing for memory. Submitted by: John Dyson
* Move declarations of public functions to <sys/sysctl.h>.bde1994-11-141-11/+4
| | | | | | Make some private data static. Comment about MAXPATHLEN bytes of bloat for the kernel name.
* Make a kernel sans FFS possible.phk1994-11-122-22/+4
|
* pick up the changes from a makesyscall.sh run. The multiple lkmnosysats1994-11-101-9/+0
| | | | declarations should now be gone.
* Added "const" to the arguments here and there.phk1994-11-071-5/+5
|
* Put a small hack into a large hack named makeyscall.sh. Generate onlyats1994-11-061-2/+5
| | | | one lkmnosys() entry in init_sysent.c.
* Security nitpicking: don't make *.core world readableache1994-11-061-2/+2
|
* Added support for starting the experimental "vmdaemon" system process.dg1994-11-061-3/+19
| | | | | | Enabled via REL2_1. Submitted by: John Dyson
* From tim@cs.city.ac.uk (Tim Wilkinson):dg1994-11-042-2/+4
| | | | | | | | | | | | | Find enclosed a short bugfix to get the union filesystem up and running in FreeBSD-current. We don't think we've got all the problems yet but these fixes sort out the major ones (which mostly concert bad locking of vnodes), no doubt we'll post others as necessary. Known problems include the inability of the umount command (not the system call) to unmount unions in certain circumstances (this is due the way "realpath" works), and the failure of direntries to always get all available files in unioned subdirectories. We are, as they say, working on it. Submitted by: tim@cs.city.ac.uk (Tim Wilkinson)
* Return immediately from ttwrite() if the ttysleep()s that wait forbde1994-11-011-3/+3
| | | | | | a clist return with an error. There are some clist starvation/deadlock bugs elsewhere and killing clist hogs didn't help because the breaks only exited from the inner loops.
* Added hooks for an easy drop-in of the pcvt concole driver.joerg1994-10-311-2/+3
| | | | | Don't panic:-), this is simple stuff just doing exactly the same as for syscons. (files.i386 did already contain the necessary stuff.)
* Fix selector arg to match the (missing) prototype for sdtossd().bde1994-10-301-2/+7
| | | | | | | | Cosmetic. Return from trap() if trap_fatal() returns. trap_fatal() isn't fatal if you have ddb. Returning from trap() is usually the right thing to do and much better than falling through.
* Don't attempt to free null cblocks. There may be less to free thanbde1994-10-302-2/+6
| | | | | normal due to cblock resource starvation or malloc() failing when the device is opened.
* write ptys use _the_same_ tsleep/wakeup address as read ptys due toache1994-10-291-3/+3
| | | | mistype, fixed.
* Julian Elischer's disklabel fixes.jkh1994-10-271-86/+146
|
* Fix the panic message if init dies to show the exit status.phk1994-10-271-3/+5
|
* When all else fails, try to use "/stand/sysinstall" as "init" process. Thephk1994-10-261-1/+2
| | | | new installation procedure needs this.
* Changed some variable names in lf_addblock to make the code bothdg1994-10-251-9/+9
| | | | understandable and conform to other conventions used in the file.
* Don't do suser() check; it's already done in __sysctl().wollman1994-10-231-4/+1
|
OpenPOWER on IntegriCloud