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