mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] no 32bit timestamp compatible stat/lstat/fstat?
@ 2021-11-29 13:11 Norbert van Bolhuis
  2021-11-29 17:35 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Norbert van Bolhuis @ 2021-11-29 13:11 UTC (permalink / raw)
  To: musl

Hi All,

Why does musl-1.2.x not offer the 32bit timestamp compatible stat/lstat/fstat?

We're using a 3rd-party binary (compiled against glibc) on an arm32v7 platform
which fails to execute ever since we jumped from musl v1.1.x to 1.2.x, see:

/ # wl
Error relocating /usr/sbin/wl: __fxstat: symbol not found

The arm32v7 glibc-2.3x (working with 64bit timestamps) does provide them.

Looking at: https://www.openwall.com/lists/musl/2019/08/01/1
it seems this is a known limitation.

Any plans on fixing this?

I solved my case by preloading a shared library for which the source is:


#include <sys/stat.h>

extern int __fxstat64(int ver, int fd, struct stat32 *buf);

int __fxstat(int ver, int fd, struct stat32 *buf)
{
         return __fxstat64(ver, fd, buf);
}


Regards,
Norbert van Bolhuis


Btw. please CC me on replies (as I'm not subscribed to musl@lists.openwall.com)

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

end of thread, other threads:[~2021-11-30  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 13:11 [musl] no 32bit timestamp compatible stat/lstat/fstat? Norbert van Bolhuis
2021-11-29 17:35 ` Rich Felker
2021-11-29 23:15   ` Norbert van Bolhuis
2021-11-30  0:48     ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).