mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Norbert van Bolhuis <norbert.vanbolhuis@evbox.com>
To: musl@lists.openwall.com
Subject: [musl] no 32bit timestamp compatible stat/lstat/fstat?
Date: Mon, 29 Nov 2021 14:11:47 +0100	[thread overview]
Message-ID: <d40685f0-cc75-f6e1-154a-536c5c53e915@ev-box.com> (raw)

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)

             reply	other threads:[~2021-11-29 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29 13:11 Norbert van Bolhuis [this message]
2021-11-29 17:35 ` Rich Felker
2021-11-29 23:15   ` Norbert van Bolhuis
2021-11-30  0:48     ` Rich Felker

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=d40685f0-cc75-f6e1-154a-536c5c53e915@ev-box.com \
    --to=norbert.vanbolhuis@evbox.com \
    --cc=musl@lists.openwall.com \
    /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.
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).