home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / usr / sybase / include4_0 / syblogin.h < prev   
Encoding:
C/C++ Source or Header  |  1993-03-19  |  3.7 KB  |  112 lines

  1. /*
  2.  *    syblogin.h    62.1    4/10/90
  3.  *
  4.  *    Sybase DB-LIBRARY Version 4.0
  5.  *    Confidential Property of Sybase, Inc.
  6.  *    (c) Copyright Sybase, Inc. 1988, 1989
  7.  *    All rights reserved
  8.  *
  9.  *
  10.  * Use, duplication, or disclosure by the United States Government
  11.  * is subject to restrictions as set forth in subparagraph (c) (1) (ii)
  12.  * of the Rights in Technical Data and Computer Software clause
  13.  * at CFR 52.227-7013. Sybase, Inc. 6475 Christie Avenue, Emeryville,
  14.  * CA 94608.
  15.  *
  16.  */
  17.  
  18. #define DBPROGNLEN    10
  19.  
  20. typedef struct seclab
  21. {
  22.     short    slhier;
  23.     BYTE    slcomp[8];
  24.     short    slspare;
  25. } SECLAB;
  26.  
  27. typedef struct loginrec
  28. {
  29.     BYTE    lhostname[MAXNAME];    /* name of host or generic */
  30.     BYTE    lhostnlen;        /* length of lhostname */
  31.     BYTE    lusername[MAXNAME];    /* name of user */
  32.     BYTE    lusernlen;        /* length of lusername */
  33.     BYTE    lpw[MAXNAME];        /* password (plaintext) */
  34.     BYTE    lpwnlen;        /* length of lpw */
  35.     BYTE    lhostproc[MAXNAME];    /* host process identification*/
  36.     BYTE    lhplen;            /* length of host process id */
  37.     BYTE    lint2;            /* type of int2 on this host */
  38.     BYTE    lint4;            /* type of int4 on this host */
  39.     BYTE    lchar;            /* type of char */
  40.     BYTE    lflt;            /* type of float */
  41.     BYTE    ldate;            /* type of datetime */
  42.     BYTE    lusedb;            /* notify on exec of use db cmd */
  43.     BYTE    ldmpld;            /* disallow use of dump/load and
  44.                     ** bulk insert */
  45.     BYTE    linterface;        /* SQL interface type */
  46.     BYTE    ltype;            /* type of network connection */
  47.     BYTE    spare[7];        /* spare fields */
  48.     BYTE    lappname[MAXNAME];    /* application name */
  49.     BYTE    lappnlen;        /* length of appl name */
  50.     BYTE    lservname[MAXNAME];    /* name of server */
  51.     BYTE    lservnlen;        /* length of lservname */
  52.     BYTE    lrempw[0xff];        /* passwords for remote servers */
  53.     BYTE    lrempwlen;        /* length of lrempw */
  54.     BYTE    ltds[4];        /* tds version */
  55.     BYTE    lprogname[DBPROGNLEN];    /* client program name */
  56.     BYTE    lprognlen;        /* length of client program name */
  57.     BYTE    lprogvers[4];        /* client program version */
  58.     BYTE    ldummy[2];        /* pad length to longword */
  59.     BYTE    spare1;            /* structure alignment */
  60.     SECLAB    lseclab;        /* login security level */
  61.     BYTE    lrole;            /* login role(sa = 1,user = 0 */
  62.     BYTE    spare2[3];        /* pad length to longword */
  63. } LOGINREC;
  64.  
  65. /* possible storage types */
  66. # define INT4_LSB_HI    0    /* lsb is hi byte (eg 68000) */
  67. # define INT4_LSB_LO    1    /* lsb is low byte (eg VAX & 80x86) */
  68. # define INT2_LSB_HI    2    /* lsb is hi byte (eg 68000) */
  69. # define INT2_LSB_LO    3    /* lsb is low byte (eg VAX & 80x86) */
  70. # define FLT_IEEE_HI    4    /* IEEE 754 float, lsb in high byte (eg Sun) */
  71. # define FLT_IEEE_LO    10    /* IEEE 754 float, lsb in low byte (eg 80x86) */
  72. # define FLT_VAXD    5    /* VAX 'D' floating point format */
  73. # define CHAR_ASCII    6    /* ASCII character set */
  74. # define CHAR_EBCDIC    7    /* EBCDIC character set */
  75. # define TWO_I4_LSB_HI    8    /* lsb is hi byte (eg 68000) */
  76. # define TWO_I4_LSB_LO    9    /* lsb is low byte (eg VAX & 80x86) */
  77.  
  78. /* values for Sun DB-Library 
  79. **    lint2 = INT2_LSB_HI
  80. **    lint4 = INT4_LSB_HI
  81. **    lchar = CHAR_ASCII
  82. **    lflt = FLT_IEEE_HI
  83. **    ldate = TWO_I4_LSB_HI 
  84. */
  85.  
  86. /* values for VAX DB-Library 
  87. **    lint2 = INT2_LSB_LO
  88. **    lint4 = INT4_LSB_LO
  89. **    lchar = CHAR_ASCII
  90. **    lflt = FLT_VAXD
  91. **    ldate = TWO_I4_LSB_LO 
  92. */
  93.  
  94. /* values for I86 (Intel 80x86) DB-Library 
  95. **    lint2 = INT2_LSB_LO
  96. **    lint4 = INT4_LSB_LO
  97. **    lchar = CHAR_ASCII
  98. **    lflt = FLT_IEEE_LO
  99. **    ldate = TWO_I4_LSB_LO 
  100. */
  101.  
  102. /* Values for linterface field. */
  103. #define    LDEFSQL        0        /* server's default SQL will be sent */
  104. #define    LXSQL        1        /* TRANSACT-SQL will be sent */
  105. #define    LSQL        2        /* ANSI SQL, version 1 */
  106. #define    LSQL2_1        3        /* ANSI SQL, version 2, level 1 */
  107. #define    LSQL2_2        4        /* ANSI SQL, version 2, level 2 */
  108.  
  109. /* Values for ltype field. */
  110. #define    LSERVER        0x1        /* not a user connecting directly */
  111. #define    LREMUSER    0x2        /* user login through another server */
  112.