home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a063 / 7.img / INCLUDE / SYBLOGIN.H < prev   
Encoding:
C/C++ Source or Header  |  1990-08-24  |  3.1 KB  |  81 lines

  1. /*
  2. **      syblogin.h   34.1    5/10/88
  3. **
  4. **    LOGINREC.H
  5. **
  6. **      Include file for use by the login code.
  7. **
  8. **
  9. **
  10. **    History:
  11. **      Written 11/20/85 (cfr)
  12. **
  13. **
  14. **
  15. **      Sybase DB-LIBRARY Version 2.0
  16. **      Confidential Property of Sybase, Inc.
  17. **      (c) Copyright Sybase, Inc. 1985, 1986
  18. **      All rights reserved
  19. */
  20. typedef struct loginrec
  21. {
  22.         BYTE    lhostname[MAXNAME];     /* name of host or generic */
  23.         BYTE    lhostnlen;              /* length of lhostname */
  24.         BYTE    lusername[MAXNAME];     /* name of user */
  25.         BYTE    lusernlen;              /* length of lusername */
  26.         BYTE    lpw[MAXNAME];           /* password (plaintext) */
  27.         BYTE    lpwnlen;                /* length of lpw */
  28.         BYTE    lhostproc[MAXNAME];     /* host process identification*/
  29.         BYTE    lhplen;                 /* length of host process id */
  30.         BYTE    lint2;                  /* type of int2 on this host */
  31.         BYTE    lint4;                  /* type of int4 on this host */
  32.         BYTE    lchar;                  /* type of char */
  33.         BYTE    lflt;                   /* type of float */
  34.         BYTE    ldate;                  /* type of datetime */
  35.         BYTE    lusedb;                 /* notify on exec of use db cmd */
  36.         BYTE    ldmpld;                 /* disallow use of dump/load and
  37.                                         ** bulk insert */
  38.         BYTE    linterface;             /* interface type - SQL, TI,etc. */
  39.         BYTE    spare[8];               /* spare fields */
  40.         BYTE    lappname[MAXNAME];      /* name of application */
  41.         BYTE    lappnlen;               /* length of lappname */
  42.         BYTE    dummy_1;                /* filler to make structure size even */
  43. } LOGINREC;
  44.  
  45. /* possible storage types */
  46. # define INT4_LSB_HI    0       /* lsb is hi byte (eg 68000) */
  47. # define INT4_LSB_LO    1       /* lsb is low byte (eg VAX & 80x86) */
  48. # define INT2_LSB_HI    2       /* lsb is hi byte (eg 68000) */
  49. # define INT2_LSB_LO    3       /* lsb is low byte (eg VAX & 80x86) */
  50. # define FLT_IEEE_HI    4       /* IEEE 754 float, lsb in high byte (eg Sun) */
  51. # define FLT_IEEE_LO    10      /* IEEE 754 float, lsb in low byte (eg 80x86) */
  52. # define FLT_VAXD       5       /* VAX 'D' floating point format */
  53. # define CHAR_ASCII     6       /* ASCII character set */
  54. # define CHAR_EBCDIC    7       /* EBCDIC character set */
  55. # define TWO_I4_LSB_HI  8       /* lsb is hi byte (eg 68000) */
  56. # define TWO_I4_LSB_LO  9       /* lsb is low byte (eg VAX & 80x86) */
  57.  
  58. /* values for Sun isql 
  59. **      lint2 = INT2_LSB_HI
  60. **      lint4 = INT4_LSB_HI
  61. **      lchar = CHAR_ASCII
  62. **      lflt = FLT_IEEE_HI
  63. **      ldate = TWO_I4_LSB_HI 
  64. */
  65.  
  66. /* values for VAX isql 
  67. **      lint2 = INT2_LSB_LO
  68. **      lint4 = INT4_LSB_LO
  69. **      lchar = CHAR_ASCII
  70. **      lflt = FLT_VAXD
  71. **      ldate = TWO_I4_LSB_LO 
  72. */
  73.  
  74. /* values for 80x86 isql 
  75. **      lint2 = INT2_LSB_LO
  76. **      lint4 = INT4_LSB_LO
  77. **      lchar = CHAR_ASCII
  78. **      lflt = FLT_IEEE_LO
  79. **      ldate = TWO_I4_LSB_LO 
  80. */
  81.