Doc.
[rsync/rsync.git] / errcode.h
1 /* error codes returned by rsync */
2
3 #define RERR_SYNTAX     1       /* syntax or usage error */
4 #define RERR_PROTOCOL   2       /* protocol incompatibility */
5 #define RERR_FILESELECT 3       /* errors selecting input/output files, dirs */
6 #define RERR_UNSUPPORTED 4       /* requested action not supported */
7
8 #define RERR_SOCKETIO   10      /* error in socket IO */
9 #define RERR_FILEIO     11      /* error in file IO */
10 #define RERR_STREAMIO   12      /* error in rsync protocol data stream */
11 #define RERR_MESSAGEIO  13      /* errors with program diagnostics */
12 #define RERR_IPC        14      /* error in IPC code */
13
14 #define RERR_SIGNAL     20      /* status returned when sent SIGUSR1, SIGINT */
15 #define RERR_WAITCHILD  21      /* some error returned by waitpid() */
16 #define RERR_MALLOC     22      /* error allocating core memory buffers */
17
18 #define RERR_TIMEOUT    30      /* timeout in data send/receive */