/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdlib.h>
#include <string.h>
#include <string.h>
typedef struct {
short init;
const char *env_var;
} vroot_patht;
typedef struct {
char *vroot_start;
char *path_start;
char *filename_start;
int scan_vroot_first;
int cpp_style_path;
{ 0, NULL, "VIRTUAL_ROOT"},
{ 0, NULL, "PATH"},
void
{
register int size= 0;
register int length;
register char *name;
register pathcellpt p;
if (position < 0)
else
if (position < 0)
position= 0;
}
{
register char *p;
else
if (p) *p= ':';
else return(result);};
}
const char *
get_vroot_name(void)
{
}
const char *
get_path_name(void)
{
}
void
flush_path_cache(void)
{
}
void
flush_vroot_cache(void)
{
}
void
scan_path_first(void)
{
}
void
scan_vroot_first(void)
{
}
void
{
}
char *
{
return(vroot_data.full_path);
}
void
translate_with_thunk(register char *filename, int (*thunk) (char *), pathpt path_vector, pathpt vroot_vector, rwt rw)
{
register char *p;
/* Setup path to use */
else {
if (path_vector == VROOT_DEFAULT) {
/* Setup vroot to use */
if (vroot_vector == VROOT_DEFAULT) {
/* Setup to remember pieces */
if(flen >= MAXPATHLEN) {
return;
}
case 0: /* No path. No vroot. */
return;
case 1: /* No path. Vroot */
continue;
}
p= vroot_data.full_path;
return;
case 2: /* Path. No vroot. */
if (vroot_data.cpp_style_path) {
} else {
};
p= vroot_data.full_path;
continue;
}
if (vroot_data.cpp_style_path) {
*p++= '/';
} else {
*p++= '/';
};
};
return;
case 3: { /* Path. Vroot. */
if (vroot_data.scan_vroot_first == 0) {
int len = 0;
p= vroot_data.full_path;
continue;
}
};
if (vroot_data.cpp_style_path) {
if (filename[0] != '/') {
continue;
}
*p++= '/';
};
} else {
continue;
}
*p++= '/';
}
}
};
int len = 0;
p= vroot_data.full_path;
continue;
}
}
if (vroot_data.cpp_style_path) {
if (filename[0] != '/') {
continue;
}
*p++= '/';
}
} else {
continue;
}
*p++= '/';
}
}
return;};};
}