NetBSD/sys/compat/svr4
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.svr4 Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
Makefile
svr4_acl.h
svr4_dirent.h
svr4_errno.c make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
svr4_errno.h make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
svr4_exec_elf32.c put elf32 specific code from svr4_exec.c to separate file svr4_exec_elf32.c 2000-12-01 19:26:26 +00:00
svr4_exec_elf64.c Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
svr4_exec.c Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that 2001-05-07 09:55:12 +00:00
svr4_exec.h Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
svr4_fcntl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4_fcntl.h Don't play silly games with O_NON_BLOCK vs O_NDELAY. 1999-01-23 23:38:02 +00:00
svr4_filio.c oops, forgot to include new files. 1999-09-07 18:20:18 +00:00
svr4_filio.h
svr4_fuser.h
svr4_hrt.h
svr4_ioctl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4_ioctl.h
svr4_ipc.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
svr4_ipc.h
svr4_lwp.c Back out the suspendsched()/resumesched() thing, per request of Jason Thorpe & 2000-09-05 16:20:27 +00:00
svr4_lwp.h preliminary lwp support; currently staroffice breaks because set_ldt emulation 1999-09-07 06:24:56 +00:00
svr4_misc.c Fix overflow errors in brk(2). 2001-05-06 04:32:08 +00:00
svr4_mman.h Nuke my copyrights and/or assign them to TNF where appropriate. 1999-04-06 02:55:24 +00:00
svr4_net.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4_resource.c Kill register declarations. 2000-03-30 11:24:16 +00:00
svr4_resource.h Deal with {get,set}rlimit{,64} properly, respecting the RLIM_INFINITY, 1998-11-28 21:53:02 +00:00
svr4_siginfo.h
svr4_signal.c make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
svr4_signal.h make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
svr4_socket.c oops, forgot to include new files. 1999-09-07 18:20:18 +00:00
svr4_socket.h
svr4_sockio.c make this compile with -DDEBUG_SVR4 [lossage because sizeof is u_long now] 2000-04-12 15:12:13 +00:00
svr4_sockio.h
svr4_sockmod.h
svr4_stat.c Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
svr4_stat.h Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
svr4_statvfs.h
svr4_stream.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
svr4_stropts.h Fix confusion about about service types (from FreeBSD). Now dns resolution 1998-10-03 22:03:07 +00:00
svr4_syscall.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
svr4_syscallargs.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
svr4_syscalls.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
svr4_sysconfig.h Follow the unused convention. 2000-04-09 22:40:11 +00:00
svr4_sysent.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
svr4_systeminfo.h Add some IRIX constants. 2000-04-09 01:09:59 +00:00
svr4_termios.c oops, forgot to include new files. 1999-09-07 18:20:18 +00:00
svr4_termios.h
svr4_time.h
svr4_timod.h Add a few more constants. 1998-11-25 15:47:51 +00:00
svr4_ttold.c oops, forgot to include new files. 1999-09-07 18:20:18 +00:00
svr4_ttold.h
svr4_types.h Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
svr4_ucontext.h Only declare the uc_pad member if SVR4_UC_MACHINE_PAD is defined. 1999-01-26 18:41:03 +00:00
svr4_ulimit.h
svr4_ustat.h
svr4_util.h add e_path (emulation path) to struct emul, which replaces emulation-specific 2000-12-01 12:28:30 +00:00
svr4_utsname.h
svr4_wait.h
syscalls.conf Round up the sysent table size. 2000-12-09 06:15:42 +00:00
syscalls.master use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00