The Pedigree Project
0.1
src
user
hosted-smoke
user/hosted-smoke/init.c
1
/*
2
* Copyright (c) 2026, Pedigree Developers
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted.
6
*/
7
8
#include <errno.h>
9
10
#include <pedigree/log.h>
11
#include <sys/reboot.h>
12
13
int
main(
void
) {
14
pedigree_log(LOG_INFO,
"HOSTED-SMOKE: init launched"
);
15
16
if
(reboot(0) != 0) {
17
pedigree_log(LOG_ERR,
"HOSTED-SMOKE: shutdown request failed: %d"
, errno);
18
return
1;
19
}
20
21
return
0;
22
}
Generated on Tue Sep 29 2026 04:30:10 for The Pedigree Project by
1.9.8