[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: qemu port
From: |
Gianni Tedesco |
Subject: |
Re: [Qemu-devel] Re: qemu port |
Date: |
Thu, 03 Jun 2004 18:10:17 +0100 |
On Thu, 2004-06-03 at 01:54 +0200, Bartosz Fabianowski wrote:
> I haven't tried compiling or running this, but my idea would be to try
> something like this instead:
> if((size = lseek(fd, 0LL, SEEK_END)) < 0)
> size = 0;
This is the preferred method in Linux now aswell (over and above
BLKGETSIZE(64) ioctls).
--
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
signature.asc
Description: This is a digitally signed message part