X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=9d1f7bb08c8f8f9815ae7744a65c2db89853e9ce;hp=a3f80bb9674f470daef6ef6f3b49dc318984d79c;hb=28afc7781a88734d8954cab3665eb3eacd11c284;hpb=c2ac39f76d245816a919d94790672fb66e9a7253 diff --git a/error.h b/error.h index a3f80bb9..9d1f7bb0 100644 --- a/error.h +++ b/error.h @@ -25,6 +25,7 @@ DEFINE_ERRLIST_OBJECT_ENUM; #define SCORE_ERRORS #define SHA1_ERRORS #define RECV_ERRORS +#define AFH_COMMON_ERRORS extern const char **para_errlist[]; @@ -64,9 +65,6 @@ extern const char **para_errlist[]; PARA_ERROR(STAT, "can not stat file"), \ PARA_ERROR(FSTAT, "fstat error"), \ PARA_ERROR(RENAME, "rename failed"), \ - PARA_ERROR(EMPTY, "file empty"), \ - PARA_ERROR(MMAP, "mmap error"), \ - PARA_ERROR(MUNMAP, "munmap failed"), \ PARA_ERROR(WRITE, "write error"), \ PARA_ERROR(LSEEK, "lseek error"), \ PARA_ERROR(BUSY, "table is busy"), \ @@ -314,6 +312,8 @@ extern const char **para_errlist[]; PARA_ERROR(BAD_AUDIO_FILE_SUFFIX, "unknown suffix"), \ PARA_ERROR(AUDIO_FORMAT, "audio format not recognized"), \ PARA_ERROR(CHUNK, "unable to get chunk"), \ + PARA_ERROR(SHORT_AFS_READ, "short read from afs socket"), \ + PARA_ERROR(BAD_AFS_CODE, "received junk from afs"), \ #define AFS_COMMON_ERRORS \ @@ -409,6 +409,9 @@ extern const char **para_errlist[]; PARA_ERROR(CHDIR, "failed to change directory"), \ PARA_ERROR(OPEN, "failed to open file"), \ PARA_ERROR(CHDIR_PERM, "insufficient permissions to chdir"), \ + PARA_ERROR(EMPTY, "file empty"), \ + PARA_ERROR(MMAP, "mmap error"), \ + PARA_ERROR(MUNMAP, "munmap failed"), \ #define WRITE_ERRORS \