ns_fnutils.c revision 36e852a172cba914383d7341c988128b2c667fbd
/*
* 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 <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <synch.h>
#include "automount.h"
#include "ns_fnutils.h"
/*
* FNS file system reference and address types. Each array is indexed
* using the corresponding enumeration (reftype_t or addrtype_t).
*/
const char *reftypes[] = {
"onc_fn_fs",
};
const char *addrtypes[] = {
"onc_fn_fs_mount",
"onc_fn_fs_host",
"onc_fn_fs_user",
};
int
init_fn(void)
{
if (slash_cname != NULL) {
return (0);
}
if (empty_string == NULL) {
goto unlock;
}
}
if (empty_cname == NULL) {
goto unlock;
}
}
if (slash_cname == NULL) {
goto unlock;
}
}
}
{
if (verbose) {
}
return (NULL);
}
}
return (cname);
}
{
break;
}
}
return (rtype);
}
{
break;
}
}
return (atype);
}
{
}
{
}
void
{
if (verbose) {
if (desc_string != NULL) {
}
desc = "(no status description)";
}
}
}
{
unsigned int statcode;
if (statcode == FN_E_LINK_ERROR) {
}
switch (statcode) {
case FN_E_CTX_UNAVAILABLE:
case FN_E_INVALID_ENUM_HANDLE:
case FN_E_PARTIAL_RESULT:
case FN_E_UNSPECIFIED_ERROR:
return (TRUE);
default:
return (FALSE);
}
}
void
log_mem_failure(void)
{
if (verbose) {
}
}