HP3000-L Archives

November 1995, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Thu, 9 Nov 1995 11:41:57 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (69 lines)
Hi,
 
 
> >ATTACHIO is returning a value of 2883573  [bob thinks this is (43,-11).]
 
Ok...the answer may have been staring us in the face.  This is an
*ATTACHIO* error ... not an error of type hp_status, which most NM code
uses (and, therefore, the concept of subsystem/info is meaningless).
 
Dusting off my Classic ATTACHIO notes, I see that the 32-bit result
returned by ATTACHIO is:
 
   Blocked I/O result:
 
        Bits: 0               7  8         12 13       15
        --------------------------------------------------
        |    Pin                | Qualifying | General   |
    l1  |                       | Status     | Status    |
        |------------------------------------------------|
    l2  | Transmission log (same meaning as cnt)         |
        | OR: Control returns                            |
        --------------------------------------------------
 
         General Status values:
            0 = pending
            1 = OK
            2 = End Of File
            3 = Unusual Condition      (e.g.: non-allocated terminal)
            4 = Irrecoverable Error
 
         Qualifying Status values:
 
            5, GS=3 : terminal is on DTC and is not allocated
                      (seen on MPE/iX 4.0)
 
 
And, your decimal number (2883573) is:
   :calc 2883573
   2883573, $2BFFF5, %12777765
or, breaking it into 2 16-bit fields:
 
   $2B, $FFF5
 
if we look at $2B as the first word of an ATTACHIO result, in octal
it is %53, which means:
 
      General Status:    3
      Qualifying Status: 5
 
Which, according to a cryptic note I added to my ATTACHIO doc years ago,
appears to be related to trying to access a non-allocated terminal on
a DTC.  (assuming you are on an MPE/iX machine)
 
(I don't know how to further interpret the second 16 bits, sorry.)
 
So, does your application do something to allocate the terminal?  That
would be an FOPEN of the terminal, or (perhaps) an ATTACHIO call to
allocate the terminal.
 
 
(And, of course, the interesting question: why/how are you using ATTACHIO
on MPE/iX?)
 
Does this help?
 
--
Stan Sieler                                          [log in to unmask]
                                     http://www.allegro.com/sieler.html

ATOM RSS1 RSS2