Index: /trunk/psLib/src/sys/psExit.h
===================================================================
--- /trunk/psLib/src/sys/psExit.h	(revision 10977)
+++ /trunk/psLib/src/sys/psExit.h	(revision 10977)
@@ -0,0 +1,16 @@
+#ifndef PS_EXIT_H
+#define PS_EXIT_H
+
+/// Exit status codes
+///
+/// These provide a bit finer granularity compared to success/fail
+typedef enum {
+    PS_EXIT_SUCCESS = 0,                ///< Successful termination
+    PS_EXIT_SYS_ERROR,                  ///< Error with a system call
+    PS_EXIT_CONFIG_ERROR,               ///< Error with configuration
+    PS_EXIT_PROG_ERROR,                 ///< Error in programming (look also for aborts)
+    PS_EXIT_DATA_ERROR,                 ///< Error with data
+    PS_EXIT_TIMEOUT_ERROR,              ///< Error due to timeout
+} psExit;
+
+#endif
