]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
doc/developers: Change `UK_LIBC_SYSCALL` to `UK_LIBC_SYSCALLS`
authorSergiu Moga <sergiu.moga@protonmail.com>
Thu, 13 May 2021 08:42:21 +0000 (11:42 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 13 May 2021 14:38:57 +0000 (14:38 +0000)
Change the macro definition from `UK_LIBC_SYSCALL` to `UK_LIBC_SYSCALLS`.

Reported-by: Alexander Jung <a.jung@lancs.ac.uk>
Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Alexander Jung <a.jung@lancs.ac.uk>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #204

doc/guides/developers-app.rst

index d413aacead9d04b759bb4c145c3362d84ef4d9f9..fea5ecb8ddce8088974285ed22475056a50628a3 100644 (file)
@@ -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
 ``<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