SCCS-vsn: local/sccscmds/sccscmds.2/util/curdir.c 4.3
SCCS-vsn: local/sccscmds/sccscmds.ok/util/curdir.c 4.3
# include "dir.h"
#define IROOT 2
# include "dir.h"
#define IROOT 2
-SCCSID(@(#)curdir.c 4.2);
+SCCSID(@(#)curdir.c 4.3);
/*
current directory.
Places the full pathname of the current directory in `str'.
/*
current directory.
Places the full pathname of the current directory in `str'.
if ((fd = open("/etc/mtab", 0))<0) return(-1);
while (read(fd,&mtab,64) == 64) {
char devstr[40];
if ((fd = open("/etc/mtab", 0))<0) return(-1);
while (read(fd,&mtab,64) == 64) {
char devstr[40];
for (tp = mtab.m_dir; *curdirp = *tp++; curdirp++);
ADDSLASH;
*curdirp = 0;
for (tp = mtab.m_dir; *curdirp = *tp++; curdirp++);
ADDSLASH;
*curdirp = 0;
# include "dir.h"
#define IROOT 2
# include "dir.h"
#define IROOT 2
-SCCSID(@(#)curdir.c 4.2);
+SCCSID(@(#)curdir.c 4.3);
/*
current directory.
Places the full pathname of the current directory in `str'.
/*
current directory.
Places the full pathname of the current directory in `str'.
if ((fd = open("/etc/mtab", 0))<0) return(-1);
while (read(fd,&mtab,64) == 64) {
char devstr[40];
if ((fd = open("/etc/mtab", 0))<0) return(-1);
while (read(fd,&mtab,64) == 64) {
char devstr[40];
for (tp = mtab.m_dir; *curdirp = *tp++; curdirp++);
ADDSLASH;
*curdirp = 0;
for (tp = mtab.m_dir; *curdirp = *tp++; curdirp++);
ADDSLASH;
*curdirp = 0;