Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.internals Subject: Re: holes in files Message-ID: <18789@rpp386.cactus.org> Date: 7 Dec 90 14:34:29 GMT References: <6193:Dec618:43:4390@kramden.acf.nyu.edu> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 21 X-Clever-Slogan: Recycle or Die. In article <6193:Dec618:43:4390@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >#include >#include > >main() >{ > struct stat st; > > fstat(0,&st); > printf("size on disk (not including holes) %ld\n",st.st_blocks); >} % grep st_blocks /usr/include/sys/stat.h % hmmm. BSD feature? how about "no PORTABLE way" to determine the size of a file on disk? -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org