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