gcc specsfile: *lib: add -lllibinit -lautoinit
[AROS.git] / workbench / c / Shutdown.c
blobe6b7564223e48b98d8f61b6c74301516e00d42cc
1 #include <exec/tasks.h>
2 #include <proto/dos.h>
3 #include <proto/exec.h>
5 /**************************************************************************
7 NAME
8 Shutdown
10 SYNOPSIS
11 (N/A)
13 LOCATION
16 FUNCTION
17 Shut down AROS and power off the machine.
19 **************************************************************************/
22 int main(void)
24 ShutdownA(SD_ACTION_POWEROFF);
25 PutStr("Software power off is not supported\n");
26 return 20;