Date: Wed, 13 Jun 2012 22:33:50 -0400 From: grarpamp <grarpamp@gmail.com> To: freebsd-questions@freebsd.org Subject: `ls -l` shows size of file other than of the folder? Message-ID: <CAD2Ti2-%2BD1og9TS8E-vJO2fPg77SRGW%2BXq6bFq0kpOnR=fs0aw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD2Ti2-%2BD1og9TS8E-vJO2fPg77SRGW%2BXq6bFq0kpOnR=fs0aw>