Sponsored Content
Full Discussion: How do it...?
Top Forums Programming How do it...? Post 46259 by mbabeli on Monday 12th of January 2004 09:25:10 AM
Old 01-12-2004
i hope that i got your question right, but is it's what i think then you need to define that number

#define EXIT_AFTER_FAILURE -6
.
.
.
.
.
int main(int argc, char *argv[]){
some functions();
..
..
..
if (some test condition){
return(-6);
}
}

Last edited by mbabeli; 01-12-2004 at 10:59 AM..
 
APM(1)                                                                                                                                      APM(1)

NAME
apm - interface with the APM subsystem SYNOPSIS
apm [ -VvmMsSdin ] DESCRIPTION
This command requires the Advanced Power Management subsystem. If run without arguments it reads /proc/apm and presents the output in a human-readable format. Given a -S or -s option it requests that the machine be put into the APM standby or the APM suspend state, respectively. For a brief description of these states, see apmd(8). OPTIONS
-V, --version Print the version of the program and exit. -v, --verbose Also print version information for the APM subsystem. The APM subsystem consists of power-management hardware, firmware usually referred to as the APM BIOS and a driver in the operating system kernel. -m, --minutes Print the time remaining as a number of minutes. The default is to print the time remaining in "hours:minutes" format. -M, --monitor Continuously monitor and update the status information. Assumes that the standard output is a terminal. -S, --standby Request that the machine be put into the APM standby state. -s, --suspend Request that the machine be put into the APM suspend state. -d, --debug Print APM status information in a format more useful for debugging. Implies -v. FILES
/proc/apm AUTHOR
This program was written by Rik Faith (faith@cs.unc.edu) and may be freely distributed under the terms of the GNU General Public License. There is ABSOLUTELY NO WARRANTY for this program. The current maintainer is Avery Pennarun (apenwarr@worldvisions.ca). SEE ALSO
xapm(1), apmd(8). January 2004 APM(1)
All times are GMT -4. The time now is 11:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy