NetBSD/sys/compat/linux/common
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
..
linux_blkio.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_blkio.h No-op commit to force update to a non-"-kk" revision. 2001-01-18 17:47:58 +00:00
linux_break.c
linux_cdrom.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_cdrom.h Add some ioctls for harddisk, floppy disk and console handling. 2000-12-10 14:12:16 +00:00
linux_dirent.h
linux_emuldata.h Fixed brk() emulation. We now keep track of the processes' idea of the 2001-03-15 19:18:20 +00:00
linux_errno.c Moved the fix for negative errno returned to userland on the PowerPC to a 2001-02-11 20:24:49 +00:00
linux_errno.h Added Linux errno mapping for powerpc 2001-01-19 12:27:13 +00:00
linux_exec_aout.c put linux_sys_uselib() to separate file linux_uselib.c 2000-12-01 13:49:35 +00:00
linux_exec_elf32.c Added a linux_atexit_signature to match Linux statically linked ELF binaries. It 2001-01-19 01:43:31 +00:00
linux_exec_elf64.c
linux_exec.c Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that 2001-05-07 09:55:12 +00:00
linux_exec.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_fcntl.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_fdio.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_fdio.h Add some ioctls for harddisk, floppy disk and console handling. 2000-12-10 14:12:16 +00:00
linux_file64.c add linux_sys_truncate64() 2000-12-12 22:24:56 +00:00
linux_file.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_hdio.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_hdio.h Add some ioctls for harddisk, floppy disk and console handling. 2000-12-10 14:12:16 +00:00
linux_ioctl.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_ioctl.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_ipc.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
linux_ipc.h use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
linux_ipccall.c use _KERNEL_OPT. 2001-05-30 11:37:21 +00:00
linux_ipccall.h
linux_llseek.c
linux_machdep.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_misc_notalpha.c split off thread specific stuff from struct sigacts to struct sigctx, leaving 2000-12-22 22:58:52 +00:00
linux_misc.c Fixes by Chuck Silvers to make ptrace PEEKTEXT more 64 bit friendy 2001-06-04 07:44:39 +00:00
linux_misc.h Implement sysinfo. 2000-12-13 21:41:23 +00:00
linux_mmap.h Cosmetic fix to move powerpc from "guesses" to "know values" 2001-01-19 12:35:47 +00:00
linux_msg.h
linux_oldmmap.c Avoid sign extension problem in offset. 2000-12-29 20:08:54 +00:00
linux_oldmmap.h
linux_oldolduname.c Hardcode what the linux uname() calls return (Linux 2.2.5 is the current 2000-12-29 21:07:16 +00:00
linux_oldolduname.h
linux_oldselect.c remove include of <vm/vm.h> 2000-06-29 02:40:37 +00:00
linux_oldselect.h
linux_olduname.c Hardcode what the linux uname() calls return (Linux 2.2.5 is the current 2000-12-29 21:07:16 +00:00
linux_olduname.h
linux_pipe.c remove include of <vm/vm.h> 2000-06-29 02:40:37 +00:00
linux_ptrace.h Enable PowerPC Linux ptrace() emulation 2001-05-22 21:11:54 +00:00
linux_reboot.h Add defines for linux_sys_reboot. 2000-03-18 22:01:02 +00:00
linux_sched.c Make need_resched() take a "struct cpu_info *" argument. This 2000-08-25 01:04:06 +00:00
linux_sched.h
linux_sem.h
linux_shm.h
linux_sig_notalpha.c Kill register declarations. 2000-03-30 11:24:16 +00:00
linux_sigaction.c Pretend to do something useful (just fill in oldsigaction with SIG_IGN and 2000-08-09 20:20:49 +00:00
linux_siginfo.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_signal.c constify 2001-01-18 20:28:15 +00:00
linux_signal.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_socket.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_socket.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_socketcall.c
linux_socketcall.h
linux_sockio.h Add SIOCGIFBR and SIOCSIFBR (more for reference than anything, currently). 2000-12-22 11:24:43 +00:00
linux_termios.c Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
linux_termios.h Moved architecure dependent part of struct linux_termio to architecture 2001-01-20 18:56:41 +00:00
linux_time.c This file is not used on alpha, and it causes some warning that break the 2001-05-15 20:35:02 +00:00
linux_types.h Added Linux compatibility support for powerpc ports 2001-01-19 01:40:38 +00:00
linux_uselib.c define EXEC_AOUT (if not defined) before including linux_syscallargs.h, 2000-12-12 17:52:56 +00:00
linux_util.h add e_path (emulation path) to struct emul, which replaces emulation-specific 2000-12-01 12:28:30 +00:00