… | |
… | |
6981 | #include <stdio.h> |
6981 | #include <stdio.h> |
6982 | #include <stdlib.h> |
6982 | #include <stdlib.h> |
6983 | #include <sys/types.h> |
6983 | #include <sys/types.h> |
6984 | #include <utmp.h> |
6984 | #include <utmp.h> |
6985 | #include <errno.h> |
6985 | #include <errno.h> |
6986 | main() |
6986 | int main() |
6987 | { |
6987 | { |
6988 | char **u, *utmplist[] = { |
6988 | char **u, *utmplist[] = { |
6989 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
6989 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
6990 | FILE *a, *f=fopen("conftestval", "w"); |
6990 | FILE *a, *f=fopen("conftestval", "w"); |
6991 | if (!f) exit(1); |
6991 | if (!f) exit(1); |
… | |
… | |
7043 | #include <sys/types.h> |
7043 | #include <sys/types.h> |
7044 | #ifdef HAVE_UTMP_H |
7044 | #ifdef HAVE_UTMP_H |
7045 | #include <utmp.h> |
7045 | #include <utmp.h> |
7046 | #endif |
7046 | #endif |
7047 | #include <errno.h> |
7047 | #include <errno.h> |
7048 | main() |
7048 | int main() |
7049 | { |
7049 | { |
7050 | char **w, *wtmplist[] = { |
7050 | char **w, *wtmplist[] = { |
7051 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
7051 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
7052 | FILE *a, *f=fopen("conftestval", "w"); |
7052 | FILE *a, *f=fopen("conftestval", "w"); |
7053 | if (!f) exit(1); |
7053 | if (!f) exit(1); |
… | |
… | |
7103 | #include <stdlib.h> |
7103 | #include <stdlib.h> |
7104 | #ifdef HAVE_UTMPX_H |
7104 | #ifdef HAVE_UTMPX_H |
7105 | #include <utmpx.h> |
7105 | #include <utmpx.h> |
7106 | #endif |
7106 | #endif |
7107 | #include <errno.h> |
7107 | #include <errno.h> |
7108 | main() |
7108 | int main() |
7109 | { |
7109 | { |
7110 | char **w, *wtmplist[] = { |
7110 | char **w, *wtmplist[] = { |
7111 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
7111 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
7112 | FILE *a, *f=fopen("conftestval", "w"); |
7112 | FILE *a, *f=fopen("conftestval", "w"); |
7113 | if (!f) exit(1); |
7113 | if (!f) exit(1); |
… | |
… | |
7169 | #endif |
7169 | #endif |
7170 | #ifdef HAVE_LASTLOG_H |
7170 | #ifdef HAVE_LASTLOG_H |
7171 | #include <lastlog.h> |
7171 | #include <lastlog.h> |
7172 | #endif |
7172 | #endif |
7173 | #include <errno.h> |
7173 | #include <errno.h> |
7174 | main() |
7174 | int main() |
7175 | { |
7175 | { |
7176 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
7176 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
7177 | FILE *a, *f=fopen("conftestval", "w"); |
7177 | FILE *a, *f=fopen("conftestval", "w"); |
7178 | if (!f) exit(1); |
7178 | if (!f) exit(1); |
7179 | #ifdef LASTLOG_FILE |
7179 | #ifdef LASTLOG_FILE |
… | |
… | |
7228 | #include <stdlib.h> |
7228 | #include <stdlib.h> |
7229 | #ifdef HAVE_UTMPX_H |
7229 | #ifdef HAVE_UTMPX_H |
7230 | #include <utmpx.h> |
7230 | #include <utmpx.h> |
7231 | #endif |
7231 | #endif |
7232 | #include <errno.h> |
7232 | #include <errno.h> |
7233 | main() |
7233 | int main() |
7234 | { |
7234 | { |
7235 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
7235 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
7236 | FILE *a, *f=fopen("conftestval", "w"); |
7236 | FILE *a, *f=fopen("conftestval", "w"); |
7237 | if (!f) exit(1); |
7237 | if (!f) exit(1); |
7238 | #ifdef LASTLOGX_FILE |
7238 | #ifdef LASTLOGX_FILE |
… | |
… | |
7712 | #include <sys/types.h> |
7712 | #include <sys/types.h> |
7713 | #include <sys/stat.h> |
7713 | #include <sys/stat.h> |
7714 | #include <unistd.h> |
7714 | #include <unistd.h> |
7715 | #include <grp.h> |
7715 | #include <grp.h> |
7716 | |
7716 | |
7717 | main() |
7717 | int main() |
7718 | { |
7718 | { |
7719 | struct stat st; |
7719 | struct stat st; |
7720 | struct group *gr; |
7720 | struct group *gr; |
7721 | char *tty; |
7721 | char *tty; |
7722 | gr = getgrnam("tty"); |
7722 | gr = getgrnam("tty"); |