aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi/conf.c')
-rw-r--r--src/uapi/conf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uapi/conf.c b/src/uapi/conf.c
index 497aef0..7925616 100644
--- a/src/uapi/conf.c
+++ b/src/uapi/conf.c
@@ -114,6 +114,13 @@ SYSCALL_DEFINE1(poweroff)(struct tcb *t, sys_arg_t type)
return_args1(t, ERR_INVAL);
}
+/**
+ * Sleep syscall handler.
+ *
+ * @param t Current tcb.
+ * @return Shouldn't, but \ref ERR_PERM if insufficient permissions,
+ * otherwise whatever \ref sleep() returns.
+ */
SYSCALL_DEFINE0(sleep)(struct tcb *t)
{
if (!(has_cap(t->caps, CAP_POWER)))