From 2daea019d2869a1a65829a9883701f8e8453e2fe Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 1 Jun 2024 16:47:14 +0300 Subject: document sleep --- src/uapi/conf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/uapi') 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))) -- cgit v1.3