From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VpL2X-00028O-OP for ptxdist@pengutronix.de; Sat, 07 Dec 2013 17:47:38 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VpL2W-0006LZ-RF for ptxdist@pengutronix.de; Sat, 07 Dec 2013 17:47:36 +0100 Received: from ppp-46-244-217-136.dynamic.mnet-online.de ([46.244.217.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Dec 2013 17:47:36 +0100 Received: from felix.mellmann by ppp-46-244-217-136.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Dec 2013 17:47:36 +0100 From: Felix Mellmann Date: Sat, 7 Dec 2013 16:47:15 +0000 (UTC) Message-ID: Mime-Version: 1.0 Subject: [ptxdist] 32 or 64 bits file offsets? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hello, I'm currently investigating, why SVN (subversion) does not work properly when built for ptxdist. (At first curious segfault, now corrupt data) I came to this thread: https://groups.google.com/forum/#!topic/subversion_users/QX91S90YvWk which is quite the same, that happens to me. If I'm looking into ptxconfig I find PTXCONF_GLOBAL_LARGE_FILE=y In my opinion, this means, that 64 bit file offsets are used. Now, if I run a program which checks the sizes of the types off_t, size_t and ssize_t: #include #include #include int main(void) { off_t off; size_t size; ssize_t ssize; struct iovec io_vec; printf("sizeof(off_t)=%ld\n", sizeof(off)); printf("sizeof(size_t)=%ld\n", sizeof(size_t)); printf("sizeof(ssize_t)=%ld\n", sizeof(ssize_t)); printf("sizeof(struct iovec)=%ld\n", sizeof(struct iovec)); return 0; } the program returns 4 for off_t, size_t and ssize_t and 8 for struct iovec. But 4 bytes * 8 bit/byte gives 32 bit. Could someone please explain me, where I am wrong? I already tried to recompile my project with GLOBAL_LARGE_FILE disabled, but without any success for subversion. Thank you a lot, Felix -- ptxdist mailing list ptxdist@pengutronix.de