_actions.c revision 591
591N/A * The contents of this file are subject to the terms of the 591N/A * Common Development and Distribution License (the "License"). 591N/A * You may not use this file except in compliance with the License. 591N/A * See the License for the specific language governing permissions 591N/A * and limitations under the License. 591N/A * When distributing Covered Code, include this CDDL HEADER in each 591N/A * If applicable, add the following below this CDDL HEADER, with the 591N/A * fields enclosed by brackets "[]" replaced with your own identifying 591N/A * information: Portions Copyright [yyyy] [name of copyright owner] 591N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 591N/A * Use is subject to license terms. 591N/A /* Shouldn't ever get here */ 591N/A * "slashmap" is a simple bitmap (bytemap?) 591N/A * keeping track of what characters are 591N/A * backslashes that need to be removed 591N/A * from the final attribute string. 591N/A * All other bytes are NUL bytes. 591N/A * Copy the attribute from str into 591N/A * sattr, removing backslashes as 591N/A * slashmap indicates we should. 591N/A * We need to retrieve the MalformedActionError object from pkg.actions. 591N/A * We can't import pkg.actions directly, because that would result in a 591N/A * circular dependency. But the "sys" module has a dict called 591N/A * "modules" which maps loaded module names to the corresponding module 591N/A * objects. We can then grab the exception from those objects. 591N/A /* No exception is set */