diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-01 16:47:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-01 16:47:14 +0300 |
| commit | 2daea019d2869a1a65829a9883701f8e8453e2fe (patch) | |
| tree | 5b2f6321b6f21fd0eeed54affe8809a5ba6f31be /src/uapi | |
| parent | 7a1c7ed1b1c30ba4c668194a955fb414e471bade (diff) | |
| download | kmi-2daea019d2869a1a65829a9883701f8e8453e2fe.tar.gz kmi-2daea019d2869a1a65829a9883701f8e8453e2fe.zip | |
document sleep
Diffstat (limited to 'src/uapi')
| -rw-r--r-- | src/uapi/conf.c | 7 |
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))) |
