X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/088aac85971f3f1571c7f90569c95d5025b1fd82..da9f59264f3487b9c79b1ad2c95e8fd8625c1619:/errcode.h diff --git a/errcode.h b/errcode.h index 18d04143..a9599466 100644 --- a/errcode.h +++ b/errcode.h @@ -19,14 +19,16 @@ /* * error codes returned by rsync. If you change these, please also update the - * string mappings in log.c + * string mappings in log.c and the EXIT VALUES in rsync.yo */ +#define RERR_OK 0 #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_UNSUPPORTED 4 /* requested action not supported */ +#define RERR_UNSUPPORTED 4 /* requested action not supported */ #define RERR_STARTCLIENT 5 /* error starting client-server protocol */ +#define RERR_LOG_FAILURE 6 /* daemon unable to append to log-file */ #define RERR_SOCKETIO 10 /* error in socket IO */ #define RERR_FILEIO 11 /* error in file IO */ @@ -38,6 +40,8 @@ #define RERR_WAITCHILD 21 /* some error returned by waitpid() */ #define RERR_MALLOC 22 /* error allocating core memory buffers */ #define RERR_PARTIAL 23 /* partial transfer */ +#define RERR_VANISHED 24 /* file(s) vanished on sender side */ +#define RERR_DEL_LIMIT 25 /* skipped some deletes due to --max-delete */ #define RERR_TIMEOUT 30 /* timeout in data send/receive */