Re: [PATCH 3/3] tools/nolibc: add testcases for vfprintf
From: Willy Tarreau
Date: Sun Apr 02 2023 - 04:01:23 EST
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).
Thanks,
Willy