mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] 32 or 64 bits file offsets?
@ 2013-12-07 16:47 Felix Mellmann
  2013-12-07 18:40 ` Bernhard Walle
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Mellmann @ 2013-12-07 16:47 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-26 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-07 16:47 [ptxdist] 32 or 64 bits file offsets? Felix Mellmann
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox