/*
* 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
*/
/*
*/
/* $Id: uri.c 146 2006-03-24 00:26:54Z njacobs $ */
/*LINTLIBRARY*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "uri.h"
/*
* This will handle the following forms:
* scheme:scheme_data
* scheme://[[user[:password]@]host[:port]]/path[[#fragment]|[?query]]
*/
int
{
char *ptr;
uri_t *u;
return (-1);
}
/* find the scheme:scheme_part split */
return (-1);
}
return (-1);
/*
* CSTYLED
* scheme://[host_part]/[path_part]
*/
continue;
if (*host == '@') {
/* string to host is the user part */
/* host+1 to end is the host part */
host++;
break;
}
if (*password == ':') {
break;
}
} else
break;
}
}
} else {
continue;
}
}
}
}
} else { /* scheme:scheme_part */
}
(u->scheme_part == NULL)) {
uri_free(u);
return (-1);
}
return (0);
}
int
{
char *uri_ppfix;
return (-1);
}
uri_ppfix = "";
else
uri_ppfix = "/";
"%s://%s%s%s%s%s%s%s%s%s%s%s%s%s",
} else {
uri->scheme_part);
}
return (0);
}
void
{
/* help me debug */
}
}
#ifdef DEADBEEF
static void
{
/* help me debug */
}
}
int
{
if (argc != 2) {
exit(1);
}
} else
exit(0);
}
#endif /* DEADBEEF */