"Fossies" - the Fresh Open Source Software Archive

Member "tofrodos/src/emsg.h" (27 Oct 2013, 1993 Bytes) of archive /linux/misc/tofrodos-1.7.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "emsg.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2     emsg.h      Error messages.
    3     Copyright 1996-2013 by Christopher Heng. All rights reserved.
    4 */
    5 
    6 #if !defined(EMSG_H_INCLUDED)
    7 #define EMSG_H_INCLUDED
    8 
    9 #if defined(__cplusplus)
   10 extern "C" {
   11 #endif
   12 
   13 /* macros */
   14 #define EMSG_BAKFILENAME    "File cannot have a .bak extension "\
   15                             "when used with -b flag.\n"
   16 #define EMSG_CONVERT        "File read/write error while "\
   17                             "converting \"%s\".\n"
   18 #define EMSG_INTERNAL       "Internal error: %s.\n"
   19 #define EMSG_NOFILENAME     "Need to specify filename or redirect "\
   20                             "stdin.\n"
   21 #define EMSG_NOMEM          "Insufficient memory to run program.\n"
   22 #define EMSG_NOTEMPNAME     "Unable to generate temporary filename for converting \"%s\".\n"
   23 #define EMSG_OPENFILE       "Unable to open file \"%s\".\n"
   24 #define EMSG_SIGNAL         "Terminated by user.\n"
   25 #define EMSG_WRONGDOSVER    "Requires DOS 3.1 and above.\n"
   26 #define EMSG_ACCESSFILE     "Unable to access file \"%s\".\n"
   27 #define EMSG_NOTREADABLE    "No read permission for \"%s\".\n"
   28 #define EMSG_NOTWRITEABLE   "No write permission for \"%s\". Use -f to force conversion.\n"
   29 #define EMSG_CHOWN          "Unable to change ownership of \"%s\".\n"
   30 #define EMSG_SYMLINK        "Unable to dereference symbolic link \"%s\".\n"
   31 #define EMSG_CREATETEMP     "Unable to create temporary file \"%s\" for converting \"%s\".\n"
   32 #define EMSG_ERRORLOG       "%s: Unable to create error log file \"%s\". Defaulting to stderr.\n" /* special case with progname */
   33 #define EMSG_RENAMEBAK      "Unable to save original file %s as %s.\n"\
   34                             "Reason: %s\n"
   35 #define EMSG_RENAMETMP      "Unable to rename temporary file %s back to %s after converting it.\n"\
   36                             "Reason: %s\n"\
   37                             "Please recover your converted file by manually renaming it back.\n"
   38 
   39 /* internal error macros */
   40 #define EINTNL_DIRECTION    "unknown direction"
   41 
   42 /* verbose messages */
   43 #define VERBOSE_CONVERTING  "Converting \"%s\"\n"
   44 #define VERBOSE_SYMLINKSRC  "\"%s\" resolves to \"%s\"\n"
   45 
   46 /* function declarations */
   47 extern void emsg ( char * message, ... );
   48 
   49 #if defined(__cplusplus)
   50 }
   51 #endif
   52 
   53 #endif