save failed integration state
This commit is contained in:
gomspace
gomspace.mk
libp60_client
libparam_client
libutil
include
conf_util.h
deprecated
gs
uthash
util
base16.hbytebuffer.hbyteorder.hcheck.hclock.hcrc32.hcrc8.hdelay.h
drivers
endian.herror.hfletcher.hfunction_scheduler.hgosh
hexdump.hlinux
log.hlog
minmax.hmutex.hpgm.hqueue.hrtc.hsem.hstdio.hstring.htest
thread.htime.htimestamp.htypes.hunistd.hvmem.hwatchdog
zip
src
base16.cbytebuffer.cbyteorder.cclock.ccrc32.ccrc8.c
wscriptbindings
python
drivers
error.cfletcher.cfunction_scheduler.cgosh
hexdump.clinux
argp.cclock.ccommand_line.ccwd.cdelay.c
lock.clock.hdrivers
function.cmutex.cqueue.crtc.csem.csignal.cstdio.csysfs_helper.cthread.ctime.clog
rtc.cstdio.cstring.cstrtoint.ctest
time.ctimestamp.cvmem
watchdog
zip
p60-dock_client
test/testtasks
40
gomspace/libutil/include/gs/util/linux/exitcode.h
Normal file
40
gomspace/libutil/include/gs/util/linux/exitcode.h
Normal file
@ -0,0 +1,40 @@
|
||||
#ifndef GS_UTIL_LINUX_EXITCODE_H
|
||||
#define GS_UTIL_LINUX_EXITCODE_H
|
||||
/* Copyright (c) 2013-2018 GomSpace A/S. All rights reserved. */
|
||||
/**
|
||||
@file
|
||||
|
||||
"standard" Linux exit codes.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sysexits.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
Program completed ok (from stdlib.h)
|
||||
*/
|
||||
#define GS_EXITCODE_OK EXIT_SUCCESS
|
||||
|
||||
/**
|
||||
Program terminated due to an error (from stdlib.h).
|
||||
*/
|
||||
#define GS_EXITCODE_ERROR EXIT_FAILURE
|
||||
|
||||
/**
|
||||
Program terminated due to invalid usage, eg argument (from sysexits.h).
|
||||
*/
|
||||
#define GS_EXITCODE_USAGE EX_USAGE
|
||||
|
||||
/**
|
||||
Program terminated due to a signal (from [TLDP](http://www.tldp.org/LDP/abs/html/exitcodes.html)).
|
||||
*/
|
||||
#define GS_EXITCODE_SIGNAL(sig) (128 + sig)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
Reference in New Issue
Block a user