/* Copyright 1989, 1990, 1992 Digital Equipment Corporation All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software and any copies shall not be provided to any other person. No title to or ownership of the software is hereby transferred. The information in this software is subject to change without notice. DIGITAL assumes no responsibility for the use, functionality or reliability of its software on equipment which is not supplied by DIGITAL. nam.h PDP-11 C NAM - Name Block Definitions */ #ifndef __PDP11C$NAM_H #define __PDP11C$NAM_H #define NAM$C_BLN (040) /* NAM block length (bytes) */ #define NAM$K_BLN (040) #define NAM$W_RLF (00) /* O$RLF */ #define NAM$W_RSA (02) /* O$RSA */ #define NAM$B_RSS (04) /* O$RSS */ #define NAM$C_MAXRSS (0377) /* Maximum resultant name string size (network) */ #define NAM$C_MAXRSSLCL (0377) /* Maximum resultant name string size (local) */ #define NAM$B_RSL (05) /* O$RLS */ #define NAM$C_DVI (04) /* Length of DVI field */ #define NAM$T_DVI (06) /* O$DVI */ #define NAM$W_WDI (012) /* O$WDI */ #define NAM$W_FID (014) /* O$FID */ #define NAM$W_DID (022) /* O$DID */ #define NAM$W_FNB (030) /* O$FNB */ #define NAM$M_EXP_VER (1 << NAM$V_EXP_VER) /* NB$VER File version in file string or default string */ #define NAM$M_EXP_TYPE (1 << NAM$V_EXP_TYPE) /* NB$TYP File type in file string or default string */ #define NAM$M_EXP_NAME (1 << NAM$V_EXP_NAME) /* NB$NAM File name in file string or default string */ #define NAM$M_WILD_VER (1 << NAM$V_WILD_VER) /* NB$WVE Wildcard file version in file string or default string */ #define NAM$M_WILD_TYPE (1 << NAM$V_WILD_TYPE) /* NB$WTY Wildcard file type in file string or default string */ #define NAM$M_WILD_NAME (1 << NAM$V_WILD_NAME) /* NB$WNA Wildcard file name in file string or default string */ #define NAM$M_EXP_DIR (1 << NAM$V_EXP_DIR) /* NB$DIR Directory in file string or default string */ #define NAM$M_EXP_DEV (1 << NAM$V_EXP_DEV) /* NB$DEV Device in file string or default string */ #define NAM$M_NODE (1 << NAM$V_NODE) /* NB$NOD Node in file string or default string */ #define NAM$M_WILDCARD (1 << NAM$V_WILDCARD) /* NB$WDI Wildcard directory in file string or default string */ #define NAM$M_QUOTED (1 << NAM$V_QUOTED) /* NB$QUO Quoted string in file string or default string */ #define NAM$M_WILD_CXT (1 << NAM$V_WILD_CXT) /* NB$CXT Wildcard context established */ #define NAM$V_EXP_VER (00) #define NAM$V_EXP_TYPE (01) #define NAM$V_EXP_NAME (02) #define NAM$V_WILD_VER (03) #define NAM$V_WILD_TYPE (04) #define NAM$V_WILD_NAME (05) #define NAM$V_EXP_DIR (06) #define NAM$V_EXP_DEV (07) #define NAM$V_NODE (010) #define NAM$V_WILDCARD (011) #define NAM$V_QUOTED (012) #define NAM$V_WILD_CXT (013) #define NAM$L_ESA (032) /* O$ESA */ #define NAM$B_ESS (034) /* O$ESS */ #define NAM$B_ESL (035) /* O$ESL */ #define NAM$W_WCC (036) /* O$WCC */ struct NAM { unsigned short nam$w_rlf; /* Reserved */ char *nam$l_rsa; /* Resultant string buffer address */ unsigned char nam$b_rss; /* Resultant string buffer size (bytes) */ unsigned char nam$b_rsl; /* Resultant string length (bytes) */ char nam$t_dvi[NAM$C_DVI]; /* Device identifier */ unsigned short nam$w_wdi; /* Wildcard directory context*/ unsigned short nam$w_fid[3]; /* File identifier */ unsigned short nam$w_did[3]; /* Directory identifier */ unsigned short nam$w_fnb; /* File specification mask */ char *nam$l_esa; /* Expanded string buffer address */ unsigned char nam$b_ess; /* Expanded string buffer size (bytes) */ unsigned char nam$b_esl; /* Expanded string length (bytes) */ unsigned short nam$w_wcc; /* Wild card context */ }; /* The struct definition which follows this comment defines cc$rms_nam as an instance of a NAM which is initialized to default values. If you wish to use it, you must include the following line in any module which refers to cc$rms_nam: #define RMS_NAM$PROTOTYPE The definition must appear before the #include statement. */ #ifdef RMS_NAM$PROTOTYPE #define cc$rms_nam CC$NAM /* 6 chars for TKB, cc$rms_nam for VMS compatability */ struct NAM cc$rms_nam; /* Declare initialized prototype data structure */ #endif #endif