diff options
Diffstat (limited to 'comm')
-rw-r--r-- | comm/error.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/comm/error.cc b/comm/error.cc index aed7c0b..f46ba3d 100644 --- a/comm/error.cc +++ b/comm/error.cc @@ -23,6 +23,8 @@ extern "C" int rename (const char*, const char*); #include <stdio.h> #include <sys/file.h> #include "ccu/Time.h" +#include <sys/types.h> +#include <sys/stat.h> /*?class UchERROR The set of global functions described here are designed to handle errors. @@ -143,12 +145,12 @@ ProgramName (const char* name) /*? Set the log file name. All messages are appended to the logfile. -If \var{reset} is TRUE, the file is renamed to \var{file\~}. +If \var{reset} is TRUE, the file is renamed to \var{file$\sim$}. If this fails, the file is simply cleared. If the \com{LOGDIR} environment variable is defined, and if \var{file} does not start with \com{/} or \com{./}, the value of \com{LOGDIR} is prepended to \var{file}, followed by a slash if necessary. -Otherwise, the directory \com{$HOME/.log} is used. +Otherwise, the directory \com{\$HOME/.log} is used. ?*/ void LogfileName (const char* file, bool reset) |