home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / solaris / 293 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  3.7 KB

  1. Xref: sparky comp.unix.solaris:293 comp.unix.bsd:8742
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  4. Newsgroups: comp.unix.solaris,comp.unix.bsd
  5. Subject: Re: Solaris 1.1 vs. Solaris 2.0 (BSD vs AT&T)
  6. Message-ID: <15433@auspex-gw.auspex.com>
  7. Date: 11 Nov 92 20:07:15 GMT
  8. References: <kzin.721442926@cc.gatech.edu>
  9. Sender: news@auspex-gw.auspex.com
  10. Followup-To: comp.unix.solaris
  11. Organization: Auspex Systems, Santa Clara
  12. Lines: 82
  13. Nntp-Posting-Host: auspex.auspex.com
  14.  
  15. >     I'm getting ready to buy a workstation..and I'm basically looking
  16. >at a used SS2, a new IPX, or a new SparcClassic.  The advantage of the
  17. >first two, is that they run SunOS 4... unfortunately, the Classic only
  18. >runs Solaris 2.  The reason I feel this is unfortunate, is that I very
  19. >much prefer the BSD programming model.
  20.  
  21. Please define "the BSD programming model".
  22.  
  23. > I mean.. if I have a program that uses bsd kernel calls (ioctl and fcntl
  24. > type things),
  25.  
  26. "ioctl()" and "fcntl()" are both AT&T inventions; presumably you're
  27. referring to *particular* "ioctl()" and "fcntl()" calls?
  28.  
  29. > will it compile under Solaris 2.0? or will I have to re-write it around
  30. > the AT&T type programming model?
  31.  
  32. It depends on the "ioctl()" and "fcntl()" calls you're making.
  33.  
  34. SVR4 picked up the SunOS "ttcompat" STREAMS module, which means that if
  35. it's been pushed onto the stream for a tty (which it should be, in
  36. SVR4), both the traditional V7/BSD terminal "ioctl"s, and the new-style
  37. SV "ioctl"s, should work.  (Note, BTW, that 4.3-reno and later BSD
  38. releases have tty "ioctl"s that look a lot more like SV's than like
  39. those of older BSD's....)
  40.  
  41. Most "fcntl()" calls came from System III, originally, so the ones that
  42. BSD picked up from there should work mostly the same.  The ones to turn
  43. non-blocking I/O are different (Berkeley screwed up when they picked
  44. those up; they made them work differently - although POSIX 1003.1 says,
  45. as I remember, "don't do that", so later BSD's will have more
  46. S3/SV-style versions of those), and the ones to do "asynchronous I/O"
  47. (i.e., SIGIO) don't exist in SVR4.  They may have been added to Solaris
  48. 2.0, though.
  49.  
  50. >Does Solaris have BSD Sockets of both the Unix and Internet types?
  51.  
  52. At least according to my copy of "UNIX(R) System V Release 4
  53. Programmer's Guide: Networking Interfaces", SVR4 has socket support for
  54. UNIX-domain and Internet sockets.  It also claims to support the
  55. "ioctl"s mentioned in the SunOS SOCKIO(4) manual page, although it
  56. doesn't mention all the other socket "ioctl"s.
  57.  
  58. >I imagine since it's AT&T it will have shared memory.
  59.  
  60. SVR4 has both traditional SV-style shared memory *and* "mmap()" - but
  61. then, so does SunOS 4.x.
  62.  
  63. >Does it have the "dump" utility?
  64.  
  65. SVR4 has "ufsdump" for the BSD file system; they renamed it from "dump".
  66.  
  67. >Are the utilities mostly AT&T, or does it preserve the BSD like
  68. >utilities of SunOS?
  69.  
  70. Many of the SunOS utilities are actually the result of merging the SV
  71. and BSD versions.  To which particular utilities are you referring?
  72.  
  73. >(ie. if
  74. >I want a version of ps that has bsd options instead of at&t options,
  75. >can I get one that will run on solaris 2.0?)
  76.  
  77. Yes.  Take a look at "/usr/ucb/ps":
  78.  
  79.   Sun Microsystems Inc.   SunOS 5.0       fcs     June 1992
  80.   sloth% /usr/ucb/ps ax
  81.      PID  PPID TT       S  TIME SIZE  RSS COMMAND
  82.        0     0 ?        T  0:08 sched
  83.        1     0 ?        S  7:14 /etc/init -
  84.        2     0 ?        S  0:00 pageout
  85.        3     0 ?        S 312:59 fsflush
  86.      210     1 ?        S  0:43 /usr/lib/saf/sac -t 300
  87.  
  88.     ...
  89.  
  90. A bit broken (the "SIZE" and "RSS" column headings don't belong there),
  91. and the "TT" column is wider, but very similar to the BSD one.
  92.               
  93. >(also, in that last question, can I get a copy of dump that runs on
  94. >solaris 2.0?)
  95.  
  96. See above.
  97.