projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add new directory access routines
[unix-history]
/
usr
/
src
/
old
/
make
/
main.c
diff --git
a/usr/src/old/make/main.c
b/usr/src/old/make/main.c
index
1f9750b
..
6c30a76
100644
(file)
--- a/
usr/src/old/make/main.c
+++ b/
usr/src/old/make/main.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)main.c 4.
1 (Berkeley) 81/02/28
";
+static char *sccsid = "@(#)main.c 4.
2 (Berkeley) 82/04/20
";
# include "defs"
/*
command make to update programs.
# include "defs"
/*
command make to update programs.
@@
-20,7
+20,7
@@
struct nameblock *firstname = NULL;
struct lineblock *sufflist = NULL;
struct varblock *firstvar = NULL;
struct pattern *firstpat = NULL;
struct lineblock *sufflist = NULL;
struct varblock *firstvar = NULL;
struct pattern *firstpat = NULL;
-struct
opendir *firstod
= NULL;
+struct
dirhdr *firstod
= NULL;
#include <signal.h>
int sigivalue = 0;
#include <signal.h>
int sigivalue = 0;
@@
-325,7
+325,7
@@
int prntflag;
struct nameblock *p;
struct depblock *dp;
struct varblock *vp;
struct nameblock *p;
struct depblock *dp;
struct varblock *vp;
-struct
opendi
r *od;
+struct
dirhd
r *od;
struct shblock *sp;
struct lineblock *lp;
struct shblock *sp;
struct lineblock *lp;
@@
-334,7
+334,7
@@
if(prntflag)
{
printf("Open directories:\n");
for (od = firstod; od; od = od->nxtopendir)
{
printf("Open directories:\n");
for (od = firstod; od; od = od->nxtopendir)
- printf("\t%d: %s\n",
fileno(od->dirfc)
, od->dirn);
+ printf("\t%d: %s\n",
od->dirfc->dd_fd
, od->dirn);
}
#endif
}
#endif