home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4865 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  62.0 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!lhc!adm!news
  2. From: postmaster@starlab.csc.com (SMTP MAILER)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Mail not delivered yet, still trying
  5. Message-ID: <34232@adm.brl.mil>
  6. Date: 23 Nov 92 22:15:07 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 1716
  9.  
  10.  
  11.  ----Mail status follows----
  12. Have been unable to send your mail to <DGRAY@STARLAB.CSC.COM>,
  13. will keep trying for a total of eight days.
  14. At that time your mail will be returned.
  15.  
  16.  ----Transcript of message follows----
  17. Date: 22 Nov 92 09:14:00 EST
  18. From: UNIX-WIZARDS@BRL.MIL
  19. Subject: UNIX-WIZARDS Digest  V17#001
  20. To: "DGRAY" <DGRAY@STARLAB.CSC.COM>
  21.  
  22. Return-Path: <unix-wizards-request@sem.brl.mil>
  23. Received: from SEM.BRL.MIL by milo.starlab.csc.com with SMTP ; 
  24.           Sun, 22 Nov 92 09:13:04 EST
  25. Received: from SEM.BRL.MIL by SEM.BRL.MIL id ab25264; 21 Nov 92 7:28 EST
  26. Received: from sem.brl.mil by SEM.BRL.MIL id aa25212; 21 Nov 92 7:15 EST
  27. Date:       Sat, 21 Nov 92 07:14:45 EST
  28. From:       The Moderator (Mike Muuss) <Unix-Wizards-Request@BRL.MIL>
  29. To:         UNIX-WIZARDS@BRL.MIL
  30. Reply-To:   UNIX-WIZARDS@BRL.MIL
  31. Subject:    UNIX-WIZARDS Digest  V17#001
  32. Message-ID:  <9211210715.aa25212@SEM.BRL.MIL>
  33.  
  34. UNIX-WIZARDS Digest          Sat, 21 Nov 1992              V17#001
  35.  
  36. Today's Topics:
  37.                         TLI and non-blocking I/O
  38.                  Re: Detecting if running under chroot
  39.               Broadcast detection from the socket layer ?
  40.                          The Problem with UNIX
  41.                        Re: The Problem with UNIX
  42.       An FTP site to get the latest GCC Compiler for DOS - PLEASE!
  43.                             Re: SUN NFS sync
  44.                                  RPCGEN
  45.                                Re: RPCGEN
  46.                        Keyboard hit in C programs
  47.                      Re: Keyboard hit in C programs
  48.            Re: Process 'purge' revisited.. Unix missing this?
  49.      Re: Q: Proper client/server protocol w.r.t. socket read/writes
  50.                           Re: termcap/terminfo
  51.          >>TAR file on tape distroyed, are files recoverable?<<
  52.                      Need a raw ethernet interface
  53.                      applications using p-threads!!
  54.                    ISC 3.0 Terminfo database question
  55.                    HELP! problem with tar PC <-> SUN
  56.                         ksh argument interpreter
  57.                                libg++2.2
  58.                        Need help with "makefile"
  59.                  Any TeX (compilation) Gurus out there?
  60.                   Solaris 2.0/2.1 Realtime programming
  61.                            Getty Source Code
  62.  
  63. -----------------------------------------------------------------
  64.  
  65. From: Paul Greenspan <paul@tivoli.uucp>
  66. Subject: TLI and non-blocking I/O
  67. Keywords: TLI, SVR4, non_blocking
  68. Date: 7 Nov 92 17:19:03 GMT
  69. Followup-To: comp.protocols.tcp-ip
  70. To:       unix-wizards@sem.brl.mil
  71.  
  72. Below is a description of a problem that we are having with some of
  73. our network code.  I would appreciate any help that I could get.  
  74.  
  75. Background:
  76.  -----------
  77. We have taken a rather complicated server that was developed with BSD 
  78. sockets and converted it to use TLI.  The server has to handle many 
  79. things at once (with threads) so it is important that we use non-blocking 
  80. endpoints.  So to avoid blocking on a t_listen() call waiting 
  81. for a connection request, we wait for poll() to tell us that 
  82. there is a connection request and then try to call t_listen().
  83.  
  84. Here is a description of the behavior of some of our TLI code, as
  85. executed under SVR4.0.3:
  86.  
  87. [SERVER]
  88. 1. The server calls t_open(DEV_TCP, O_RDWR, 0).
  89. 2. The server calls ioctl(tfd, FIONBIO, &non_blocking) 
  90.    to set the TLI endpoint into non-blocking mode.
  91. 3. The server calls t_bind(tfd, &req, &ret) to offer 
  92.    a channel to clients. The bound address is selected 
  93.    by the transport provider (req.addr.len is 0) and 
  94.    gets recorded so clients can be told on what address 
  95.    to t_connect.
  96. 4. The server calls poll() to wait for connection requests.
  97.  
  98.             [CLIENT]
  99.             5. A client initiates a connection request by first 
  100.                calling t_open(DEV_TCP, O_RDWR, 0).
  101.             6. The client then calls t_bind(tfd, 0, 0)
  102.             7. The client calls t_connect(tfd, connreq, 0), where
  103.                connreq has been t_alloc'd, then set up with the 
  104.                correct address, no options, and no user data.
  105.  
  106.                NOTE: The client's t_connect will later appear to 
  107.                succeed. (Weird.)
  108.  
  109. [SERVER]
  110. 8. The server is notified of the connection request
  111.    by poll(). t_look(tfd) returns T_LISTEN (1).
  112. 9. The server calls t_listen(tfd, callptr), where 
  113.    callptr has been t_alloc'd but otherwise left alone. 
  114.    This call fails, returning -1. t_errno is 
  115.    TNOTSUPPORT (18).
  116.  
  117.             [CLIENT]
  118.             5.  A client initiates a connection request by first 
  119.                 calling t_open(DEV_TCP, O_RDWR, 0).
  120.             10. Here's the weird part. The client's t_connect 
  121.                 call now returns and indicates all is well. 
  122.                 So the client code keeps going.
  123.             11. The client calls ioctl(tfd, I_POP, 0)
  124.             12. The client calls ioctl(tfd, I_PUSH, "tirdwr")
  125.             13. The client calls write(tfd, buf, sizeof(u_long)).
  126.                 This succeeds!
  127.             14. The client calls read(tfd, buf, sizeof(u_long)). 
  128.                 This is where the client finally sees something 
  129.                 is wrong, as the read call returns 0.
  130.  
  131. -- 
  132. Paul Greenspan              paul@tivoli.com 
  133. Tivoli Systems              6034 West Courtyard, Suite 210
  134. Austin, Texas  78730        (512) 794-9070  /  FAX (512) 794-0623
  135.  
  136. -----------------------------
  137.  
  138. From: Lionel Cons <cons@mercury.cern.ch>
  139. Subject: Re: Detecting if running under chroot
  140. Date: 9 Nov 92 09:04:04 GMT
  141. Sender: USENET News System <news@dxcern.cern.ch>
  142. To:       unix-wizards@sem.brl.mil
  143.  
  144. I know a way to see if I run under chroot on my OS (HP-UX) and I think
  145. it should work on many different platforms: the inode number of / is
  146. always 2, so 'ls -id' will tell me...
  147. --
  148.  
  149. Lionel Cons
  150.  
  151. +------- CERN - European Laboratory for Particle Physics -------+
  152. | E-mail: cons@dxcern.cern.ch                                   |
  153. | Earth-mail: CN/SW/WS, CERN, CH-1211 GENEVE 23, Switzerland    |
  154. | Phone: +41 22 767 49 13              Fax: +41 22 767 71 55    |
  155. +---------------------------------------------------------------+
  156.  
  157. -----------------------------
  158.  
  159. From: Oleg Kibirev <oleg@gd.bu.edu>
  160. Subject: Re: Detecting if running under chroot
  161. Date: 9 Nov 92 09:57:47 GMT
  162. Nntp-Posting-Host: gd.cs.csufresno.edu
  163. To:       unix-wizards@sem.brl.mil
  164.  
  165. In article <mark.721121538@coombs> mark@coombs.anu.edu.au (Mark) writes:
  166. >
  167. >I was reading some of the security texts on research.att.com and it mentioned
  168. >that it was possible to detect if one was running under a chroot call.
  169. >
  170. >If the file system is duplicated etc how would you check? Make a massive file
  171. >on the (apparent) root disk (/tmp for instance) and do a 'df' to make sure
  172. >it's the root disk?
  173.  
  174. What about checking i-node number of / ? Just checked a few systems and it appears
  175. to be the same:
  176.  
  177. gd:~> ls -di /
  178.      2 //
  179.  
  180. Of course, this  can miserably fail with  NFS where root  is  actually
  181. /export/root. What is actually checked is weather current root == root
  182. of *some*  filesystem. Why would   program need to   check if  it runs
  183. chrooted?
  184.  
  185. Oleg
  186.  
  187. -----------------------------
  188.  
  189. From: Tim Barnett - programmer <spxtrb@thor.cf.ac.uk>
  190. Subject: Re: Detecting if running under chroot
  191. Date: 10 Nov 92 18:15:28 GMT
  192. Sender: Network News System <news@cm.cf.ac.uk>
  193. X-Mailer: Cardiff Computing Maths PP Mail Open News Gateway
  194. To:       unix-wizards@sem.brl.mil
  195.  
  196. In his article cons@mercury.cern.ch (Lionel Cons) writes:
  197. | I know a way to see if I run under chroot on my OS (HP-UX) and I think
  198. | it should work on many different platforms: the inode number of / is
  199. | always 2, so 'ls -id' will tell me...
  200.  
  201. Close, but no cigar.  'ls -id /' giving inode of 2 just means that the
  202. root directory is the head of a filesystem - not necessarily the head
  203. of the 'true' root filesystem.
  204.  
  205. What you need is a handle on the real root filesystem.  Normally your
  206. controlling terminal was opened on the root filesystem, and stdin is
  207. normally a file descriptor pointing to it, so an fstat() of fileno(stdin)
  208. will reveal an st_dev that should be equal to that of your current /'s
  209. st_dev  (if you are on the 'true' root filesystem).
  210. Now you can can check /'s st_ino to see if it is 2.  Something like:
  211.  
  212. void  main(void) {
  213.     struct stat tty, slash;
  214.     if (-1 != fstat(fileno(stdin),&tty)  &&  -1 != stat("/",&slash))
  215.          if (tty.st_dev == slash.st_dev  &&  slash.st_ino == 2)
  216.             exit(0);     /* Not chroot()ed */
  217.          else exit(1);   /* Am chroot()ed  */
  218.     else exit(127);      /* Error          */
  219. }
  220.  
  221. Note that all bets are off if someone has redirected your stdin  (you should
  222. probably at least check that  tty.st_mode  denotes a character device).
  223.  
  224. I guess this is closer, but there must be a cleaner way.
  225. (Bet I slipped up somewhere - go on, flame me 8)
  226. Tim
  227.  
  228. -----------------------------
  229.  
  230. From: rjan Robertsen <orjanr@staff.cs.uit.no>
  231. Subject: Broadcast detection from the socket layer ?
  232. Keywords: socket, broadcast
  233. Date: 9 Nov 92 09:43:36 GMT
  234. Sender: Orjan Robertsen <orjanr@staff.cs.uit.no>
  235. To:       unix-wizards@sem.brl.mil
  236.  
  237. Hello, wizards
  238.  
  239. I have the following (hopfully not too simple) question(s) for you:
  240.  
  241.     Given access to the socket structure and accompanying information,
  242.     is it possible to determine if a received packet (message) originally
  243.     was sent as a broadcast message ? That is, where/when is the original 
  244.     to adress droped ?
  245.  
  246.     If it's not possible from the socket layer, how far "down" do I
  247.     have to look to find this information, and will it be possible to
  248.     forward this info to the socket layer in any way ?
  249.  
  250. Thanks in advance.
  251. Have a nice day.
  252. -- 
  253. ////      Xrjan W. Robertsen            |e-mail   : orjanr@staff.cs.uit.no////
  254. ///Dept. of Computer Science, University|Home     : +47-83-82897          ///
  255. // of Tromsoe, N-9000 TROMSX, NORWAY    |Phone/Fax: +47-83-44053/44580    //
  256.  
  257. -----------------------------
  258.  
  259. From: "Bryan S. So" <so@brownie.cs.wisc.edu>
  260. Subject: The Problem with UNIX
  261. Date: 9 Nov 92 17:27:15 GMT
  262. Sender: The News <news@cs.wisc.edu>
  263. To:       unix-wizards@sem.brl.mil
  264.  
  265.  
  266. I am doing research on UNIX command line interface problems.
  267. I am sure everyone has his/her favorite UNIX troubles, would
  268. you post or email me what's your favorites?  What should have
  269. been done by UNIX to resolve that problem in general?
  270.  
  271. Does anybody know of excellent papers in this area?  I know 
  272. about Norman's "The Trouble with UNIX".
  273.  
  274. To start the discussion, consider the following problems:
  275.  
  276.     cat a b > b
  277.  
  278.     This is a general problem of trying to modify the input
  279.     file.
  280.  
  281.  
  282.     rm -filename_with_a_hyphen
  283.  
  284.     This is a general problem of name clash (clashing filename
  285.     with command options.)
  286.  
  287.  
  288.     mail somebody < a.out
  289.  
  290.     Sending binary file should be uuencoded first.  This is a
  291.     general type conflict problem.
  292.  
  293.  
  294. Bryan So
  295.  
  296. -----------------------------
  297.  
  298. From: Arlie Davis <aldavi01@terra.spd.louisville.edu>
  299. Subject: Re: The Problem with UNIX
  300. Date: 9 Nov 92 18:26:54 GMT
  301. Sender: Netnews <news@hermes.louisville.edu>
  302. Nntp-Posting-Host: terra.spd.louisville.edu
  303. To:       unix-wizards@sem.brl.mil
  304.  
  305. In comp.unix.misc you write:
  306.  
  307. > I am doing research on UNIX command line interface problems.
  308. > I am sure everyone has his/her favorite UNIX troubles, would
  309. > you post or email me what's your favorites?  What should have
  310. > been done by UNIX to resolve that problem in general?
  311.  
  312. Are you sure you are researching the command line interface?  None of your
  313. examples below seem to suggest so.
  314.  
  315. > Does anybody know of excellent papers in this area?  I know 
  316. > about Norman's "The Trouble with UNIX".
  317.  
  318. > To start the discussion, consider the following problems:
  319.  
  320. >     cat a b > b
  321.  
  322. >     This is a general problem of trying to modify the input
  323. >     file.
  324.  
  325. This has nothing at all to do with the command line interface.  This is simply
  326. an *error* in user semantics.  What should cat do?  Stick in a feedback loop?
  327. No, this is definitely an error on the user's side.
  328.  
  329. >     rm -filename_with_a_hyphen
  330.  
  331. >     This is a general problem of name clash (clashing filename
  332. >     with command options.)
  333.  
  334. True, but it is a trivial one.  *All* UNIX filenames can specified explicitly
  335. with a full pathname (such as "rm /tmp/foo/bar/-filename_with_a_hyphen" or
  336. "rm $PWD/-filename_with_a_hyphen"), or as a relative directory, starting with
  337. the parent directory ".." or the current directory "." (such as
  338. "rm ./-filename_with_a_hyphen").
  339.  
  340. Also, again, this has nothing at all to do with the command line interface,
  341. the "shell".  How programs interpret their argument vector is entirely up
  342. to them.  The shell only passes on what the user types.
  343.  
  344. >     mail somebody < a.out
  345.  
  346. >     Sending binary file should be uuencoded first.  This is a
  347. >     general type conflict problem.
  348.  
  349. Again, this is an error on the *user's* side.  This has nothing to do with the
  350. shell!  Yes, you could create a mail script wrapper that checked the magic cookie
  351. of the file being sent (see file(1)), and uuencoded if necessary.  But this is
  352. completely different from the shell.
  353.  
  354. > Bryan So
  355. -- 
  356. lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
  357.  
  358. -----------------------------
  359.  
  360. From: Dave Schaumann <dave@cs.arizona.edu>
  361. Subject: Re: The Problem with UNIX
  362. Date: 9 Nov 92 21:53:07 GMT
  363. Sender: news@organpipe.uug.arizona.edu
  364. Followup-To: comp.unix.wizards
  365. To:       unix-wizards@sem.brl.mil
  366.  
  367. In article <1992Nov9.172715.16367@cs.wisc.edu>, so@brownie (Bryan S. So) writes:
  368. >I am doing research on UNIX command line interface problems.
  369.  
  370. How about the fact that it is default for mv to overwrite existing files?
  371. It's way too easy to type something like
  372.  
  373.     mv <pattern>
  374.  
  375. where you don't put the destination directory, and pattern just happens
  376. to match two files -- all of a sudden, one of them is wiped out!
  377.  
  378. >    rm -filename_with_a_hyphen
  379.  
  380. Eh.  This is a minor irritation, IMHO.  It's easy enough to avoid file names
  381. that start with a hyphen, and if you know enough to look in the man pages,
  382. it's easy enough to find what to do if you accidently make one.
  383.  
  384. >    mail somebody < a.out
  385. >
  386. >    Sending binary file should be uuencoded first.  This is a
  387. >    general type conflict problem.
  388.  
  389. At best, this is a problem with mail.  At worst, this is trying to make
  390. mail deal with a problem that uuencode already solves nicely.
  391.  
  392. The philosiphy of UNIX should be that utilities should be small and as
  393. orthogonal and non-overlapping as possible.  This does present some
  394. difficulties for the new user, but I think that OS designers need to think
  395. beyond the needs of the new user if the OS is ever going to be useful for
  396. seasoned users.
  397.  
  398. IMHO, that means if someone types "mail sombody < a.out", they are about to
  399. have an opportunity for a learning experience.  :-)  If someone is in the
  400. habit of mailing binary files a lot, and doesn't care to bother running
  401. uuencode all the time, then they have the opportunity for another learning
  402. experience to write a wrapper for mail that automatically uuencodes
  403. stdin when it is redirected to a binary file.
  404.  
  405. -- 
  406. What signature?
  407.  
  408. -----------------------------
  409.  
  410. From: Boyd Roberts <boyd@prl.dec.com>
  411. Subject: Re: The Problem with UNIX
  412. Date: 9 Nov 92 21:57:34 GMT
  413. Sender: USENET News System <news@prl.dec.com>
  414. Nntp-Posting-Host: prl313.prl.dec.com
  415. To:       unix-wizards@sem.brl.mil
  416.  
  417. The real problem, as Rob has so eloquently put it:
  418.  
  419.     ``Not only is UNIX dead, it's starting to smell really bad.''
  420.  
  421.  
  422. Boyd Roberts            boyd@prl.dec.com
  423.  
  424. ``When the going gets wierd, the weird turn pro...''
  425.  
  426. -----------------------------
  427.  
  428. From: Arlie Davis <aldavi01@rigel.spd.louisville.edu>
  429. Subject: Re: The Problem with UNIX
  430. Date: 9 Nov 92 23:20:00 GMT
  431. Sender: Netnews <news@netnews.louisville.edu>
  432. Nntp-Posting-Host: rigel.spd.louisville.edu
  433. To:       unix-wizards@sem.brl.mil
  434.  
  435. In <1992Nov9.215307.11145@organpipe.uug.arizona.edu> dave@cs.arizona.edu (Dave Schaumann) writes:
  436.  
  437. > How about the fact that it is default for mv to overwrite existing files?
  438. > It's way too easy to type something like
  439.  
  440. >     mv <pattern>
  441.  
  442. If you find this peevesome, do this: "alias mv='mv -i'".  It's in the fine
  443. manual pages.
  444.  
  445. -- 
  446. lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
  447.  
  448. -----------------------------
  449.  
  450. From: Jawaid Bazyar <bazyar@teal.csn.org>
  451. Subject: Re: The Problem with UNIX
  452. Date: 10 Nov 92 01:25:44 GMT
  453. Sender: news <news@csn.org>
  454. Nntp-Posting-Host: teal.csn.org
  455. To:       unix-wizards@sem.brl.mil
  456.  
  457. boyd@prl.dec.com (Boyd Roberts) writes:
  458.  
  459. >The real problem, as Rob has so eloquently put it:
  460.  
  461. >    ``Not only is UNIX dead, it's starting to smell really bad.''
  462.  
  463.   Compared to what, oh great OS guru?  Surely not Windows/NT (vapor)
  464. or OS/2 2.0 (IBM rubbish) or MSDOS (not even bones left).
  465.  
  466.   The _real_ problem is that the desktop metaphor has not caught on to
  467. the modular approach that UNIX offers so well.  When I can put together
  468. several simpler desktop type applications as easily as I can pipe
  469. man into troff, then UNIX will be dead; or rather, UNIX will have
  470. evolved to the next stage.  It will still be UNIX.
  471.  
  472. -- 
  473.  Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
  474.  Procyon, Inc.              |   for the Apple IIgs!   
  475.  bazyar@cs.uiuc.edu         |   P.O Box 620334
  476.  --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
  477.  
  478. -----------------------------
  479.  
  480. From: Pyung-Chul Kim <pckim@adam.kaist.ac.kr>
  481. Subject: Re: The Problem with UNIX
  482. Date: 10 Nov 92 02:29:09 GMT
  483. To:       unix-wizards@sem.brl.mil
  484.  
  485. In article <1992Nov9.172715.16367@cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan S. So) writes:
  486. >
  487. >I am doing research on UNIX command line interface problems.
  488. >I am sure everyone has his/her favorite UNIX troubles, would
  489. >you post or email me what's your favorites?  What should have
  490. >been done by UNIX to resolve that problem in general?
  491. >
  492.  
  493. The FAQ of comp.unix.questions, comp.unix.shell might help you.
  494.  
  495. --
  496. Pyung-Chul Kim        Internet: pckim@dbserver.kaist.ac.kr
  497. Dept. of CS, Korea Advanced Inst. of Science and Technology (KAIST)
  498. 373-1 Kusong-dong, Yusong-gu Taejon 305-701, Korea
  499. TEL: +82-42-869-5570    FAX: +82-42-869-3510
  500.  
  501. -----------------------------
  502.  
  503. From: Boyd Roberts <boyd@prl.dec.com>
  504. Subject: Re: The Problem with UNIX
  505. Date: 10 Nov 92 09:44:08 GMT
  506. Sender: USENET News System <news@prl.dec.com>
  507. Nntp-Posting-Host: prl313.prl.dec.com
  508. To:       unix-wizards@sem.brl.mil
  509.  
  510. In article <bazyar.721358744@teal>, bazyar@teal.csn.org (Jawaid Bazyar) writes:
  511. >   Compared to what, oh great OS guru?
  512.  
  513. Compared to Plan 9.
  514.  
  515.  
  516. Boyd Roberts            boyd@prl.dec.com
  517.  
  518. ``Not only is UNIX dead, it's starting to smell really bad.''  -- Rob Pike
  519.  
  520. -----------------------------
  521.  
  522. From: Rich Kulawiec <rsk@gynko.circ.upenn.edu>
  523. Subject: Re: The Problem with UNIX
  524. Date: 10 Nov 92 14:18:06 GMT
  525. Sender: news@NOC2.DCCS.UPENN.EDU
  526. Followup-To: comp.unix.wizards
  527. Nntp-Posting-Host: gynko.circ.upenn.edu
  528. To:       unix-wizards@sem.brl.mil
  529.  
  530. In article <1992Nov9.172715.16367@cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan S. So) writes:
  531. >Does anybody know of excellent papers in this area?  I know 
  532. >about Norman's "The Trouble with UNIX".
  533.  
  534. Norman's paper is (a) a decade out-of-date and (b) extraordinarily
  535. inaccurate, as it was when published.  In my opinion, it represents
  536. the uninformed rantings of someone who is simply too lazy to read the
  537. manuals and therefore should not be using a computer at all.
  538.  
  539. I'd suggest Rob Pike's 'cat -v considered harmful' as an excellent
  540. starting point.
  541.  
  542. ---Rsk
  543.  
  544. -----------------------------
  545.  
  546. From: Mike Hollander <mike@nttor.uucp>
  547. Subject: Re: The Problem with UNIX
  548. Date: 10 Nov 92 17:04:23 GMT
  549. To:       unix-wizards@sem.brl.mil
  550.  
  551. In article <1992Nov9.172715.16367@cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan S. So) writes:
  552. >
  553. >I am doing research on UNIX command line interface problems.
  554. >I am sure everyone has his/her favorite UNIX troubles, would
  555. >you post or email me what's your favorites?  What should have
  556. >been done by UNIX to resolve that problem in general?
  557. >
  558.  
  559. Things that bother me about the command line (I'm using Motorola
  560. UNIX System V/68 Release 3.71 running a Korn shell using vi-type
  561. command line editing on a VT420), in no particular order:
  562.  
  563. 1) It is possible to backspace over the prompt.
  564. 2) Running over past the end of the line onto the next line does not 
  565.    allow you to backspace back to the previous line, and if you     
  566.    backspace at the last column of a line it is possible to miss
  567.    a character and therefore not backspace over what you think
  568.    you are backspacing over.
  569. 3) It doesn't seem possible to map the arrow keys on the keyboard
  570.    to enable you to press up arrow to get the previous command, or
  571.    to use left arrow to move backwards through the line.
  572. 4) It doesn't seem possible to store macros that could be run with
  573.    a single keypress.
  574. 5) The function keys don't do anything and cannot be made to do
  575.    anything on the command line.
  576. 6) The insert and remove keys cannot be made to place you in insert
  577.    mode or remove characters.
  578.  
  579. That's a short list off the top off my head. If anyone has methods
  580. to fix these complaints please feel free to respond!
  581.  
  582. Mike Hollander | mike@nttor.UUCP
  583.  
  584. -----------------------------
  585.  
  586. From: Mike Stefanik <mike@pacsoft.com>
  587. Subject: Re: The Problem with UNIX
  588. Date: 10 Nov 92 17:17:19 GMT
  589. Followup-To: comp.unix.wizards
  590. To:       unix-wizards@sem.brl.mil
  591.  
  592. In an article, boyd@prl.dec.com (Boyd Roberts) writes:
  593. >The real problem, as Rob has so eloquently put it:
  594. >
  595. >    ``Not only is UNIX dead, it's starting to smell really bad.''
  596.  
  597. I find it amazing that people, apparently in pursuit of some small amount of
  598. enjoyment, spend their time proclaiming the death of UNIX. This sort of thing
  599. is really beginning to take on the flavor of the apocalyptic doomsayers (you
  600. know the type ... they run about the streets wearing dirty plaid suits bellowing
  601. "Repent Now, For the End is Near!").
  602.  
  603. I have heard UNIX to be proclaimed dead and buried for years now. I have no
  604. doubt that there are those who would *like* UNIX to be dead, but desire alone
  605. does not make a thing so. Microsoft is a good case in point, I suppose.
  606.  
  607. So, Boyd, if UNIX really is dead, where is the funeral? I would so enjoy
  608. paying my last respects ...
  609.  
  610. Oh, and by the way, I do assume then that you are using VMS, DOS, or perhaps a
  611. beta version of Windows NT?  You wouldn't be caught *dead* using UNIX, am I
  612. right? :-)
  613.  
  614. -- 
  615. Mike Stefanik  mike@pacsoft.com  ...!uunet!pacsoft!mike  (714) 681-2623
  616. Pacific Software Group, Riverside, CA
  617.  
  618. -----------------------------
  619.  
  620. From: peter da silva <peter@ferranti.com>
  621. Subject: Re: The Problem with UNIX
  622. Date: 10 Nov 92 20:23:41 GMT
  623. To:       unix-wizards@sem.brl.mil
  624.  
  625. In article <1992Nov9.172715.16367@cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan S. So) writes:
  626. > I am doing research on UNIX command line interface problems.
  627. > I am sure everyone has his/her favorite UNIX troubles, would
  628. > you post or email me what's your favorites?  What should have
  629. > been done by UNIX to resolve that problem in general?
  630.  
  631. UNIX isn't an entity that can *do* anything. A better question would be
  632. what could (Bell Labs, Thompson, Ritchie, ...) have done to make UNIX
  633. easier to use? Well, Bell Labs could have bought all the UNIX people
  634. dumb terminals instead of teletypes, even if that was hideously expensive,
  635. so that they wouldn't have as much of an incentive to shorten command lines.
  636. Have you ever worked on a genuine ASR33?
  637.  
  638. > To start the discussion, consider the following problems:
  639.  
  640. PIP FILE.=FILE.
  641.  
  642. PIP FILE.*;*/DE
  643.  
  644. PIP LP:=[1,54]PIP.COM
  645.  
  646. >     Sending binary file should be uuencoded first.
  647.  
  648. Nope. It should say "mail: Standard input contains NULL characters." And
  649. abort.
  650.  
  651. >     This is a general type conflict problem.
  652.  
  653. No, it's an error-checking problem.
  654.  
  655. These aren't "UNIX" problems. These are general "Customer Engineering"
  656. problems. UNIX is pretty good by the general standards of operating systems
  657. of the time. The problem is that AT&T/USG/USL/Univel/whoever it is this week
  658. has never sat down and done a thorough study of what is needed to "flatten"
  659. the user interface. It's 1992, not 1972.
  660.  
  661. The most important problem, in my opinion, you never even mentioned:
  662.  
  663.     cat: cannot open /blog/crottled/greeps
  664.  
  665. What does this mean? /blog doesn't exist? Permissions are wrong? Some
  666. system is down? What?
  667.  
  668.     /blog/crottled/greeps: Network I/O error.
  669.     cat: Can't open input file.
  670.  
  671. Just (a) fixing all applications so they call perror on failure, and (b)
  672. cutting down on the overloading of error messages, would do wonders.
  673. -- 
  674. Peter da Silva / 77487-5012 USA / +1 713 274 5180
  675. true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
  676. {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
  677. rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
  678.  
  679. -----------------------------
  680.  
  681. From: peter da silva <peter@ferranti.com>
  682. Subject: Re: The Problem with UNIX
  683. Date: 10 Nov 92 20:28:38 GMT
  684. To:       unix-wizards@sem.brl.mil
  685.  
  686. Boyd Roberts sigged:
  687. > ``Not only is UNIX dead, it's starting to smell really bad.''  -- Rob Pike
  688.  
  689. Jawaid Bazyar asked:
  690. > >   Compared to what, oh great OS guru?
  691.  
  692. Boyd Roberts response:
  693. > Compared to Plan 9.
  694.  
  695. Plan 9 is currently still in the preemie ward. When I can go out and buy a
  696. copy of Plan 9 with all the installation tools I get with System V, then
  697. I'll be able to take a look at it. But today, even if I could get a copy of
  698. Plan 9 it wouldn't run on anything I have access to. And the installation,
  699. based on the Plan 9 docs I've got, is a real pain.
  700.  
  701. I'd love to try it, though...
  702. -- 
  703. Peter da Silva / 77487-5012 USA / +1 713 274 5180
  704. true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
  705. {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
  706. rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
  707.  
  708. -----------------------------
  709.  
  710. From: Lyndon Nerenberg <lyndon@unbc.edu>
  711. Subject: Re: The Problem with UNIX
  712. Date: 10 Nov 92 21:22:20 GMT
  713. Followup-To: comp.unix.shell
  714. To:       unix-wizards@sem.brl.mil
  715.  
  716. boyd@prl.dec.com (Boyd Roberts) writes:
  717. > >   Compared to what, oh great OS guru?
  718.  
  719. > Compared to Plan 9.
  720.  
  721. I'm not very familiar with Plan 9. How does rc address the problems the
  722. original poster detailed?
  723.  
  724. -----------------------------
  725.  
  726. From: Jurgen Botz <jbotz@mtholyoke.edu>
  727. Subject: Re: The Problem with UNIX
  728. Date: 10 Nov 92 21:49:55 GMT
  729. Sender: USENET News System <news@mtholyoke.edu>
  730. To:       unix-wizards@sem.brl.mil
  731.  
  732. In article <aldavi01.721333614@starbase.spd.louisville.edu> Arlie Davis <aldavi01@starbase.spd.louisville.edu> writes:
  733. >This has nothing at all to do with the command line interface.  This is simply
  734. >an *error* in user semantics.  What should cat do?  Stick in a feedback loop?
  735. >No, this is definitely an error on the user's side.
  736. >[...]
  737. >Also, again, this has nothing at all to do with the command line interface,
  738. >the "shell".  How programs interpret their argument vector is entirely up
  739. >to them.  The shell only passes on what the user types.
  740. >[...]
  741. >Again, this is an error on the *user's* side.  This has nothing to do with the
  742. >shell!  Yes, you could create a mail script wrapper that checked the magic cookie
  743. >of the file being sent (see file(1)), and uuencoded if necessary.  But this is
  744. >completely different from the shell.
  745.  
  746. But the original poster said nothing about the shell!  He asked for 
  747. comments on "problems with the Unix command line interface".  IMHO
  748. "the Unix command line interface" includes the shell /as well as/
  749. the command line semantics of all programs written for use under
  750. Unix.  Just as user interface problems with the Macintosh are not
  751. limited to the "Finder", but include problems with the user interfaces
  752. for individual applications, so "problems with the Unix command line
  753. interface" include problems with the way the user interacts with
  754. Unix commands, independent of the particular shell.  In other words,
  755. if you wanted to change the command line user interface to Unix it
  756. would not be enough to replace the shell -- you'd also have to
  757. rewrite all the utilities (just as you have to rewrite utilities to
  758. make the take advantage of a GUI.)
  759.  
  760. To the original poster:  you should have cross-posted this thread
  761. to comp.human-factors.
  762.  
  763. --
  764. Jurgen Botz                  |   Internet: JBotz@mtholyoke.edu
  765. Academic Systems Consultant  |     Bitnet: JBotz@mhc.bitnet
  766. Mount Holyoke College        |      Voice: (US) 413-538-2375 (daytime)
  767. South Hadley, MA, USA        | Snail Mail: J. Botz, 01075-0629
  768.  
  769. -----------------------------
  770.  
  771. From: Claus Brod <clausb@hpbeo20.bbn.hp.com>
  772. Subject: Re: The Problem with UNIX
  773. Date: 11 Nov 92 09:59:37 GMT
  774. X-Newsreader: TIN [version 1.1.4 PL6]
  775. To:       unix-wizards@sem.brl.mil
  776.  
  777. Rich Kulawiec (rsk@gynko.circ.upenn.edu) wrote:
  778. : I'd suggest Rob Pike's 'cat -v considered harmful' as an excellent
  779. : starting point.
  780.  
  781. Where can I find this document?
  782.  
  783. Tnx,
  784.  
  785.     Claus
  786.  
  787. -- 
  788. --clausb@hpbeo79.bbn.hp.com----------------------------------------------
  789. Claus Brod, MDD, HP Boeblingen       Things. Take. Time. (Piet Hein)
  790. --#include <std_disclaimer>----------------------------------------------
  791.  
  792. -----------------------------
  793.  
  794. From: Mark Evans <evansmp@uhura.aston.ac.uk>
  795. Subject: Re: The Problem with UNIX
  796. Date: 11 Nov 92 10:25:55 GMT
  797. Sender: Usenet administrator <usenet@aston.ac.uk>
  798. Nntp-Posting-Host: uhura
  799. To:       unix-wizards@sem.brl.mil
  800.  
  801. mike@pacsoft.com (Mike Stefanik) writes:
  802.  
  803. : So, Boyd, if UNIX really is dead, where is the funeral? I would so enjoy
  804. : paying my last respects ...
  805. : Oh, and by the way, I do assume then that you are using VMS, DOS, or perhaps a
  806. : beta version of Windows NT?  You wouldn't be caught *dead* using UNIX, am I
  807. : right? :-)
  808.  
  809. They might be using OS/2 or a mac possibly as other options.
  810. -- 
  811.  -------------------------------------------------------------------------
  812. Mark Evans                                   |evansmp@uhura.aston.ac.uk
  813. +(44) 21 565 1979 (Home)                     |evansmp@cs.aston.ac.uk
  814. +(44) 21 359 6531 x4039 (Office)             |
  815.  
  816. -----------------------------
  817.  
  818. From: Boyd Roberts <boyd@prl.dec.com>
  819. Subject: Re: The Problem with UNIX
  820. Date: 11 Nov 92 15:08:28 GMT
  821. Sender: USENET News System <news@prl.dec.com>
  822. Nntp-Posting-Host: prl313.prl.dec.com
  823. To:       unix-wizards@sem.brl.mil
  824.  
  825. In article <1452@pacsoft.com>, mike@pacsoft.com (Mike Stefanik) writes:
  826. > Oh, and by the way, I do assume then that you are using VMS, DOS, or perhaps a
  827. > beta version of Windows NT?  You wouldn't be caught *dead* using UNIX, am I
  828. > right? :-)
  829.  
  830. Well I'm doing my best to avoid it.  I'm using Byron's rc and the Plan 9
  831. editor sam (and have done so for more than a year).  Lately we have short
  832. term Plan 9 style backups:
  833.  
  834.     prl313 dump; cd 9211/10/udir/boyd/work/ftpnfs
  835.     prl313 ftpnfs; ls -ltr
  836.     total 16
  837.     -rw-r--r--  1 boyd          766 Nov  9 14:01 README
  838.     -rw-r--r--  1 boyd         1940 Nov  9 19:31 Makefile
  839.     -rw-rw-r--  1 boyd         7190 Nov  9 23:51 ftpnfs.1
  840.     drwxrwxr-x  3 boyd          512 Nov 10 03:49 src
  841.     drwxrwxr-x  2 boyd          512 Nov 10 03:49 doc
  842.     drwxrwxr-x  2 boyd          512 Nov 10 03:49 test
  843.     drwxrwxr-x  2 boyd          512 Nov 10 03:54 mips
  844.     drwxrwxr-x  2 boyd          512 Nov 10 03:54 vax
  845.  
  846. So there's (some) of the work I did a day or so ago.
  847.  
  848. Hell, I've even been hacking VMS:
  849.  
  850.     $ start/queue/on=prlvms:: eve
  851.  
  852.  
  853. Boyd Roberts            boyd@prl.dec.com
  854.  
  855. ``Not only is UNIX dead, it's starting to smell really bad.''  -- Rob Pike
  856.  
  857. -----------------------------
  858.  
  859. From: Scott Beckstead <scott@yarc.uucp>
  860. Subject: Re: The Problem with UNIX
  861. Date: 11 Nov 92 19:45:57 GMT
  862. To:       unix-wizards@sem.brl.mil
  863.  
  864. In article <aldavi01.721333614@starbase.spd.louisville.edu> Arlie Davis <aldavi01@starbase.spd.louisville.edu> writes:
  865. >In comp.unix.misc you write:
  866. >
  867. >> I am doing research on UNIX command line interface problems.
  868. >> I am sure everyone has his/her favorite UNIX troubles, would
  869. >> you post or email me what's your favorites?  What should have
  870. >> been done by UNIX to resolve that problem in general?
  871. >
  872. >Are you sure you are researching the command line interface?  None of your
  873. >examples below seem to suggest so.
  874. >
  875. >> Does anybody know of excellent papers in this area?  I know 
  876. >> about Norman's "The Trouble with UNIX".
  877. >
  878. >> To start the discussion, consider the following problems:
  879. >
  880. >>     cat a b > b
  881. >
  882. >>     This is a general problem of trying to modify the input
  883. >>     file.
  884. >
  885. >This has nothing at all to do with the command line interface.  This is simply
  886. >an *error* in user semantics.  What should cat do?  Stick in a feedback loop?
  887. >No, this is definitely an error on the user's side.
  888. >
  889. >>     rm -filename_with_a_hyphen
  890. >
  891. >>     This is a general problem of name clash (clashing filename
  892. >>     with command options.)
  893. >
  894. >True, but it is a trivial one.  *All* UNIX filenames can specified explicitly
  895. >with a full pathname (such as "rm /tmp/foo/bar/-filename_with_a_hyphen" or
  896. >"rm $PWD/-filename_with_a_hyphen"), or as a relative directory, starting with
  897. >the parent directory ".." or the current directory "." (such as
  898. >"rm ./-filename_with_a_hyphen").
  899. >
  900. >Also, again, this has nothing at all to do with the command line interface,
  901. >the "shell".  How programs interpret their argument vector is entirely up
  902. >to them.  The shell only passes on what the user types.
  903. >
  904. >>     mail somebody < a.out
  905. >
  906. >>     Sending binary file should be uuencoded first.  This is a
  907. >>     general type conflict problem.
  908. >
  909. >Again, this is an error on the *user's* side.  This has nothing to do with the
  910. >shell!  Yes, you could create a mail script wrapper that checked the magic cookie
  911. >of the file being sent (see file(1)), and uuencoded if necessary.  But this is
  912. >completely different from the shell.
  913. >
  914. >> Bryan So
  915. >-- 
  916. >lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
  917.  
  918.   I think this is kinda what he is trying to determine.  Typicaly UNIX
  919. imposes far more structure on the user than is desired.  I agree an
  920. experienced user should be able to recognize and avoid the problems
  921. above.  What's wrong with the shell catching such obvious errors and
  922. either reporting them or taking other appropriate action (ie correcting
  923. them).  I realize that this will get me screamed at by all you guru
  924. types that advocate that all shell users be rocket scientists or why
  925. bother using a computer anyway.  However I see no reason NOT to research
  926. the subject.  If UNIX could be made more user friendly by modifying the
  927. shell it might gain more acceptance in the general microcomputer market
  928. place, GUIs not withstanding.
  929. Scott
  930.  
  931.  
  932. -- 
  933. Reply to: scott@yarc.uucp     |  
  934.                 |    Spin my nipple nuts and send me to   
  935.   Smoke me a kipper, I'll be    |     Alaska.
  936.    back for breakfast         |       
  937.  
  938. -----------------------------
  939.  
  940. From: "Bryan S. So" <so@brownie.cs.wisc.edu>
  941. Subject: Re: The Problem with UNIX
  942. Date: 11 Nov 92 21:07:29 GMT
  943. Sender: The News <news@cs.wisc.edu>
  944. To:       unix-wizards@sem.brl.mil
  945.  
  946. Concerning Don Norman's paper "The Trouble With UNIX", Datamation 27,
  947. rsk@gynko.circ.upenn.edu (Rich Kulawiec) writes:
  948.  
  949. >Norman's paper is (a) a decade out-of-date and (b) extraordinarily
  950. >inaccurate, as it was when published.  In my opinion, it represents
  951. >the uninformed rantings of someone who is simply too lazy to read the
  952. >manuals and therefore should not be using a computer at all.
  953.  
  954. I agree it's a decade old but can you indicate why it's inaccurate?
  955.  
  956. To me, some problems like "cat a b > b" are obviously undesirable
  957. designs and still unsolved after more than a decade.  
  958.  
  959.  
  960. Bryan
  961.  
  962. -----------------------------
  963.  
  964. From: Bruce Barnett <barnett@grymoire.crd.ge.com>
  965. Subject: Re: The Problem with UNIX
  966. Date: 12 Nov 92 14:20:45 GMT
  967. Sender: Required for NNTP <usenet@crd.ge.com>
  968. Nntp-Posting-Host: grymoire.crd.ge.com
  969. To:       unix-wizards@sem.brl.mil
  970.  
  971. In article <1992Nov11.210729.11676@cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan S. So) writes:
  972. >   To me, some problems like "cat a b > b" are obviously undesirable
  973. >   designs and still unsolved after more than a decade.  
  974.  
  975. It has been solved. There are at least two solutions:
  976.     1) Educate the user. After all the system did exactly what
  977.         the user told it to do.
  978.     2) in csh/tcsh, do "set noclobber"
  979.  
  980. grymoire% set noclobber
  981. grymoire% touch a b
  982. grymoire% cat a b >b
  983. b: File exists.
  984. --
  985. Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett
  986.  
  987. -----------------------------
  988.  
  989. From: jsmolnar@cayley.uwaterloo.ca
  990. Subject: An FTP site to get the latest GCC Compiler for DOS - PLEASE!
  991. Date: 9 Nov 92 17:47:58 GMT
  992. Sender: jsmolnar@descartes
  993. To:       unix-wizards@sem.brl.mil
  994.  
  995. Could someone please privately email me the location of the latest 
  996. GCC C Compiler for DOS.  This is required as quickly as possible, so if you
  997. read this, please respond right now ... It is for an urgent project.  I am
  998. looking for the ftp location ... thanks a lot. 
  999.  
  1000. (Please do it private since, I don't have time to read news.)
  1001.  
  1002. jsmolnar
  1003.  
  1004. -----------------------------
  1005.  
  1006. From: Mohan Srinivasan <mohan@auspex.com>
  1007. Subject: Re: SUN NFS sync
  1008. Keywords: sync
  1009. Date: 9 Nov 92 18:43:17 GMT
  1010. Sender: news@auspex-gw.auspex.com
  1011. Nntp-Posting-Host: osiris.auspex.com
  1012. To:       unix-wizards@sem.brl.mil
  1013.  
  1014. In article <1992Nov6.223031.13503@netcom.com> netapp@netcom.com (Network Appliance) writes:
  1015. >In article <15358@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
  1016. >>Umm, I don't think it was even the case in 3.x - or 2.x, for that matter
  1017. >>- that NFS writes were synchronous on the client side.  
  1018. >
  1019. >Last time I checked, NFS writes were handled very differently in the
  1020. >SunOS client code as compared with the client code that Sun distributes
  1021. >to other UNIX vendors who buy NFS from Sun.
  1022. >
  1023. >In SunOS, the write(2) system call just dirties buffers in memory, and
  1024. >expects biod's to do the writes when they are able.  In the
  1025. >distributed NFS, the write(2) system call tries to schedule a biod to
  1026. >immediately send the write, and if no biod is available, then the
  1027. >process doing the write(2) does the send itself.
  1028. >
  1029.  
  1030. Actually, even in SunOS (both 4.X and 5.X), if the write rounds up to a
  1031. 8K chunk, the write is scheduled to the biod's immediately (ie. if there is
  1032. a biod available, the write'ing process hands over the write to it. 
  1033. Otherwise, if there's no free biod available, the write is done
  1034. by the writing process itself - this is 4.x behavior, in 5.x an async
  1035. write is always queued up to be picked up by the biod threads).
  1036.  
  1037. Scheduling the write is done by the function in the segmap driver code
  1038. that releases the mapped (segkmap) segment. It calls VOP_PUTPAGE() with
  1039. the flags that were passed to itself. (So, it handles cases like ASYNC,
  1040. INVAL, DONTNEED etc).
  1041.  
  1042. However, you're right in that if the write is < 8k, then it just dirties
  1043. the page(s).
  1044.  
  1045. -- 
  1046. ===============================================================================
  1047. Ram Mohan Srinivasan
  1048. mohan@auspex.com
  1049. ===============================================================================
  1050.  
  1051. -----------------------------
  1052.  
  1053. From: Bruce Krawetz <bmk@box.ssd.loral.com>
  1054. Subject: RPCGEN
  1055. Date: 9 Nov 92 21:09:17 GMT
  1056. Sender: news@wdl.loral.com
  1057. To:       unix-wizards@sem.brl.mil
  1058.  
  1059. I asked this question in comp.unix.questions, and got no response.
  1060. So now I'm trying here:
  1061.  
  1062. Has anybody heard of an rpcgen program that generates
  1063. pascal source code? (and if so, where can I get it?)
  1064.  
  1065. ---
  1066. bmk@box.ssd.loral.com
  1067. We must learn from our mistakes, so that we may make bigger and better ones.
  1068.  
  1069. -----------------------------
  1070.  
  1071. From: Mike Leibensperger <mjl@bos.locus.com>
  1072. Subject: Re: RPCGEN
  1073. Date: 10 Nov 92 18:20:40 GMT
  1074. Sender: Netnews <news@locus.com>
  1075. To:       unix-wizards@sem.brl.mil
  1076.  
  1077. In article <1992Nov9.210917.6951@wdl.loral.com> bmk@box.ssd.loral.com
  1078. (Bruce Krawetz) writes:
  1079. >
  1080. >   Has anybody heard of an rpcgen program that generates
  1081. >   pascal source code? (and if so, where can I get it?)
  1082.  
  1083. HP/Apollo's Network Interface Definition Language (NIDL) used to
  1084. generate either Pascal or C language stubs.  It has since been
  1085. transmogrified into just plain IDL, the RPC interface language for
  1086. OSF's DCE RPC.  I'm not sure if it still generates Pascal stubs or
  1087. not.
  1088.  
  1089. > ---
  1090. > bmk@box.ssd.loral.com
  1091. > We must learn from our mistakes, so that we may make bigger and better ones.
  1092.  
  1093.     mjl
  1094. --
  1095. Michael J. Leibensperger      "Rats and roaches live by competition under the
  1096. Locus Computing/Boston         laws of supply and demand; it is the privilege
  1097. 25 Mall Road; Burlington MA         of human beings to live under the laws of
  1098. 01803 (617)229-4980 mjl@locus.com       justice and mercy."  -- Wendell Berry
  1099. Member of the League for Programming Freedom --- write league@prep.ai.mit.edu
  1100.  
  1101. -----------------------------
  1102.  
  1103. From: Bernt Skottun <bernt@valois>
  1104. Subject: Keyboard hit in C programs
  1105. Keywords: Keyboard hit, C programs, UNIX
  1106. Date: 9 Nov 92 23:29:54 GMT
  1107. NNTP-Posting-Host: 128.32.157.154
  1108. To:       unix-wizards@sem.brl.mil
  1109.  
  1110.  
  1111. I am in the process of adapting a C program from the PC for
  1112. the UNIX environment (for SUN 3 running SUNOS 4.1.1).
  1113. In this program it is essential that
  1114. the user be able to stop certain parts of the program
  1115. (e.g. an inner loop) by hitting the keyboard (any key
  1116. is fine) while as long as the keyboard is not touched the execution
  1117. of the program will continue un-interupted (thus a procedure
  1118. which requires, or expects, the user to type in a key stroke at certain
  1119. intervals will not do). In the DOS environment
  1120. I have been able to do this with the "kbhit()" function.
  1121. My question is: what is the equivalent function in the UNIX
  1122. environment? or how does one go about creating such a function?
  1123. Any suggestions will be very welcome. Thanks a lot.
  1124. Bernt Skottun, bernt@valois.berkeley.edu 
  1125.  
  1126.  
  1127. -----------------------------
  1128.  
  1129. From: Marc Unangst <mju@mudos.ann-arbor.mi.us>
  1130. Subject: Re: Keyboard hit in C programs
  1131. Keywords: Keyboard hit, C programs, UNIX
  1132. Date: 10 Nov 92 07:57:22 GMT
  1133. To:       unix-wizards@sem.brl.mil
  1134.  
  1135. In article <1dms9iINNa6m@agate.berkeley.edu> bernt@valois (Bernt Skottun) writes:
  1136. >intervals will not do). In the DOS environment
  1137. >I have been able to do this with the "kbhit()" function.
  1138. >My question is: what is the equivalent function in the UNIX
  1139. >environment? or how does one go about creating such a function?
  1140.  
  1141. Your question is answered in Part 4 of the comp.unix.questions FAQ
  1142. list.  In the future, please check to see if your question is answered
  1143. in one of the FAQ postings before posting it to the net.
  1144.  
  1145. 4.1)  How do I read characters from a terminal without requiring the user
  1146.       to hit RETURN?
  1147.  
  1148.       Check out cbreak mode in BSD, ~ICANON mode in SysV.
  1149.  
  1150.       If you don't want to tackle setting the terminal parameters
  1151.       yourself (using the "ioctl(2)" system call) you can let the stty
  1152.       program do the work - but this is slow and inefficient, and you
  1153.       should change the code to do it right some time:
  1154.  
  1155.       #include <stdio.h>
  1156.       main()
  1157.       {
  1158.         int c;
  1159.  
  1160.         printf("Hit any character to continue\n");
  1161.         /*
  1162.          * ioctl() would be better here; only lazy
  1163.          * programmers do it this way:
  1164.          */
  1165.         system("/bin/stty cbreak");        /* or "stty raw" */
  1166.         c = getchar();
  1167.         system("/bin/stty -cbreak");
  1168.         printf("Thank you for typing %c.\n", c);
  1169.  
  1170.         exit(0);
  1171.       }
  1172.  
  1173.       You might like to check out the documentation for the "curses"
  1174.       library of portable screen functions.  Often if you're interested
  1175.       in single-character I/O like this, you're also interested in
  1176.       doing some sort of screen display control, and the curses library
  1177.       provides various portable routines for both functions.
  1178.  
  1179. 4.2)  How do I check to see if there are characters to be read without
  1180.       actually reading?
  1181.  
  1182.       Certain versions of UNIX provide ways to check whether characters
  1183.       are currently available to be read from a file descriptor.  In
  1184.       BSD, you can use select(2).  You can also use the FIONREAD ioctl
  1185.       (see tty(4)), which returns the number of characters waiting to
  1186.       be read, but only works on terminals, pipes and sockets.  In
  1187.       System V Release 3, you can use poll(2), but that only works on
  1188.       streams.  In Xenix - and therefore Unix SysV r3.2 and later - the
  1189.       rdchk() system call reports whether a read() call on a given file
  1190.       descriptor will block.
  1191.  
  1192.       There is no way to check whether characters are available to be
  1193.       read from a FILE pointer.  (You could poke around inside stdio
  1194.       data structures to see if the input buffer is nonempty, but that
  1195.       wouldn't work since you'd have no way of knowing what will happen
  1196.       the next time you try to fill the buffer.)
  1197.  
  1198.       Sometimes people ask this question with the intention of writing
  1199.         if (characters available from fd)
  1200.             read(fd, buf, sizeof buf);
  1201.       in order to get the effect of a nonblocking read.  This is not
  1202.       the best way to do this, because it is possible that characters
  1203.       will be available when you test for availability, but will no
  1204.       longer be available when you call read.  Instead, set the
  1205.       O_NDELAY flag (which is also called FNDELAY under BSD) using the
  1206.       F_SETFL option of fcntl(2).  Older systems (Version 7, 4.1 BSD)
  1207.       don't have O_NDELAY; on these systems the closest you can get to
  1208.       a nonblocking read is to use alarm(2) to time out the read.
  1209.  
  1210. -- 
  1211. Marc Unangst, N8VRH         | "There are two ways to solve this problem:
  1212. mju@mudos.ann-arbor.mi.us   | the hard way, and the easy way.  Let's start
  1213.                             | with the hard way."
  1214.                             |   - W. Scheider, from a Physics lecture
  1215.  
  1216. -----------------------------
  1217.  
  1218. From: Howard D'Souza <howard@saathi.ncst.ernet.in>
  1219. Subject: Re: Keyboard hit in C programs
  1220. Keywords: Keyboard hit, C programs, UNIX
  1221. Date: 12 Nov 92 11:34:31 GMT
  1222. Sender: News account <news@shakti.ncst.ernet.in>
  1223. To:       unix-wizards@sem.brl.mil
  1224.  
  1225. In article <1992Nov10.155417@rbg.informatik.th-darmstadt.de> misar@rbg.informatik.th-darmstadt.de (walter misar) writes:
  1226. >In article <1dms9iINNa6m@agate.berkeley.edu>, bernt@valois (Bernt Skottun) writes:
  1227. >> 
  1228. >> I am in the process of adapting a C program from the PC for
  1229. >> the UNIX environment (for SUN 3 running SUNOS 4.1.1).
  1230. >> In this program it is essential that
  1231. >> the user be able to stop certain parts of the program
  1232. >> (e.g. an inner loop) by hitting the keyboard (any key
  1233. >> is fine) while as long as the keyboard is not touched the execution
  1234. >> of the program will continue un-interupted (thus a procedure
  1235. >> which requires, or expects, the user to type in a key stroke at certain
  1236. >> intervals will not do). In the DOS environment
  1237. >> I have been able to do this with the "kbhit()" function.
  1238. >> My question is: what is the equivalent function in the UNIX
  1239. >> environment? or how does one go about creating such a function?
  1240. >> Any suggestions will be very welcome. Thanks a lot.
  1241. >> Bernt Skottun, bernt@valois.berkeley.edu 
  1242. >>
  1243. >
  1244. >Ok, since ^C is an 'any key' you only have to catch the SIGINT you
  1245. >get if ^C is hit.  
  1246. >
  1247.  
  1248. Obviously, by "any key" Bernt Skottun means any key that the user wishes to
  1249. hit and not one that the program wants him to.  For this kind of thing, the
  1250. CBREAK mode for the tty immediately suggests itself. (Check out the sg_flags
  1251. field of the sgttyb structure for ioctl(2) called with TIOCSETP). If the
  1252. program does not wish to wait till the user hits the key, select(2) could be
  1253. used (if available) or the terminal could be put in non-blocking mode ( by
  1254. setting the O_NDELAY status flag for the tty's descriptor using fcntl(2).
  1255.  
  1256.  
  1257. >In function() ( prototyped as void function(void) ) the first call should
  1258. >be signal(SIGINT,function) because the behavior of SIGINT is reset to default
  1259. >by the signal-handler.
  1260.  
  1261. What version of UNIX are you using, may I ask? And isn't it time you treated
  1262. yourself to an update? :)
  1263.  
  1264. Howard
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271. Howard M. D'Souza
  1272. National Centre For Software Technology, Graphics Division
  1273.  
  1274. -----------------------------
  1275.  
  1276. From: Valdis Kletnieks <valdis@vttcf.cc.vt.edu>
  1277. Subject: Re: Process 'purge' revisited.. Unix missing this?
  1278. Date: 10 Nov 92 09:52:55 GMT
  1279. Sender: usenet@vtserf.cc.vt.edu
  1280. To:       unix-wizards@sem.brl.mil
  1281.  
  1282. In article <TPAQUETTE.92Nov6132758@gumby.ita.lgc.com> tpaquette@ita.lgc.com (Trevor Paquette) writes:
  1283. > All the responses I have recieved have all said exactly what I thought.
  1284. >It is impossible to 'purge' a process witing on a hung device.
  1285. >
  1286. > Is this a deficency in Unix? Should it be added? Will I ever win the
  1287. >lottery?
  1288.  
  1289. No, it's a deficiency in operating systems in general.
  1290.  
  1291. Now let's look at what happens:
  1292.  
  1293. You have a "process"/"task"/whatever you want to call it that initiates
  1294. an I/O transfer to a device.  Said device mysteriously flames out
  1295. before the transfer completes.  You're sitting there with a process
  1296. that has some buffers locked in memory as a target for the I/O.
  1297.  
  1298. What should you do?
  1299.  
  1300. You can't just kill the process and free the buffers - that device might
  1301. wake up and complete the I/O over where the buffers USED to be.
  1302. Unless you're willing to bet the system that you have managed to FOR SURE
  1303. abort an in-progress transfer, you have to keep enough state around
  1304. so that if it DOES complete, you won't get torched.
  1305.  
  1306. SImply pretending the I/O is gone loses too - the process may get
  1307. confused, and if the I/O *does* complete, you're torched.
  1308.  
  1309. Killing the process and not freeing the buffers gets interesting, as
  1310. you have to then find some way of dealing with the buffers - most
  1311. operating systems kind of make an assumption that allocated real
  1312. memory *belongs* to somebody - so a "kill the process and free all but
  1313. these 960 bytes" gets interesting.  
  1314.  
  1315. And of course all sorts of OTHER warts arise in the real world.. ;)
  1316.  
  1317. Feel free to propose what you think it should do - and remember in
  1318. your design to address all the failure modes (Heck, we only *get*
  1319. into this situation if something has failed already)....
  1320.  
  1321.                 Valdis Kletnieks
  1322.                 Computer Systems Engineer
  1323.                 Virginia Tech
  1324.  
  1325. -----------------------------
  1326.  
  1327. From: Arne Ludwig <arne@nats.informatik.uni-hamburg.de>
  1328. Subject: Re: Process 'purge' revisited.. Unix missing this?
  1329. Date: 10 Nov 92 17:00:08 GMT
  1330. Sender: "Mr. News" <news@informatik.uni-hamburg.de>
  1331. To:       unix-wizards@sem.brl.mil
  1332.  
  1333. tpaquette@ita.lgc.com (Trevor Paquette) writes:
  1334. >It is impossible to 'purge' a process witing on a hung device.
  1335.  
  1336. An unkillable process waiting on a hung device is just a sign of a broken
  1337. device driver.
  1338.  
  1339. > Is this a deficency in Unix? Should it be added? Will I ever win the
  1340. >lottery?
  1341.  
  1342. No. No. Perhaps.
  1343. --
  1344. Arne Ludwig
  1345. ludwiga@informatik.uni-hamburg.de            arne@rrzbu.hanse.de
  1346.  
  1347. -----------------------------
  1348.  
  1349. From: Arne Ludwig <arne@nats.informatik.uni-hamburg.de>
  1350. Subject: Re: Q: Proper client/server protocol w.r.t. socket read/writes
  1351. Date: 10 Nov 92 17:03:19 GMT
  1352. Sender: "Mr. News" <news@informatik.uni-hamburg.de>
  1353. To:       unix-wizards@sem.brl.mil
  1354.  
  1355. cecchinr@gehrig.cs.rpi.edu (Ron Cecchini) writes:
  1356. >every time she does a
  1357. >write, she immediately does a read to acknowledge that the info got to 
  1358. >the other side
  1359.  
  1360. >She says that when she didn't do this,
  1361. >her application crashed because of some kind of "imbalance".
  1362.  
  1363. You don't supply enough information, but this suggests to me that she
  1364. might be using a stream socket and variable length messages.
  1365.  
  1366. If she's not acknowledging the individual packets, this may, and almost
  1367. always does, mean that some messages get mixed up with previous ones,
  1368. because streams are not "packetized".
  1369.  
  1370. You may think of avoiding this problem by using datagram sockets, but
  1371. unfortunately most Unices don't give you reliable, sequenced delivery
  1372. on datagrams sockets, so you would need the acknowledge after all.
  1373.  
  1374. A very simple solution is to use fixed packet lengths, or transmitting
  1375. length information with each packet.
  1376. --
  1377. Arne Ludwig
  1378. ludwiga@informatik.uni-hamburg.de            arne@rrzbu.hanse.de
  1379.  
  1380. -----------------------------
  1381.  
  1382. From: j warsa <warsa@polaris.unm.edu>
  1383. Subject: Re: termcap/terminfo
  1384. Date: 10 Nov 92 18:21:38 GMT
  1385. To:       unix-wizards@sem.brl.mil
  1386.  
  1387.  
  1388. I posted a request asking for a termcap entry for AIX hft/aixterm (for which
  1389. only sysV terminfo entries are available).
  1390.  
  1391. I lost my mbox before I could reply to whoever it was that sent
  1392. me the AIX hft termcap entry. Thanks, it works very well for both aixterm
  1393. and hft.
  1394.  
  1395.  
  1396. -- 
  1397. jim warsa
  1398. albuquerque
  1399.  
  1400. -----------------------------
  1401.  
  1402. From: Troy Frericks <troyf@microware.com>
  1403. Subject: >>TAR file on tape distroyed, are files recoverable?<<
  1404. Date: 10 Nov 92 18:43:20 GMT
  1405. Sender: news@microware.com
  1406. Nntp-Posting-Host: marx
  1407. To:       unix-wizards@sem.brl.mil
  1408.  
  1409. I have a tape that contained a large 'tar' file.  The data is not
  1410. replaceable.  The data that is needed is at the end of the tar
  1411. file, but it is inaccessable because the wrong parameter was
  1412. passed to tar when attempting to retrieve it.  The 'c' for
  1413. create, rather than 'x' for eXtract was passed, which caused
  1414. tar to write a tiny tar file over the beginning of the
  1415. larger one.
  1416.  
  1417. Any hints on how to retrieve files from a large tar file once
  1418. the beginning of the tar file has been distroyed?
  1419.  
  1420. -
  1421. Troy Frericks                      Internet: troyf@MICROWARE.COM
  1422. Microware Systems Corporation          UUCP: uunet!mcrware!troyf
  1423. 1900 NW 114th St                      Phone: (515)224-1929
  1424. Des Moines, IA 50325-7077               Fax: (515)224-1352
  1425.  
  1426. -----------------------------
  1427.  
  1428. From: Jim Harkins <jimh@pacdata.com>
  1429. Subject: Need a raw ethernet interface
  1430. Date: 10 Nov 92 19:06:05 GMT
  1431. Sender: Jim Harkins <jimh@pacdata.uucp>
  1432. To:       unix-wizards@sem.brl.mil
  1433.  
  1434. I'm trying to write an ethernet driver and it appears as though standard
  1435. Sun tools like etherfind won't show packets with errors.  So does anyone
  1436. know of a package, or tool that will work like etherfind only display errored
  1437. packets as well as 'good' ones?  By errors I mean all levels of errors, from
  1438. CRC to UDP protocol errors.  I have access to a Sun ELC I can configure to
  1439. do this, I could also plug a PC into that wire if I wanted to.
  1440.  
  1441. What I really need is a sniffer but my boss won't spring for one....
  1442.  
  1443. Thanks.
  1444.  
  1445. jim
  1446.  
  1447. -- 
  1448. So many women, so little charisma.
  1449.  --------------------------------------------------------------
  1450. Jim Harkins                         [ucsd|uunet]!pacdata!jim
  1451. Pacific Data Products               jim@pacdata.com
  1452.  --------------------------------------------------------------
  1453.  
  1454. -----------------------------
  1455.  
  1456. From: Sanjay Shrivastava <sanjay@ucbvax.Berkeley.EDU>
  1457. Subject: applications using p-threads!!
  1458. Date: 10 Nov 92 23:56:29 GMT
  1459. Sender: news@cerc.wvu.wvnet.edu
  1460. To:       unix-wizards@sem.brl.mil
  1461.  
  1462. could someone please let me know of applications on the public domain
  1463. that use p_threads!! as there are no
  1464. manuals on programming in threads (I havent found any!!!) I, a beginner
  1465. in programming using threads, am 
  1466. having lots of problems.
  1467.  
  1468. Thanks in advance.....
  1469.  
  1470. Sanjay.
  1471.  
  1472. Sanjay Shrivastava
  1473. Research Assistant
  1474. Concurrent Engineering Research Center
  1475. West Virginia University
  1476. Morgantown, WV-26506.
  1477.  
  1478. Ph#:(304)-293-7535 extn:242.
  1479.  
  1480. -----------------------------
  1481.  
  1482. From: Jean-Yves Patry <patry@software.mitel.com>
  1483. Subject: ISC 3.0 Terminfo database question
  1484. Date: 11 Nov 92 01:32:23 GMT
  1485. Sender: patry@software.mitel.com
  1486. To:       unix-wizards@sem.brl.mil
  1487.  
  1488.  
  1489. Does anybody have the Terminfo database entry for an HP laserjet
  1490. II/III printer for ISC 3.0 ? I want to be able to query the Terminfo
  1491. database with the standard interface program for things such as
  1492. line-per-inch character-per-inch, character sets, etc.
  1493.  
  1494. I've tried to use the existing Terminfo database entry for HP printers
  1495. with no success.
  1496.  
  1497. Thanks
  1498.  
  1499.  
  1500. --
  1501.  -------------------------------------------------------------------------------
  1502. Jean-Yves Patry          patry@Software.Mitel.COM          (613) 592-2122 x4992
  1503.  -------------------------------------------------------------------------------
  1504.  
  1505. -----------------------------
  1506.  
  1507. From: Francisco X DeJesus <dejesus@archimedes.nwc.navy.mil>
  1508. Subject: HELP! problem with tar PC <-> SUN
  1509. Date: 11 Nov 92 03:16:09 GMT
  1510. Sender: NWC News Admin <usenet@avalon.nwc.navy.mil>
  1511. To:       unix-wizards@sem.brl.mil
  1512.  
  1513. Hello. I am posting this question regarding a problem a friend of mine is
  1514. having in hopes someone out there may be able to help. Here's the situation:
  1515.  
  1516. There is a Sun Sparc 2 (SunOS 4.1.2) and a PC running Unix, and we have to
  1517. be able to use "tar" to transfer files on a tape (Exabyte 8mm 8200) from
  1518. one machine to the other and back. The "PC running Unix" refers to trying
  1519. this with SCO Unix, Interactive Unix, and Intel Unix.
  1520.  
  1521. Here's the problem: there appears to be a 10x differential in the blocking
  1522. factor used by the Sun and the PC's. If a tape is written on the Sun with
  1523. a blocking fator of 2, the PC reads it as a blocking factor of 20. Both
  1524. "say" they are writing with block size=512 and blocking factor=20 by 
  1525. default, but the evidence shows this to be wrong. The Sun at least is smart
  1526. enough to recognize the different blocking factor when reading the tape
  1527. and has no trouble. The PC, however, has to be told, and this is where the
  1528. *REAL* problem comes in:
  1529.  
  1530. The client specifies that the "tar" command *HAS* to be used _WITHOUT_
  1531. telling it a specific blocking factor on either end (tar xb [blocksize] is
  1532. not allowed). I know, I know... it's retarded, but those are the client's
  1533. specs. We wouldn't have a problem using the blocking factor command-line
  1534. argument, they would. ARGH!
  1535.  
  1536. Both SCO and Interactive Unix have an optional file, /etc/defaulttar (sp?),
  1537. which is *supposed* to be able to allow default command-line arguments to
  1538. tar to be specified there. If this worked, it would have been great... but
  1539. no luck. Anyone know how to make this work?
  1540.  
  1541. So... any ideas? Please, we are wide open to suggestions. ANY possibilities
  1542. will be explored... a different tape driver, another PC Unix version, 
  1543. rebuilding tar on the PC (if we can get the sources)... anything goes.
  1544.  
  1545. Please respond to me via email (I do not read all these newsgroups regularly).
  1546. I'll forward the responses to my friend, and will gladly summarize any 
  1547. responses I receive to anyone who's interested. 
  1548.  
  1549. Thanks very, very much in advance.
  1550.  
  1551. -- 
  1552. Francisco X DeJesus  ----- S A I C -----  dejesus@archimedes.chinalake.navy.mil
  1553. disclaimer: "Opinions expressed here are mine. Typos and errors are all yours."
  1554.  
  1555. -----------------------------
  1556.  
  1557. From: Boerge Mueller <bmu@sbfdk.sbf.dk>
  1558. Subject: ksh argument interpreter
  1559. Keywords: ksh arguments
  1560. Date: 11 Nov 92 08:30:41 GMT
  1561. To:       unix-wizards@sem.brl.mil
  1562.  
  1563. Hi
  1564.  
  1565. I'm not yet fully educated in UNIX, and have this problem:
  1566.  
  1567. I wont to make a command which can handle binary files and ascii files
  1568. in a seperate way in one task, I could imaging a syntax like this:
  1569.  
  1570. $ command_name -u "user" -a [ascii file(s)] -b [binary file(s)]
  1571.  
  1572. If I write :
  1573.  
  1574. $ command_name -u elliot -a a* -b b*   ; then ksh will interpret
  1575.  
  1576. like:
  1577.  
  1578. $ command_name -u elliot -a a1 a2 a3 a4 -b b1 b2 b3 b4
  1579.  
  1580. then I need a shell script do deal which those multi argument, I imaging
  1581. some kind of "case" syntax, but I cant find any solution but where
  1582. "kludge" kind of programming. (please do not suggest awk or pearl, without
  1583. a shell solution also, I'm not yet ready to do pearl or awk).
  1584.  
  1585. Thanks in advance
  1586.  
  1587. -- 
  1588. From:
  1589. Boerge Mueller  (Project manager CAD & Technical information systems)
  1590. Great Belt Ltd.                    |--------------------------------|
  1591. Phone  : +45 3393 5200 x 222       | I don't know what the          |
  1592.  
  1593. -----------------------------
  1594.  
  1595. From: Power = 486 + HST Dual Standard <tannerrj@cnsvax.uwec.edu>
  1596. Subject: libg++2.2
  1597. Date: 11 Nov 92 09:42:00 GMT
  1598. Sender: nobody@ctr.columbia.edu
  1599. News-Software: VAX/VMS VNEWS 1.41
  1600. X-Posted-From: cnsvax.uwec.edu
  1601. NNTP-Posting-Host: sol.ctr.columbia.edu
  1602. To:       unix-wizards@sem.brl.mil
  1603.  
  1604. I am trying to compile libg++2.2 under gcc 2.3.1, but I 
  1605. always get the following error:
  1606.  
  1607.     a make fatal error
  1608.  
  1609. nothing more specific then that. I am running Esix 4.0.3
  1610. and I did the configure i386-sysv4. If anyone can help me
  1611. I would appreciate it. Thanks.
  1612.  
  1613. -----------------------------
  1614.  
  1615. From: Frank Pinto <rolls@cis.umassd.edu>
  1616. Subject: Need help with "makefile"
  1617. Date: 11 Nov 92 20:26:47 GMT
  1618. Sender: USENET News System <usenet@umassd.edu>
  1619. To:       unix-wizards@sem.brl.mil
  1620.  
  1621. Hello all
  1622.  
  1623. I'm new at this, so go slow.
  1624. Recently I ftp'd some files from DIGITAL
  1625. after uncompressing, unarchiving them, I've
  1626. found out to compile the program I have to
  1627. know somthing about "makefile"
  1628. I have about 20 files in the particular
  1629. program.
  1630. What is, and how do I use makefile
  1631.  
  1632. Frank Pinto
  1633.  
  1634. -----------------------------
  1635.  
  1636. From: Eric Parson <parson@pop.stat.purdue.edu>
  1637. Subject: Any TeX (compilation) Gurus out there?
  1638. Keywords: TeX, make
  1639. Date: 11 Nov 92 20:28:46 GMT
  1640. Sender: USENET News <news@mentor.cc.purdue.edu>
  1641. To:       unix-wizards@sem.brl.mil
  1642.  
  1643. I'm running out of thoughts of where to send up distress flares.  Hopefully
  1644. there's a hopeful hint or five out there somewhere.
  1645.  
  1646. I'm in the process of installing the complete TeX distribution on my
  1647. SPARC 2 station.  To make a long story short, after a couple of failures
  1648. along the 'make' path, I've run up against one that I can't seem to overcome.
  1649. I've managed to get to the point where MetaFont is creating the 'plain'
  1650. fonts, and the 'make' bogs down.  After some false starts, I manage to 
  1651. get MF to process the plain.mf file, but in the 'Makefile' command file,
  1652. it displays the line:
  1653.     inimf plain; input modes; dump
  1654. Well, it gets through the inimf, but fails the input.  Now there aren't that
  1655. many copies of files with the name 'modes' in them (two to be precise, and 
  1656. one is amsmodes.mf), thus I thought that moving a copy of modes.mf from the
  1657. input directory would solve my problem.  It didn't.  Now I don't know what 
  1658. else to do.  
  1659.     I would greatly appreciate any input someone out there could/would 
  1660. provide about even how to attack the problem, I would greatly appreciate
  1661. it.  (Cannonization is probable if you can actually help me nuke this prob.
  1662. :-)  )  Thanks in advance for any help you can provide.
  1663.  
  1664.             Eric T. Parson
  1665.                 parson@pop.stat.purdue.edu
  1666.  
  1667. -----------------------------
  1668.  
  1669. From: Sinan Karasu <sinan@atc.boeing.com>
  1670. Subject: Solaris 2.0/2.1 Realtime programming
  1671. Date: 11 Nov 92 20:35:32 GMT
  1672. To:       unix-wizards@sem.brl.mil
  1673.  
  1674. Hi wizards,
  1675. I am porting an application that requires very fine
  1676. timing control to Solaris 2.0/2.1. I need to be able to schedule
  1677. my program at given time increments. The time increment can be
  1678. anywhere from 1 millisecond to 50 milliseconds. I gave played
  1679. with setitimer and SIGALRM , they do work fine except I can not
  1680. get better than 10 millisecond granularity. So I decided
  1681. to try something more hardware oriented and noticed that there are
  1682. 2 timer/counters in the MMU chip.
  1683. Questions:
  1684.  
  1685. 1) Does the OS use either or both of these counters?
  1686. 2) Are there other timers available on the Sparc platform?
  1687. 3) Does the equation change if I use a VME based SparcEngine?
  1688. 4) Does/Has anybody done/? any work in this area and give me some
  1689.    pointers?
  1690. 5) Are there other calls in Solaris 2.0 and derivatives that would
  1691.    allow me to what I am trying to do ????
  1692.  
  1693.  
  1694.  
  1695. Thanx for any and all answers/pointers/criticism/etc...
  1696. Sinan Karasu
  1697.  
  1698. -----------------------------
  1699.  
  1700. From: Mike Mstowski <mstowski@seas.gwu.edu>
  1701. Subject: Getty Source Code
  1702. Keywords: GETTY SOURCE CODE
  1703. Date: 12 Nov 92 11:57:43 GMT
  1704. Sender: mstowski@seas.gwu.edu
  1705. To:       unix-wizards@sem.brl.mil
  1706.  
  1707. I have to write a getty program for SCO UNIX and possibly for other unix
  1708. systems at a later time.  Does anyone have any source code to do this that
  1709. I might look at.  The time savings would be great.
  1710. Any help is greatly appreciated!
  1711. Thanks in advance!
  1712. mstowski@seas.gwu.edu
  1713.  
  1714.  
  1715. -----------------------------
  1716.  
  1717.  
  1718. End of UNIX-WIZARDS Digest
  1719. **************************
  1720.  
  1721.