Date: Wed, 18 Jan 1995 18:26:01 +0100 (MET) From: roberto@blaise.ibp.fr (Ollivier ROBERT) To: ache@astral.msk.su (Andrew A. Chernov, Black Mage) 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: <9501181726.AA14368@blaise.ibp.fr> In-Reply-To: <CTmPK7l4V1@astral.msk.su> from "Andrew A. Chernov, Black Mage" at Jan 18, 95 07:48:48 pm
next in thread | previous 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. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@FreeBSD.ORG FreeBSD keltia 2.1.0-Development #9: Tue Jan 17 21:12:14 MET 1995
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9501181726.AA14368>