$treeview $search $mathjax $extrastylesheet
librsync
2.3.0
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- the library for network deltas 00004 * 00005 * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net> 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 /*= 00023 | Welcome to Arco AM/PM Mini-Market. We 00024 | would like to advise our customers 00025 | that any individual who offers to 00026 | pump gas, wash windows or solicit 00027 | products is not employed by or 00028 | associated with this facility. We 00029 | discourage any contact with these 00030 | individuals and ask that you report 00031 | any problems to uniformed personal 00032 | inside. Thankyou for shopping at 00033 | Arco, and have a nice day. 00034 */ 00035 00036 /** \file msg.c 00037 * error messages for re_result values. 00038 * 00039 * \todo (Suggestion by tridge) Add a function which outputs a complete text 00040 * description of a job, including only the fields relevant to the current 00041 * encoding function. */ 00042 00043 #include "config.h" 00044 #include "librsync.h" 00045 00046 char const *rs_strerror(rs_result r) 00047 { 00048 switch (r) { 00049 case RS_DONE: 00050 return "OK"; 00051 case RS_RUNNING: 00052 return "still running"; 00053 case RS_BLOCKED: 00054 return "blocked waiting for input or output buffers"; 00055 case RS_BAD_MAGIC: 00056 return "bad magic number at start of stream"; 00057 case RS_INPUT_ENDED: 00058 return "unexpected end of input"; 00059 case RS_CORRUPT: 00060 return "stream corrupt"; 00061 case RS_UNIMPLEMENTED: 00062 return "unimplemented case"; 00063 case RS_MEM_ERROR: 00064 return "out of memory"; 00065 case RS_IO_ERROR: 00066 return "IO error"; 00067 case RS_SYNTAX_ERROR: 00068 return "bad command line syntax"; 00069 case RS_INTERNAL_ERROR: 00070 return "library internal error"; 00071 00072 default: 00073 return "unexplained problem"; 00074 } 00075 }