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

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

374.0. "VAXen Questions" by THEBAY::HAYES (Same stuff, different Day) Wed Dec 17 1986 04:59

    A customer/friend of mine is working on a new interpreter for the
    VAX and sent me a list of questions the other day.  Some of them
    are pretty interesting.  Would you please help me get some answers
    for him?
    
    Many thanks,
    John
    
    1.	What are the processor type values returned from GETSYI (?)
    	for the new VAX 8000 series processors?  Is there a table
    	somewhere listing all values for all VAXen?
    
    2.	How do you get rid of "CANCEL" and "INTERRUPT" screen displays
    	on ^C and ^Y?
    
    3.	What is the format of a directory?  How can you tell if a file
    	you have opened is a directory?
    
T.RTitleUserPersonal
Name
DateLines
374.1Answers 1 & 2SWAMI::LAMIACheap, fast, good -- pick twoWed Dec 17 1986 16:4550
    1.  (extracted from $PRDEF.MAR in STARLET.MAR)
   
$EQU	PR$_SID_TYP780	1
$EQU	PR$_SID_TYP750	2
$EQU	PR$_SID_TYP730	3
$EQU	PR$_SID_TYP790	4
$EQU	PR$_SID_TYP8SS	5
$EQU	PR$_SID_TYP8NN	6
$EQU	PR$_SID_TYPMAX	8
$EQU	PR$_SID_TYPUV1	7
$EQU	PR$_SID_TYPUV2	8
$EQU	PR$_SID_TYP640	8
$EQU	PR$_SID_TYPUV	8
$EQU	PR$_XSID_UV_UV	0
$EQU	PR$_XSID_UV_UV2	1
$EQU	PR$_XSID_UV_640	4
$EQU	PR$_XSID_N8800	0
$EQU	PR$_XSID_N8700	1
$EQU	PR$_XSID_N2	2
$EQU	PR$_XSID_N3	3
$EQU	PR$_XSID_N4	4
$EQU	PR$_XSID_N5	5
$EQU	PR$_XSID_N8550	6
$EQU	PR$_XSID_N8500	7
$EQU	PR$_XSID_N8NNN	-1

    
    2. (extracted by using MCR SYSGEN, then HELP TERM)
  
mc sysgen

help

  Information available:

  AUTOCONFIGURE         CONFIGURE  CONNECT    CREATE     DISABLE    ENABLE
  EXIT       HELP       INSTALL    LOAD       MSCP       Parameters RELOAD
  SET        SHARE      SHOW       TERMINAL   USE        WRITE


term

TERMINAL

  Modifies the CTRL/C, CTRL/O, CTRL/Y, and CTRL/Z echo strings on
  a system-wide basis.  The /ECHO qualifier is required.

  Format
    TERMINAL/ECHO

374.2SYS$EXAMPLES:SYSGTTSTR.MSGFROST::HARRIMANA cold blast from the North...Thu Dec 18 1986 14:026
    See SYS$EXAMPLES:SYSGTTSTR.MSG
    
    to change ^O, ^Y, ^C strings...
    
    /pjh
    
374.3Look at directory bitCRVAX1::LAMPSONMike Lampson @DDOThu Dec 18 1986 18:225
        There is a bit in the file header to tell if a file is a directory
        file.  You will need to find someone who's more of an RMS guru
        than myself to find this flag.
       
       _Mike
374.4RMS?CAFEIN::PFAUYou can't get there from hereThu Dec 18 1986 20:004
    Not sure that this information is available through RMS.  You might
    have to use ACP/XQP calls...
    
    tom_p
374.5.DIR;1TLE::GRIEBSET TERMINAL/READ_MOSTLYFri Dec 19 1986 14:136
Yeah - do a QIO and you can get it. Unfortunately it isn't used in a lot
of places that it should be. The test that is STILL used in a lot of VMS code
is if the name is xxxxx.DIR;1 then it's a directory.


374.6Answer to #3THEBAY::HAYESSame stuff, different DaySat Dec 20 1986 21:0312
    
    Thank you for the pointer.   The answer to question #3 is to:
    
    Do a $QIO using the IO$ACCESS function with P5 pointing to an Attribute
    control block specifying ATR$C_UCHAR to return file characteristics
    in a longword.  A directory file has the FCH$M_DIRECTORY bit set.
    
    (From the I/O Users Guide, Chapter 1).
    
    Happy Holidays!
    John