/*
 * 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;
}
