PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/src/cl/clf/hdr_vms/snalibdef.h

https://github.com/saqibjamil/Ingres
C Header | 773 lines | 578 code | 6 blank | 189 comment | 2 complexity | 067352e55d375e6c8e0530da6aa5a347 MD5 | raw file
  1. /********************************************************************************************************************************/
  2. /* Created 11-DEC-1987 16:58:14 by VAX-11 SDL V3.0-2 Source: 22-OCT-1987 14:36:52 SNA$ENVIR:[AI.AI.SRC]SNALIBDEF.SDL;1 */
  3. /********************************************************************************************************************************/
  4. /*** MODULE SNALIBDF IDENT V01.10 ***/
  5. /* SNA Library Definitions */
  6. /* */
  7. /***************************************************************************** */
  8. /** * */
  9. /** Copyright (C) 1982, 1983, 1984, 1985, 1986, 1987 * */
  10. /** by Digital Equipment Corporation, Maynard, Mass. * */
  11. /** * */
  12. /** This software is furnished under a license and may be used and copied * */
  13. /** only in accordance with the terms of such license and with the * */
  14. /** inclusion of the above copyright notice. This software or any other * */
  15. /** copies thereof may not be provided or otherwise made available to any * */
  16. /** other person. No title to and ownership of the software is hereby * */
  17. /** transferred. * */
  18. /** * */
  19. /** The information in this software is subject to change without notice * */
  20. /** and should not be construed as a commitment by digital equipment * */
  21. /** corporation. * */
  22. /** * */
  23. /** Digital assumes no responsibility for the use or reliability of its * */
  24. /** software on equipment which is not supplied by digital. * */
  25. /** * */
  26. /***************************************************************************** */
  27. /**++ */
  28. /** FACILITY: SNA Gateway Access Routines */
  29. /** */
  30. /** ABSTRACT: SNA Library Definitions */
  31. /** */
  32. /** ENVIRONMENT: */
  33. /** */
  34. /** VAX/VMS Operating System */
  35. /** */
  36. /** AUTHOR: Distributed Systems Software Engineering */
  37. /** */
  38. /** CREATION DATE: 14-July-1982 */
  39. /** */
  40. /** Modified by: */
  41. /** */
  42. /** 1.01 19-Oct-1983 Dave Garrod */
  43. /** Add ASYNCEFN and NOTPAR parameters to the CONNECT and LISTEN */
  44. /** functions. */
  45. /** */
  46. /** 1.02 21-Mar-1984 Dave Garrod */
  47. /** Define fields in BIND that are used by LU6.2. Add Conditional */
  48. /** End Bracket to RH definitions. */
  49. /** */
  50. /** 1.03 23-Aug-1984 Dave Garrod */
  51. /** Define crytography fields in BIND. */
  52. /** */
  53. /** 1.04 18-Sep-1984 Dave Garrod */
  54. /** Add SNAEVT$K_PLURESET from EAI component. */
  55. /** */
  56. /** 1.05 16-Nov-1984 Dave Garrod */
  57. /** Add routine SNA$REPORT_ERROR. */
  58. /** */
  59. /** 1.06 22-May-1985 Dave Garrod */
  60. /** Add support for VMS/SNA. */
  61. /** */
  62. /** 1.07 20-Aug-1985 Jeff Waltz */
  63. /** Removed routine SNA$REPORT_ERROR which */
  64. /** which is no longer needed. */
  65. /** */
  66. /** 1.08 09-May-1986 Dave Garrod */
  67. /** Add definition for routines SNA$LINK_ACCEPT_W and SNA$LINK_ACCEPT. */
  68. /** Add LUPASSWORD and PID parameters to SNA$CONNECT[_W] and */
  69. /** SNA$LISTEN[_W]. */
  70. /** */
  71. /** 1.09 24-Sep-1986 Jonathan D. Belanger */
  72. /** Changed bytes 23 and 25 in the structure SNABND to reflect similar */
  73. /** IBM changes. */
  74. /** */
  75. /** 1.10 03-Aug-1987 Jonathan D. Belanger */
  76. /** Add the constants SNABUF$K_SSCP_LU_BUFSIZ and SNABUF$K_LU_LU_BUFSIZ */
  77. /** to be used by SNA$$GETRECBUF to figure out which size of buffer to */
  78. /** allocate. */
  79. /** */
  80. /** HISTORY: */
  81. /** 25-sep-95 (whitfield) */
  82. /** Turn off member_alignment. */
  83. /* 19-jul-2007 (stegr01) */
  84. /* use compiler supplied macro __alpha and __ia64 instead of ALPHA */
  85. /**-- */
  86. #if (defined(__alpha) || defined(__ia64))
  87. #pragma member_alignment __save
  88. #pragma nomember_alignment
  89. #endif /* ALPHA */
  90. /* */
  91. /* Access Routine Events */
  92. /* */
  93. #define SNAEVT$K_MIN 1
  94. #define SNAEVT$K_RCVEXP 1 /* Data received on expedited flow */
  95. #define SNAEVT$K_UNBHLD 2 /* UNBIND HOLD event */
  96. #define SNAEVT$K_TERM 3 /* Session terminated by IBM host or gateway */
  97. #define SNAEVT$K_COMERR 4 /* Gateway Communication Error */
  98. #define SNAEVT$K_PLURESET 5 /* Half session state machines reset */
  99. #define SNAEVT$K_MAX 5
  100. struct SNAEVT {
  101. unsigned long int SNAEVT$L_DUMMY; /* Dummy entry to keep SDL happy */
  102. /* */
  103. /* The Basic AI returns RCVEXP, UNBHLD, TERM, and COMERR. The EAI returns */
  104. /* these plus PLURESET */
  105. /* */
  106. } ;
  107. /* */
  108. /* Gateway Access Routine Buffer Definitions */
  109. /* */
  110. #define SNABUF$K_FHDLEN 2 /* Function header length */
  111. #define SNABUF$K_HDLEN 7 /* Standard buffer header size */
  112. #define SNABUF$K_LENGTH 263 /* Buffer Length */
  113. #define SNABUF$K_SSCP_LENGTH 2055 /* SSCP buffer length (2048 + 7) */
  114. #define SNABUF$K_SSCP_LU_BUFSIZ 1 /* Allocate an SSCP-LU buffer */
  115. #define SNABUF$K_LU_LU_BUFSIZ 2 /* Allocate an LU-LU buffer */
  116. struct SNABUF {
  117. unsigned char SNABUF$B_FCT; /* Function code */
  118. unsigned char SNABUF$B_FCTMOD; /* Function modifier */
  119. unsigned short int SNABUF$W_SEQ; /* Sequence number */
  120. char SNABUF$T_RH [3];
  121. char SNABUF$T_DATA [256]; /* Data area */
  122. } ;
  123. /* */
  124. /* Gateway Access Routine Termination Buffer Definitions */
  125. /* */
  126. #define SNATRM$K_LENGTH 11 /* Length of termination buffer */
  127. struct SNATRM {
  128. unsigned long int SNATRM$L_REASON; /* VMS reason code */
  129. unsigned short int SNATRM$W_SENSE0; /* Sense code word 0 */
  130. unsigned short int SNATRM$W_SENSE1; /* Sense code word 1 */
  131. unsigned char SNATRM$B_UNBCOD; /* Unbind code */
  132. unsigned char SNATRM$B_GWYCOD; /* Gateway abort code */
  133. unsigned char SNATRM$B_GWYQUA; /* Gateway abort code qualifier */
  134. } ;
  135. /* */
  136. /* Gateway Access Routine IOSB definitions */
  137. /* */
  138. #define SNAIOS$K_LENGTH 8 /* Length of IOSB */
  139. struct SNAIOS {
  140. unsigned long int SNAIOS$L_STATUS; /* Status field */
  141. unsigned long int SNAIOS$L_QUAL; /* Qualifier field */
  142. } ;
  143. /* */
  144. /* RH Definitions :- */
  145. /* The definitions are in reverse order to IBM because of */
  146. /* the differing bit labeling conventions between DEC and IBM */
  147. /* */
  148. #define SNARH$K_LENGTH 3 /* Length of RH */
  149. #define SNARH$M_ECI 1
  150. #define SNARH$M_BCI 2
  151. #define SNARH$M_SDI 4
  152. #define SNARH$M_FI 8
  153. #define SNARH$M_RE0 16
  154. #define SNARH$M_RUC 96
  155. #define SNARH$M_RRI 128
  156. #define SNARH$M_PI 256
  157. #define SNARH$M_QRI 512
  158. #define SNARH$M_RE1 3072
  159. #define SNARH$M_ERI 4096
  160. #define SNARH$M_DR2I 8192
  161. #define SNARH$M_RE2 16384
  162. #define SNARH$M_DR1I 32768
  163. #define SNARH$M_CEB 65536
  164. #define SNARH$M_PDI 131072
  165. #define SNARH$M_EDI 262144
  166. #define SNARH$M_CSI 524288
  167. #define SNARH$M_RE4 1048576
  168. #define SNARH$M_CDI 2097152
  169. #define SNARH$M_EBI 4194304
  170. #define SNARH$M_BBI 8388608
  171. #define SNARH$M_RE5 255
  172. #define SNARH$M_RE6 3840
  173. #define SNARH$M_RTI 4096
  174. #define SNARH$M_RE8 16711680
  175. #define SNARH$K_RRI_RQ 0 /* Request */
  176. #define SNARH$K_RRI_RSP 1 /* Response */
  177. /* */
  178. #define SNARH$K_RUC_MIN 0
  179. #define SNARH$K_RUC_FMD 0 /* Function management data */
  180. #define SNARH$K_RUC_NC 1 /* Network Control data */
  181. #define SNARH$K_RUC_DFC 2 /* Data Flow Control data */
  182. #define SNARH$K_RUC_SC 3 /* Session Control data */
  183. #define SNARH$K_RUC_MAX 3
  184. /* */
  185. #define DFC$K_RQ_LUSTAT 4 /* Logical Unit Status */
  186. #define DFC$K_RQ_RTR 5 /* Ready to Receive brackets */
  187. #define DFC$K_RQ_BIS 112 /* Bracket Initiation Stopped */
  188. #define DFC$K_RQ_SBI 113 /* Stop Bracket Initiation */
  189. #define DFC$K_RQ_QEC 128 /* Quiesce at End of Chain */
  190. #define DFC$K_RQ_QC 129 /* Quiesce Complete */
  191. #define DFC$K_RQ_RELQ 130 /* Release Quiesce */
  192. #define DFC$K_RQ_CANCEL 131 /* Cancel */
  193. #define DFC$K_RQ_CHASE 132 /* Chase */
  194. #define DFC$K_RQ_SHUTD 192 /* Shutdown */
  195. #define DFC$K_RQ_SHUTC 193 /* Shutdown Complete */
  196. #define DFC$K_RQ_RSHUTD 194 /* Request Shutdown */
  197. #define DFC$K_RQ_BID 200 /* Bid to begin bracket */
  198. #define DFC$K_RQ_SIG 201 /* Signal */
  199. #define SC$K_RQ_DACTLU 14 /* Deactivate logical unit */
  200. #define SC$K_RQ_BIND 49 /* Bind session */
  201. #define SC$K_RQ_UNBIND 50 /* Unbind session */
  202. #define SC$K_RQ_SDT 160 /* Start Data Traffic */
  203. #define SC$K_RQ_CLEAR 161 /* Clear session to Data-Traffic-Reset */
  204. #define SC$K_RQ_STSN 162 /* Set and Test Sequence Numbers */
  205. #define SC$K_RQ_RQR 163 /* Request Recovery */
  206. #define SC$K_RQ_CRV 192 /* Crypto-verify */
  207. #define FMD$K_RQ_NSPE 67076 /* NS Procedure Error */
  208. union SNARH {
  209. struct { /* RH bytes */
  210. unsigned char SNARH$B_B0; /* Byte 0 */
  211. unsigned char SNARH$B_B1; /* Byte 1 */
  212. unsigned char SNARH$B_B2; /* Byte 2 */
  213. } SNARH$R_RHBYT;
  214. union { /* Whole of the RH */
  215. struct { /* Request definitions */
  216. /* */
  217. /* Byte 0 */
  218. /* */
  219. unsigned SNARH$V_ECI : 1; /* End chain indicator */
  220. unsigned SNARH$V_BCI : 1; /* Begin Chain indicator */
  221. unsigned SNARH$V_SDI : 1; /* Sense Data Included indicator */
  222. unsigned SNARH$V_FI : 1; /* Format indicator */
  223. unsigned SNARH$V_RE0 : 1; /* Reserved */
  224. unsigned SNARH$V_RUC : 2; /* Request-Response unit category */
  225. unsigned SNARH$V_RRI : 1; /* Request-Response indicator */
  226. /* */
  227. /* Byte 1 */
  228. /* */
  229. unsigned SNARH$V_PI : 1; /* Pacing indicator */
  230. unsigned SNARH$V_QRI : 1; /* Queued Response indicator */
  231. unsigned SNARH$V_RE1 : 2; /* Reserved */
  232. unsigned SNARH$V_ERI : 1; /* Exception Response indicator */
  233. unsigned SNARH$V_DR2I : 1; /* Definite Response 2 indicator */
  234. unsigned SNARH$V_RE2 : 1; /* Reserved */
  235. unsigned SNARH$V_DR1I : 1; /* Definite Response 1 indicator */
  236. /* */
  237. /* Byte 2 */
  238. /* */
  239. unsigned SNARH$V_CEB : 1; /* Conditional End Bracket */
  240. unsigned SNARH$V_PDI : 1; /* Padded Data indicator */
  241. unsigned SNARH$V_EDI : 1; /* Enciphered Data indicator */
  242. unsigned SNARH$V_CSI : 1; /* Code Selection indicator */
  243. unsigned SNARH$V_RE4 : 1; /* Reserved */
  244. unsigned SNARH$V_CDI : 1; /* Change Direction indicator */
  245. unsigned SNARH$V_EBI : 1; /* End Bracket indicator */
  246. unsigned SNARH$V_BBI : 1; /* Begin Bracket indicator */
  247. } SNARH$R_RQDEF;
  248. struct { /* RH response definitions */
  249. /* */
  250. /* Byte 0 */
  251. /* */
  252. unsigned SNARH$V_RE5 : 8;
  253. /* */
  254. /* Byte 1 */
  255. /* */
  256. unsigned SNARH$V_RE6 : 4; /* Reserved */
  257. unsigned SNARH$V_RTI : 1; /* Response Type indicator */
  258. unsigned SNARH$V_RE7 : 3; /* Reserved */
  259. /* */
  260. /* Byte 2 */
  261. /* */
  262. unsigned SNARH$V_RE8 : 8; /* Reserved */
  263. } SNARH$R_RSPDEF;
  264. } SNARH$V_FULL_RH;
  265. /* */
  266. /* RH field values */
  267. /* */
  268. /* RU Categories */
  269. /* */
  270. /* Data Flow Control request definitions. */
  271. /* */
  272. struct {
  273. unsigned char DFC$B_DUMMY; /* Dummy field, keeps SDL happy */
  274. } SNARH$R_DFCDEF;
  275. /* */
  276. /* Session Control request definitions. */
  277. /* */
  278. struct {
  279. unsigned char SC$B_DUMMY; /* Dummy field, keeps SDL happy */
  280. } SNARH$R_SCDEF;
  281. /* */
  282. /* FMD NS Header Definitions. */
  283. /* */
  284. struct {
  285. unsigned char FMD$B_DUMMY; /* Dummy field, keeps SDL happy */
  286. } SNARH$R_FMDDEF;
  287. } ;
  288. /* */
  289. /* Bind definitions. */
  290. /* The definitions are in reverse order to IBM because of */
  291. /* the differing bit labeling conventions between DEC and IBM */
  292. /* */
  293. #define SNABND$M_P_SEB 1
  294. #define SNABND$M_P_CMP 2
  295. #define SNABND$M_R0 4
  296. #define SNABND$M_PH_COM 8
  297. #define SNABND$M_P_CHR 48
  298. #define SNABND$M_P_RMS 64
  299. #define SNABND$M_P_CHU 128
  300. #define SNABND$M_S_SEB 1
  301. #define SNABND$M_S_CMP 2
  302. #define SNABND$M_R1 4
  303. #define SNABND$M_S_TPC 8
  304. #define SNABND$M_S_CHR 48
  305. #define SNABND$M_S_RMS 64
  306. #define SNABND$M_S_CHU 128
  307. #define SNABND$M_BRQ 1
  308. #define SNABND$M_BIS 2
  309. #define SNABND$M_SNA 4
  310. #define SNABND$M_ACS 8
  311. #define SNABND$M_BTP 16
  312. #define SNABND$M_BRU 32
  313. #define SNABND$M_FMU 64
  314. #define SNABND$M_SEG 128
  315. #define SNABND$M_CNR 1
  316. #define SNABND$M_CVI 2
  317. #define SNABND$M_ALPI 12
  318. #define SNABND$M_BFS 16
  319. #define SNABND$M_RCR 32
  320. #define SNABND$M_NFM 192
  321. #define SNABND$M_SSW 63
  322. #define SNABND$M_R2 64
  323. #define SNABND$M_SSI 128
  324. #define SNABND$M_SRW 63
  325. #define SNABND$M_R3 192
  326. #define SNABND$M_S_EXP 15
  327. #define SNABND$M_S_MAN 240
  328. #define SNABND$M_P_EXP 15
  329. #define SNABND$M_P_MAN 240
  330. #define SNABND$M_PSW 63
  331. #define SNABND$M_R4 64
  332. #define SNABND$M_PSI 128
  333. #define SNABND$M_PRW 63
  334. #define SNABND$M_R5 192
  335. #define SNABND$M_LUT 127
  336. #define SNABND$M_PUF 128
  337. #define SNABND$M_R12 1
  338. #define SNABND$M_AVI 2
  339. #define SNABND$M_R13 12
  340. #define SNABND$M_ASI 16
  341. #define SNABND$M_R14 224
  342. #define SNABND$M_GDS 1
  343. #define SNABND$M_PAS 2
  344. #define SNABND$M_RER 12
  345. #define SNABND$M_R15 16
  346. #define SNABND$M_SYL 96
  347. #define SNABND$M_R16 128
  348. #define SNABND$M_CRL 15
  349. #define SNABND$M_CRS 48
  350. #define SNABND$M_CRP 192
  351. #define SNABND$M_CCM 7
  352. #define SNABND$M_R17 56
  353. #define SNABND$M_SCKSLU 192
  354. #define SNABND$K_LENGTH 29 /* Length of defined part of BIND image */
  355. /* (the BIND image can be longer) */
  356. struct SNABND {
  357. struct { /* Byte 0 */
  358. unsigned char SNABND$B_CMD; /* Bind command */
  359. } SNABND$B_B0;
  360. struct { /* Byte 1 */
  361. unsigned char SNABND$B_BFMT; /* Bind format */
  362. } SNABND$B_B1;
  363. struct { /* Byte 2 */
  364. unsigned char SNABND$B_FMP; /* FM profile */
  365. } SNABND$B_B2;
  366. struct { /* Byte 3 */
  367. unsigned char SNABND$B_TSP; /* TS profile */
  368. } SNABND$B_B3;
  369. struct { /* Byte 4 - Primary LU protocols */
  370. unsigned SNABND$V_P_SEB : 1; /* Send End Bracket indicator */
  371. unsigned SNABND$V_P_CMP : 1; /* Compresion indicator */
  372. unsigned SNABND$V_R0 : 1; /* Reserved */
  373. unsigned SNABND$V_PH_COM : 1; /* 2-phase commit for sync point */
  374. unsigned SNABND$V_P_CHR : 2; /* Chaining Responses */
  375. unsigned SNABND$V_P_RMS : 1; /* Request mode selection */
  376. unsigned SNABND$V_P_CHU : 1; /* Chaining use */
  377. } SNABND$B_B4;
  378. struct { /* Byte 5 - Secondary LU protocols */
  379. unsigned SNABND$V_S_SEB : 1; /* Send End Bracket indicator */
  380. unsigned SNABND$V_S_CMP : 1; /* Compresion indicator */
  381. unsigned SNABND$V_R1 : 1; /* Reserved */
  382. unsigned SNABND$V_S_TPC : 1; /* Two Phase Commit Supported */
  383. unsigned SNABND$V_S_CHR : 2; /* Chaining Responses */
  384. unsigned SNABND$V_S_RMS : 1; /* Request mode selection */
  385. unsigned SNABND$V_S_CHU : 1; /* Chaining use */
  386. } SNABND$B_B5;
  387. struct { /* Byte 6 - Common Protocols */
  388. unsigned SNABND$V_BRQ : 1; /* BIND response queue capability */
  389. unsigned SNABND$V_BIS : 1; /* BIS sent */
  390. unsigned SNABND$V_SNA : 1; /* Sequence number availability */
  391. unsigned SNABND$V_ACS : 1; /* Alternate Code Selection */
  392. unsigned SNABND$V_BTP : 1; /* Bracket Termination Protocol */
  393. unsigned SNABND$V_BRU : 1; /* Bracket usage */
  394. unsigned SNABND$V_FMU : 1; /* FM Header usage */
  395. unsigned SNABND$V_SEG : 1; /* Session segmenting */
  396. } SNABND$B_B6;
  397. struct { /* Byte 7 - Common Protocols */
  398. unsigned SNABND$V_CNR : 1; /* Contention Resolution */
  399. unsigned SNABND$V_CVI : 1; /* Control vectors included */
  400. unsigned SNABND$V_ALPI : 2; /* Alternat code processing ASCII-7 or 8 */
  401. unsigned SNABND$V_BFS : 1; /* Bracket First Speaker */
  402. unsigned SNABND$V_RCR : 1; /* Recovery Responsibilty */
  403. unsigned SNABND$V_NFM : 2; /* Normal Flow Mode */
  404. } SNABND$B_B7;
  405. struct { /* Byte 8 */
  406. unsigned SNABND$V_SSW : 6; /* Secondary CPMGRs send Window Size */
  407. unsigned SNABND$V_R2 : 1; /* Reserved */
  408. unsigned SNABND$V_SSI : 1; /* Secondary CPMGRs Staging Indicator */
  409. } SNABND$B_B8;
  410. struct { /* Byte 9 */
  411. unsigned SNABND$V_SRW : 6; /* Secondary CPMGRs receive Window Size */
  412. unsigned SNABND$V_R3 : 2; /* Reserved */
  413. } SNABND$B_B9;
  414. struct { /* Byte 10 */
  415. struct { /* Maximum RU size sent by SLU */
  416. unsigned SNABND$V_S_EXP : 4;
  417. /* Exponent */
  418. unsigned SNABND$V_S_MAN : 4;
  419. /* Mantissa */
  420. } SNABND$B_S_MRU;
  421. } SNABND$B_B10;
  422. struct { /* Byte 11 */
  423. struct { /* Maximum RU size sent by PLU */
  424. unsigned SNABND$V_P_EXP : 4;
  425. /* Exponent */
  426. unsigned SNABND$V_P_MAN : 4;
  427. /* Mantissa */
  428. } SNABND$B_P_MRU;
  429. } SNABND$B_B11;
  430. struct { /* Byte 12 */
  431. unsigned SNABND$V_PSW : 6; /* Primary CPMGRs send window size */
  432. unsigned SNABND$V_R4 : 1; /* Reserved */
  433. unsigned SNABND$V_PSI : 1; /* Primary CPMGRs staging indicator */
  434. } SNABND$B_B12;
  435. struct { /* Byte 13 */
  436. unsigned SNABND$V_PRW : 6; /* Primary CPMGRs receive window size */
  437. unsigned SNABND$V_R5 : 2; /* Reserved */
  438. } SNABND$B_B13;
  439. struct { /* Byte 14 - PS Profile */
  440. unsigned SNABND$V_LUT : 7; /* LU type */
  441. unsigned SNABND$V_PUF : 1; /* PS Usage Field */
  442. } SNABND$B_B14;
  443. union { /* Bytes 15-25 - PS Characteristics */
  444. struct { /* Straight bytes */
  445. unsigned char SNABND$B_B15; /* Byte 15 */
  446. unsigned char SNABND$B_B16; /* Byte 16 */
  447. unsigned char SNABND$B_B17; /* Byte 17 */
  448. unsigned char SNABND$B_B18; /* Byte 18 */
  449. unsigned char SNABND$B_B19; /* Byte 19 */
  450. unsigned char SNABND$B_B20; /* Byte 20 */
  451. unsigned char SNABND$B_B21; /* Byte 21 */
  452. unsigned char SNABND$B_B22; /* Byte 22 */
  453. unsigned char SNABND$B_B23; /* Byte 23 */
  454. unsigned char SNABND$B_B24; /* Byte 24 */
  455. unsigned char SNABND$B_B25; /* Byte 25 */
  456. } SNABND$R_BYTES;
  457. struct { /* LU2 PS usage */
  458. char SNABND$B_R9 [5]; /* Bytes 15-19 - Reserved */
  459. unsigned char SNABND$B_DFR; /* Byte 20 - Default Number of Rows */
  460. unsigned char SNABND$B_DFC; /* Byte 21 - Default Number of Columns */
  461. unsigned char SNABND$B_ANR; /* Byte 22 - Alternate Number of Rows */
  462. unsigned char SNABND$B_ANC; /* Byte 23 - Alternate Number of Columns */
  463. unsigned char SNABND$B_SSS; /* Byte 24 - Session Screen Size */
  464. unsigned char SNABND$B_R10; /* Byte 25 - Reserved */
  465. } SNABND$R_LU2;
  466. struct { /* LU6.2 PS usage */
  467. unsigned char SNABND$B_LUL; /* Byte 15 - LU level */
  468. char SNABND$B_R11 [7]; /* Bytes 16-22 - Reserved */
  469. struct { /* Byte 23 */
  470. unsigned SNABND$V_R12 : 1; /* Reserved */
  471. unsigned SNABND$V_AVI : 1; /* Already Verified Indicator accepted */
  472. unsigned SNABND$V_R13 : 2; /* Reserved */
  473. unsigned SNABND$V_ASI : 1; /* Access Security Information accepted */
  474. unsigned SNABND$V_R14 : 3; /* Retired */
  475. } SNABND$R_LU62_B23;
  476. struct { /* Byte 24 */
  477. unsigned SNABND$V_GDS : 1; /* CNOS GDS variable flow support */
  478. unsigned SNABND$V_PAS : 1; /* Parallel session support */
  479. unsigned SNABND$V_RER : 2; /* Reinitiation responsibility */
  480. unsigned SNABND$V_R15 : 1; /* Reserved */
  481. unsigned SNABND$V_SYL : 2; /* Synchronization Level */
  482. unsigned SNABND$V_R16 : 1; /* Reserved */
  483. } SNABND$R_LU62_B24;
  484. unsigned char SNABND$B_LU62_B25; /* Byte 25 - Reserved */
  485. } SNABND$R_LU62;
  486. } SNABND$R_PS_CHAR;
  487. struct { /* Byte 26 */
  488. unsigned SNABND$V_CRL : 4; /* Length of cryptography options field */
  489. unsigned SNABND$V_CRS : 2; /* Session-level cryptography options */
  490. unsigned SNABND$V_CRP : 2; /* Private-cryptography options */
  491. } SNABND$B_B26;
  492. struct { /* Byte 27 */
  493. unsigned SNABND$V_CCM : 3; /* Cryptography Cipher Method */
  494. unsigned SNABND$V_R17 : 3; /* Reserved */
  495. unsigned SNABND$V_SCKSLU : 2; /* Session cryptography key from SLU */
  496. } SNABND$B_B27;
  497. unsigned char SNABND$B_B28; /* Byte 28 */
  498. } ;
  499. /* */
  500. /* Define all the SNA Gateway Access Interface Routines */
  501. /* */
  502. /* */
  503. /* Accept */
  504. /* */
  505. long int SNA$ACCEPT() ;
  506. long int SNA$ACCEPT_W() ;
  507. /* */
  508. /* Connect */
  509. /* */
  510. long int SNA$CONNECT() ;
  511. long int SNA$CONNECT_W() ;
  512. /* */
  513. /* Link_Accept */
  514. /* */
  515. long int SNA$LINK_ACCEPT() ;
  516. long int SNA$LINK_ACCEPT_W() ;
  517. /* */
  518. /* Listen */
  519. /* */
  520. long int SNA$LISTEN() ;
  521. long int SNA$LISTEN_W() ;
  522. /* */
  523. /* Read Event */
  524. /* */
  525. long int SNA$READEVENT() ;
  526. long int SNA$READEVENT_W() ;
  527. /* */
  528. /* Receive */
  529. /* */
  530. long int SNA$RECEIVE() ;
  531. long int SNA$RECEIVE_W() ;
  532. /* */
  533. /* Receive from SSCP */
  534. /* */
  535. long int SNA$RECEIVE_SSCP() ;
  536. long int SNA$RECEIVE_SSCP_W() ;
  537. /* */
  538. /* Reconnect */
  539. /* */
  540. long int SNA$RECONNECT() ;
  541. long int SNA$RECONNECT_W() ;
  542. /* */
  543. /* Reject */
  544. /* */
  545. long int SNA$REJECT() ;
  546. long int SNA$REJECT_W() ;
  547. /* */
  548. /* Terminate session */
  549. /* */
  550. long int SNA$TERMINATE() ;
  551. long int SNA$TERMINATE_W() ;
  552. /* */
  553. /* Transmit */
  554. /* */
  555. long int SNA$TRANSMIT() ;
  556. long int SNA$TRANSMIT_W() ;
  557. /* */
  558. /* Transmit to SSCP */
  559. /* */
  560. long int SNA$TRANSMIT_SSCP() ;
  561. long int SNA$TRANSMIT_SSCP_W() ;
  562. /* File: SNAMSGDEF.H Created: 11-DEC-1987 17:00:09.26 */
  563. #define SNA$_FACILITY 0X00000203
  564. #define SNA$_NORMAL 0X02038009
  565. #define SNA$_TOOFEWPAR 0X02038012
  566. #define SNA$_TOOMANPAR 0X0203801A
  567. #define SNA$_INVACCPAR 0X02038022
  568. #define SNA$_INVAPPPAR 0X0203802A
  569. #define SNA$_INVASTADR 0X02038032
  570. #define SNA$_INVASTPAR 0X0203803A
  571. #define SNA$_INVBINBUF 0X02038042
  572. #define SNA$_INVBINLEN 0X0203804A
  573. #define SNA$_INVBUFPAR 0X02038052
  574. #define SNA$_INVCIRPAR 0X0203805A
  575. #define SNA$_INVDATPAR 0X02038062
  576. #define SNA$_INVEVFNUM 0X0203806A
  577. #define SNA$_INVEVTCOD 0X02038072
  578. #define SNA$_INVNOTADR 0X0203807A
  579. #define SNA$_INVGWYNOD 0X02038082
  580. #define SNA$_INVIOSB 0X0203808A
  581. #define SNA$_INVLENADR 0X02038092
  582. #define SNA$_INVLMTPAR 0X0203809A
  583. #define SNA$_INVPASPAR 0X020380A2
  584. #define SNA$_INVPORTID 0X020380AA
  585. #define SNA$_INVRECCOU 0X020380B2
  586. #define SNA$_INVRHPAR 0X020380BA
  587. #define SNA$_INVSENCOD 0X020380C2
  588. #define SNA$_INVSEQNUM 0X020380CA
  589. #define SNA$_INVSESPAR 0X020380D2
  590. #define SNA$_INVTRAFLG 0X020380DA
  591. #define SNA$_INVUSEPAR 0X020380E2
  592. #define SNA$_ACCTOOLON 0X020380EA
  593. #define SNA$_APPTOOLON 0X020380F2
  594. #define SNA$_BUFTOOSHO 0X020380FA
  595. #define SNA$_CIRTOOLON 0X02038102
  596. #define SNA$_DATTOOLON 0X0203810A
  597. #define SNA$_EVFOUTRAN 0X02038112
  598. #define SNA$_LENTOOLON 0X0203811A
  599. #define SNA$_LMTTOOLON 0X02038122
  600. #define SNA$_PASTOOLON 0X0203812A
  601. #define SNA$_RECTOOLAR 0X02038132
  602. #define SNA$_USETOOLON 0X0203813A
  603. #define SNA$_FAIBLDNCB 0X02038142
  604. #define SNA$_FAIALLBUF 0X0203814A
  605. #define SNA$_FAIALLCTX 0X02038152
  606. #define SNA$_FAIASSCHA 0X0203815A
  607. #define SNA$_FAICOPBIN 0X02038162
  608. #define SNA$_FAICOPBUF 0X0203816A
  609. #define SNA$_FAICREMBX 0X02038172
  610. #define SNA$_FAIESTLIN 0X0203817A
  611. #define SNA$_FUNCABORT 0X02038182
  612. #define SNA$_FUNNOTVAL 0X0203818A
  613. #define SNA$_GATCOMERR 0X02038192
  614. #define SNA$_ILLASTSTA 0X0203819A
  615. #define SNA$_INSRESOUR 0X020381A2
  616. #define SNA$_INVRECLOG 0X020381AA
  617. #define SNA$_MAXSESACT 0X020381B2
  618. #define SNA$_NOEVEPEN 0X020381BA
  619. #define SNA$_NO_GWYNOD 0X020381C2
  620. #define SNA$_TERMPEND 0X020381CA
  621. #define SNA$_TEXT 0X020381D2
  622. #define SNA$_UNBINDREC 0X020381DB
  623. #define SNA$_ABNSESTER 0X020381E2
  624. #define SNA$_ACCINTERR 0X020381EA
  625. #define SNA$_APPNOTSPE 0X020381F2
  626. #define SNA$_BINSPEUNA 0X020381FA
  627. #define SNA$_CIRNOTAVA 0X02038202
  628. #define SNA$_CIRNOTSPE 0X0203820A
  629. #define SNA$_CONREQREJ 0X02038212
  630. #define SNA$_GATINTERR 0X0203821A
  631. #define SNA$_INSGATRES 0X02038222
  632. #define SNA$_INCVERNUM 0X0203822A
  633. #define SNA$_LOGUNIDEA 0X02038232
  634. #define SNA$_NO_SUCACC 0X0203823A
  635. #define SNA$_NO_SUCCIR 0X02038242
  636. #define SNA$_NO_SUCSES 0X0203824A
  637. #define SNA$_PROUNBREC 0X02038252
  638. #define SNA$_SESIN_USE 0X0203825A
  639. #define SNA$_SESNOTAVA 0X02038262
  640. #define SNA$_SESINUNAC 0X0203826A
  641. #define SNA$_UNUUNBREC 0X02038272
  642. #define SNA$_FATINTERR 0X0203827C
  643. #define SNA$_ABOCTXPRE 0X02038284
  644. #define SNA$_ABOWAIACC 0X0203828C
  645. #define SNA$_ASTBLKZER 0X02038294
  646. #define SNA$_BINDATREC 0X0203829C
  647. #define SNA$_CANCELFAI 0X020382A4
  648. #define SNA$_CTXBLKINU 0X020382AC
  649. #define SNA$_DCLASTFAI 0X020382B4
  650. #define SNA$_FAICONMBX 0X020382BC
  651. #define SNA$_FAICOPMBX 0X020382C4
  652. #define SNA$_FAICOPRH 0X020382CC
  653. #define SNA$_FAIDEAMBX 0X020382D4
  654. #define SNA$_FAIFREBUF 0X020382DC
  655. #define SNA$_FAIFRENCB 0X020382E4
  656. #define SNA$_FAIGETCHA 0X020382EC
  657. #define SNA$_FAIGETMBX 0X020382F4
  658. #define SNA$_FAITRIBLA 0X020382FC
  659. #define SNA$_FLUBUFREC 0X02038304
  660. #define SNA$_GATTRAFAI 0X0203830C
  661. #define SNA$_GETDVIFAI 0X02038314
  662. #define SNA$_ILLMBXMSG 0X0203831C
  663. #define SNA$_INVRECCHK 0X02038324
  664. #define SNA$_LIBFREFAI 0X0203832C
  665. #define SNA$_LIBGETFAI 0X02038334
  666. #define SNA$_MBXIOSERR 0X0203833C
  667. #define SNA$_MBXREAFAI 0X02038344
  668. #define SNA$_NOTNORDAT 0X0203834C
  669. #define SNA$_OBJTRAFAI 0X02038354
  670. #define SNA$_PORUNKSTA 0X0203835C
  671. #define SNA$_PORREFNON 0X02038364
  672. #define SNA$_PORREFOUT 0X0203836C
  673. #define SNA$_PROERRBIN 0X02038374
  674. #define SNA$_RECBUFINU 0X0203837C
  675. #define SNA$_RECFREFAI 0X02038384
  676. #define SNA$_RECPENMSG 0X0203838C
  677. #define SNA$_STANOTRUN 0X02038394
  678. #define SNA$_UNINUMUNK 0X0203839C
  679. #define SNA$_UNKDATMSG 0X020383A4
  680. #define SNA$_UNKMSGREC 0X020383AC
  681. #define SNA$_UNKPMRMSG 0X020383B4
  682. #define SNA$_UNKUNBREC 0X020383BC
  683. #define SNA$_UNSUSEREC 0X020383C4
  684. #define SNA$_INVAEFPAR 0X020383CA
  685. #define SNA$_INVNOTPAR 0X020383D2
  686. #define SNA$_AEFOUTRAN 0X020383DA
  687. #define SNA$_FAIFREEF 0X020383E2
  688. #define SNA$_INVARGLEN 0X020383EA
  689. #define SNA$_COMERR 0X020383F2
  690. #define SNA$_FUNNOTIMP 0X020383FA
  691. #define SNA$_RUSIZEXC 0X02038402
  692. #define SNA$_GETJPIFAI 0X0203840C
  693. #define SNA$_PACFSM 0X02038414
  694. #define SNA$_PENUSETRA 0X0203841C
  695. #define SNA$_DFCFATAL 0X02038964
  696. #define SNA$_INMEMCT 0X0203896C
  697. #define SNA$_UNFREECT 0X02038974
  698. #define SNA$_NOMEMRSP 0X0203897C
  699. #define SNA$_PROBFREEMEM 0X02038984
  700. #define SNA$_UNFREELUCB 0X0203898C
  701. #define SNA$_UNFREESCB 0X02038994
  702. #define SNA$_UNFREEMUCB 0X0203899C
  703. #define SNA$_UNFREEEVT 0X020389A4
  704. #define SNA$_UNABLEEVT 0X020389AC
  705. #define SNA$_PROBINREVT 0X020389B4
  706. #define SNA$_INCOPYERR 0X020389BC
  707. #define SNA$_NOTOCCURST 0X020389C4
  708. #define SNA$_JUNKSTATE 0X020389CC
  709. #define SNA$_NOINTMUCB 0X020389D4
  710. #define SNA$_UNDEFSENDCHK 0X020389DC
  711. #define SNA$_INSENDERR 0X020389E4
  712. #define SNA$_UNQAST 0X020389EC
  713. #define SNA$_UNDQAST 0X020389F4
  714. #define SNA$_UNABLELUCB 0X020389FA
  715. #define SNA$_UNABLESCB 0X02038A02
  716. #define SNA$_UNABLEMUCB 0X02038A0A
  717. #define SNA$_MUTOSENDCHK 0X02038A12
  718. #define SNA$_MUTORCVCHK 0X02038A1A
  719. #define SNA$_PLUPROVIO 0X02038A22
  720. #define SNA$_MUTOEXR 0X02038A2B
  721. #define SNA$_INVFLOPAR 0X02038A32
  722. #define SNA$_INVGWYNAM 0X02038A3A
  723. #define SNA$_INVINBSIZ 0X02038A42
  724. #define SNA$_INVOUTSIZ 0X02038A4A
  725. #define SNA$_SNAASSFAI 0X02038A52
  726. #define SNA$_RECFAIL 0X02038A5C
  727. #define SNA$_LINSETOFF 0X0203E402
  728. #define SNA$_SESNOTSPE 0X0203E40A
  729. #define SNA$_INVSESTYP 0X0203E412
  730. #define SNA$_TRANOTSPE 0X0203E41A
  731. #define SNA$_NOTRANTAB 0X0203E422
  732. #define SNA$_USEOUTRAN 0X0203E42A
  733. #define SNA$_APPOUTRAN 0X0203E432
  734. #define SNA$_ACCTRAERR 0X0203E43A
  735. #define SNA$_INTSENERR 0X0203E442
  736. #define SNA$_PPINOTSPE 0X0203E44A
  737. #define SNA$_PORNOTSPE 0X0203E452
  738. #define SNA$_TCSNDCHK 0X0203E45A
  739. #define SNA$_NOSNRMREC 0X0203E462
  740. #define SNA$_NOACTPREC 0X0203E46A
  741. #define SNA$_NOACTLREC 0X0203E472
  742. #define SNA$_ACTLOGREC 0X0203E47A
  743. #define SNA$_FAIGETUSE 0X0203E722
  744. #define SNA$_INVLUPPAR 0X0203E72A
  745. #define SNA$_INVPIDPAR 0X0203E732
  746. #define SNA$_LUPTOOLON 0X0203E73A
  747. #define SNA$_SESACCDEN 0X0203E742
  748. #define SNA$_CVTERR 0X0203E74A
  749. #define SNA$_EXPBUF 0X0203E752
  750. #define SNA$_FILOPN 0X0203E75A
  751. #define SNA$_GOTBUF 0X0203E762
  752. #define SNA$_INVNCBLEN 0X0203E76A
  753. #define SNA$_INVNCBPAR 0X0203E772
  754. #define SNA$_NOCHAN 0X0203E77A
  755. #define SNA$_READFIL 0X0203E782
  756. #define SNA$_UNKFUNC 0X0203E78A
  757. #define SNA$_UNXWRIT 0X0203E792
  758. #define SNA$_WRITBAD 0X0203E79A
  759. #define SNA$_WRITFLO 0X0203E7A2
  760. #define SNA$_WRITLEN 0X0203E7AA
  761. #define SNA$_INVOPC 0X0203E7B4
  762. #define SNA$_SESOUTRAN 0X0203E7BA
  763. #define SNA$_INVPACWIN 0X0203E7C2
  764. #define SNA$_INVRUSIZE 0X0203E7CA
  765. #if (defined(__alpha) || defined(__ia64))
  766. #pragma member_alignment __restore
  767. #endif /* ALPHA */