/*->h.ckcfil */

/* ckcfil.h -- File-related symbols and structures for C-Kermit */

#define   XYFILN 0      /*  Naming  */
#define   XYFILT 1      /*  Type    */
#define     XYFT_T 0    /*    Text  */
#define     XYFT_B 1    /*    Binary */
#define   XYFILW 2      /*  Warning */
#define   XYFILD 3      /*  Display */
#define   XYFILC 4      /*  Character set */
#define   XYFILF 5      /*  Record Format */
#define     XYFF_S  0   /*    Stream */
#define     XYFF_V  1   /*    Variable */
#define     XYFF_VB 2   /*    Variable with RCW's */
#define     XYFF_F  3   /*    Fixed length */
#define     XYFF_U  4   /*    Undefined */
#define   XYFILR 6      /*  Record length */
#define   XYFILO 7      /*  Organization */
#define     XYFO_S 0    /*    Sequential */
#define     XYFO_I 1    /*    Indexed */
#define     XYFO_R 2    /*    Relative */
#define   XYFILP 8      /*  Printer carriage control */
#define     XYFP_N 0    /*    Newline (imbedded control characters) */
#define     XYFP_F 1    /*    FORTRAN (space, 1, +, etc, in column 1 */
#define     XYFP_P 2    /*    Special printer carriage controls */
#define     XYFP_X 4    /*    None */
#define   XYFILX 9      /*  Collision Action */
#define     XYFX_A 0    /*    Append */
#define     XYFX_Q 1    /*    Ask */
#define     XYFX_B 2    /*    Backup */
#define     XYFX_D 3    /*    Discard */
#define     XYFX_R 4    /*    Rename */
#define     XYFX_X 5    /*    Replace */
#define     XYFX_U 6    /*    Update */
#define   XYFILB 10     /*  Blocksize */
#define   XYFILZ 11     /*  Disposition */
#define     XYFZ_N 0    /*    New, Create */
#define     XYFZ_A 1    /*    New, append if file exists, else create */
#define     XYFZ_O 2    /*    Old, file must exist */
#define     XYFZ_X 3    /*    Output to pipe/process */
#define     XYFZ_Y 4    /*    Input from pipe/process */

/* Kermit file information structure */

struct filinfo {
  int bs;                               /* Blocksize */
  int cs;                               /* Character set */
  long rl;                              /* Record length */
  int org;                              /* Organization */
  int fmt;                              /* Record format */
  int cc;                               /* Carriage control */
  int typ;                              /* Type (text/binary) */
  int dsp;                              /* Disposition */
};

