Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E6B376C.27316F74@phekda.freeserve.co.uk> Date: Sun, 09 Mar 2003 12:45:32 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: New POSIX: pwrite, revision 2 [PATCH] References: <200303091227 DOT h29CReX06210 AT speedy DOT ludd DOT luth DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. ams AT ludd DOT luth DOT se wrote: > > According to Richard Dawe: > > Index: include/unistd.h > > =================================================================== > > RCS file: /cvs/djgpp/djgpp/include/unistd.h,v > > retrieving revision 1.16 > > diff -p -c -3 -r1.16 unistd.h > ... > > + ssize_t pwrite(int _fildes, const void *_buf, size_t _nbyte, off_t _offset); > > Well, that off_t is broken on files > 2GiB. Well, that's how it's specified. The way to fix that is to support the Large File Summit, which allows off_t to be 64-bits, when the user defines something before including headers (IIRC _USE_LARGEFILE). Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]