NetBSD/sys/compat/sunos32
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.sunos32 initial support for sunos binaries running on a 64 bit sparc64 kernel. 2001-02-02 07:28:54 +00:00
Makefile initial support for sunos binaries running on a 64 bit sparc64 kernel. 2001-02-02 07:28:54 +00:00
sunos32_dirent.h add from NetBSD Id. 2001-02-06 15:39:38 +00:00
sunos32_exec_aout.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32_exec.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32_exec.h header is struct netbsd32_exec 2001-02-08 12:32:41 +00:00
sunos32_ioctl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
sunos32_misc.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
sunos32_syscall.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32_syscallargs.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32_syscalls.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32_sysent.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
sunos32.h initial support for sunos binaries running on a 64 bit sparc64 kernel. 2001-02-02 07:28:54 +00:00
syscalls.conf initial support for sunos binaries running on a 64 bit sparc64 kernel. 2001-02-02 07:28:54 +00:00
syscalls.master use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00