home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trn / part01 / mthreads.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-02  |  1.6 KB  |  87 lines

  1. /* $Id: mthreads.h,v 4.4.3.1 1991/11/22 04:12:15 davison Trn $
  2. **
  3. ** $Log: mthreads.h,v $
  4. ** Revision 4.4.3.1  1991/11/22  04:12:15  davison
  5. ** Trn Release 2.0
  6. ** 
  7. */
  8.  
  9. #ifdef lint
  10. #include "mt-lint.h"
  11. #endif
  12.  
  13. #if !defined(TMPTHREAD) && defined(SERVERSPOOL)
  14. # undef SERVER
  15. # undef SPOOL
  16. # define SPOOL SERVERSPOOL
  17. #endif
  18.  
  19. #define RWBUFSIZ 8192
  20.  
  21. #define PASS_LOCK 1
  22. #define DAEMON_LOCK 2
  23.  
  24. EXT char rwbuf[RWBUFSIZ];
  25.  
  26. EXT TOTAL total;
  27.  
  28. EXT int added_articles INIT(0);
  29. EXT int expired_articles INIT(0);
  30. EXT int added_count;
  31. EXT int expired_count;
  32. EXT bool extra_expire INIT(FALSE);
  33.  
  34. EXT char *strings INIT(0);
  35. EXT WORD *subject_cnts INIT(0);
  36. EXT WORD *author_cnts INIT(0);
  37. EXT WORD *ids INIT(0);
  38.  
  39. EXT SUBJECT **subject_array;
  40. EXT ROOT **root_array;
  41. EXT AUTHOR **author_array;
  42. EXT ARTICLE **article_array;
  43.  
  44. EXT PACKED_ROOT p_root;
  45. EXT PACKED_ARTICLE p_article;
  46.  
  47. EXT ROOT *root_root;
  48. EXT AUTHOR *author_root;
  49.  
  50. #ifndef DOINIT
  51. EXT DOMAIN unk_domain;
  52. #else
  53. DOMAIN unk_domain = {
  54.     ".unknown.", NULL, NULL
  55. };
  56. #endif
  57.  
  58. int ngmatch ANSI((char *,char *));
  59. int onepatmatch ANSI((char *,char *));
  60.  
  61. void mt_init ANSI((void));
  62. long mt_lock ANSI((int, int));
  63. void mt_unlock ANSI((int));
  64. void wrap_it_up ANSI((int));
  65. void log_entry();
  66. void log_error();
  67.  
  68. int read_data ANSI((void));
  69. int write_data ANSI((char *));
  70. void dont_read_data ANSI((int));
  71.  
  72. void process_articles ANSI((ART_NUM,ART_NUM));
  73.  
  74. int open_server ANSI((void));
  75. char *file_exp ANSI((char *));
  76. char *savestr ANSI((char *));
  77.  
  78. #ifndef lint
  79. char *safemalloc ANSI((MEM_SIZE));
  80. void free();
  81. void safefree();
  82. #endif
  83.  
  84. time_t get_date ANSI((char *,time_t,long));
  85.  
  86. #define Nullart Null(ARTICLE*)
  87.