* Print working (current) directory
if ((file
= open(dotdot
,0)) < 0) prname();
if (read(file
, &y
, sizeof(y
)) < sizeof(y
))
} while (y
.d_ino
!= x
.st_ino
);
if (stat(y
.d_name
,&x
)<0 || chdir(root
)<0 || (file
=open(root
,0))<0)
if (read(file
,&y
,sizeof(y
)) < sizeof(y
))
if (stat(y
.d_name
,&x
) < 0)
} while (x
.st_dev
!=i
|| (x
.st_mode
&S_IFMT
)!=S_IFDIR
);
if (strcmp(dot
, y
.d_name
) || strcmp(dotdot
, y
.d_name
))
while (y
.d_name
[++i
] != 0);