Re: [PATCH 3/3] tools/nolibc: add testcases for vfprintf
From: Thomas Weißschuh
Date: Sun Apr 02 2023 - 08:18:58 EST
On 2023-04-02 10:00:05+0200, Willy Tarreau wrote:
> On Tue, Mar 28, 2023 at 09:01:31PM +0000, Thomas Weißschuh wrote:
> > + fd = memfd_create("vfprintf", 0);
> > + if (fd == -1) {
> > + pad_spc(llen, 64, "[FAIL]\n");
> > + return 1;
> > + }
>
> Also for this you'll need to include <sys/mman.h> in the part where nolibc
> is not detected so that it continues to work with regular libcs (at least
> glibc so that we have one reference to compare against).
Ack.