home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / mthreads / part01 / mthreads.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-20  |  1.8 KB  |  89 lines

  1. /* $Id: mthreads.h,v 3.0 1993/10/01 00:14:07 davison Trn $
  2. */
  3. /* The authors make no claims as to the fitness or correctness of this software
  4.  * for any use whatsoever, and it is provided as is. Any use of this software
  5.  * is at the user's own risk. 
  6.  */
  7.  
  8. #define RWBUFSIZ 8192
  9.  
  10. #define PASS_LOCK 1
  11. #define DAEMON_LOCK 2
  12.  
  13. #define NO_LISTGROUP    0
  14. #define GOOD_LISTGROUP    1
  15. #define BAD_LISTGROUP    2
  16. #define CHECK_LISTGROUP    3
  17.  
  18. EXT char rwbuf[RWBUFSIZ];
  19.  
  20. EXT TOTAL total;
  21.  
  22. EXT int added_articles INIT(0);
  23. EXT int expired_articles INIT(0);
  24. EXT int added_count;
  25. EXT int expired_count;
  26. EXT bool extra_expire INIT(FALSE);
  27.  
  28. EXT char *strings INIT(0);
  29. EXT WORD *subject_cnts INIT(0);
  30. EXT WORD *author_cnts INIT(0);
  31. EXT WORD *ids INIT(0);
  32.  
  33. EXT SUBJECT **subject_array;
  34. EXT ROOT **root_array;
  35. EXT AUTHOR **author_array;
  36. EXT ARTICLE **article_array;
  37.  
  38. EXT PACKED_ROOT p_root;
  39. EXT PACKED_ARTICLE p_article;
  40.  
  41. EXT ROOT *root_root;
  42. EXT AUTHOR *author_root;
  43.  
  44. #ifndef DOINIT
  45. EXT DOMAIN unk_domain;
  46. #else
  47. DOMAIN unk_domain = {
  48.     ".unknown.", NULL, NULL
  49. };
  50. #endif
  51.  
  52. EXT bool word_same, long_same;
  53. EXT BMAP my_bmap, mt_bmap;
  54.  
  55. char *thread_name _((char *));
  56. void mybytemap _((BMAP *));
  57. void wp_bmap(), lp_bmap(), swap_bmaps();
  58.  
  59. int ngmatch _((char *,char *));
  60. int onepatmatch _((char *,char *));
  61.  
  62. void mt_init _((void));
  63. long mt_lock _((int, int));
  64. void mt_unlock _((int));
  65. void wrap_it_up _((int));
  66. void log_entry();
  67. void log_error();
  68.  
  69. int init_data _((char *));
  70. int read_data _((void));
  71. int write_data _((char *));
  72. void dont_read_data _((int));
  73.  
  74. void process_articles _((ART_NUM,ART_NUM));
  75.  
  76. char *file_exp _((char *));
  77. char *savestr _((char *));
  78.  
  79. time_t parsedate _((char *));
  80.  
  81. #ifndef lint
  82. char *safemalloc _((MEM_SIZE));
  83. void safefree();
  84. #endif
  85.  
  86. time_t get_date _((char *,time_t,long));
  87.  
  88. #define Nullart Null(ARTICLE*)
  89.