summaryrefslogtreecommitdiffstats
path: root/perl-install/share/Makefile
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2001-11-14 07:45:17 +0000
committerPablo Saratxaga <pablo@mandriva.com>2001-11-14 07:45:17 +0000
commit1216468441a344c005290f121087a1c312f500cb (patch)
tree99b2942d75dfdf5db0c91a35b7a36a47f20ff36e /perl-install/share/Makefile
parent36bad69920b0b406f78925add787c28188c9bba9 (diff)
downloaddrakx-backup-do-not-use-1216468441a344c005290f121087a1c312f500cb.tar
drakx-backup-do-not-use-1216468441a344c005290f121087a1c312f500cb.tar.gz
drakx-backup-do-not-use-1216468441a344c005290f121087a1c312f500cb.tar.bz2
drakx-backup-do-not-use-1216468441a344c005290f121087a1c312f500cb.tar.xz
drakx-backup-do-not-use-1216468441a344c005290f121087a1c312f500cb.zip
updated pot file
Diffstat (limited to 'perl-install/share/Makefile')
0 files changed, 0 insertions, 0 deletions
>"log.h" static FILE * logtty = NULL; static FILE * logfile = NULL; void vlog_message(const char * s, va_list args) { va_list args_copy; va_copy(args_copy, args); if (logfile) { fprintf(logfile, "* "); vfprintf(logfile, s, args); fprintf(logfile, "\n"); fflush(logfile); } if (logtty) { fprintf(logtty, "* "); vfprintf(logtty, s, args_copy); fprintf(logtty, "\n"); fflush(logtty); } va_end(args_copy); } void log_message(const char * s, ...) { va_list args; va_start(args, s); vlog_message(s, args); va_end(args); return; } void log_perror(const char *msg) { log_message("%s: %s", msg, strerror(errno)); } void open_log(void) { if (!IS_TESTING) { logtty = fopen("/dev/tty3", "w"); logfile = fopen("/tmp/stage1.log", "w"); } else logfile = fopen("debug.log", "w"); } void close_log(void) { if (logfile) { log_message("stage1: disconnecting life support systems"); fclose(logfile); if (logtty) fclose(logtty); } }