lseek to EOF always 0 for devices

2004-05-01 Thread Jens Schweikhardt
Fellow hackers, I'm not sure if I'm trying something impossible here. I want to find the size in bytes of a disk special device, eg /dev/da0, /dev/da0s1, /dev/da0s1a, /dev/vinum/usr and so on. The following program prints correct sizes for plain files and directories, but it consistently prints 0

Re: Vendors of multi-port PCI ethernet cards?

2004-05-01 Thread J.-P. Klodzinski
Christian Brueffer wrote: On Mon, Apr 26, 2004 at 01:46:48PM -0500, Stephen Hocking wrote: All, Does anyone know where I can lay my hands on one of those 4 port ethernet cards that used to be around a while back? Adaptec sells the ANA-64044LV, a 4 port card. I'm running the 2 port

Re: Accessing (the i4b) device driver

2004-05-01 Thread Andrew Gordon
On Fri, 30 Apr 2004, Martin Moeller wrote: I'm totally new to FreeBSD programming, so please forgive my troll-like question! I'd like to write a nifty little program showing if somebody is calling me via an ISDN line. In the far future, the program should show the caller's telephone number.

Re: Squid, SquidGuard, FreeBSD

2004-05-01 Thread Thomas-Martin Seck
* Ed Stover [EMAIL PROTECTED] [gmane.os.freebsd.devel.hackers]: Has any one successfully done squid with squidGuard on a FreeBSD later then 4.5 ? I have made it work on 4.5 but nothing later because of the berkly db changes after 4.5, if you have made contentent filtering work on

Re: lseek to EOF always 0 for devices

2004-05-01 Thread Dimitry Andric
On 2004-05-01 at 13:37:04 Jens Schweikhardt wrote: I'm not sure if I'm trying something impossible here. I want to find the size in bytes of a disk special device, eg /dev/da0, /dev/da0s1, /dev/da0s1a, /dev/vinum/usr and so on. I have no idea why lseek'ing in the devices doesn't work, but try

Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5

2004-05-01 Thread Stefan Bethke
Am 29.04.2004 um 02:01 schrieb Kris Kennaway: On Wed, Apr 28, 2004 at 02:40:38PM -0700, John Uhlig wrote: On the web, freebsd mailing lists and bug lists, I have seen existing thread about kmem_malloc and kmem_map too small problems - but no evidence of a fix or patch. We experienced the same

Is this LOST??

2004-05-01 Thread Deng XueFeng
I found the htonl implemention in libc for i386 is not sync with the kern. sys use bswap for swaping the int. but libc still use xchg. IS THIS LOST? Here is the patches. CUT HERE --- /usr/src/lib/libc/i386/net/htonl.S.orig Sun May 2