home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os9 / 1141 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.5 KB

  1. Path: sparky!uunet!kithrup!hoptoad!decwrl!sun-barr!cs.utexas.edu!wupost!udel!rochester!galileo.cc.rochester.edu!ee.rochester.edu!moscom!tcm
  2. From: tcm@moscom.UUCP (Tom Maszerowski)
  3. Newsgroups: comp.os.os9
  4. Subject: Re: OS-9 programming question
  5. Summary: Show us your code
  6. Keywords: status set file
  7. Message-ID: <3999@moscom.UUCP>
  8. Date: 19 Aug 92 12:12:15 GMT
  9. References: <86426@netnews.upenn.edu>
  10. Reply-To: tcm@moscom.UUCP (Tom Maszerowski)
  11. Followup-To: comp.os.os9
  12. Organization: Moscom Corp., Pittsford, NY
  13. Lines: 24
  14.  
  15. In article <86426@netnews.upenn.edu> mark@ginger.biophys.upenn.edu (Mark Elliott) writes:
  16. >
  17. >    I am having trouble calling the file status setting routines I$SetStt
  18. >in OS-9. In particular, I'm trying to use the C routine _ss_ssig() to have a
  19. >signal sent to me when data is ready on a pipe. At run time, I get the error:
  20. >
  21. >    Error #000:208 Unknown Service Code
  22. >    A OS-9 call specified an unknown or invalid service code, or a
  23. >    getstat/setstat call was made with an unknown status code.
  24. >
  25.  
  26.  
  27.   _ss_ssig() does indeed work on pipes, in fact it only works on pipes
  28. and SCF devices (from the manual). It is important that you have the
  29. path open prior to calling this routine and remember that the sigcode
  30. argument is a short, using an int (which defaults to 32 bits) may
  31. effectively result in a sigcode of 0, which is probably illegal.
  32.  
  33.  
  34. -- 
  35. Tom Maszerowski    tcm@moscom.com   
  36.                    {rit,tropix,ur-valhalla}!moscom!tcm
  37.                    DoD#1957 (1987 BMW K75s)
  38.  
  39.