HP3000-L Archives

July 1995, Week 1

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:
Chris Breemer <[log in to unmask]>
Reply To:
Chris Breemer <[log in to unmask]>
Date:
Mon, 3 Jul 1995 14:13:41 METDST
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
Hi All,
 
Could anybody help with the following problem ?
 
I had a little utility to reload a tape and place it on-line from within
a program. It works fine on MPE 4.0 but fails on MPE 5.0.
 
The source of the utility is:
 
#pragma intrinsic       HPDEVCONTROL
#define TAPEDEV         7
#define INFO(s)         (s >> 16)
#define SUBS(s)         (s & 0x0000FFFF )
 
int     status;
char    ldev[200];
 
        sprintf(ldev, "&%08d&", TAPEDEV);
 
        HPDEVCONTROL(&status, ldev, 100, 0);
        if ( status )
        {
                printf("HPDEVCONTROL(%d,100)  INFO=%d  SUBS=%d\n",
                        TAPEDEV, INFO(status), SUBS(status));
                return(status);
        }
 
        HPDEVCONTROL(&status, ldev, 101, 0);
        if ( status )
        {
                printf("HPDEVCONTROL(%d,101)  INFO=%d  SUBS=%d\n",
                        TAPEDEV, INFO(status), SUBS(status));
                return(status);
        }
 
 
On MPE 5.0 the HPDEVCONTROL calls both fail with status -18, subsys 143
( "Intrinsic layer; a bounds violation occurred." ).
 
Any suggestions would be greatly appreciated.
 
--
 
:)
Chris Breemer
[log in to unmask]

ATOM RSS1 RSS2