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
change fts routine names
[unix-history]
/
usr
/
src
/
usr.sbin
/
mtree
/
create.c
diff --git
a/usr/src/usr.sbin/mtree/create.c
b/usr/src/usr.sbin/mtree/create.c
index
669e2d1
..
29ed56f
100644
(file)
--- a/
usr/src/usr.sbin/mtree/create.c
+++ b/
usr/src/usr.sbin/mtree/create.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)create.c 5.1
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)create.c 5.1
5
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-48,12
+48,12
@@
cwalk()
argv[0] = ".";
argv[1] = (char *)NULL;
argv[0] = ".";
argv[1] = (char *)NULL;
- if (!(t = ftsopen(argv, ftsoptions, dsort))) {
+ if (!(t = fts
_
open(argv, ftsoptions, dsort))) {
(void)fprintf(stderr,
(void)fprintf(stderr,
- "mtree: ftsopen: %s.\n", strerror(errno));
+ "mtree: fts
_
open: %s.\n", strerror(errno));
exit(1);
}
exit(1);
}
- while (p = ftsread(t)) {
+ while (p = fts
_
read(t)) {
switch(p->fts_info) {
case FTS_D:
if (dflag)
switch(p->fts_info) {
case FTS_D:
if (dflag)
@@
-139,7
+139,7
@@
cwalk()
}
(void)putchar('\n');
}
}
(void)putchar('\n');
}
- (void)ftsclose(t);
+ (void)fts
_
close(t);
}
#define MAXGID 5000
}
#define MAXGID 5000
@@
-163,7
+163,7
@@
statdir(t, parent, puid, pgid, pmode, tabs)
mode_t savemode;
u_short maxgid, maxuid, maxmode, g[MAXGID], u[MAXUID], m[MAXMODE];
mode_t savemode;
u_short maxgid, maxuid, maxmode, g[MAXGID], u[MAXUID], m[MAXMODE];
- if (!(p = ftschildren(t))) {
+ if (!(p = fts
_
children(t))) {
if (errno) {
(void)fprintf(stderr, "mtree: %s: %s.\n",
RP(parent), strerror(errno));
if (errno) {
(void)fprintf(stderr, "mtree: %s: %s.\n",
RP(parent), strerror(errno));