X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/821ff7f49a64909a113231fa2bca91f29b7be7ee..d2f6e192623989eac4015582e1e20f61499cc782:/errcode.h diff --git a/errcode.h b/errcode.h index eec64a27..41c55432 100644 --- a/errcode.h +++ b/errcode.h @@ -1,27 +1,26 @@ -/* -*- c-file-style: "linux"; -*- - - Copyright (C) 1998-2000 by Andrew Tridgell - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - /* - * error codes returned by rsync. If you change these, please also update the - * string mappings in log.c and the EXIT VALUES in rsync.yo + * Error codes returned by rsync. + * + * Copyright (C) 1998-2000 Andrew Tridgell + * Copyright (C) 2003-2008 Wayne Davison + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, visit the http://fsf.org website. */ +/* If you change these, please also update the 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 */ @@ -34,8 +33,11 @@ #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_CRASHED 15 /* sibling crashed */ +#define RERR_TERMINATED 16 /* sibling terminated abnormally */ -#define RERR_SIGNAL 20 /* status returned when sent SIGUSR1, SIGINT */ +#define RERR_SIGNAL1 19 /* status returned when sent SIGUSR1 */ +#define RERR_SIGNAL 20 /* status returned when sent SIGINT, SIGTERM, SIGHUP */ #define RERR_WAITCHILD 21 /* some error returned by waitpid() */ #define RERR_MALLOC 22 /* error allocating core memory buffers */ #define RERR_PARTIAL 23 /* partial transfer */ @@ -43,6 +45,7 @@ #define RERR_DEL_LIMIT 25 /* skipped some deletes due to --max-delete */ #define RERR_TIMEOUT 30 /* timeout in data send/receive */ +#define RERR_CONTIMEOUT 35 /* timeout waiting for daemon connection */ /* Although it doesn't seem to be specified anywhere, * ssh and the shell seem to return these values: