2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A/* LINTLIBRARY */
2N/A/* PROTOLIB1 */
2N/A
2N/A#include <sys/types.h>
2N/A#include <nsctl.h>
2N/A#include <sys/nsctl/nsc_hash.h>
2N/A
2N/Avoid _nsc_nocheck(void);
2N/Ansc_fd_t *nsc_open(char *path, int flag, int mode);
2N/Ansc_fd_t *nsc_fdopen(int id, char *path, int mode);
2N/Aint nsc_close(nsc_fd_t *fd);
2N/Aint nsc_fileno(nsc_fd_t *fd);
2N/Aint nsc_reserve(nsc_fd_t *fd);
2N/Aint nsc_release(nsc_fd_t *fd);
2N/Aint nsc_partsize(nsc_fd_t *fd, nsc_size_t *size);
2N/Aint nsc_freeze(char *path);
2N/Aint nsc_unfreeze(char *path);
2N/Aint nsc_isfrozen(char *path);
2N/Aint nsc_getsystemid(int *id);
2N/Aint nsc_name_to_id(char *name, int *id);
2N/Aint nsc_id_to_name(char **name, int id);
2N/Aint nsc_check_release(const char *build_rel, nsc_release_t *map, char **reqd);
2N/Ahash_node_t **nsc_create_hash(void);
2N/Aint nsc_insert_node(hash_node_t **, void *, const char *);
2N/Avoid *nsc_lookup(hash_node_t **, const char *);
2N/Avoid *nsc_remove_node(hash_node_t **, char *);
2N/Avoid nsc_remove_all(hash_node_t **, void (*)(void *));