memory leaks (and some other warning like divison by zero; ) auto reports for FreeBSD source code

2011-11-17 Thread Slono Slono
Hi This information can be interesting - in most cases really doesn't suffice free() and someone is necessary with commit bit who it can to correct. reported by cppcheck (http://cppcheck.sourceforge.net/): This report is actual for FreeBSD 9.0-PRERELEASE Scan for /usr/src/libexec/: [rtld-elf/

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

2011-11-17 Thread Juergen Lock
In article you write: >On Nov 16, 2011, at 4:24 PM, Alexander Best wrote: > >> On Thu Nov 17 11, Joerg Sonnenberger wrote: >>> On Wed, Nov 16, 2011 at 01:14:28PM +, Alexander Best wrote: On Wed Nov 16 11, Joerg Sonnenberger wrote: > On Tue, Nov 15, 2011 at 08:24:50PM +, Alexander

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

2011-11-17 Thread perryh
"Dieter BSD" wrote: > IIRC some tape drives can seek, while others cannot. > Vague memories that it is supposed to be possible to put a > filesystem on a DECtape and mount the filesystem. Back in the Bell Labs 6th Edition days, it was possible to put a filesystem on a _9-track magtape_ and mount

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

2011-11-17 Thread perryh
Alexander Best wrote: > since i've never worked with tape: what file type does it identify > as? character special file, or block special file, or ...? IIUC all devices are now character, block devices having been dropped from FreeBSD some time ago. Come to think of it, it would not be altoget

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

2011-11-17 Thread Alexander Best
On Thu Nov 17 11, Dieter BSD wrote: > > lseek() on a tape drive does not return an error, nor does it > > actually do anything. > > IIRC some tape drives can seek, while others cannot. > Vague memories that it is supposed to be possible to put a > filesystem on a DECtape and mount the filesystem.

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

2011-11-17 Thread Alexander Best
On Thu Nov 17 11, Dieter BSD wrote: > > lseek() on a tape drive does not return an error, nor does it > > actually do anything. > > IIRC some tape drives can seek, while others cannot. > Vague memories that it is supposed to be possible to put a > filesystem on a DECtape and mount the filesystem.

Re: Communication between kernel and userspace via local socket

2011-11-17 Thread Maxim Ignatenko
Julian Elischer wrote: > On 11/16/11 12:55 AM, Ed Schouten wrote: >> * Maxim Ignatenko, 2015 21:18: >>> 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. Com

Re: Communication between kernel and userspace via local socket

2011-11-17 Thread Julian Elischer
On 11/16/11 12:55 AM, Ed Schouten wrote: * Maxim Ignatenko, 2015 21:18: 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 listen

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

2011-11-17 Thread Dieter BSD
> lseek() on a tape drive does not return an error, nor does it > actually do anything. IIRC some tape drives can seek, while others cannot. Vague memories that it is supposed to be possible to put a filesystem on a DECtape and mount the filesystem. It might be that FreeBSD doesn't currently supp

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

2011-11-17 Thread Alexander Best
On Wed Nov 16 11, Tim Kientzle wrote: > > On Nov 16, 2011, at 4:24 PM, Alexander Best wrote: > > > On Thu Nov 17 11, Joerg Sonnenberger wrote: > >> On Wed, Nov 16, 2011 at 01:14:28PM +, Alexander Best wrote: > >>> On Wed Nov 16 11, Joerg Sonnenberger wrote: > On Tue, Nov 15, 2011 at 08:2