NetBSD/sys/compat/irix
manu 23f31f2a3a First implementation of IRIX /dev/usemaclone functionnalities. This
successfully emulates a few test program that use poll semaphores,
including the attach-to-file-descriptor-and-select feature.

There are a few issues:
1) at least one ioctl need to set retval. We handle this in irix_sys_ioctl()
by replacing the data argument by a pointer to a strucutre in the stackgap
that carries the real data and retval. The underlying ioctl methods can
therefore retreive both data and retval.

2) usemaclone is a cloning device: each time it is open, it creates a new
context, and ioctl operation on each open file descriptor will lead to
different behavior. This functionnality is available in NetBSD through the
devvp branch. This first implementation does not use devvp yet, but this
should be done later. Currently, we create a new vnode, and we provide our
own vnode operations. Some operation are applied to the cloned vnode, others
are applied to the original vnode. The v_data field is used to hold a
reference to the original vnode so that we can work on it.

3) at least the setattr vnode operation needs some customisation: IRIX
libc relies on the fact that fchmod on /dev/usema will return 0 in case
of failure.
2002-05-22 05:14:00 +00:00
..
files.irix Added a void framework for usync_cntl(), which is another undocumented IRIX 2002-04-29 14:40:23 +00:00
irix_dirent.c Fixed a bug in getdents64 emulation: we used a struct irix_dirent to hold 2002-03-09 13:32:12 +00:00
irix_errno.c
irix_errno.h
irix_exec_elf32.c
irix_exec.c The IRIX usinit(3) function expects a page of memory to be available at 2002-04-20 16:19:22 +00:00
irix_exec.h The IRIX usinit(3) function expects a page of memory to be available at 2002-04-20 16:19:22 +00:00
irix_fcntl.c First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_fcntl.h Added IRIX fcntl(F_GETBSDLK) and fcntl(F_GETBSDLKW) 2002-04-02 19:58:38 +00:00
irix_ioctl.c First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_ioctl.h First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_kmem.c Added support for IRIX kernel var emulation in kmem (not functionnal yet) 2002-03-25 18:43:59 +00:00
irix_kmem.h Added the IRIX /dev/kmem emulation pseudodevice driver 2002-03-15 17:21:26 +00:00
irix_misc.c Added missing irix_misc.c 2002-04-20 07:42:32 +00:00
irix_mman.c - We now use irix_sys_mmap instead of svr4_sys_mmap 2002-04-22 05:58:46 +00:00
irix_mman.h - We now use irix_sys_mmap instead of svr4_sys_mmap 2002-04-22 05:58:46 +00:00
irix_mount.c make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * 2002-03-16 20:43:48 +00:00
irix_prctl.c Added GETSHMASK command to prctl(). This is incomplete, we do not really 2002-05-02 17:17:29 +00:00
irix_prctl.h Implements IRIX sproc(2) and friends. 2002-04-28 17:21:58 +00:00
irix_signal.c IRIX provide a signal trampoline in libc, we now use it. 2002-04-14 21:50:49 +00:00
irix_signal.h IRIX provide a signal trampoline in libc, we now use it. 2002-04-14 21:50:49 +00:00
irix_stat.c make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * 2002-03-16 20:43:48 +00:00
irix_swap.c Added proper locks when calling uvm_swap_stats() 2002-03-29 09:06:54 +00:00
irix_swap.h - now reports accurate swap object size with swapctl(SWAP_STATS) 2002-03-28 13:14:42 +00:00
irix_syscall.h First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_syscallargs.h bug for bug emulation of IRIX: on some device, including 2002-05-04 07:45:05 +00:00
irix_syscalls.c First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_sysent.c First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_sysmp.c Fixed functions to get the number of CPU in sysmp() and systeminfo(). The 2002-04-20 21:25:01 +00:00
irix_sysmp.h Added support for sysmp system accounting structures. Only real memory info 2002-03-26 10:54:40 +00:00
irix_syssgi.c One more unsupported feature: SGI_SATCTL 2002-04-20 07:43:35 +00:00
irix_syssgi.h Added syssgi(PATHCONF), which implements pathconf(2), and syssgi(SETPGID) 2002-03-25 20:42:50 +00:00
irix_systeminfo.c Fixed functions to get the number of CPU in sysmp() and systeminfo(). The 2002-04-20 21:25:01 +00:00
irix_types.h Added enough of swaptcl() command emulation to get swap -l working. This 2002-03-16 13:29:42 +00:00
irix_usema.c First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_usema.h First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
irix_usync.c Added a void framework for usync_cntl(), which is another undocumented IRIX 2002-04-29 14:40:23 +00:00
irix_usync.h Added a void framework for usync_cntl(), which is another undocumented IRIX 2002-04-29 14:40:23 +00:00
Makefile
syscalls.conf
syscalls.master First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00