Subject: LWP call emulation in COMPAT_SVR4
To: None <port-sparc@NetBSD.ORG>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 09/13/1996 16:45:38
I'm running -current as of yesterday.  Just for fun, I tried testing out some
Solaris binaries under COMPAT_SVR4 (I think we need a compat_svr4(8), guys).
After figuring out that I needed a zillion Solaris libraries under /emul/svr4,
I decided to get cute and try out PhotoShop.  It dies thusly:

  1432 AdobePhotoshop3. CALL  #164 (unimplemented lwp_self)
  1432 AdobePhotoshop3. PSIG  SIGSYS SIG_DFL
  1432 AdobePhotoshop3. NAMI  "AdobePhotoshop3..core"

Looking at the Solaris <sys/syscall.h>, I see a whole mess of system calls
which are unimplemented in NetBSD's /usr/src/sys/compat/svr4/svr4_syscall.h.
#164 is part of a whole mess of unimplemented _lwp_* Solaris calls.

Any chance of getting some of the additional ones emulated?  More specifically
should PhotoShop be thrown into the "Uses light-weight processes, forget it"
pile?  Any chance the _lwp_* calls could be emulated as wrappers around NetBSD
pthreads calls?  Oh wait, I guess there's no SPARC pthreads library yet ...
crap ...

(While I'm asking, will there ever be a /usr/src/lib/libpthread/arch/sparc
 with machdep.c et al.?)

	- Greg