kwarnd_clnt_stubs.c revision a51287096c163d49f314be2853367563999e083c
/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* stub module for kwarnd.
*/
#include <stdio.h>
#include <stdlib.h>
#include "kwarnd.h"
#include <syslog.h>
extern CLIENT *getkwarnd_handle(void);
extern void resetkwarnd_handle(void);
{
return (1);
/* get the client handle to kwarnd */
/*
* Let app output if an error occurs but we'll syslog to
* DEBUG to get error details if needed.
*/
clnt_spcreateerror("getkwarnd_handle"));
return (1);
}
/* set the rpc parameters */
/* call the remote procedure */
if (ret != RPC_SUCCESS) {
/*
* Could have timed out due to the process restarting for
* various reasons. Should attempt to rebind in the case
* process is actually running.
*/
goto rebind;
}
return (1);
}
/* nothing to free */
}
{
/* check the output parameters */
if (warning_name == NULL)
return (1);
/* get the client GSSD handle */
/*
* Let app output if an error occurs but we'll syslog to
* DEBUG to get error details if needed.
*/
clnt_spcreateerror("getkwarnd_handle"));
return (1);
}
/* set the input parameters */
/* call the remote procedure */
if (ret != RPC_SUCCESS) {
/*
* Could have timed out due to the process restarting for
* various reasons. Should attempt to rebind in the case
* process is actually running.
*/
goto rebind;
}
return (1);
}
/* nothing to free */
}