2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 2000-2002
5
* Sleepycat Software. All rights reserved.
11
static const char revid[] = "$Id$";
14
#ifndef NO_SYSTEM_INCLUDES
15
#include <sys/types.h>
18
#if TIME_WITH_SYS_TIME
37
* Log that we're running.
39
* PUBLIC: int __db_util_logset __P((const char *, char *));
42
__db_util_logset(progname, fname)
50
if ((fp = fopen(fname, "w")) == NULL)
55
fprintf(fp, "%s: %lu %s", progname, (u_long)id, ctime(&now));
57
if (fclose(fp) == EOF)
62
err: fprintf(stderr, "%s: %s: %s\n", progname, fname, strerror(errno));