mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Felix Mellmann <felix.mellmann@googlemail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] 32 or 64 bits file offsets?
Date: Sat, 7 Dec 2013 16:47:15 +0000 (UTC)	[thread overview]
Message-ID: <loom.20131207T173620-966@post.gmane.org> (raw)

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 <stdio.h>
#include <sys/types.h>
#include <sys/uio.h>

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

             reply	other threads:[~2013-12-07 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-07 16:47 Felix Mellmann [this message]
2013-12-07 18:40 ` Bernhard Walle
2013-12-08  8:14   ` Felix Mellmann
2013-12-09 14:13     ` Michael Olbrich
2013-12-26 19:19       ` Felix Mellmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20131207T173620-966@post.gmane.org \
    --to=felix.mellmann@googlemail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox