summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-28 18:55:32 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-28 18:55:32 +0100
commit964365ebdeb18e8c2de2abab9bf1dd59ed2b664b (patch)
treeca8e3f1fd4b7a5025bf16ffcb68ccb88429addcc /src/include
parenteddf1b211be54925dedf22ee748b019fa471c96b (diff)
downloadmerchant-964365ebdeb18e8c2de2abab9bf1dd59ed2b664b.tar.gz
merchant-964365ebdeb18e8c2de2abab9bf1dd59ed2b664b.tar.bz2
merchant-964365ebdeb18e8c2de2abab9bf1dd59ed2b664b.zip
work on #8030 for merchant
Diffstat (limited to 'src/include')
-rw-r--r--src/include/platform.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 61d3e402..6adeaf58 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -277,22 +277,42 @@ atoll (const char *nptr);
/* LSB-style exit status codes */
#ifndef EXIT_INVALIDARGUMENT
+/**
+ * Command-line arguments are invalid.
+ * Restarting useless.
+ */
#define EXIT_INVALIDARGUMENT 2
#endif
#ifndef EXIT_NOTIMPLEMENTED
+/**
+ * The requested operation is not implemented.
+ * Restarting useless.
+ */
#define EXIT_NOTIMPLEMENTED 3
#endif
#ifndef EXIT_NOPERMISSION
+/**
+ * Permissions needed to run are not available.
+ * Restarting useless.
+ */
#define EXIT_NOPERMISSION 4
#endif
#ifndef EXIT_NOTINSTALLED
+/**
+ * Key resources are not installed.
+ * Restarting useless.
+ */
#define EXIT_NOTINSTALLED 5
#endif
#ifndef EXIT_NOTCONFIGURED
+/**
+ * Key configuration settings are missing or invalid.
+ * Restarting useless.
+ */
#define EXIT_NOTCONFIGURED 6
#endif
@@ -300,6 +320,14 @@ atoll (const char *nptr);
#define EXIT_NOTRUNNING 7
#endif
+#ifndef EXIT_NO_RESTART
+/**
+ * Exit code from 'main' if we do not want to be restarted,
+ * except by manual intervention (hard failure).
+ */
+#define EXIT_NO_RESTART 9
+#endif
+
#endif /* PLATFORM_H_ */