Return to util.c CVS log | Up to [local] / src / usr.bin / finger |
version 1.10, 1998/07/10 15:45:19 | version 1.11, 1999/08/17 09:13:15 | ||
---|---|---|---|
|
|
||
#include <sys/uio.h> | #include <sys/uio.h> | ||
#include <sys/param.h> | #include <sys/param.h> | ||
#include <sys/stat.h> | #include <sys/stat.h> | ||
#include <sys/file.h> | |||
#include <err.h> | #include <err.h> | ||
#include <stdio.h> | #include <stdio.h> | ||
#include <stdlib.h> | #include <stdlib.h> | ||
|
|
||
#include <string.h> | #include <string.h> | ||
#include <paths.h> | #include <paths.h> | ||
#include <errno.h> | #include <errno.h> | ||
#include <fcntl.h> | |||
#include <unistd.h> | #include <unistd.h> | ||
#include <vis.h> | #include <vis.h> | ||
#include <err.h> | #include <err.h> | ||
|
|
||
/* some systems may not maintain lastlog, don't report errors. */ | /* some systems may not maintain lastlog, don't report errors. */ | ||
if (!opened) { | if (!opened) { | ||
fd = open(_PATH_LASTLOG, O_RDONLY, 0); | fd = open(_PATH_LASTLOG, O_RDONLY); | ||
opened = 1; | opened = 1; | ||
} | } | ||
if (fd == -1 || | if (fd == -1 || |