service.c revision b9dac67bf3a63377e9c38679121e360b643b6a68
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <alloca.h>
#include <libintl.h>
#include <papi_impl.h>
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_TEMPORARY_ERROR);
gettext("can't connect to spooler for %s: %s"),
return (PAPI_SERVICE_UNAVAILABLE);
}
return (PAPI_TEMPORARY_ERROR);
if (service_name != NULL)
"service-name", service_name);
return (PAPI_OK);
}
void
{
}
}
/*
* interface for passing a peer's connection to gather sensitivity labeling
* from for Trusted Solaris.
*/
{
return (PAPI_BAD_ARGUMENT);
if (is_system_labeled()) {
short status;
gettext("failed to send peer connection: %s"),
}
}
return (result);
}
{
return (PAPI_BAD_ARGUMENT);
"user-name", user_name));
}
{
return (PAPI_BAD_ARGUMENT);
"password", password));
}
const papi_encryption_t encryption)
{
return (PAPI_BAD_ARGUMENT);
"encryption", (int)encryption));
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
}
char *
{
"service-name", &result);
return (result);
}
char *
{
"user-name", &result);
return (result);
}
char *
{
"password", &result);
return (result);
}
{
"encryption", (int *)&result);
return (result);
}
void *
{
return (result);
}
char *
{
"detailed-status-message", &result);
return (result);
}
void
{
/*
* fill in the message. If the buffer is too small, allocate
* one that is large enough and fill it in.
*/
"detailed-status-message", message);
}
}