Only required for Windows 7.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
return;
}
- DWORD inrec_size1 =
- wincap.cons_need_small_input_record_buf () ? INREC_SIZE : inrec_size;
-
struct m
{
inline static size_t bytes (size_t n)
if (new_input_tmp)
input_tmp = new_input_tmp;
if (new_input_rec && new_input_tmp)
- {
- inrec_size = new_inrec_size;
- if (!wincap.cons_need_small_input_record_buf ())
- inrec_size1 = inrec_size;
- }
+ inrec_size = new_inrec_size;
}
WaitForSingleObject (p->input_mutex, mutex_timeout);
{
DWORD len;
ReadConsoleInputW (p->input_handle, input_rec + total_read,
- min (inrec_size - total_read, inrec_size1),
+ min (inrec_size - total_read, inrec_size),
&len);
total_read += len;
}
{
DWORD len;
WriteConsoleInputW (p->input_handle, input_rec + n,
- min (total_read - n, inrec_size1), &len);
+ min (total_read - n, inrec_size), &len);
n += len;
}
release_attach_mutex ();
if (new_input_tmp)
input_tmp = new_input_tmp;
if (new_input_rec && new_input_tmp)
- {
- inrec_size = new_inrec_size;
- if (!wincap.cons_need_small_input_record_buf ())
- inrec_size1 = inrec_size;
- }
+ inrec_size = new_inrec_size;
}
/* Check if writeback was successfull. */
acquire_attach_mutex (mutex_timeout);
- PeekConsoleInputW (p->input_handle, input_tmp, inrec_size1, &n);
+ PeekConsoleInputW (p->input_handle, input_tmp, inrec_size, &n);
release_attach_mutex ();
- if (n < min (total_read, inrec_size1))
+ if (n < min (total_read, inrec_size))
break; /* Someone has read input without acquiring
input_mutex. ConEmu cygwin-connector? */
if (inrec_eq (input_rec, input_tmp,
- min (total_read, inrec_size1)))
+ min (total_read, inrec_size)))
break; /* OK */
/* Try to fix */
acquire_attach_mutex (mutex_timeout);
{
DWORD len;
ReadConsoleInputW (p->input_handle, input_tmp + n,
- min (inrec_size - n, inrec_size1), &len);
+ min (inrec_size - n, inrec_size), &len);
n += len;
}
release_attach_mutex ();
DWORD len;
WriteConsoleInputW (p->input_handle,
input_tmp + l,
- min (n - l, inrec_size1),
+ min (n - l, inrec_size),
&len);
l += len;
}
unsigned has_linux_tcp_keepalive_sockopts : 1;
unsigned has_tcp_maxrtms : 1;
unsigned has_con_broken_tabs : 1;
- unsigned cons_need_small_input_record_buf : 1;
};
};
bool IMPLEMENT (has_linux_tcp_keepalive_sockopts)
bool IMPLEMENT (has_tcp_maxrtms)
bool IMPLEMENT (has_con_broken_tabs)
- bool IMPLEMENT (cons_need_small_input_record_buf)
void disable_case_sensitive_dirs ()
{
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:false,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:true,
},
};
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:false,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:false,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:false,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:true,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:false,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:true,
- cons_need_small_input_record_buf:false,
},
};
has_linux_tcp_keepalive_sockopts:true,
has_tcp_maxrtms:true,
has_con_broken_tabs:false,
- cons_need_small_input_record_buf:false,
},
};