/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdio.h>
#include <unistd.h>
#include <strings.h>
#include <string.h>
#include <limits.h>
#include <libnvpair.h>
#include <dlfcn.h>
#include <link.h>
#include <rp_plugin.h>
#include <fcntl.h>
#include <rpcsvc/nfs4_prot.h>
/*
* str_to_utf8 - converts a null-terminated C string to a utf8 string
*/
{
int len;
return (NULL);
str->utf8string_len = 0;
return (NULL);
}
str->utf8string_len = 0;
return (NULL);
}
return (str);
}
/*
* Converts a utf8 string to a C string.
* kmem_allocs a new string if not supplied
*/
char *
{
char *sp;
char *u8p;
int len;
int i;
return (NULL);
if (s)
*s = '\0';
return (NULL);
}
sp = s;
return (NULL);
/*
* At least check for embedded nulls
*/
for (i = 0; i < len; i++) {
if (u8p[i] == '\0') {
if (s == NULL)
return (NULL);
}
}
return (sp);
}
void
{
int i, j;
uint_t l;
char *s;
printf("NULL\n");
return;
}
if (i > 0)
printf("\n");
if (j > 0)
printf(",");
if (s)
free(s);
}
printf(":");
&l, NULL);
if (s)
free(s);
}
printf("/");
}
printf("\n");
}
/*
* There is a kernel copy of this routine in nfs4_srv.c.
* Changes should be kept in sync.
*/
static int
{
return (0);
ncomp = 0;
/* count number of components in the path */
continue;
}
return (NULL);
}
ncomp++; /* 1 valid component */
}
break;
}
return (ncomp);
}
/*
* There is a kernel copy of this routine in nfs4_srv.c.
* Changes should be kept in sync.
*/
int
{
int ncomp;
return (0);
pathname->pathname4_len = 0;
return (0);
}
/* count number of components to alloc buffer */
pathname->pathname4_len = 0;
return (0);
}
pathname->pathname4_len = 0;
return (0);
}
/* copy components into allocated buffer */
return (ncomp);
}
{
return (FALSE);
return (TRUE);
}
{
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
}
return (FALSE);
return (FALSE);
return (TRUE);
}
{
}
return (FALSE);
return (FALSE);
return (TRUE);
}