This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: shut down and power off
- From: Der Herr Hofrat <der dot herr at hofr dot at>
- To: Jaubing Lin <linjaubing at mail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 27 Apr 2002 13:46:51 +0200 (CEST)
- Subject: Re: shut down and power off
> Hi!
>
> Does anyone know where to find the information or how
> to write some C/C++ code to "shut down" then turn the
> PC's power off?
>
this realy is not GCC related at all - and this task would
also be quite OS dependant (assuming you want to
use the OS interface) - if you want low level code
to do this then give the APM implementation in the
Linux kernel a look aswell as the apmd (grab it off
the next RH or SuSE mirro in the source directory -
for SuSE apmd.spm) .
hofrat