NetBSD/sys/compat
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
..
aout Regen. 2002-05-03 00:22:16 +00:00
aoutm68k Regen. 2002-05-03 00:22:16 +00:00
common build the netbsd32_compat* objects into libcompat.a, so they are available 2002-04-29 09:53:39 +00:00
freebsd Regen. 2002-05-03 00:22:16 +00:00
hpux make signal array handling uniform, and put signal arrays in a separate 2002-03-31 22:22:43 +00:00
ibcs2 make signal array handling uniform, and put signal arrays in a separate 2002-03-31 22:22:43 +00:00
irix First implementation of IRIX /dev/usemaclone functionnalities. This 2002-05-22 05:14:00 +00:00
linux linux_sys_getdents64(): remove the oldcall bug workaround cruft, 2002-05-20 06:45:11 +00:00
m68k4k add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
mach Fixed compiler warnings that would occur if DEBUG_MACH was not defined. 2001-12-18 19:43:24 +00:00
netbsd32 Add missing prototype for compat_43_netbsd32_sigsetmask. 2002-05-04 12:54:03 +00:00
osf1 Fix compile problem. 2002-04-08 14:51:29 +00:00
ossaudio Make SNDCTL_DSP_POST a nop. It's explicitly *not* supposed to sleep, and as 2001-12-24 00:10:46 +00:00
pecoff Regen. 2002-05-03 00:22:16 +00:00
sunos make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * 2002-03-16 20:43:48 +00:00
sunos32 Add missing const. 2002-05-05 08:23:03 +00:00
svr4 __LP64__ -> _LP64 2002-05-03 01:34:48 +00:00
svr4_32 make signal array handling uniform, and put signal arrays in a separate 2002-03-31 22:22:43 +00:00
ultrix get rid of STACKGAP* shit. 2002-03-16 23:55:57 +00:00
vax1k add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
Makefile Our INCSDIR has been pruned from distrib/sets, so don't make it any more. 2001-03-30 12:42:30 +00:00