home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / k95source / p_global.c < prev    next >
C/C++ Source or Header  |  2003-05-01  |  3KB  |  79 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 "ckcdeb.h"
  11. #ifndef NOXFER
  12. #include <stdio.h>
  13. #include <time.h>
  14.  
  15. #ifdef NT
  16. #include <windows.h>
  17. #endif
  18.  
  19. #include "p_type.h"
  20. #include "p_tl.h"
  21. #include "p_brw.h"
  22. #include "p.h"
  23.  
  24. TL *tl = NULL;                  /* A linked list of files given */
  25.                                 /* on the command-line */
  26. U8 *full_path = NULL;           /* Used to save temporarily path of the */
  27.                                 /* file being sent. Needed to make proper */
  28.                                 /* DSZLOG */
  29. FILE *dszlog_stream = NULL;     /* If non-NULL, a DSZLOG will be written */
  30.                                 /* to this stream. */
  31.  
  32. BOOLEAN aborted = 0;            /* Set non-zero when user wants to abort */
  33. BOOLEAN we_aborted = 0;         /* Set non-zero when we have handled the */
  34.                                 /* local abortion request */
  35. BOOLEAN carrier_lost = 0;       /* Set non-zero when detected a loss */
  36.                                 /* of carrier signal */
  37. BRWF *brwf = NULL;              /* BRWF handle to the file currently being */
  38.                                 /* transferred. */
  39. P_CFG p_cfg;                    /* Configuration to be passed to the DLL */
  40. time_t t_started;               /* Current time is saved to here when */
  41.                                 /* opening a file to be transferred. Used to */
  42.                                 /* calculate the CPS rates. */
  43. U32 files_left = 0;             /* Number of files left to transfer */
  44. U32 bytes_left = 0;             /* Number of bytes left to transfer */
  45. S32 remote_serial_num = -1;     /* The remote's serial number */
  46.  
  47. /* Things got from the command-line */
  48.  
  49. BOOLEAN opt_paths = 0;
  50. BOOLEAN opt_clean = 0;
  51. BOOLEAN opt_resume = 0;
  52. BOOLEAN opt_rename = 0;
  53. BOOLEAN opt_headers = 0;
  54. BOOLEAN opt_frameends = 0;
  55. BOOLEAN opt_quiet = 0;
  56. BOOLEAN opt_text = 0;
  57. BOOLEAN opt_existing = 0;
  58. BOOLEAN opt_mileage = 0;
  59. BOOLEAN opt_options = 0;
  60. BOOLEAN opt_recursive = 0;
  61. BOOLEAN opt_create = 0;
  62. U8 opt_management = 0;
  63. U32 opt_wait = 0;
  64. U8 *opt_dszlog = NULL;
  65. U8 *opt_directory = NULL;
  66. U32 opt_filebuf = 0;
  67. U32 opt_speed = 0;
  68. U8 *opt_note = NULL;
  69.  
  70. int savfnc = 0 ;
  71.  
  72. /* originally statics from status_func */
  73. U32 checking_method = 0;
  74. U32 receiver_flags = 0;
  75. S32 receiver_window_size = -1;
  76.  
  77.  
  78. #endif /* NOXFER */
  79.