From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 02:33:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0DF9106564A for ; Thu, 14 Jun 2012 02:33:55 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 57B4B8FC16 for ; Thu, 14 Jun 2012 02:33:55 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so1255582wgb.31 for ; Wed, 13 Jun 2012 19:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=fy9Sa6SO66lYn8dGWcAKUzMGiKug2OIM+BVaFC85ydE=; b=Rz7aw7QNXhbjSLPVWEY6G7Ryz5TYiHwyaWzxjyF8aCWMqTubw0Rc0ipFMvu2KMNnXz jY7JYXwIiEyeGWnRYybEEUbTo0/tQWGJH/dYKgR8vo3WUm5GSXJubxgN40vj87VWlsIz +bTIfy9ipekRpgFBmYGUBntZwncmpmDyScbgwTsCKfRO3Ua11mvDvM1yI2b0jBcuydRu ObdNvrsNU1hrkGTBUikvEwbPn1I6jWdGxAAUPLYX7oswd+oeGQt8Cq7unbDNp3AKB9q8 aJ2UcGvkNtMdyaa7XL1WdpyXVTi4msJ4uuebLiU7CzRO3dNG5pQkpBnEch8wPGp5H5Sk RJIQ== MIME-Version: 1.0 Received: by 10.180.20.137 with SMTP id n9mr178409wie.3.1339641230036; Wed, 13 Jun 2012 19:33:50 -0700 (PDT) Received: by 10.180.7.105 with HTTP; Wed, 13 Jun 2012 19:33:50 -0700 (PDT) Date: Wed, 13 Jun 2012 22:33:50 -0400 Message-ID: From: grarpamp To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: `ls -l` shows size of file other than of the folder? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 02:33:55 -0000 > 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/