[cs631apue] Marlon-Environment Variables

Jason Ajmo jajmo at stevens.edu
Wed Sep 27 12:17:57 EDT 2017


Sounds like a calculation error. Make sure you're using the st_blocks
element of the stat struct, and not the raw filesize.

On Wed, Sep 27, 2017 at 3:43 AM mseaton <mseaton at stevens.edu> wrote:

> Hello,
> I have a question regarding setting environment variables. I am working
> of the ls -s option and the blocksize I am getting for each file and
> also the total blocksize differs from what the system ls -s is giving.
> Why is that?
>
> Marlon
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-- 
Jason Ajmo
Stevens Institute of Technology
B.S. Cybersecurity '17
M.S. Computer Science '18
0x56FA3123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20170927/01b6acb8/attachment.html>


More information about the cs631apue mailing list