return ret;
}
- #if UK_LIBC_SYSCALL
+ #if UK_LIBC_SYSCALLS
ssize_t write(int fd, const void *buf, size_t count)
{
return (ssize_t) uk_syscall_e_write((long) fd,
(long) buf, (long) count);
}
- #endif /* UK_LIBC_SYSCALL */
+ #endif /* UK_LIBC_SYSCALLS */
Note: Please note that the implementation of custom libc-style wrappers have to
-be guarded with ``#if UK_LIBC_SYSCALL``. This macro is provided by the
+be guarded with ``#if UK_LIBC_SYSCALLS``. This macro is provided by the
``<uk/syscall.h>`` header. Some libC ports (e.g., musl) deactivate this option
whenever their provide own wrapper functions. For such cases, the syscall_shim
library will only provide the ``uk_syscall_e_<syscall_name>`` and