Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 95 19:27:46 IST
From:      "Ugen J.S.Antsilevich" <ugen@netvision.net.il>
To:        freebsd-current@freefall.cdrom.com, freebsd-hackers@freefall.cdrom.com, freebsd-questions@freefall.cdrom.com, "Ugen J.S.Antsilevich" <ugen@netvision.net.il>, "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
Subject:   Re: bug in GCC or in lseek/read??? 
Message-ID:  <Chameleon.950118192913.ugen@ugen.NetManage.co.il>

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

>In message <Chameleon.950118175745.ugen@ugen.NetManage.co.il> Ugen
>    J.S.Antsilevich writes:
>
>>printf("seek %u\n",lseek(f,100,SEEK_SET)); /* move into the middle 
>
>Here is a bug: must be %lu
This is not the issue!
The problemm is that the right cast makes wrong result for lseek
and read fails while wrong cast works!!!Taht's the problemm and not how the 
result seems in printf.I could skip printf but read still will fail.
>
>-- 
>Andrew A. Chernov        : And I rest so composedly,  /Now, in my bed,
>ache@astral.msk.su       : That any beholder  /Might fancy me dead -
>FidoNet: 2:5020/230.3    : Might start at beholding me,  /Thinking me dead.
>RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849
>

-- 
-=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.950118192913.ugen>