Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 95 19:34:24 IST
From:      "Ugen J.S.Antsilevich" <ugen@netvision.net.il>
To:        ache@astral.msk.su, Ollivier ROBERT <roberto@blaise.ibp.fr>
Cc:        freebsd-current@freefall.cdrom.com, freebsd-hackers@freefall.cdrom.com, freebsd-questions@freefall.cdrom.com, ugen@netvision.net.il
Subject:   Re: bug in GCC or in lseek/read??? 
Message-ID:  <Chameleon.950118193514.ugen@ugen.NetManage.co.il>

next in thread | raw e-mail | index | archive | help

>> >printf("seek %u\n",lseek(f,100,SEEK_SET)); /* move into the middle 
>> 
>> Here is a bug: must be %lu
>
>Nay, should be %qu :
>
>SYNOPSIS
>     #include <unistd.h>
> 
>     off_t
>     lseek(int fildes, off_t offset, int whence)
>
>It is an off_t so 64 bits.
>
>and I'd recommand to use a cast (off_t) 100 instead of just 100 but that
>may not be necessary if <unistd.h> is included.
That's exactly what's causing second read to fail..!!!
And the problemm NOT in how i print this-i don't care about printf.
Problemm is in that read fails..:(
Guys you missing the point:(
>-- 
>Ollivier ROBERT     -=- The daemon is FREE! -=-     roberto@FreeBSD.ORG
>   FreeBSD keltia 2.1.0-Development #9: Tue Jan 17 21:12:14 MET 1995
>

-- 
-=Ugen J.S.Antsilevich=-
NetVision - Israeli Commercial Internet          |  Learning 
E-mail: ugen@NetVision.net.il                    | To Fly. [c]
Phone : +972-4-550330                            |   





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Chameleon.950118193514.ugen>