home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!brtph560!brtph46!rjohns
- From: rjohns@brtph46.BNR.CA (Richard Johns P205)
- Subject: Re: Bad escape codes on 9000/720?
- Message-ID: <1993Jan12.191656.13982@brtph560.bnr.ca>
- Sender: news@brtph560.bnr.ca (Usenet News)
- Reply-To: rjohns@brtph46.BNR.CA (Richard Johns P205)
- Organization: Bell-Northern Research Ltd.
- Date: Tue, 12 Jan 1993 19:16:56 GMT
- Lines: 40
-
-
- Stan Sieler (sieler@allegro.com) wrote:
-
- > WARNING: I don't have access to the HP-UX file which lists all of the
- > PasErr values, but the MPE/iX file (PASESC.PUB.SYS) has incorrect values
- > (or names?) starting with PasErr 905 (they are all off by one in the
- > info field).
- >
- > I.e.:
- > PasErr_905 = 59309367 is misleading. PasErr_904 would actually be
- > that value (i.e.: the upper 16-bits of 59309367 = 904). Now,
- > I don't know if 904 or 905 is InvalidProcFunc. (In other words, is the
- > vale 59309367 wrong or is the PasErr_905 wrong?)
-
- Thanks for pointing that out. Another one for the manual, if not the fix
- list. If anyone does go into pasesc.ph, you might as well fix:
-
- (***************************************************************************)
- (* *)
- (* T R A P S U B S Y T E M E S C A P E C O D E S *)
- (* *)
- (***************************************************************************)
-
- Speaking of traps, is it possible to catch the alarm signal from Pascal?
- On the 400 series, you can use an escape code and errno to do that. On
- the 700, there's no escape code for it, and no generic system error escape
- code, so you can't. I have a function that sets an alarm before calling
- fcntl with a wait, and if it times out, the function returns with failure.
- It looks like the way to do it is with a trap handler, but I don't want
- to lose the flow of control. Is there a way to do this with try/recover?
- Thanks again.
-
- Cheers,
- Rick Johns
- BNR
- rjohns@bnr.ca
-
- Disclaimer: I said it, BNR didn't.
- ==============================================================================
- ==============================================================================
-