Re: [PATCH] Add build time guard to detect off_t mismatch

Richard Weinberger <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
----- Ursprüngliche Mail -----
> Von: "Jan Kiszka" <[email protected]>
>> Ah, sorry for not being clear.
>> Your fix is in next and not part of a release, and the application in
>> question uses Xenomai 3.2.6...
> 
> But 3.2.x is not affected by the mmap off_t issue?! Still confused.

Well, the issue I'm talking about was a build issue.
Xenomai was configured without _FILE_OFFSET_BITS=64, but the application was with.
Not Xenomai's fault, of course.

But when the application started to use mmap() the off_t used in the application
had 8 bytes, but Xenomai expected 4. So, the mmap() offset parameter was wrong.

Thanks,
//richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.