* src/haiku_io.c (haiku_read_with_timeout): Accept `bigtime_t'
instead of `time_t' for values which are cast to bigtime_t
anyway.
* src/haiku_support.cc (BMenu_run): Read all help events instead
of just one.
* src/haiku_support.h: Update prototypes.
Input is blocked when an attempt to read is in progress. */
int
haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len,
- time_t timeout, bool popup_menu_p)
+ bigtime_t timeout, bool popup_menu_p)
{
int32 typ;
port_id from = (popup_menu_p
if (infos[0].events & B_EVENT_READ)
{
- if (!haiku_read_with_timeout (&type, buf, 200, 1000000, true))
+ while (!haiku_read_with_timeout (&type, buf, 200, 0, true))
{
switch (type)
{
extern int
haiku_read_with_timeout (enum haiku_event_type *type, void *buf, ssize_t len,
- time_t timeout, bool popup_menu_p);
+ bigtime_t timeout, bool popup_menu_p);
extern int
haiku_write (enum haiku_event_type type, void *buf);