diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-25 11:45:15 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-25 11:45:15 -0400 |
commit | 87e8de4f0050ec154286189783ddbd269fbcc7ee (patch) | |
tree | 70e518a288276ec1d306b153d3006c2a44e27ea2 /user/include | |
parent | load init from ata and run it (diff) | |
download | comus-87e8de4f0050ec154286189783ddbd269fbcc7ee.tar.gz comus-87e8de4f0050ec154286189783ddbd269fbcc7ee.tar.bz2 comus-87e8de4f0050ec154286189783ddbd269fbcc7ee.zip |
poweroff syscall
Diffstat (limited to 'user/include')
-rw-r--r-- | user/include/unistd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/user/include/unistd.h b/user/include/unistd.h index a815914..bbacdbe 100644 --- a/user/include/unistd.h +++ b/user/include/unistd.h @@ -162,4 +162,11 @@ extern void *brk(const void *addr); */ extern void *sbrk(intptr_t increment); +/** + * Poweroff the system. + * + * @return 1 on failure + */ +extern int poweroff(void); + #endif /* unistd.h */ |