/[LeafOK_CVS]/lbbs/include/section_list.h
ViewVC logotype

Diff of /lbbs/include/section_list.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.37 by sysadm, Thu Nov 20 03:38:49 2025 UTC Revision 1.38 by sysadm, Thu Nov 20 10:20:51 2025 UTC
# Line 14  Line 14 
14  #include "menu.h"  #include "menu.h"
15  #include <time.h>  #include <time.h>
16    
17    #ifdef HAVE_SYSTEM_V
18    #include <sys/sem.h>
19    #else
20    #include <semaphore.h>
21    #endif
22    
23  enum section_list_constant_t  enum section_list_constant_t
24  {  {
25          BBS_article_title_max_len = 160,          BBS_article_title_max_len = 160,
# Line 83  struct section_list_pool_t Line 89  struct section_list_pool_t
89          size_t shm_size;          size_t shm_size;
90          SECTION_LIST sections[BBS_max_section];          SECTION_LIST sections[BBS_max_section];
91          int section_count;          int section_count;
92    #ifndef HAVE_SYSTEM_V
93            sem_t sem[BBS_max_section + 1];
94            uint16_t read_lock_count[BBS_max_section + 1];
95            uint16_t write_lock_count[BBS_max_section + 1];
96    #else
97          int semid;          int semid;
98    #endif
99          TRIE_NODE *p_trie_dict_section_by_name;          TRIE_NODE *p_trie_dict_section_by_name;
100          TRIE_NODE *p_trie_dict_section_by_sid;          TRIE_NODE *p_trie_dict_section_by_sid;
101  };  };


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1