| delorie.com/archives/browse.cgi | search |
| 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 <rich AT phekda DOT freeserve DOT co DOT uk> |
| 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 <eliz AT is DOT elta DOT co DOT il> |
| CC: | DJGPP workers <djgpp-workers AT delorie DOT com>, Jim Meyering <jim AT meyering DOT net> |
| Subject: | Re: struct stat and st_blocks |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1030127075631 DOT 11790A-100000 AT is> |
| 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/ ]
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |