[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3843.0. "DECmcc V1.2 SSB Ultrix SUBRANGE/Debug/Enumerated ID" by TAEC::HAYES (Tu quoque mi fili ! C.Hayes SVP @VBE) Thu Oct 01 1992 14:57

    	         
    Hello,
    
    
Hello,

Using DECmcc V1.2.0 on Ultrix.

1) We use a datatype which is called MCC_K_DT_SUBRANGE which is defined as 
Unsigned[30:128] in the MSL, but it will not accept any value at 
the user interface (both IM and FCL). 
Does someone know about any bugs releated to it?

2) When we run our AM on Ultrix we often uses debug textes written directly to the screen 
with the printf routine. 
We are usually two or three who runs the AM at the same time 
and the problem is that the output is always written on the terminal 
where the AM was started. 
Is it possible to redirect it in another way rather than restarting the AM 
(VMS managed this well)?

3) Is it allowed to have enumerated datatypes on the Identifier for a 
subclass?

We have problems with this both in Iconic Map and in FCL. For the 
command SHOW .....* all id it works OK, the correct name is displayed.
However, when specifying SHOW .... <id> All ID (id=enumerated value), 
the PM do not accept the input for the identifier.



	Thanks to answer

	
		Catherine

T.RTitleUserPersonal
Name
DateLines
3843.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Thu Oct 01 1992 15:5015
    I can't respond to your datatype questions but with regard to the
    routing of stdout when an MM is started, there is no way to change
    this with automatic startup; however, you can start the MM yourself
    with a command such as...
    
         mcc_foobar_fm <id> N >& <device> &
    
    where <id> is the enroll id assigned (do a ps -aux when the MM is
    running to see its enroll ID), and <device> is wherever you want stdout
    and stderr to go.   You can change the "N" to a "Y" to force the MM
    to re-enroll.
    
    The only restriction is that this method cannot be used the first time
    the MM is enrolled (i.e., the module is new to the dispatch table).
    
3843.2Why this restriction ?TAEC::LAVILLATFri Oct 02 1992 07:4017
Re .1:


>    
>    The only restriction is that this method cannot be used the first time
>    the MM is enrolled (i.e., the module is new to the dispatch table).
>    
	Curious again...

	Why this restriction ? Is this because you are not supposed to
	guess the <id> value or for some other obscure reason (like tty 
	inode number or something like that) ?

	Regards.

	Pierre.

3843.3.0 3) is working fineTAEC::HAYESTu quoque mi fili ! C.Hayes SVP @VBEFri Oct 02 1992 12:0414
    Re .0 3)
    
    I succeeded to use an enumerated datatype for a subclass attribute
    identifier.
    
    The commands SHOW CLASS x SUBCLASS * all id and 
    SHOW CLASS x SUBCLASS <instance> all id are both working fine.
    
    Fausse alerte...
    
    
    	Catherine
    
     
3843.4TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Fri Oct 02 1992 12:5525
    Ugly details for the curious....
    
    There are two parts to the dispatch table - (1) the enrollment table,
    which is a list of each known MM and its assigned enroll ID, and (2) 
    the dispatch table, which is the <v,e,p, routine> entries supplied by
    the MM at its INIT entry point.
    
    Under Ultrix, the enroller (i.e. the PM which fields the user's ENROLL
    command ) is the component which updates part (1).  The enrolled MM
    updates part (2) after it is started (during its INIT entry point
    processing).
    
    Modules are never deleted from the enrollment table, nor are enroll IDs
    reassigned.   So this means that you only have to do a PM-initiated
    enroll once.   After that time, repeated ENROLL commands effectively do
    nothing with regard to updating table part (1) - all that happens is
    that the MM is started with a "Y" as the second argument, which tells
    it to call the INIT entry point to update part (2).
    
    So if you do "mcc_xxx_mm 37 Y &" you are doing exactly what the PM does
    on the 2nd and subsequent enroll.
    
    NOTE THE ABOVE IS AN ARTIFACT OF THE CURRENT ULTRIX IMPLEMENTATION, IT
    MAY NOT WORK THAT WAY ON OTHER PLATFORMS.  IT MIGHT NOT EVEN ALWAYS
    WORK THAT WAY UNDER FUTURE RELEASES OF MCC/ULTRIX. CAVEAT EMPTOR.
3843.5ThanksTAEC::LAVILLATFri Oct 02 1992 14:417
Re .4:

Thanks !

Pierre.

3843.6.0 1) is also working fine...TAEC::HAYESTu quoque mi fili ! C.Hayes SVP @VBEFri Oct 02 1992 15:3915
    
    Re .0 1)
    
    
    Again...
    
    I succeeded to use a MCC_K_DT_SUBRANGE datatype as an input argument
    of a directive, it works fine.
    
    At least .0 served to lighten some DECmcc mysteries
    
    	Have a good week-end
    
    
    		Catherine