`ls -l` shows size of file other than of the folder?



The following creates a file with a size of 1024000002 (a gig)
fseek(stdout, 1000000*1024, SEEK_END);

Nope :) What you have there is not actually called (anything).

A proper gibibyte = GiB = 2^30 = 1024^3 = 1073741824
for data storage, ram (binary bit handling)
A proper gigabyte = GB = 1E9 = 1000^3 = 1000000000
for data transmission (packet counting, rocketships)

There be current standards, please use them.

https://en.wikipedia.org/wiki/Binary_prefix
https://en.wikipedia.org/wiki/ISO/IEC_80000
http://www.swedeteam.com/kibi/
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"