#endif
/* limits.c */
+#ifndef USE_PAM
extern void setup_limits (const struct passwd *);
+#endif
/* list.c */
extern char **add_list (char **, const char *);
extern struct passwd *get_my_pwent (void);
/* obscure.c */
+#ifndef USE_PAM
extern int obscure (const char *, const char *, const struct passwd *);
+#endif
/* pam_pass.c */
+#ifdef USE_PAM
extern void do_pam_passwd (const char *user, bool silent, bool change_expired);
+#endif
/* port.c */
extern bool isttytime (const char *, const char *, time_t);
extern struct spwd *pwd_to_spwd (const struct passwd *);
/* pwdcheck.c */
+#ifndef USE_PAM
extern void passwd_check (const char *, const char *, const char *);
+#endif
/* pwd_init.c */
extern void pwd_init (void);
extern void ttytype (const char *);
/* tz.c */
+#ifndef USE_PAM
extern char *tz (const char *);
+#endif
/* ulimit.c */
extern int set_filesize_limit (int blocks);
#include <config.h>
+#ifndef USE_PAM
+
#ident "$Id$"
#include <stdio.h>
#include "defines.h"
#include "prototypes.h"
#include "getdef.h"
+
/*
* tz - return local timezone name
*
if ((fp = fopen (fname, "r")) == NULL ||
fgets (tzbuf, (int) sizeof (tzbuf), fp) == NULL) {
-#ifndef USE_PAM
if (!(def_tz = getdef_str ("ENV_TZ")) || def_tz[0] == '/')
def_tz = "TZ=CST6CDT";
-#endif /* !USE_PAM */
strcpy (tzbuf, def_tz);
} else
return tzbuf;
}
+#else /* !USE_PAM */
+extern int errno; /* warning: ANSI C forbids an empty source file */
+#endif /* !USE_PAM */
+