Use <dirent.h> instead of <sys/dir.h>.
This commit is contained in:
parent
448e711c78
commit
a3881ff7a8
|
@ -39,7 +39,7 @@ char copyright[] =
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)lastcomm.c 5.11 (Berkeley) 6/1/90";*/
|
||||
static char rcsid[] = "$Id: lastcomm.c,v 1.3 1993/08/01 18:14:04 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: lastcomm.c,v 1.4 1993/12/04 01:57:10 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
@ -53,6 +53,7 @@ static char rcsid[] = "$Id: lastcomm.c,v 1.3 1993/08/01 18:14:04 mycroft Exp $";
|
|||
#include <struct.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "pathnames.h"
|
||||
|
||||
struct acct buf[DEV_BSIZE / sizeof (struct acct)];
|
||||
|
@ -177,7 +178,7 @@ ok(argv, acp)
|
|||
return(0);
|
||||
}
|
||||
|
||||
#include <sys/dir.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#define N_DEVS 43 /* hash value for device names */
|
||||
#define NDEVS 500 /* max number of file names in /dev */
|
||||
|
@ -196,8 +197,7 @@ setupdevs()
|
|||
register DIR * fd;
|
||||
register struct devhash * hashtab;
|
||||
register ndevs = NDEVS;
|
||||
struct direct * dp;
|
||||
char *malloc();
|
||||
struct dirent * dp;
|
||||
|
||||
/*NOSTRICT*/
|
||||
hashtab = (struct devhash *)malloc(NDEVS * sizeof(struct devhash));
|
||||
|
|
|
@ -39,7 +39,7 @@ char copyright[] =
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)msgs.c 5.8 (Berkeley) 2/4/91";*/
|
||||
static char rcsid[] = "$Id: msgs.c,v 1.3 1993/10/26 18:24:02 jtc Exp $";
|
||||
static char rcsid[] = "$Id: msgs.c,v 1.4 1993/12/04 01:57:30 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
@ -70,8 +70,8 @@ static char rcsid[] = "$Id: msgs.c,v 1.3 1993/10/26 18:24:02 jtc Exp $";
|
|||
/* #define UNBUFFERED /* use unbuffered output */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/dir.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
|
@ -245,7 +245,7 @@ int argc; char *argv[];
|
|||
keep = t - (rcback? rcback : NDAYS) DAYS;
|
||||
|
||||
if (clean || bounds == NULL) { /* relocate message bounds */
|
||||
struct direct *dp;
|
||||
struct dirent *dp;
|
||||
struct stat stbuf;
|
||||
bool seenany = NO;
|
||||
DIR *dirp;
|
||||
|
|
|
@ -39,17 +39,17 @@ char copyright[] =
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)ruptime.c 5.8 (Berkeley) 7/21/90";*/
|
||||
static char rcsid[] = "$Id: ruptime.c,v 1.2 1993/08/01 18:09:01 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: ruptime.c,v 1.3 1993/12/04 01:49:05 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/dir.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/errno.h>
|
||||
#include <dirent.h>
|
||||
#include <protocols/rwhod.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
size_t nhosts, hspace = 20;
|
||||
struct hs {
|
||||
|
@ -75,7 +75,7 @@ main(argc, argv)
|
|||
register struct whod *wd;
|
||||
register struct whoent *we;
|
||||
register DIR *dirp;
|
||||
struct direct *dp;
|
||||
struct dirent *dp;
|
||||
int aflg, cc, ch, f, i, maxloadav;
|
||||
char buf[sizeof(struct whod)];
|
||||
int (*cmp)() = hscmp;
|
||||
|
|
|
@ -39,12 +39,12 @@ char copyright[] =
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)rwho.c 5.5 (Berkeley) 6/1/90";*/
|
||||
static char rcsid[] = "$Id: rwho.c,v 1.2 1993/08/01 18:08:45 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: rwho.c,v 1.3 1993/12/04 01:49:21 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/dir.h>
|
||||
#include <sys/file.h>
|
||||
#include <dirent.h>
|
||||
#include <protocols/rwhod.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -77,7 +77,7 @@ main(argc, argv)
|
|||
extern char *optarg;
|
||||
extern int optind;
|
||||
int ch;
|
||||
struct direct *dp;
|
||||
struct dirent *dp;
|
||||
int cc, width;
|
||||
register struct whod *w = &wd;
|
||||
register struct whoent *we;
|
||||
|
|
Loading…
Reference in New Issue