From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: Select on files. 15 Jul 1998 12:08:06 -0700 Message-ID: <01BDB041.466F6430.cygnus.cygwin32.developers@sos> To: "'Christopher Faylor'" Cc: "cygwin32-developers AT cygnus DOT com" óhristopher Faylor wrote: > I've been meaning to ask you about the files_select patch. I was going > to install it, but then I noticed that the Single UNIX man page for select > says that files are supposed to be "always ready". I don't know what POSIX > says, but I am not sure that we should be installing non-standard stuff. > I *do* think that being able to select on files is a nice idea, though. > With my patch disk files are ready to read when file size becomes greater than current file pointer. I need this patch for one porting project - unix FOFOes are emulated with disk files there, but the code needs a select() on FIFO fd :-) The algorhytm is very simple - fifo writing code just appends the data to the file, fifo reading code reads data from the file and truncates it on EOF condition. Of course, file access is mutexed. Very simple, but it works:-) > I hadn't noticed the ps replacement. I'll take a look at it. Did you notice > my change to ps in the recent snapshot? I created an external interface to Yes, I noticed the change, but had no time to implement them in my ps. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia