This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]