/[LeafOK_CVS]/lbbs/src/section_list.c
ViewVC logotype

Log of /lbbs/src/section_list.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.68 - (view) (annotate) - [select for diffs]
Wed Jan 7 14:39:16 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.67: +18 -9 lines
Diff to previous 1.67
Merge pull request [#88](https://github.com/leafok/lbbs/issues/88) from 0xfullex/fix/section-list-overflow
fix(section_list): fix binary search overflow and linked list boundary

Refine code based on suggestion provided in PR [#87](https://github.com/leafok/lbbs/issues/87)


Revision 1.67 - (view) (annotate) - [select for diffs]
Sat Jan 3 10:27:14 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
Update copyright info


Revision 1.66 - (view) (annotate) - [select for diffs]
Fri Dec 19 06:16:27 2025 UTC (2 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.65: +132 -132 lines
Diff to previous 1.65
Append \n to the end of logging message by log_...()
Remove ending \n from each logging message


Revision 1.65 - (view) (annotate) - [select for diffs]
Wed Nov 26 02:04:02 2025 UTC (3 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.64: +42 -10 lines
Diff to previous 1.64
Add section_list_set_article_excerption()


Revision 1.64 - (view) (annotate) - [select for diffs]
Thu Nov 20 11:31:56 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.63: +87 -0 lines
Diff to previous 1.63
Add mechanism to detect and resolve dead lock caused by POSIX semaphore.


Revision 1.63 - (view) (annotate) - [select for diffs]
Thu Nov 20 10:20:51 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.62: +221 -23 lines
Diff to previous 1.62
Add alternative POSIX semaphore based rd/rw (un)lock in section_list


Revision 1.62 - (view) (annotate) - [select for diffs]
Thu Nov 20 03:38:49 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.61: +145 -121 lines
Diff to previous 1.61
Use POSIX shared object instead of SysV shared segment in section_list


Revision 1.61 - (view) (annotate) - [select for diffs]
Tue Nov 18 15:15:18 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.60: +8 -22 lines
Diff to previous 1.60
Skip remap shared memory in read only mode under Cygwin
shmat() again after shmdt() without SHM_REMAP would change the address


Revision 1.60 - (view) (annotate) - [select for diffs]
Mon Nov 17 14:01:13 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.59: +7 -7 lines
Diff to previous 1.59
Replace macro name


Revision 1.59 - (view) (annotate) - [select for diffs]
Mon Nov 17 12:16:48 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.58: +18 -0 lines
Diff to previous 1.58
Add alternative implementation of shmat(..., SHM_REMAP) under MSYS2
Fix error reported by gcc under MSYS2


Revision 1.58 - (view) (annotate) - [select for diffs]
Mon Nov 17 11:56:11 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.57: +16 -4 lines
Diff to previous 1.57
Add implementation for MSYS2


Revision 1.57 - (view) (annotate) - [select for diffs]
Sun Nov 16 00:10:48 2025 UTC (4 months ago) by sysadm
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56
Refine ceiling of integer division


Revision 1.56 - (view) (annotate) - [select for diffs]
Tue Nov 11 00:28:05 2025 UTC (4 months ago) by sysadm
Branch: MAIN
Changes since 1.55: +4 -0 lines
Diff to previous 1.55
Use config.h


Revision 1.55 - (view) (annotate) - [select for diffs]
Wed Nov 5 04:19:21 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.54: +10 -7 lines
Diff to previous 1.54
Use enum / const int instead of macro define constant integers
Use const char * instead of macro define for constant strings


Revision 1.54 - (view) (annotate) - [select for diffs]
Wed Nov 5 03:01:14 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.53: +8 -8 lines
Diff to previous 1.53
Use enum / const int instead of macro define constant integers


Revision 1.53 - (view) (annotate) - [select for diffs]
Tue Nov 4 14:58:56 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.52: +1 -1 lines
Diff to previous 1.52
Refine file header information comments


Revision 1.52 - (view) (annotate) - [select for diffs]
Tue Nov 4 14:30:44 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51
Call shmctl() on valid shmid only


Revision 1.51 - (view) (annotate) - [select for diffs]
Tue Nov 4 13:49:51 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.50: +7 -15 lines
Diff to previous 1.50
Update file header information comments


Revision 1.50 - (view) (annotate) - [select for diffs]
Mon Nov 3 15:05:02 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.49: +12 -5 lines
Diff to previous 1.49
Fix bugs of calculate / update page_count / article_count


Revision 1.49 - (view) (annotate) - [select for diffs]
Mon Nov 3 08:48:56 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.48: +4 -2 lines
Diff to previous 1.48
Fix bug


Revision 1.48 - (view) (annotate) - [select for diffs]
Wed Oct 29 01:42:06 2025 UTC (4 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.47: +37 -0 lines
Diff to previous 1.47
Add get_section_info()


Revision 1.47 - (view) (annotate) - [select for diffs]
Fri Oct 24 02:08:19 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.46: +12 -24 lines
Diff to previous 1.46
Refine search algorithm of section_list


Revision 1.46 - (view) (annotate) - [select for diffs]
Thu Oct 23 05:54:16 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.45: +16 -0 lines
Diff to previous 1.45
Update user_stat_article_cnt in section_list_set_article_visible()


Revision 1.45 - (view) (annotate) - [select for diffs]
Tue Oct 21 06:24:51 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44
Add user_list with data loader


Revision 1.44 - (view) (annotate) - [select for diffs]
Tue Oct 14 05:52:29 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.43: +6 -2 lines
Diff to previous 1.43
Fix bug


Revision 1.43 - (view) (annotate) - [select for diffs]
Tue Oct 14 05:28:15 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.42: +26 -0 lines
Diff to previous 1.42
Refresh trie dict after update section name


Revision 1.42 - (view) (annotate) - [select for diffs]
Tue Oct 14 02:39:34 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41
Refine log


Revision 1.41 - (view) (annotate) - [select for diffs]
Tue Oct 14 00:57:06 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.40: +2 -12 lines
Diff to previous 1.40
Revert change to section_list


Revision 1.40 - (view) (annotate) - [select for diffs]
Mon Oct 13 02:23:27 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.39: +12 -2 lines
Diff to previous 1.39
Support locate at specific article while listing section articles
Remember last located article of each section, before logout


Revision 1.39 - (view) (annotate) - [select for diffs]
Tue Sep 30 03:00:37 2025 UTC (5 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.38: +1 -1 lines
Diff to previous 1.38
Fix bug in calculating page_count
To reproduce the bug, delete the last post from the section with 21 visible posts.


Revision 1.38 - (view) (annotate) - [select for diffs]
Wed Jul 23 01:15:21 2025 UTC (7 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.37: +1 -25 lines
Diff to previous 1.37
Move section_list_ex_menu_set_cleanup() to section_list_loader.c, to resolve dependancy issue in test_section_list.c


Revision 1.37 - (view) (annotate) - [select for diffs]
Wed Jun 25 02:49:20 2025 UTC (8 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36
Use RW_lock to avoid conflict between menu reload of data loader process and main process in rare condition


Revision 1.36 - (view) (annotate) - [select for diffs]
Tue Jun 24 10:01:24 2025 UTC (8 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.35: +14 -0 lines
Diff to previous 1.35
Add feature of excerptional directory list and article view


Revision 1.35 - (view) (annotate) - [select for diffs]
Mon Jun 23 08:38:01 2025 UTC (8 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.34: +129 -4 lines
Diff to previous 1.34
Display articles with ontop state at the end of section list


Revision 1.34 - (view) (annotate) - [select for diffs]
Sat Jun 21 02:15:18 2025 UTC (8 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.33: +5 -5 lines
Diff to previous 1.33
Re-order included order files


Revision 1.33 - (view) (annotate) - [select for diffs]
Fri Jun 20 09:01:16 2025 UTC (8 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32
Adjust shm size and count


Revision 1.32 - (view) (annotate) - [select for diffs]
Tue Jun 17 13:18:55 2025 UTC (8 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.31: +0 -2 lines
Diff to previous 1.31
Move macro definitions to autoconf


Revision 1.31 - (view) (annotate) - [select for diffs]
Thu Jun 5 11:12:11 2025 UTC (9 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
Update comment


Revision 1.30 - (view) (annotate) - [select for diffs]
Thu May 29 00:52:09 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29
Refine


Revision 1.29 - (view) (annotate) - [select for diffs]
Wed May 28 07:30:23 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28
Add section_list_display


Revision 1.28 - (view) (annotate) - [select for diffs]
Tue May 27 07:21:43 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.27: +21 -8 lines
Diff to previous 1.27
Add set_last_article_op_log_from_db() and set_last_article_op_log_from_db()


Revision 1.27 - (view) (annotate) - [select for diffs]
Tue May 27 01:53:42 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.26: +16 -1 lines
Diff to previous 1.26
Add article_block_article_count()


Revision 1.26 - (view) (annotate) - [select for diffs]
Tue May 27 00:54:01 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.25: +139 -44 lines
Diff to previous 1.25
Add attach/detach SHM in readonly mode for child process


Revision 1.25 - (view) (annotate) - [select for diffs]
Mon May 26 23:38:11 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.24: +8 -0 lines
Diff to previous 1.24
Add article_block_last_aid()


Revision 1.24 - (view) (annotate) - [select for diffs]
Mon May 26 04:47:45 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.23: +14 -2 lines
Diff to previous 1.23
Refine


Revision 1.23 - (view) (annotate) - [select for diffs]
Mon May 26 03:20:39 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.22: +65 -0 lines
Diff to previous 1.22
Add section rd/rw lock without timeout


Revision 1.22 - (view) (annotate) - [select for diffs]
Sun May 25 23:47:36 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.21: +98 -82 lines
Diff to previous 1.21
Move global variables to SHM


Revision 1.21 - (view) (annotate) - [select for diffs]
Sun May 25 10:43:27 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.20: +4 -5 lines
Diff to previous 1.20
Fix bug


Revision 1.20 - (view) (annotate) - [select for diffs]
Sun May 25 08:15:03 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.19: +0 -1 lines
Diff to previous 1.19
Remove debug message


Revision 1.19 - (view) (annotate) - [select for diffs]
Sun May 25 06:56:48 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18
Change for trie_dict refact
Minor fix


Revision 1.18 - (view) (annotate) - [select for diffs]
Sat May 24 15:18:11 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.17: +52 -28 lines
Diff to previous 1.17
Move p_article_block_pool to SHM


Revision 1.17 - (view) (annotate) - [select for diffs]
Sat May 24 13:52:44 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.16: +88 -26 lines
Diff to previous 1.16
Update lock/unlock and test


Revision 1.16 - (view) (annotate) - [select for diffs]
Sat May 24 07:32:46 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.15: +151 -0 lines
Diff to previous 1.15
Add read / write lock for sections


Revision 1.15 - (view) (annotate) - [select for diffs]
Sat May 24 03:41:34 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.14: +6 -0 lines
Diff to previous 1.14
Add error detection


Revision 1.14 - (view) (annotate) - [select for diffs]
Sat May 24 03:32:32 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.13: +129 -26 lines
Diff to previous 1.13
Add section_list_find_by_sid
Add sid check in section / article related functions


Revision 1.13 - (view) (annotate) - [select for diffs]
Fri May 23 14:04:05 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.12: +67 -18 lines
Diff to previous 1.12
Move section list to SHM


Revision 1.12 - (view) (annotate) - [select for diffs]
Fri May 23 10:45:54 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.11: +30 -4 lines
Diff to previous 1.11
Update


Revision 1.11 - (view) (annotate) - [select for diffs]
Fri May 23 07:06:57 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.10: +224 -16 lines
Diff to previous 1.10
Add section_list_move_topic()


Revision 1.10 - (view) (annotate) - [select for diffs]
Fri May 23 00:12:59 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.9: +7 -13 lines
Diff to previous 1.9
Update


Revision 1.9 - (view) (annotate) - [select for diffs]
Thu May 22 14:12:33 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.8: +73 -2 lines
Diff to previous 1.8
Add section_list_calculate_page()


Revision 1.8 - (view) (annotate) - [select for diffs]
Thu May 22 11:10:19 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.7: +158 -6 lines
Diff to previous 1.7
Add methods


Revision 1.7 - (view) (annotate) - [select for diffs]
Thu May 22 06:20:47 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.6: +285 -294 lines
Diff to previous 1.6
Use single article_block_pool for all sections


Revision 1.6 - (view) (annotate) - [select for diffs]
Wed May 21 12:43:04 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.5: +39 -18 lines
Diff to previous 1.5
Add bi-directional list for section articles


Revision 1.5 - (view) (annotate) - [select for diffs]
Wed May 21 09:18:17 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4
Add test for section_data_find_section_by_name


Revision 1.4 - (view) (annotate) - [select for diffs]
Wed May 21 09:09:30 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3
Refine block size


Revision 1.3 - (view) (annotate) - [select for diffs]
Wed May 21 06:17:52 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2
Update


Revision 1.2 - (view) (annotate) - [select for diffs]
Wed May 21 05:36:04 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.1: +34 -5 lines
Diff to previous 1.1
Update


Revision 1.1 - (view) (annotate) - [select for diffs]
Wed May 21 04:07:42 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Add section_list


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

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