355b4669e025ff377602b6fc7caaf30dbc218371jacobs * CDDL HEADER START
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * The contents of this file are subject to the terms of the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Common Development and Distribution License (the "License").
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * You may not use this file except in compliance with the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * See the License for the specific language governing permissions
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * and limitations under the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * When distributing Covered Code, include this CDDL HEADER in each
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * If applicable, add the following below this CDDL HEADER, with the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * fields enclosed by brackets "[]" replaced with your own identifying
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * information: Portions Copyright [yyyy] [name of copyright owner]
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * CDDL HEADER END
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs * Use is subject to license terms.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs/* $Id: lpd-cancel.c 155 2006-04-26 02:34:54Z ktou $ */
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India else if ((strstr(buf, "permission denied") != NULL) ||
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India (strstr(buf, "not-authorized") != NULL))
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India (strstr(buf, "removed") != NULL))
355b4669e025ff377602b6fc7caaf30dbc218371jacobs /* if we canceled it, add it to the list */
355b4669e025ff377602b6fc7caaf30dbc218371jacobs papiAttributeListAddString(&attributes, PAPI_ATTR_EXCL,
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India "job-name", ptr);
355b4669e025ff377602b6fc7caaf30dbc218371jacobs papiAttributeListAddInteger(&attributes, PAPI_ATTR_EXCL,
6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6sonam gupta - Sun Microsystems - Bangalore India "job-id", id);
355b4669e025ff377602b6fc7caaf30dbc218371jacobs papiAttributeListAddString(&attributes, PAPI_ATTR_EXCL,