dlist_path.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1992 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* @(#)dlist_path.c 1.1 90/01/22 SMI */
/*
*
*
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <fcntl.h>
#include <stdio.h>
#include <dirent.h>
#include "iso_spec.h"
#include "iso_impl.h"
extern char *myname;
struct dlist * crdlist_path();
struct dlist * crsubdlist_path();
/* internal routines to manuipulate the directory tree */
/* mkdlsit_path - create a sorted list of all directories under path */
/* will create iso file name by converting lower case
to upper case */
struct dlist *
char *fn;
{
/*create the root first, fn must be a directory */
/* the parent of the rootdp is the root itself */
cleanup();
}
/* create the whole tree */
return(rootdp);
}
struct dlist*
char *fn;
{
int length;
/* first check if we can "stat" */
return(NULL);
}
/* allocate space */
/* clear all fields to zero */
/* initialize the various fields */
/* allocate UNIX file info structure */
return(dp);
}
/*
* crsubdlist - read the directory pointed to by dp
*/
struct dlist *
char *pn;
{
char pname[1024];
/* don't have to do anything if dp is not a directory */
else {
}
/* change working directory */
cleanup();
}
else
}
}
done:
/* change working directory */
if (chdir("..") < 0) {
cleanup();
}
}