summaryrefslogtreecommitdiff
path: root/errcode.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-03 07:08:27 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-03 07:08:27 +0000
commit654175798bdbdd6403e10c8fa74e8586b3612ea1 (patch)
tree00bd91cedb70268106d5bbe351c43865c4bc3eb9 /errcode.h
parent3e578a1909bbb29a637291d36017f328e017a3bf (diff)
downloadrsync-654175798bdbdd6403e10c8fa74e8586b3612ea1.tar.gz
rsync-654175798bdbdd6403e10c8fa74e8586b3612ea1.tar.bz2
rsync-654175798bdbdd6403e10c8fa74e8586b3612ea1.zip
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
different exit codes for different conditions.
Diffstat (limited to 'errcode.h')
-rw-r--r--errcode.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/errcode.h b/errcode.h
new file mode 100644
index 00000000..361a3e28
--- /dev/null
+++ b/errcode.h
@@ -0,0 +1,18 @@
+/* error codes returned by rsync */
+
+#define RERR_SYNTAX 1 /* syntax or usage error */
+#define RERR_PROTOCOL 2 /* protocol incompatibility */
+#define RERR_FILESELECT 3 /* errors selecting input/output files, dirs */
+#define RERR_NOSUPPORT 4 /* requested action not supported */
+
+#define RERR_SOCKETIO 10 /* error in socket IO */
+#define RERR_FILEIO 11 /* error in file IO */
+#define RERR_STREAMIO 12 /* error in rsync protocol data stream */
+#define RERR_MESSAGEIO 13 /* errors with program diagnostics */
+#define RERR_IPC 14 /* error in IPC code */
+
+#define RERR_SIGNAL 20 /* status returned when sent SIGUSR1, SIGINT */
+#define RERR_WAITCHILD 21 /* some error returned by waitpid() */
+#define RERR_MALLOC 22 /* error allocating core memory buffers */
+
+#define RERR_TIMEOUT 30 /* timeout in data send/receive */