mdesc_getproparcs.c revision 908f1e1388f616898b4e515d343c0414f2a6472e
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * CDDL HEADER START
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * The contents of this file are subject to the terms of the
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * Common Development and Distribution License (the "License").
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * You may not use this file except in compliance with the License.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * See the License for the specific language governing permissions
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * and limitations under the License.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * When distributing Covered Code, include this CDDL HEADER in each
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * If applicable, add the following below this CDDL HEADER, with the
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * fields enclosed by brackets "[]" replaced with your own identifying
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * information: Portions Copyright [yyyy] [name of copyright owner]
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * CDDL HEADER END
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * Use is subject to license terms.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws#pragma ident "%Z%%M% %I% %E% SMI"
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmwsstatic int md_find_node_arcs(md_impl_t *, mde_cookie_t, mde_str_cookie_t, int,
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * Return an array containing the node indexes for the arcs in
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * the given node. The array is allocated using the allocator
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * defined at machine description initialization time and the
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * number of arcs found returned.
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * Input Description
1a7c1b724419d3cb5fa6eea75123c6b2060ba31bmws * ------------------- ----------------------------------------
int result;
arcsize);
return (result);
int result;
int idx;
result = 0;
result++;
return (result);