Re: kqueue alternative?

2003-06-16 Thread Wes Peters
On Monday 16 June 2003 11:39 am, Eric Jacobs wrote: > On Mon, 16 Jun 2003 10:11:10 -0700 > > Joshua Oreman <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 16, 2003 at 11:44:15AM +0100 or thereabouts, Tony Finch seemed to write: > > > Select doesn't work with files. > > > > Really? `man 2 select' says n

Re: kqueue alternative?

2003-06-16 Thread Terry Lambert
Joshua Oreman wrote: > > >I would say, use select(2). > > >Is there a reason this wouldn't work? > > > > Select doesn't work with files. > > Really? `man 2 select' says nothing about that. It just talks about > 'file descriptors'. Now if it said 'socket descriptors' or 'non-file > file descriptors

Re: kqueue alternative?

2003-06-16 Thread Eric Jacobs
On Mon, 16 Jun 2003 10:11:10 -0700 Joshua Oreman <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2003 at 11:44:15AM +0100 or thereabouts, Tony Finch seemed to write: > > > > Select doesn't work with files. > > Really? `man 2 select' says nothing about that. It just talks about > 'file descriptors'.

Re: kqueue alternative?

2003-06-16 Thread Stephen Montgomery-Smith
Select doesn't work with files. Really? `man 2 select' says nothing about that. It just talks about 'file descriptors'. Now if it said 'socket descriptors' or 'non-file file descriptors' I would understand, but I don't think that that statement is implied by the man page. Is there something I'm

Re: kqueue alternative?

2003-06-16 Thread Joshua Oreman
On Mon, Jun 16, 2003 at 11:44:15AM +0100 or thereabouts, Tony Finch seemed to write: > Joshua Oreman <[EMAIL PROTECTED]> wrote: > >On Sun, 15 Jun 2003, Matthew Hagerty wrote: > >> > >> I'm writing a little application that needs to watch a file that another > >> process is writing to, think 'tail -

Re: kqueue alternative?

2003-06-16 Thread Terry Lambert
Tony Finch wrote: > Joshua Oreman <[EMAIL PROTECTED]> wrote: > >On Sun, 15 Jun 2003, Matthew Hagerty wrote: > >> > >> I'm writing a little application that needs to watch a file that another > >> process is writing to, think 'tail -F'. > > > >I would say, use select(2). > >Is there a reason this wo

Re: kqueue alternative?

2003-06-16 Thread Tony Finch
Joshua Oreman <[EMAIL PROTECTED]> wrote: >On Sun, 15 Jun 2003, Matthew Hagerty wrote: >> >> I'm writing a little application that needs to watch a file that another >> process is writing to, think 'tail -F'. > >I would say, use select(2). >Is there a reason this wouldn't work? Select doesn't work

Re: kqueue alternative?

2003-06-15 Thread Terry Lambert
Drew Eckhardt wrote: > In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > ux.org writes: > >I would say, use select(2). > >Is there a reason this wouldn't work? > > fd_set size... That's inaccurate. In FreeBSD, select lists are permitted to be arbitrarily large. See the select code itself for

Re: kqueue alternative?

2003-06-15 Thread Drew Eckhardt
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ux.org writes: >I would say, use select(2). >Is there a reason this wouldn't work? fd_set size... -- http://www.poohsticks.org/drew/";>Home Page For those who do, no explanation is necessary. For those who don't, no explanation is possible. ___

Re: kqueue alternative?

2003-06-15 Thread Joshua Oreman
On Sun, Jun 15, 2003 at 09:50:24PM -0400 or thereabouts, Matthew Hagerty seemed to write: > > Joshua Oreman wrote: > >> On Sun, 15 Jun 2003, Matthew Hagerty wrote: > >> > >>>I'm writing a little application that needs to watch a file that another > >>>process is writing to, think 'tail -F'. kqueu

Re: kqueue alternative?

2003-06-15 Thread Matthew Hagerty
> Joshua Oreman wrote: >> On Sun, 15 Jun 2003, Matthew Hagerty wrote: >> >>>I'm writing a little application that needs to watch a file that another >>>process is writing to, think 'tail -F'. kqueue and kevent are going to >>>do it for me on *BSD, but I'm also trying to support *cough* linux and >

Re: kqueue alternative?

2003-06-15 Thread Philip Reynolds
Robert Watson <[EMAIL PROTECTED]> 30 lines of wisdom included: > I was recently told about a library named libevent from Niels Provos, > which abstracts a variety of underlying event mechanisms behind a common > API. You can learn a bit more about it here: > > http://www.monkey.org/~provos/lib

Re: kqueue alternative?

2003-06-15 Thread Terry Lambert
Matthew Hagerty wrote: > I'm writing a little application that needs to watch a file that another > process is writing to, think 'tail -F'. kqueue and kevent are going to do > it for me on *BSD, but I'm also trying to support *cough* linux and other > UN*X types OSes. > > >From what I can find on

Re: kqueue alternative?

2003-06-15 Thread Stephen Montgomery-Smith
Joshua Oreman wrote: On Sun, 15 Jun 2003, Matthew Hagerty wrote: I'm writing a little application that needs to watch a file that another process is writing to, think 'tail -F'. kqueue and kevent are going to do it for me on *BSD, but I'm also trying to support *cough* linux and other UN*X types

Re: kqueue alternative?

2003-06-15 Thread Joshua Oreman
On Sun, 15 Jun 2003, Matthew Hagerty wrote: > I'm writing a little application that needs to watch a file that another > process is writing to, think 'tail -F'. kqueue and kevent are going to > do it for me on *BSD, but I'm also trying to support *cough* linux and > other UN*X types OSes. > > >F

Re: kqueue alternative?

2003-06-15 Thread Robert Watson
On Sun, 15 Jun 2003, Matthew Hagerty wrote: > I'm writing a little application that needs to watch a file that another > process is writing to, think 'tail -F'. kqueue and kevent are going to > do it for me on *BSD, but I'm also trying to support *cough* linux and > other UN*X types OSes. > >

kqueue alternative?

2003-06-15 Thread Matthew Hagerty
Greetings, I'm writing a little application that needs to watch a file that another process is writing to, think 'tail -F'. kqueue and kevent are going to do it for me on *BSD, but I'm also trying to support *cough* linux and other UN*X types OSes. >From what I can find on google, the linux comm