/*
* 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.
*
*/
/* $Id: job.c 146 2006-03-24 00:26:54Z njacobs $ */
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdlib.h>
#include <papi_impl.h>
void
{
void (*f)();
if (f != NULL)
}
}
void
{
int i;
papiJobFree(jobs[i]);
}
}
{
papi_attribute_t **(*f)();
"papiJobGetAttributeList");
if (f != NULL)
}
return (result);
}
char *
{
char *(*f)();
if (f != NULL)
}
return (result);
}
{
int32_t (*f)();
if (f != NULL)
}
return (result);
}
{
papi_job_ticket_t *(*f)();
"papiJobGetJobTicket");
if (f != NULL)
}
return (result);
}
/* common support for papiJob{Submit|SubmitByReference|Validate} */
static papi_status_t
char *function)
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
return (PAPI_TEMPORARY_ERROR);
if (f != NULL)
return (result);
}
{
"papiJobSubmit"));
}
{
"papiJobSubmitByReference"));
}
{
"papiJobValidate"));
}
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
if (f != NULL)
job_ticket, stream);
return (result);
}
{
papi_status_t (*f)();
(buflen == 0))
return (PAPI_BAD_ARGUMENT);
if (f != NULL)
return (result);
}
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (PAPI_TEMPORARY_ERROR);
if (f != NULL)
return (result);
}
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
return (PAPI_TEMPORARY_ERROR);
if (f != NULL)
requested_attrs, &j->job);
return (result);
}
char *destination)
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
if (f != NULL) {
"printer-uri-supported", &destination);
}
return (result);
}
/* common support for papiJob{Cancel|Release|Restart|Promote} */
static papi_status_t
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
if (f != NULL)
return (result);
}
{
"papiJobCancel"));
}
{
"papiJobRelease"));
}
{
"papiJobRestart"));
}
{
"papiJobPromote"));
}
{
"papiJobCommit"));
}
{
"papiJobHold"));
}
{
papi_status_t (*f)();
(attributes == NULL))
return (PAPI_BAD_ARGUMENT);
return (result);
return (PAPI_TEMPORARY_ERROR);
if (f != NULL)
&j->job);
return (result);
}
/*
* The functions defined below are private to Solaris. They are here
* temporarily, until equivalent functionality makes it's way into the PAPI
* spec. This is expected in the next minor version after v1.0.
*/
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
return (PAPI_TEMPORARY_ERROR);
if (f != NULL)
job_ticket, &j->job);
return (result);
}
{
papi_status_t (*f)();
return (PAPI_BAD_ARGUMENT);
return (result);
if (f != NULL)
return (result);
}