/********************************************************************************************************************************/ /* Created: 22-Mar-2010 04:15:48 by OpenVMS SDL EV3-3 */ /* Source: 03-FEB-1997 17:19:46 JEDI_AXP_JEDI_RESD$:[DNS.SRC]DNSDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $dnsdef IDENT X-18 ***/ #pragma __member_alignment __save #pragma __nomember_alignment /* */ /************************************************************************** */ /* Copyright (C) 1987, 1991 by * */ /* DIGITAL Equipment Corporation, Maynard, Mass. * */ /* * */ /* 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 or any other * */ /* copies thereof may not be provided or otherwise made available 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 * */ /* and should not be construed as a commitment by DIGITAL Equipment * */ /* Corporation. * */ /* * */ /* DIGITAL assumes no responsibility for the use or reliability of its * */ /* software on equipment which is not supplied by DIGITAL. * */ /* * */ /************************************************************************** */ /* */ /* */ /* FACILITY: VMS Clerk for DNA Naming Service */ /* */ /* ABSTRACT: VMSclerk User accessible data structures */ /* */ /* */ /* */ /* Architectural Constants */ /* */ #define dns$k_simplestrmax 255 /* max size simple name string */ #define dns$k_fullstrmax 512 /* max size full name string */ #define dns$k_simplenamemax 257 /* max size of opaque simple name */ #define dns$k_fullnamemax 402 /* max size of opaqaue full name */ #define dns$k_classsize 31 /* max size of class name length */ #define dns$k_maxattribute 4000 /* longest attribute member */ #define dns$k_present 1 /* Attr. Value is present */ #define dns$k_absent 0 /* Attr. Value is not present */ #define dns$k_timeout_size 16 /* size of timeout opaque struct */ #define dns$k_cts_length 14 /* size of DNS CTSs */ #define dns$k_uid_length 14 /* size of DNS UIDs - V1 compatibility */ /* */ /* Function codes for $DNS service */ /* */ /* */ #define dns$_enumerate_attributes 1 #define dns$_read_attribute 2 #define dns$_test_attribute 4 #define dns$_create_object 5 #define dns$_enumerate_objects 6 #define dns$_delete_object 7 #define dns$_create_directory 8 #define dns$_delete_directory 9 #define dns$_add_replica 10 #define dns$_remove_replica 11 #define dns$_enumerate_children 12 #define dns$_skulk 13 #define dns$_create_link 14 #define dns$_remove_link 15 #define dns$_delete_link 15 #define dns$_resolve_name 16 #define dns$_test_group 17 #define dns$_create_child_entry 18 #define dns$_enumerate_softlinks 19 #define dns$_delete_child_entry 20 #define dns$_read_replica 21 #define dns$_modify_replica 22 #define dns$_link_replica 23 #define dns$_combine 24 #define dns$_do_update 25 #define dns$_modify_attribute 30 #define dns$_parse_fullname_string 31 #define dns$_full_opaque_to_string 32 #define dns$_parse_simplename_string 33 #define dns$_simple_opaque_to_string 34 #define dns$_allow_ch 35 #define dns$_disallow_ch 36 #define dns$_new_epoch 37 #define dns$_create_cts 38 #define dns$_func_limit 39 /* */ /* Item list entries for parameters to the various Clerk calls */ /* */ #define dns$_attributename 3 #define dns$_class 9 #define dns$_classfilter 11 #define dns$_clearinghouse 13 #define dns$_conf 14 #define dns$_contextvarname 16 #define dns$_contextvartime 17 #define dns$_directory 19 #define dns$_entry 22 #define dns$_fromexternalname 24 #define dns$_fromfullname 25 #define dns$_fromsimplename 26 #define dns$_group 28 #define dns$_inoutdirect 29 #define dns$_linkname 31 #define dns$_lookingfor 32 #define dns$_maybemore 34 #define dns$_member 36 #define dns$_objectname 40 #define dns$_outattributeset 43 #define dns$_outchildren 45 #define dns$_outobjects 48 #define dns$_outvalues 50 #define dns$_outsoftlinks 53 #define dns$_targetname 58 #define dns$_timeout 59 #define dns$_toexternalname 60 #define dns$_tofullname 61 #define dns$_tosimplename 62 #define dns$_outname 64 #define dns$_outcts 65 #define dns$_outuid 65 #define dns$_value 68 #define dns$_version 69 #define dns$_wait 70 #define dns$_wildcard 72 #define dns$_modoperation 73 #define dns$_modvalue 74 #define dns$_attributetype 76 #define dns$_tostringname 77 #define dns$_fromstringname 78 #define dns$_nextchar_ptr 79 #define dns$_suppress_nsname 80 #define dns$_outvalset 81 #define dns$_outconf 82 #define dns$_inoutreturnclass 84 #define dns$_ignorestate 85 #define dns$_secondaryset 86 #define dns$_readonlyset 87 #define dns$_param_limit 88 /* */ /* Definitions of confidence level parameter */ /* */ #define dns$k_low 1 /* */ #define dns$k_medium 2 /* */ #define dns$k_high 3 /* */ /* */ /* Definitions of attribute types */ /* */ #define dns$k_single 2 /* Single valued attribute */ #define dns$k_set 3 /* Set attribute */ /* */ /* Definitions of entry type for LookingFor parameter */ /* */ #define dns$k_directory 1 /* */ #define dns$k_object 2 /* */ #define dns$k_childdirectory 3 /* */ #define dns$k_softlink 4 /* */ #define dns$k_clearinghouse 5 /* */ /* */ /* CLASSVERSION - DNS Class version structure */ /* */ /* Used by the create object call to indicate object version number. */ /* MAJOR_NUMBER.MINOR_NUMBER */ /* */ /* */ struct $dnscversdef { unsigned char dns$b_c_major; /* Major number of class */ unsigned char dns$b_c_minor; /* Minor number of class */ } ; /* */ /* GRPMEM - DNS GroupMember structure */ /* */ /* Used in the DNS$Members attribute of a group object to denote */ /* group membership. */ /* */ /* */ #define dns$k_grpmem_not_group 0 /* member is not a group */ #define dns$k_grpmem_is_group 1 /* member is a group */ /* */ struct $dnsgrpmemdef { unsigned char dns$b_grpmem_type; /* indicates whether member is itself a group */ char dns$a_grpmem_member [2]; /* FullName of group member */ } ; /* */ /* ATTRSPEC DNS attribute specifier structure. */ /* Structure of values returned by the Enumerate_Attributes call. */ /* */ #define dns$k_spec_fixed 1 /* Length of fixed portion */ struct $dnsattrspecdef { unsigned char dns$b_spec_flag; /* type of attribute dns$k_single */ /* or dns$k_set */ char dns$a_spec_name [2]; /* simplename of attribute */ } ; /* */ /* itm - Generic item list entry */ /* */ #define dns$k_itm_length 12 struct $dnsitmdef { unsigned short int dns$w_itm_size; /* Length in bytes of item */ unsigned short int dns$w_itm_code; /* Item code */ int *dns$a_itm_address; /* Address of item value */ int *dns$a_itm_ret_length; /* Address to return word length */ } ; /* */ /* DNS request status block */ /* */ struct $dnsb { unsigned int dns$l_dnsb_status; /* DNSB completion status */ unsigned dns$v_dnsb_inoutdirect : 1; /* */ unsigned dns$v_dnsb_outlinked : 1; /* */ unsigned dns$v_dnsb_filler : 30; } ; #pragma __member_alignment __restore