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/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifndef _RDCADM_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define _RDCADM_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern "C" {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define MAXQFBAS 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define MAXQITEMS 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define ASYNCTHR 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define AUTOSYNC -1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define AUTOSYNC_OFF 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define AUTOSYNC_ON 1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QBLOCK 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int maxqfbas;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int maxqitems;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int autosync;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int asyncthr;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int qblock;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern char *rdc_decode_flag(int, int);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern void rdc_err(spcs_s_info_t *status, char *string, ...);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern void rdc_warn(spcs_s_info_t *status, char *string, ...);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int rdc_get_maxsets();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int mounted(char *device);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int get_new_cfg_setid(CFGFILE *cfg);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern void get_group_diskq(CFGFILE *cfg, char *group, char *diskq);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int find_setnumber_in_libcfg(CFGFILE *, char *, char *, char *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int sv_enable(char *, CFGFILE *, char *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern void block_sigs(void);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern void unblock_sigs(void);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern char *program;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _RDCADM_H */