Re: easy way to determine if a stream or fd is seekable

2011-11-15 Thread Brandon Gooch
On Nov 15, 2011 2:25 PM, "Alexander Best" wrote: > > hi there, > > one of the things i'm missing is an easy way to determine, whether a stream or > fd is seekable. i checked the dd(1) and hd(1) sources and those tools are > performing so much stuff just to find out if this is the case, and they st

Re: Communication between kernel and userspace via local socket

2011-11-15 Thread mdf
On Tue, Nov 15, 2011 at 12:18 PM, Maxim Ignatenko wrote: > frHi, > > I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and > looking for most convenient way to establish communication between userspace > processes and kernel part. Communication pattern best fits to listening >

Communication between kernel and userspace via local socket

2011-11-15 Thread Maxim Ignatenko
frHi, I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and looking for most convenient way to establish communication between userspace processes and kernel part. Communication pattern best fits to listening PF_LOCAL socket opened from kernel and userspace processes connec

easy way to determine if a stream or fd is seekable

2011-11-15 Thread Alexander Best
hi there, one of the things i'm missing is an easy way to determine, whether a stream or fd is seekable. i checked the dd(1) and hd(1) sources and those tools are performing so much stuff just to find out if this is the case, and they still are doing a very poor job. dd(1) e.g. identifies /dev/ze