#if 1 /* LERMEN TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST */
#include <stdarg.h>
#include <syslog.h>
void test_printf(int tosyslog, const char *fmt, ...)
{
    va_list args;
    char buf[1024];

    va_start(args, fmt);
    vsprintf(buf, fmt, args);
    va_end(args);

    if (tosyslog==1) {
	openlog("cvs", LOG_PID, LOG_NOTICE);
	syslog(LOG_PID | LOG_NOTICE, buf);
	closelog();
    }
    else if (!tosyslog) cvs_output(buf,0);
    else cvs_outerr(buf,0);
}
#endif

#if 0
static struct passwd *our_getpwnam(char *pwfile, char *name)
{
    FILE *f;
    struct passwd *pw;
    
    f = fopen(pwfile, "r");
    if (!f) return 0;
    while ((pw = fgetpwent(f)) != 0) {
	if (!strcmp(pw->pw_name, name))
	    break;
    }
    fclose(f);
    return pw;
}
#endif

