summaryrefslogtreecommitdiff
path: root/comm/error.cc
diff options
context:
space:
mode:
authorchatty1993-11-29 12:28:06 +0000
committerchatty1993-11-29 12:28:06 +0000
commit0ff51678a4fd5c7fb6a6f793e9fa01a4de76a473 (patch)
tree18016a00a6514b0b62c996295ad60f2e3bf97d1f /comm/error.cc
parente5f0d6b7be619c88fe22b6a8e4f306cea6381f01 (diff)
downloadivy-league-0ff51678a4fd5c7fb6a6f793e9fa01a4de76a473.zip
ivy-league-0ff51678a4fd5c7fb6a6f793e9fa01a4de76a473.tar.gz
ivy-league-0ff51678a4fd5c7fb6a6f793e9fa01a4de76a473.tar.bz2
ivy-league-0ff51678a4fd5c7fb6a6f793e9fa01a4de76a473.tar.xz
Fixed documentation
Added include files
Diffstat (limited to 'comm/error.cc')
-rw-r--r--comm/error.cc6
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)