summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
Commit message (Collapse)AuthorAgeFilesLines
* Modifications to existing files to support the initial AIO/LIO andJohn Dyson1997-06-161-1/+5
| | | | | | | kernel based threading support. Notes: svn path=/head/; revision=26671
* Don't include <sys/ioctl.h> in the kernel. Stage 4: includeBruce Evans1997-03-241-2/+3
| | | | | | | | | | | <sys/ttycom.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h> in miscellaneous files. Most of these files have nothing to do with ttys but need to include <sys/ttycom.h> to get the definitions of TIOC[SG]PGRP which are (ab)used to convert F[SG]ETOWN fcntls into ioctls. Notes: svn path=/head/; revision=24206
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.Bruce Evans1997-03-231-1/+2
| | | | | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all. Notes: svn path=/head/; revision=24131
* Removed `volatile' from declaration of `time', and removed the resultingBruce Evans1997-03-221-2/+2
| | | | | | | | | | | null casts. `time' is nonvolatile for accesses within a region locked by splclock()/splx(). Accesses outside such a region are invalid, and splx() must have the side effect of potentially changing all global variables (since there are hundreds of sort of volatile variables like `time'), so declaring `time' as volatile didn't have any real benefits. Notes: svn path=/head/; revision=24102
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Improved select():Bruce Evans1997-02-201-36/+51
| | | | | | | | | | | | | | | | | | - avoid malloc() if the number of fds is small. - pack the bits better so that `small' is quite large. - don't waste time generating zero bits for null fd_set pointers or scanning these bits. Possibly improved select(): - free malloc()ed storage before returning. This is simpler and I think huge select()s aren't worth optimizing since they are rare, relative gain would be small and there would be tiny costs for all selects(). Reviewed by: ache (first version by him too) Notes: svn path=/head/; revision=22945
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix a minor style error in my code.Sujal Patel1996-08-201-2/+2
| | | | Notes: svn path=/head/; revision=17713
* Remove the kernel FD_SETSIZE limit for select().Sujal Patel1996-08-201-15/+43
| | | | | | | | | Make select()'s first argument 'int' not 'u_int'. Reviewed by: bde Notes: svn path=/head/; revision=17702
* Converted two options over to the new scheme: USER_LDT and KTRACE.Garrett Wollman1996-01-031-1/+3
| | | | Notes: svn path=/head/; revision=13203
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-4/+5
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* Included <sys/sysproto.h> to get central declarations for syscall argsBruce Evans1995-11-121-1/+14
| | | | | | | | | | | | | structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that. Notes: svn path=/head/; revision=12221
* Fixed the type of readv(). An args struct member name conflicted with theBruce Evans1995-11-111-5/+5
| | | | | | | machine-generated one in <sys/sysproto.h>. Notes: svn path=/head/; revision=12208
* Remove the ugly COMPAT_IBCS2 hack to hide a return value throughSteven Wallace1995-10-101-29/+1
| | | | | | | | | magic numbers. The new socksys support does not need this hack. I am against any magic practicing. Notes: svn path=/head/; revision=11400
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8876
* Backed out previous change - it reduces performance. (oops).David Greenman1995-04-131-2/+4
| | | | Notes: svn path=/head/; revision=7804
* Slight optimization to select().David Greenman1995-04-131-4/+2
| | | | Notes: svn path=/head/; revision=7801
* Damn, check in the wrong version, fixed.Søren Schmidt1994-10-131-3/+3
| | | | | | | | | Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=3570
* Made it possible for ioctl to return a value.Søren Schmidt1994-10-131-1/+29
| | | | | | | | Ifdef by COMPAT_IBCS2 (used by the socksys system). Submitted by: Mostyn Lewis (mostyn@mrl.com) Notes: svn path=/head/; revision=3568
* Cosmetics. related to getting prototypes into view.Poul-Henning Kamp1994-10-101-1/+3
| | | | Notes: svn path=/head/; revision=3485
* All of this is cosmetic. prototypes, #includes, printfs and so on. MakesPoul-Henning Kamp1994-10-021-1/+4
| | | | | | | GCC a lot more silent. Notes: svn path=/head/; revision=3308
* While in the real world, I had a bad case of being swapped out for a lot ofPoul-Henning Kamp1994-09-251-11/+10
| | | | | | | | | | | cycles. While waiting there I added a lot of the extra ()'s I have, (I have never used LISP to any extent). So I compiled the kernel with -Wall and shut up a lot of "suggest you add ()'s", removed a bunch of unused var's and added a couple of declarations here and there. Having a lap-top is highly recommended. My kernel still runs, yell at me if you kernel breaks. Notes: svn path=/head/; revision=3098
* Whoops, accidently left out some pieces of the munmapfd patch.David Greenman1994-09-021-1/+2
| | | | Notes: svn path=/head/; revision=2462
* Make sure that uio_resid isn't negative in read().David Greenman1994-09-021-1/+5
| | | | Notes: svn path=/head/; revision=2461
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.Rodney W. Grimes1994-05-251-8/+9
| | | | | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=1549
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+683
Notes: svn path=/head/; revision=1541