I'm writing a program in C with a mind on cross-compatibility, but I don't think I'm going to be able to get away without at least some platform specific #ifdefs.
One of the required features is to be able to put the system into Suspend power mode. On Windows, with the appropriate OS config, this is accomplished by using the SetSystemPowerState() function (after an appropriate security dance prior to the call).
Is there a Linux function that will do the same thing? I suspect it's there but so far my searching is only picking up command line programs and not any headers or function signatures.