FreeBSD/sbin/restore/dirs.c
/*
 * Simulate the opening of a directory
 */
Simulate the opening of a directory
Simulate the opening of a directory
void *
rst_opendir(const char *name)
{
	struct inotab *itp;
	RST_DIR *dirp;
	ino_t ino;
	if ((ino = dirlookup(name)) > 0 &&
	    (itp = inotablookup(ino)) != NULL) {
		dirp = opendirfile(dirfile);
		rst_seekdir(dirp, itp->t_seekpt, itp->t_seekpt);
		return (dirp);
	}
	return (NULL);
}
void * rst_opendir ( const char * name ) { struct inotab * itp ; RST_DIR * dirp ; ino_t ino ; if ( ( ino = dirlookup ( name ) ) > 0 && ( itp = inotablookup ( ino ) ) != NULL ) { dirp = opendirfile ( dirfile ) ; rst_seekdir ( dirp , itp -> t_seekpt , itp -> t_seekpt ) ; return ( dirp ) ; } return ( NULL ) ; }
Simulate the opening of a directory
Simulate the opening of a directory