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

Diff of /lbbs/src/io.c

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

Revision 1.56 by sysadm, Sun Oct 19 01:30:38 2025 UTC Revision 1.57 by sysadm, Sun Oct 19 02:42:19 2025 UTC
# Line 35  char stdio_charset[32] = BBS_DEFAULT_CHA Line 35  char stdio_charset[32] = BBS_DEFAULT_CHA
35    
36  // static input / output buffer  // static input / output buffer
37  static char stdin_buf[LINE_BUFFER_LEN];  static char stdin_buf[LINE_BUFFER_LEN];
38  static char stdin_conv[LINE_BUFFER_LEN];  static char stdout_buf[BUFSIZ];
39  static int stdin_buf_len = 0;  static int stdin_buf_len = 0;
40  static int stdin_conv_len = 0;  static int stdout_buf_len = 0;
41  static int stdin_buf_offset = 0;  static int stdin_buf_offset = 0;
42  static int stdin_conv_offset = 0;  static int stdout_buf_offset = 0;
43    
44  static char stdout_buf[BUFSIZ];  static char stdin_conv[LINE_BUFFER_LEN * 2];
45  static char stdout_conv[BUFSIZ];  static char stdout_conv[BUFSIZ * 2];
46  static int stdout_buf_len = 0;  static int stdin_conv_len = 0;
47  static int stdout_conv_len = 0;  static int stdout_conv_len = 0;
48  static int stdout_buf_offset = 0;  static int stdin_conv_offset = 0;
49  static int stdout_conv_offset = 0;  static int stdout_conv_offset = 0;
50    
51  static iconv_t stdin_cd = NULL;  static iconv_t stdin_cd = NULL;
# Line 285  int igetch(int timeout) Line 285  int igetch(int timeout)
285                  flags = fcntl(STDIN_FILENO, F_GETFL, 0);                  flags = fcntl(STDIN_FILENO, F_GETFL, 0);
286                  fcntl(STDIN_FILENO, F_SETFL, flags | O_NONBLOCK);                  fcntl(STDIN_FILENO, F_SETFL, flags | O_NONBLOCK);
287    
288                  for (loop = 1; loop && stdin_conv_offset >= stdin_conv_len && !SYS_server_exit;)                  for (loop = 1; loop && stdin_buf_len < sizeof(stdin_buf) && stdin_conv_offset >= stdin_conv_len && !SYS_server_exit;)
289                  {                  {
290                          if (SSH_v2 && ssh_channel_is_closed(SSH_channel))                          if (SSH_v2 && ssh_channel_is_closed(SSH_channel))
291                          {                          {


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

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