home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / bin / p205.zip / exesrc / global.c < prev    next >
C/C++ Source or Header  |  1994-12-18  |  2KB  |  63 lines

  1. /*****************************************************************************/
  2. /*           Copyright (c) 1994 by Jyrki Salmi <jytasa@jyu.fi>             */
  3. /*        You may modify, recompile and distribute this file freely.         */
  4. /*****************************************************************************/
  5.  
  6. /*
  7.    Global variables
  8. */
  9.  
  10. #include <stdio.h>
  11. #include <time.h>
  12. #include "typedefs.h"
  13. #include "tl.h"
  14. #include "brw.h"
  15. #include "p.h"
  16.  
  17. TL *tl = NULL;            /* A linked list of files given */
  18.                 /* on the command-line */
  19. U8 *full_path = NULL;        /* Used to save temporarily path of the */
  20.                 /* file being sent. Needed to make proper */
  21.                 /* DSZLOG */
  22. FILE *dszlog_stream = NULL;    /* If non-NULL, a DSZLOG will be written */
  23.                 /* to this stream. */
  24.  
  25. BOOLEAN aborted = 0;        /* Set non-zero when user wants to abort */
  26. BOOLEAN we_aborted = 0;        /* Set non-zero when we have handled the */
  27.                 /* local abortion request */
  28. BOOLEAN carrier_lost = 0;    /* Set non-zero when detected a loss */
  29.                 /* of carrier signal */
  30. BRWF *brwf = NULL;        /* BRWF handle to the file currently being */
  31.                 /* transferred. */
  32. P_CFG p_cfg;            /* Configuration to be passed to the DLL */
  33. time_t t_started;        /* Current time is saved to here when */
  34.                 /* opening a file to be transferred. Used to */
  35.                 /* calculate the CPS rates. */
  36. U32 files_left = 0;        /* Number of files left to transfer */
  37. U32 bytes_left = 0;        /* Number of bytes left to transfer */
  38. S32 remote_serial_num = -1;    /* The remote's serial number */
  39.  
  40. /* Things got from the command-line */
  41.  
  42. BOOLEAN opt_paths = 0;
  43. BOOLEAN opt_clean = 0;
  44. BOOLEAN opt_resume = 0;
  45. BOOLEAN opt_rename = 0;
  46. BOOLEAN opt_headers = 0;
  47. BOOLEAN opt_frameends = 0;
  48. BOOLEAN opt_touch = 0;
  49. BOOLEAN opt_quiet = 0;
  50. BOOLEAN opt_text = 0;
  51. BOOLEAN opt_existing = 0;
  52. BOOLEAN opt_mileage = 0;
  53. BOOLEAN opt_options = 0;
  54. BOOLEAN opt_recursive = 0;
  55. BOOLEAN opt_create = 0;
  56. U8 opt_management = 0;
  57. U32 opt_wait = 0;
  58. U8 *opt_dszlog = NULL;
  59. U8 *opt_directory = NULL;
  60. U32 opt_filebuf = 0;
  61. U32 opt_speed = 0;
  62. U8 *opt_note = NULL;
  63.