NetBSD/sys/compat/ossaudio
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
..
files.ossaudio config.new => config 1997-07-20 20:33:08 +00:00
ossaudio.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ossaudio.h Make copyright conform. 1999-04-13 20:31:32 +00:00
ossaudiovar.h Implement OSS_GETVERSION. 2000-07-04 09:56:14 +00:00