summaryrefslogtreecommitdiff
path: root/user/include/unistd.h
diff options
context:
space:
mode:
authorIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-25 11:51:09 -0400
committerIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-25 11:51:09 -0400
commit25359ed1cb1a6131e9d3d26c8f2c8634670ed864 (patch)
tree559750220ff5084e33a2e1f5bc4f0c90b959a4f8 /user/include/unistd.h
parentfix freeing of virtual memory (diff)
parentpoweroff syscall (diff)
downloadcomus-25359ed1cb1a6131e9d3d26c8f2c8634670ed864.tar.gz
comus-25359ed1cb1a6131e9d3d26c8f2c8634670ed864.tar.bz2
comus-25359ed1cb1a6131e9d3d26c8f2c8634670ed864.zip
resolve format conflict
Diffstat (limited to 'user/include/unistd.h')
-rw-r--r--user/include/unistd.h7
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 */