/*
* 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
*/
/*
*/
#include <stdio.h>
#include <errno.h>
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <ctype.h>
#include <thread.h>
#include <pthread.h>
/*
* libdscfg type stuff here
*/
{
if (!rc) {
return (NULL);
}
return (rc);
}
/*
* takes in a chain of rdcconfig_t's and a chain
* of rdc_rc_t's, checks for success in the rdc_rc_t,
* then adds the corresponding rdcconfig_t to the return
* chain.
*/
{
while (rcp) {
}
}
}
return (ret);
}
{
return (urdc);
}
rdc_rc_t *
new_rc()
{
return (NULL);
}
return (rc);
}
{
ustatus = spcs_s_ucreate();
/* this needs changin if we do campus */
} else {
}
/* set up return stuff.. */
}
return (rc);
}
void *
{
ustatus = spcs_s_ucreate();
/* this needs changin if we do campus */
} else {
}
}
/* LINTED - suppress E_FUNC_HAS_NO_RETURN_STMT (lint bug 7122677) */
}
int
{
"NULL hostname recieved");
return (-1);
}
}
if (isenable) {
return (-1);
} else {
}
if (isenable) {
return (-1);
} else {
}
if (isenable) {
} else {
}
return (1);
}
void
{
if (all == RDC_FREEONE) {
} else while (rdcp) {
}
}
void
while (rcp) {
}
}
/*ARGSUSED*/
int persist)
{
if (!rc) {
return (NULL);
}
if (phost)
if (pfile)
if (pbmp)
if (shost)
if (sfile)
if (sbmp)
if (mode)
if (ctag)
if (options)
return (rc);
}
void
{
}
/*
* rdc_enable
* return values
* NULL on error
* pointer to rdc_rc_t list of return values
*/
rdc_rc_t *
{
if (!rc) { /* error already set */
return (NULL);
}
while (rdcp) {
return (NULL);
}
} else {
return (NULL);
}
if (can_enable(rdcp)) {
/* do the operation */
} else { /* set up what rdc_config would've set up */
}
/*
* if we are not persisting, do this now,
* otherwise we will do it when
* we have a lock on the cfg in add_to_rdc_cfg
*/
}
if (!rdcp)
break;
if (!rcp) {
/* dont free here, return what you have */
break;
}
}
/*
* travel the rc chain and rdc chain checking results,
* building a new chain, and updating dscfg
*/
if (add_to_rdc_cfg(cfg_rdcs) < 0) {
/* XXX should disable or something here */
return (rc);
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
return (NULL);
}
} else {
return (NULL);
}
if (can_enable(rdcp)) {
/* do the operation */
} else { /* set up what rdc_config would've set up */
}
if (!rdcp)
break;
if (!rcp)
break;
}
/*
* travel the rc chain and rdc chain checking results,
* building a new chain, and updating dscfg
*/
if (add_to_rdc_cfg(cfg_rdcs) < 0) {
/* XXX should disable or something here */
return (rc);
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
return (rc);
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
int trc;
while (rdcp) {
/* freed in rdc_mtconfig */
if (!rdcp)
break;
}
/*
* collect status here from thr_join-status,
* and add to rdc_rc_t chain ?
* this will block, but caller could always thread too
*/
} else {
}
}
return (rc);
}
rdc_rc_t *
{
int trc;
if (!rc) {
return (NULL);
}
while (rdcp) {
/* freed in rdc_mtconfig */
if (!rdcp)
break;
}
/*
* collect status here from thr_join-status,
* and add to rdc_rc_t chain ?
* this will block, but caller could always thread too
*/
} else {
}
}
return (rc);
}
rdc_rc_t *
{
int trc;
if (!rc) {
return (NULL);
}
while (rdcp) {
} else {
}
goto next;
}
/* freed in rdc_mtconfig */
next:
if (!rdcp)
break;
}
/*
* collect status here from thr_join-status,
* and add to rdc_rc_t chain ?
* this will block, but caller could always thread too
*/
} else {
}
}
return (rc);
}
rdc_rc_t *
{
int trc;
while (rdcp) {
} else {
}
goto next;
}
/* freed in rdc_mtconfig */
next:
if (!rdcp)
break;
}
/*
* collect status here from thr_join-status,
* and add to rdc_rc_t chain ?
* this will block, but caller could always thread too
*/
} else {
}
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
{
rdc_config(&rdccfg);
}
int
{
}
int
{
}
int
{
}
int
{
return (RDC_OPT_ASYNC);
else
return (RDC_OPT_SYNC);
}
/*
* reconfig bitmaps are single set only ops
* for obvious reasons
*/
rdc_rc_t *
{
return (NULL);
else
}
return (rc);
}
rdc_rc_t *
{
if (!rc)
return (NULL);
else
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
/* just in case */
/* reconfig group rules enforced in kernel */
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
/*ARGSUSED*/
rdc_rc_t *
{
return (NULL);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}
rdc_rc_t *
{
if (!rc) {
return (NULL);
}
while (rdcp) {
if (!rdcp)
break;
if (!rcp)
break;
}
return (rc);
}