home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10707 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.6 KB  |  58 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: 386bsd and AT&T SVR4 compatibility
  5. Message-ID: <1992Dec28.224810.8500@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1992Dec22.121831.4481@ghost.dsi.unimi.it> <111@knobel.GUN.de>
  9. Date: Mon, 28 Dec 92 22:48:10 GMT
  10. Lines: 46
  11.  
  12. In article <111@knobel.GUN.de> andreas@knobel.GUN.de (Andreas Klemm) writes:
  13. >In <1992Dec22.121831.4481@ghost.dsi.unimi.it> marelli@ghost.dsi.unimi.it (Paolo Marelli) writes:
  14. >
  15. >| I'm very interested in obtain some information about
  16. >| compatibility between 386bsd an AT&T SVR4 or similar
  17. >| unix version like Consensys.
  18. >
  19. >| Do the excutables use the same format ?
  20. >
  21. >System V Rel.: 4    ELF-format
  22. >            supports COFF as well
  23. >
  24. >386bsd:            a.out format.
  25. >
  26. >No way to exchange binaries between 386bsd and traditional SYSV Systems.
  27.  
  28. One fairly easy way to do this at some time in the future is to modify
  29. the loader to recognize the magic numbers from ELF/COFF binaries (and
  30. x.out, if we want xenix compatability) and index the system calls out
  31. of a pointer in the proc struct for the current process rather than
  32. out of a single system-wide array.  The kern_exec would be altered to
  33. set the pointer appropriately based on the magic number; then the only
  34. remaining exercise is to make sure there are emulation system calls
  35. which act as expected for each set of system calls supported (in many
  36. cases, no changes would be directly necessary).  A particular sticking
  37. point may be things like parameters to ioctl's if the numbers do not
  38. match between the target system being emulated and BSD.  In particular,
  39. anything doing device I/O which depends on baud rates or terminal
  40. settings would require an "emulation" module based on the constants
  41. from the target systems header files.
  42.  
  43. But this is definitely doable, and is probably worthwhile in the long
  44. run, since it will yield an existing commercial software base.
  45.  
  46.  
  47.                     Terry Lambert
  48.                     terry@icarus.weber.edu
  49.                     terry_lambert@novell.com
  50. ---
  51. Any opinions in this posting are my own and not those of my present
  52. or previous employers.
  53. -- 
  54. -------------------------------------------------------------------------------
  55.                                         "I have an 8 user poetic license" - me
  56.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  57. -------------------------------------------------------------------------------
  58.