FreeBSD 15 removed the never-implemented sbrk syscall.
Arm64 also has a few missing syscalls (backward compat ones
that predate the arm64 port). Rather than having an ever
increasing number of expecteds the aim is to use these
FAKE macros. It's a bit fiddly to get the matching text.
/* obsol vwrite 68 */
-#if defined(SYS_sbrk)
/* SYS_sbrk 69 */
+#if defined(SYS_sbrk)
GO(SYS_sbrk, "1s 1m");
SY(SYS_sbrk, x0); FAIL;
+#else
+ FAKE_GO("69: SYS_sbrk 1s 1m");
+ FAKE_SY("Syscall param sbrk(incr) contains uninitialised byte(s)\n")
+ FAKE_SY(" ...\n");
+ FAKE_SY("\n");
#endif
/* not implemented on OS SYS_sstk 70 */
} \
} while (0);
+#define FAKE_GO(str) \
+ fprintf(stderr, "---------------------------------------------------------\n" \
+ " %s\n" \
+ "---------------------------------------------------------\n", \
+ str);
+
+#define FAKE_SY(msg) \
+ fprintf(stderr, "%s", (msg));
+
/* Module variables. */
static long x0;
static long res;