1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * symlink_wrapper.c — Wrapper for symlink() to avoid const char* FFI conflict * * Reef generates char* for string parameters, but POSIX symlink() expects * const char*. This thin wrapper bridges the two declarations. */ #include <unistd.h> int zyginit_symlink(char *target, char *linkpath) { return symlink(target, linkpath); } int zyginit_isatty(int fd) { return isatty(fd) ? 1 : 0; }