summaryrefslogtreecommitdiffstats
path: root/sys/kern
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that uio_resid isn't negative in read().dg1994-09-021-1/+5
|
* Disallow truncating to negative file sizes. Doing so causes ffs_truncate()dg1994-09-022-2/+10
| | | | | and perhaps other fs truncate's to go crazy and panic the machine or worse. This fixes the truncate bug reported by Michael Class.
* munmapfd() was being called with one too few params - bug introduceddg1994-09-021-2/+2
| | | | during my initial kernel port.
* Make olstat() consistent with lstat() - so they both return the samedg1994-09-022-14/+74
| | | | | | owner.. Submitted by: Kirk McKusick
* Fixed bug that caused system processes to run at realtime priority.dg1994-09-011-4/+3
|
* Realtime priority scheduling support.dg1994-09-012-4/+5
| | | | | | | | | | | | | | | Added "sys/rtprio.h" with the used defines. Added rtprio(2) - the kernel interface. init_sysent.c, kern_resource.c syscalls.master Added 32 new runqueues (rtqs), with initialization. kern_proc.c kern_synch.c Realtime processes do not change nice/priority kern_synch.c Added a column "rt" to ddb's ps (#ifdef RTPRIO_DEBUG) kern_synch.c Realtime priorities are enherited through fork(). kern_fork.c Init (and children) NOT run as realtime process. init_main.c Submitted by: Henrik Vestergaard Draboel
* Realtime priority scheduling support.dg1994-09-016-12/+87
| | | | Submitted by: Henrik Vestergaard Draboel
* Conditionalized support for syscons as the console so that it can bedg1994-08-311-1/+6
| | | | | | made optional in the kernel config file. Submitted by: John Hay
* Rather than exclude bounce buffers support with NOBOUNCE, include itdg1994-08-311-1/+3
| | | | | | with BOUNCE_BUFFERS. This is more intuitive, and is better for future multiplatform support. Added BOUNCE_BUFFERS option to the GENERIC and LINT kernel config files.
* Cleaned up after Bruce: there were still some things that includeddg1994-08-301-9/+1
| | | | | | com.h/lpa.h. Removed all vestiges of com/lpa out of conf.c and also fixed up the end of cdevsw/bdevsw to have "no" routines instead of a NULL pointer (suggested by someone a few weeks back).
* Changed to reclaim memory from other buffers to eliminate memorydg1994-08-301-2/+37
| | | | | | thrashing. Submitted by: John Dyson
* "bogus" fixes from 1.1.5 to work around some cache coherency problems.dg1994-08-292-6/+38
|
* Don't test if a u_int is < 0. The remaining test is sufficient and thebde1994-08-281-2/+2
| | | | extra one caused a warning.
* 1) Changed ddb into a option rather than a pseudo-device (use options DDBdg1994-08-276-22/+75
| | | | | | | | | | in your kernel config now). 2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its own file. 3) Added \r handing in db_printf. 4) Added missing memory usage stats to statclock(). 5) Added dummy function to pseudo_set so it will be emitted if there are no other pseudo declarations.
* Added ntp_gettime and ntp_adjtime syscalls, both nosys'ed out untilwollman1994-08-263-8/+10
| | | | | someone gets to re-integrating the code. ntp_gettime() should be turned into a sysctl variable and emulated in the library.
* Oops didn't check that init_sysent.c was generated proberly. Fixed.sos1994-08-262-4/+4
| | | | | Reviewed by: Submitted by:
* Changes to new sysent structure. TODO MOD_EXEC support.sos1994-08-261-12/+17
| | | | | Reviewed by: Submitted by:
* Support speeds 57600 and 115200.bde1994-08-251-12/+16
| | | | Privatize functions.
* Changes preparing for iBCS supportsos1994-08-246-28/+51
| | | | | Reviewed by: Submitted by:
* Pay attention to *all* errors from copyinstr(). This patch fixes a bugdg1994-08-241-8/+16
| | | | | that causes a no-panic instant reboot when bogus argv/envvs are fed to execve().
* Initialized v_writecount.dg1994-08-242-4/+6
|
* print "BUSY" instead of error number if filesystem was busy duringdg1994-08-222-10/+26
| | | | | vfs_unmountall() - this is the most common case. If it was a different error, then print the error number.
* Implemented filesystem clean bit via:dg1994-08-206-14/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | machdep.c: Changed printf's a little and call vfs_unmountall() if the sync was successful. cd9660_vfsops.c, ffs_vfsops.c, nfs_vfsops.c, lfs_vfsops.c: Allow dismount of root FS. It is now disallowed at a higher level. vfs_conf.c: Removed unused rootfs global. vfs_subr.c: Added new routines vfs_unmountall and vfs_unmountroot. Filesystems are now dismounted if the machine is properly rebooted. ffs_vfsops.c: Toggle clean bit at the appropriate places. Print warning if an unclean FS is mounted. ffs_vfsops.c, lfs_vfsops.c: Fix bug in selecting proper flags for VOP_CLOSE(). vfs_syscalls.c: Disallow dismounting root FS via umount syscall.
* 1) cleaned up after Garrett - fixed more redundant declarations, changeddg1994-08-202-4/+3
| | | | | | | | use of timeout_t -> timeout_func_t in aha1542 and aha1742 drivers. 2) fix a bug in the portalfs that was uncovered by better prototyping - specifically, the time must be converted from timeval to timespec before storing in va_atime. 3) fixed/added some miscellaneous prototypes
* Terry Lambert's loadable kernel module support w/improvements from thedg1994-08-195-7/+983
| | | | NetBSD group.
* Fix up some sloppy coding practices:wollman1994-08-1820-52/+107
| | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
* Added support for TIOCSTAT ioctl. This allows shells that use raw/cbreakdg1994-08-181-1/+5
| | | | tty modes to process a control-T and do the right thing.
* Moved over my fix for vnode lossage when multiple TIOCSCTTY ioctls aredg1994-08-181-1/+10
| | | | | | done. This patch was extended to also include a suggested change by Kirk McKusick which allows the control tty to be reasigned to a different tty without losing a vnode.
* Made the kernel compile cleanly with gcc 2.6.0. Thanks go to Brucedg1994-08-131-3/+2
| | | | Evans for suggesting a method to detect various versions of gcc.
* Change all #includes to follow the current Berkeley style. Some of thesewollman1994-08-134-30/+30
| | | | | | | | | | | | | | | | | | | | | ``changes'' are actually not changes at all, but CVS sometimes has trouble telling the difference. This also includes support for second-directory compiles. This is not quite complete yet, as `config' doesn't yet do the right thing. You can still make it work trivially, however, by doing the following: rm /sys/compile mkdir /usr/obj/sys/compile ln -s M-. /sys/compile cd /sys/i386/conf config MYKERNEL cd ../../compile/MYKERNEL ln -s /sys @ rm machine ln -s @/i386/include machine make depend make
* Make it easier for programs to figure out what revision of FreeBSD theywollman1994-08-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | are running under. Here's how to bootstrap (order is important): 1) Re-compile gcc (just the driver is all you need). 2) Re-compile libc. 3) Re-compile your kernel. Reboot. 4) cd /usr/src/include; make install You can now detect the compilation environment with the following code: #if !defined(__FreeBSD__) #define __FreeBSD_version 199401 #elif __FreeBSD__ == 1 #define __FreeBSD_version 199405 #else #include <osreldate.h> #endif You can determine the run-time environment by calling the new C library function getosreldate(), or by examining the MIB variable kern.osreldate. For the time being, the release date is defined as 199409, which we have already established as our target.
* Handle NMI's in accordance with data in van Gilluwe book.wollman1994-08-101-2/+2
|
* Change default security level to -1, so that users don't get bitten bywollman1994-08-101-2/+2
| | | | upcoming makefile change.
* Made lockf advisory locking code generic (rather than ufs specific), anddg1994-08-081-0/+797
| | | | | | | use it in NFS. This is required both for diskless support and for POSIX compliance. Note: the support in NFS is only for the local node. Submitted by: based on work originally done by Yuval Yurom
* Run-time configuration of VFS update interval. Old UPDATE_INTERVALwollman1994-08-082-6/+16
| | | | configuration option is no longer supported.
* Detect the "EOF" condition. Specifically, end of partition.dg1994-08-081-1/+4
| | | | Submitted by: Bruce Evans
* Process tracing code. Written by Sean Eric Fagan.dg1994-08-081-30/+317
| | | | Submitted by: Sean Eric Fagan
* Changed B_AGE policy to work correctly in a world with relatively largedg1994-08-081-2/+2
| | | | buffer caches. The old policy generally ended up caching nothing.
* Define a sysctl MIB variable for the YP domain name.wollman1994-08-082-4/+12
|
* Made pmap_kenter "TLB safe". ...and then removed all the pmap_updates thatdg1994-08-071-3/+1
| | | | are no longer needed because of this.
* Provide support for upcoming merged VM/buffer cache, and fixed a few bugsdg1994-08-071-1/+5
| | | | | | that haven't appeared to manifest themselves (yet). Submitted by: John Dyson
* Incorporated post 1.1.5 work from John Dyson. This includes performancedg1994-08-062-34/+45
| | | | | | | | | improvements via the new routines pmap_qenter/pmap_qremove and pmap_kenter/ pmap_kremove. These routine allow fast mapping of pages for those architectures that have "normal" MMUs. Also included is a fix to the pageout daemon to properly check a queue end condition. Submitted by: John Dyson
* Implemented support for the "ps_strings" structure (grrrr...) for use indg1994-08-061-3/+19
| | | | the userland library libkvm.
* Process scheduling changes - adapted from FreeBSD 1.1.5. Basically,dg1994-08-062-2/+12
| | | | | | | | charge scheduling CPU of child process to the parent and have child inherit scheduling CPU from parent on fork. Makes a **big** difference in the feel of the system to interactive users. Submitted by: John Dyson
* Fixed bug that would cause free memory reserves to be depleted and cause adg1994-08-041-1/+5
| | | | | panic in some cases. Submitted by: John Dyson
* Added $Id$dg1994-08-0265-2/+77
|
* Removed all code related to the pagescan daemon, and changed 'act_count'dg1994-08-012-18/+5
| | | | adjustments to compensate for a world without the pagescan daemon.
* Allow for output processing routine to handle entire character bufferdg1994-08-011-2/+4
| | | | | | and thus not require a sleep/wakeup. Reviewed by: Submitted by:
* This commit was generated by cvs2svn to compensate for changes in r1802,phk1994-07-241-0/+310
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Reviewed by: phkphk1994-07-241-0/+310
| | | | | | | Imported libmd. This library contains MD2, MD4 and MD5. These three boggers pop up all over the place all of the time, so I decided we needed a library with them. In general they are used for security checks, so if you use them you want to link them static.
OpenPOWER on IntegriCloud