X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=err.h;h=2280010a39764156dbb25a13a0653db6f2681a81;hp=14cc032fae65f621ade9c419d682f0252b7ad0ac;hb=324d1364004376fa0b018afcb57cfe14aca7fcdb;hpb=46cbddf465bd66ba1d5c4bcc780ae0d65abd7f73 diff --git a/err.h b/err.h index 14cc032..2280010 100644 --- a/err.h +++ b/err.h @@ -1,12 +1,13 @@ /* - * Copyright (C) 2006-2010 Andre Noll + * Copyright (C) 2006-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ extern char *dss_errlist[]; extern char *dss_error_txt; -__printf_2_3 void dss_log(int ll, const char* fmt,...); +void dss_log_set_params(int ll, const char *file, int line, const char *func); +__printf_1_2 void dss_log(const char* fmt,...); /** * This bit indicates whether a number is considered a system error number @@ -47,14 +48,19 @@ static inline char *dss_strerror(int num) DSS_ERROR(INVALID_NUMBER, "invalid number"), \ DSS_ERROR(STRFTIME, "strftime() failed"), \ DSS_ERROR(LOCALTIME, "localtime() failed"), \ + DSS_ERROR(MOUNTPOINT, "destination directory is no mountpoint"), \ DSS_ERROR(NULL_OPEN, "can not open /dev/null"), \ DSS_ERROR(DUP_PIPE, "exec error: can not create pipe"), \ DSS_ERROR(INVOLUNTARY_EXIT, "unexpected termination cause"), \ DSS_ERROR(BAD_EXIT_CODE, "unexpected exit code"), \ DSS_ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR"), \ DSS_ERROR(SIGNAL, "caught terminating signal"), \ + DSS_ERROR(KILL_TIMEOUT, "signal timeout expired"), \ DSS_ERROR(BUG, "values of beta might cause dom!"), \ - DSS_ERROR(NOT_RUNNING, "dss not running") + DSS_ERROR(NOT_RUNNING, "dss not running"), \ + DSS_ERROR(ALREADY_RUNNING, "dss already running"), \ + DSS_ERROR(TOO_MANY_RSYNC_ERRORS, "too many consecutive rsync errors"), \ + DSS_ERROR(LOPSUB, "lopsub error") /** * This is temporarily defined to expand to its first argument (prefixed by