From: Sergiu Moga Date: Thu, 13 May 2021 08:42:21 +0000 (+0300) Subject: doc/developers: Change `UK_LIBC_SYSCALL` to `UK_LIBC_SYSCALLS` X-Git-Tag: RELEASE-0.6~220 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8444fc5d7575324aaa0052365026dad1353f6f31;p=unikraft%2Funikraft.git doc/developers: Change `UK_LIBC_SYSCALL` to `UK_LIBC_SYSCALLS` Change the macro definition from `UK_LIBC_SYSCALL` to `UK_LIBC_SYSCALLS`. Reported-by: Alexander Jung Signed-off-by: Sergiu Moga Reviewed-by: Alexander Jung Tested-by: Unikraft CI GitHub-Pull-Request: #204 --- diff --git a/doc/guides/developers-app.rst b/doc/guides/developers-app.rst index d413aacea..fea5ecb8d 100644 --- a/doc/guides/developers-app.rst +++ b/doc/guides/developers-app.rst @@ -449,16 +449,16 @@ libc-style wrapper on top: 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 ```` 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_`` and