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

Log of /lbbs/src/io.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 1.83 - (view) (annotate) - [select for diffs]
Sun Jan 4 13:22:58 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.82: +6 -0 lines
Diff to previous 1.82
Mapping key Backspace (0x7f) to \b (0x8)


Revision 1.82 - (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.81: +1 -1 lines
Diff to previous 1.81
Update copyright info


Revision 1.81 - (view) (annotate) - [select for diffs]
Sat Dec 20 07:18:36 2025 UTC (2 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80
Refine


Revision 1.80 - (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.79: +50 -50 lines
Diff to previous 1.79
Append \n to the end of logging message by log_...()
Remove ending \n from each logging message


Revision 1.79 - (view) (annotate) - [select for diffs]
Thu Dec 18 12:04:02 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.78: +5 -4 lines
Diff to previous 1.78
Refine


Revision 1.78 - (view) (annotate) - [select for diffs]
Thu Dec 18 11:37:08 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.77: +12 -10 lines
Diff to previous 1.77
Refine


Revision 1.77 - (view) (annotate) - [select for diffs]
Thu Dec 18 11:18:29 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.76: +78 -24 lines
Diff to previous 1.76
Refine and fix bugs


Revision 1.76 - (view) (annotate) - [select for diffs]
Thu Dec 18 03:23:48 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.75: +4 -4 lines
Diff to previous 1.75
Do not monitor EPOLLRDHUP / POLLRDHUP, since POLLRDHUP is not supported by MSYS2.


Revision 1.75 - (view) (annotate) - [select for diffs]
Thu Dec 18 02:56:00 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.74: +16 -38 lines
Diff to previous 1.74
Refine with log_debug()


Revision 1.74 - (view) (annotate) - [select for diffs]
Thu Dec 18 02:17:39 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.73: +37 -7 lines
Diff to previous 1.73
Add handling of error events (EPOLLRDHUP | EPOLLHUP | EPOLLERR)


Revision 1.73 - (view) (annotate) - [select for diffs]
Wed Dec 17 03:56:39 2025 UTC (2 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.72: +6 -0 lines
Diff to previous 1.72
Refine debug log


Revision 1.72 - (view) (annotate) - [select for diffs]
Tue Dec 16 12:59:56 2025 UTC (3 months ago) by sysadm
Branch: MAIN
Changes since 1.71: +7 -6 lines
Diff to previous 1.71
Refine init / cleanup of iconv_cd


Revision 1.71 - (view) (annotate) - [select for diffs]
Sun Nov 23 06:43:51 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.70: +9 -17 lines
Diff to previous 1.70
Refine


Revision 1.70 - (view) (annotate) - [select for diffs]
Sun Nov 23 01:47:47 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69
Fix bug


Revision 1.69 - (view) (annotate) - [select for diffs]
Sat Nov 22 15:51:42 2025 UTC (3 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.68: +28 -3 lines
Diff to previous 1.68
Fix bug of iconv under MSYS2


Revision 1.68 - (view) (annotate) - [select for diffs]
Mon Nov 17 10:57:23 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.67: +13 -8 lines
Diff to previous 1.67
Refine constant definition


Revision 1.67 - (view) (annotate) - [select for diffs]
Mon Nov 17 06:41:18 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.66: +87 -8 lines
Diff to previous 1.66
Add --with-epoll to configure to switch between epoll and poll


Revision 1.66 - (view) (annotate) - [select for diffs]
Mon Nov 17 02:32:42 2025 UTC (3 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.65: +97 -69 lines
Diff to previous 1.65
Optimize epoll handling to avoid repeated create / close
Modify several extern variables to static
Cleanup more server-side variables after fork of client process


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


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


Revision 1.63 - (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.62: +1 -1 lines
Diff to previous 1.62
Refine file header information comments


Revision 1.62 - (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.61: +7 -15 lines
Diff to previous 1.61
Update file header information comments


Revision 1.61 - (view) (annotate) - [select for diffs]
Tue Nov 4 05:24:09 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.60: +71 -57 lines
Diff to previous 1.60
Fix bug: remaining input data in SSH read buffer could not be detected by epoll_wait on STDIN
Add stdin_read_wait to indicate the last read state in igetch()
When stdin_read_wait = 1, ssh_channel_read_nonblocking / read will be performed directly without check with epoll_wait


Revision 1.60 - (view) (annotate) - [select for diffs]
Mon Oct 20 01:55:50 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.59: +9 -4 lines
Diff to previous 1.59
Do not apply //IGNORE or //TRANSLIT if tocode and fromcode is the same


Revision 1.59 - (view) (annotate) - [select for diffs]
Sun Oct 19 13:13:07 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.58: +8 -2 lines
Diff to previous 1.58
Passthrough input sequence recognized as invalid by iconv() with "//IGNORE" applied


Revision 1.58 - (view) (annotate) - [select for diffs]
Sun Oct 19 09:09:18 2025 UTC (4 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.57: +11 -6 lines
Diff to previous 1.57
Refine tocode passed into iconv_open()


Revision 1.57 - (view) (annotate) - [select for diffs]
Sun Oct 19 02:42:19 2025 UTC (4 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.56: +8 -8 lines
Diff to previous 1.56
Fix bug in igetch():
1) conv output buffer should be double size of input buffer
2) stop read if input buffer is full


Revision 1.56 - (view) (annotate) - [select for diffs]
Sun Oct 19 01:30:38 2025 UTC (4 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.55: +56 -10 lines
Diff to previous 1.55
Copy terminal control sequence directly without invoking iconv()


Revision 1.55 - (view) (annotate) - [select for diffs]
Sat Oct 18 05:02:15 2025 UTC (4 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.54: +107 -26 lines
Diff to previous 1.54
Add user preferred charset selection and conversion


Revision 1.54 - (view) (annotate) - [select for diffs]
Sat Oct 18 01:50:48 2025 UTC (4 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.53: +65 -0 lines
Diff to previous 1.53
Move io_buf_conv() to io.c(.h)


Revision 1.53 - (view) (annotate) - [select for diffs]
Fri Oct 17 01:25:08 2025 UTC (4 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.52: +1 -1 lines
Diff to previous 1.52
No longer use igetch_reset() to skip remaining \n after \r
\r\n -> \r and \n -> \r conversions have already been implemented in igetch()


Revision 1.52 - (view) (annotate) - [select for diffs]
Thu Oct 16 12:11:31 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51
Return 0 on empty input from SSH connection, to keep consistent with Telnet connection


Revision 1.51 - (view) (annotate) - [select for diffs]
Wed Jul 2 09:07:35 2025 UTC (8 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.50: +12 -6 lines
Diff to previous 1.50
Convert \r\n to \r to avoid duplicate change line in editor


Revision 1.50 - (view) (annotate) - [select for diffs]
Sat Jun 28 11:31:17 2025 UTC (8 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.49: +6 -0 lines
Diff to previous 1.49
Convert input LF to CR, since some terminal such as Cterm send LF without CR


Revision 1.49 - (view) (annotate) - [select for diffs]
Sat Jun 28 01:16:00 2025 UTC (8 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48
Fix bug


Revision 1.48 - (view) (annotate) - [select for diffs]
Fri Jun 27 13:01:24 2025 UTC (8 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.47: +96 -95 lines
Diff to previous 1.47
Do not create epoll and perform io control if buffer is not empty


Revision 1.47 - (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.46: +6 -6 lines
Diff to previous 1.46
Re-order included order files


Revision 1.46 - (view) (annotate) - [select for diffs]
Wed Jun 18 04:29:18 2025 UTC (8 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.45: +4 -0 lines
Diff to previous 1.45
Add conditional compile to debugging code


Revision 1.45 - (view) (annotate) - [select for diffs]
Tue Jun 17 13:25:49 2025 UTC (8 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.44: +12 -8 lines
Diff to previous 1.44
Add conditional compile flag for debugging code


Revision 1.44 - (view) (annotate) - [select for diffs]
Tue Jun 17 02:06:48 2025 UTC (9 months ago) by sysadm
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43
Replace time(0) with time(NULL)


Revision 1.43 - (view) (annotate) - [select for diffs]
Fri Jun 13 10:51:46 2025 UTC (9 months ago) by sysadm
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42
Update


Revision 1.42 - (view) (annotate) - [select for diffs]
Wed Jun 11 07:52:34 2025 UTC (9 months ago) by sysadm
Branch: MAIN
Changes since 1.41: +3 -0 lines
Diff to previous 1.41
Add expanded key INS


Revision 1.41 - (view) (annotate) - [select for diffs]
Mon Jun 9 15:39:05 2025 UTC (9 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.40: +18 -0 lines
Diff to previous 1.40
Add expanded KEY


Revision 1.40 - (view) (annotate) - [select for diffs]
Thu Jun 5 08:36:02 2025 UTC (9 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39
Listen at both telnet and ssh port


Revision 1.39 - (view) (annotate) - [select for diffs]
Thu Jun 5 05:24:56 2025 UTC (9 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.38: +48 -3 lines
Diff to previous 1.38
Add SSH2 support


Revision 1.38 - (view) (annotate) - [select for diffs]
Wed Jun 4 13:42:53 2025 UTC (9 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37
Rename log_std() to log_common()


Revision 1.37 - (view) (annotate) - [select for diffs]
Wed May 28 11:14:58 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
Refine


Revision 1.36 - (view) (annotate) - [select for diffs]
Wed May 28 10:26:21 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.35: +6 -0 lines
Diff to previous 1.35
Refine ESC key handling


Revision 1.35 - (view) (annotate) - [select for diffs]
Wed May 28 05:47:37 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.34: +1 -0 lines
Diff to previous 1.34
Refine


Revision 1.34 - (view) (annotate) - [select for diffs]
Tue May 20 12:07:06 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33
Remove debug code


Revision 1.33 - (view) (annotate) - [select for diffs]
Tue May 20 05:11:05 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.32: +337 -18 lines
Diff to previous 1.32
Add additional expand keys for input


Revision 1.32 - (view) (annotate) - [select for diffs]
Mon May 19 13:03:14 2025 UTC (9 months, 4 weeks ago) by sysadm
Branch: MAIN
Changes since 1.31: +1 -0 lines
Diff to previous 1.31
Fix bug


Revision 1.31 - (view) (annotate) - [select for diffs]
Tue May 13 07:28:51 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.30: +62 -34 lines
Diff to previous 1.30
Refine igetch/igetch_t


Revision 1.30 - (view) (annotate) - [select for diffs]
Tue May 13 02:19:15 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.29: +51 -14 lines
Diff to previous 1.29
Refine prints / outc, flush buffer while no enough free space


Revision 1.29 - (view) (annotate) - [select for diffs]
Mon May 12 09:41:50 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.28: +123 -66 lines
Diff to previous 1.28
Refact IO with epoll


Revision 1.28 - (view) (annotate) - [select for diffs]
Sun May 11 14:52:26 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.27: +85 -19 lines
Diff to previous 1.27
Refact format output with non-blocking socket write


Revision 1.27 - (view) (annotate) - [select for diffs]
Sun May 11 11:33:44 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.26: +8 -9 lines
Diff to previous 1.26
Fix bug in handling broken pipe


Revision 1.26 - (view) (annotate) - [select for diffs]
Sun May 11 04:09:08 2025 UTC (10 months ago) by sysadm
Branch: MAIN
Changes since 1.25: +16 -1 lines
Diff to previous 1.25
Change getch to non-blocking
Refine select parameter
Remove sleep


Revision 1.25 - (view) (annotate) - [select for diffs]
Sat May 10 15:23:42 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24
Refine SIGTERM handling


Revision 1.24 - (view) (annotate) - [select for diffs]
Sat May 10 13:17:36 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23
Fix bug of handling '\0' input


Revision 1.23 - (view) (annotate) - [select for diffs]
Sat May 10 11:09:02 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22
Refact tcplib
Refine handling of user input timeout


Revision 1.22 - (view) (annotate) - [select for diffs]
Sat May 10 02:14:46 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.21: +7 -6 lines
Diff to previous 1.21
Refine to prevent blocking while shutdown server


Revision 1.21 - (view) (annotate) - [select for diffs]
Fri May 9 11:21:11 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.20: +21 -33 lines
Diff to previous 1.20
Refact signal handler and processing implementation
Refine select error handling


Revision 1.20 - (view) (annotate) - [select for diffs]
Tue May 6 05:31:26 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.19: +3 -4 lines
Diff to previous 1.19
Update copyright and license information


Revision 1.19 - (view) (annotate) - [select for diffs]
Mon May 5 14:27:57 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18
Refine for strict GCC error check


Revision 1.18 - (view) (annotate) - [select for diffs]
Sun May 4 14:54:55 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.17: +15 -7 lines
Diff to previous 1.17
Refine


Revision 1.17 - (view) (annotate) - [select for diffs]
Fri May 2 03:34:58 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.16: +11 -3 lines
Diff to previous 1.16
Refine


Revision 1.16 - (view) (annotate) - [select for diffs]
Wed Apr 30 09:18:19 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.15: +1 -0 lines
Diff to previous 1.15
Add missing header files
Update compile dependency


Revision 1.15 - (view) (annotate) - [select for diffs]
Tue Apr 29 03:38:43 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14
Fix bug


Revision 1.14 - (view) (annotate) - [select for diffs]
Mon Apr 28 03:30:59 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.13: +175 -183 lines
Diff to previous 1.13
Update


Revision 1.13 - (view) (annotate) - [select for diffs]
Mon Mar 15 07:30:21 2010 UTC (16 years ago) by sysadm
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12
Fix bug in igetch_t, maybe not fix completedly.


Revision 1.12 - (view) (annotate) - [select for diffs]
Sat May 7 12:08:28 2005 UTC (20 years, 10 months ago) by sysadm
Branch: MAIN
CVS Tags: lbbs_1-0-0-0_MIL
Changes since 1.11: +5 -1 lines
Diff to previous 1.11
*** empty log message ***


Revision 1.11 - (view) (annotate) - [select for diffs]
Sat May 7 09:28:12 2005 UTC (20 years, 10 months ago) by sysadm
Branch: MAIN
Changes since 1.10: +14 -13 lines
Diff to previous 1.10
*** empty log message ***


Revision 1.10 - (view) (annotate) - [select for diffs]
Tue Mar 22 13:36:13 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.9: +7 -5 lines
Diff to previous 1.9
*** empty log message ***


Revision 1.9 - (view) (annotate) - [select for diffs]
Tue Mar 22 08:19:11 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.8: +45 -3 lines
Diff to previous 1.8
*** empty log message ***


Revision 1.8 - (view) (annotate) - [select for diffs]
Mon Mar 21 17:08:21 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7
*** empty log message ***


Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Mar 21 05:43:43 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6
*** empty log message ***


Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Mar 20 17:37:14 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.5: +42 -42 lines
Diff to previous 1.5
*** empty log message ***


Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Mar 17 10:48:46 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.4: +17 -4 lines
Diff to previous 1.4
*** empty log message ***


Revision 1.4 - (view) (annotate) - [select for diffs]
Wed Mar 2 16:33:49 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.3: +6 -3 lines
Diff to previous 1.3
*** empty log message ***


Revision 1.3 - (view) (annotate) - [select for diffs]
Tue Nov 30 07:10:32 2004 UTC (21 years, 3 months ago) by sysadm
Branch: MAIN
Changes since 1.2: +28 -6 lines
Diff to previous 1.2
*** empty log message ***


Revision 1.2 - (view) (annotate) - [select for diffs]
Sat Oct 23 18:41:41 2004 UTC (21 years, 4 months ago) by sysadm
Branch: MAIN
Changes since 1.1: +27 -9 lines
Diff to previous 1.1
*** empty log message ***


Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Oct 22 15:21:28 2004 UTC (21 years, 4 months ago) by sysadm
Branch: MAIN
*** empty log message ***


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