Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!olivea!uunet!mcsun!hp4nl!hgatenl!tedux!wiesje!baron From: baron@wiesje.hobby.nl (Wim `Blue Baron' van Dorst) Newsgroups: comp.os.minix Subject: Non-blocking read() on /dev/ttys [question] Keywords: PC Minix 1.5.10 Message-ID: <9106143865@wiesje.hobby.nl> Date: 14 Jun 91 22:51:04 GMT Article-I.D.: wiesje.9106143865 Organization: Minix Hobbynet Host Lines: 25 Hello *, Presently I am developing a little game for which I need a non-blocking read() on the terminal (/dev/tty1, stdin). I found the outer stuff to handle those (fcntl(), read()), but the inner stuff (kernel/fs) does not appear to work as expected. Wondering how the non-blocking read system call was implemented at all (in PC Minix 1.5.10 that is), I started to check things in the kernel and fs, and then I found suggestive references, e.g. to "temporary kludge" in fs/devices.c dev_io() where nonblocking info is handled. This leads to the following theorem: Theorem: Although it is suggested by various things that non-blocking read()s on /dev/tty?s are available in PC Minix 1.5.10, they are not completely implemented. Could a knowledgeable person please comment on my theorem? Will upgrading to 1.6.16 (full blown Posix) solve the problem? Met vriendelijke groeten, Wim `Blue Baron' van Dorst --------------------------------------------------------------------- Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319 (-: baron@wiesje.hobby.nl tgcpwd@urc.tue.nl :-) ---------------------------------------------------------------------