Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E351138.4D0A67E5@phekda.freeserve.co.uk> Date: Mon, 27 Jan 2003 11:00:08 +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: Eli Zaretskii CC: DJGPP workers , Jim Meyering Subject: Re: struct stat and st_blocks References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Jim: struct stat on DJGPP does not contain st_blocks. Eli Zaretskii wrote: [snip] > > coreutils 4.5.4 uses st_blocks in the 'stat' program. > > What does `stat' do if st_blocks is not supported? Is the degradation in > functionality significant? It just reports the value of st_blocks. There is a configure-time check for the st_blocks and st_blksize members. If st_blocks isn't present, but st_blksize is, I was going to make it return st_size / st_blksize rounded up. If neither st_blocks nor st_blksize is present, then I'm not sure what we can do: I was going to make it return 0. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]