NetBSD/sys/compat
thorpej 80cc38a1af Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.
2001-06-14 20:32:41 +00:00
..
aout use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
aoutm68k use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
common Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
freebsd use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
hpux Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ibcs2 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
m68k4k
netbsd32 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
osf1 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ossaudio Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
pecoff Add support to mmap .bss section. 2001-01-15 17:05:32 +00:00
sunos Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
sunos32 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4_32 Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ultrix Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
vax1k eliminate the KERN_* error codes in favor of the traditional E* codes. 2001-03-15 06:10:32 +00:00
Makefile Our INCSDIR has been pruned from distrib/sets, so don't make it any more. 2001-03-30 12:42:30 +00:00