NetBSD/sys/compat/ibcs2
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
..
Makefile
TODO Added support for ibcs2_sigcode. 1998-03-05 04:36:07 +00:00
files.ibcs2 put executable format specific code from ibcs2_exec.c to separate 2000-12-01 19:17:41 +00:00
ibcs2_dirent.h
ibcs2_errno.c constify 2001-01-18 20:28:15 +00:00
ibcs2_errno.h constify 2001-01-18 20:28:15 +00:00
ibcs2_exec.c Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that 2001-05-07 09:55:12 +00:00
ibcs2_exec.h restructure struct emul and execsw, in preparation to make emulations LKMable: 2000-11-21 00:37:49 +00:00
ibcs2_exec_coff.c put executable format specific code from ibcs2_exec.c to separate 2000-12-01 19:17:41 +00:00
ibcs2_exec_elf32.c put executable format specific code from ibcs2_exec.c to separate 2000-12-01 19:17:41 +00:00
ibcs2_exec_xout.c put executable format specific code from ibcs2_exec.c to separate 2000-12-01 19:17:41 +00:00
ibcs2_fcntl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ibcs2_fcntl.h
ibcs2_grp.h
ibcs2_ioctl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ibcs2_ipc.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
ibcs2_misc.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
ibcs2_mman.h iBCS2 code cleanup 1998-02-09 02:30:42 +00:00
ibcs2_mount.h
ibcs2_pwd.h
ibcs2_signal.c constify 2001-01-18 20:28:15 +00:00
ibcs2_signal.h constify 2001-01-18 20:28:15 +00:00
ibcs2_socksys.c Kill register declarations. 2000-03-30 11:24:16 +00:00
ibcs2_socksys.h
ibcs2_stat.c add e_path (emulation path) to struct emul, which replaces emulation-specific 2000-12-01 12:28:30 +00:00
ibcs2_stat.h Fix IBCS2_S_IFWGRP 2000-08-17 15:16:01 +00:00
ibcs2_statfs.h Added support for ibcs2_sigcode. 1998-03-05 04:36:07 +00:00
ibcs2_stropts.h
ibcs2_syscall.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
ibcs2_syscallargs.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
ibcs2_syscalls.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
ibcs2_sysent.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
ibcs2_sysi86.h iBCS2 code cleanup 1998-02-09 02:30:42 +00:00
ibcs2_termios.h Add ibcs2_sys_gtty. 2000-08-11 22:20:10 +00:00
ibcs2_time.h
ibcs2_timeb.h
ibcs2_types.h
ibcs2_unistd.h
ibcs2_ustat.h
ibcs2_util.h add e_path (emulation path) to struct emul, which replaces emulation-specific 2000-12-01 12:28:30 +00:00
ibcs2_utime.h
ibcs2_utsname.h iBCS2 code cleanup 1998-02-09 02:30:42 +00:00
ibcs2_wait.h
syscalls.conf Round up sysent table size. 2000-12-11 03:06:49 +00:00
syscalls.master use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00