[cs631apue] Midterm Question

Jan Schaumann jschauma at stevens.edu
Tue Sep 25 10:33:15 EDT 2012


tparisi <tparisi at stevens.edu> wrote:
> Yes, it does help.  Let me just make sure that my understanding is
> correct.  If I were to set the BLOCKSIZE variable within my program,
> the st_blocks part of the stat structure will reflect this change
> right?

No, the number you get back in your struct stat remains the same
regardless of the environment.  Your program would have to perform the
logic to turn that into BLOCKSIZE units.

-Jan


More information about the cs631apue mailing list