2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Copyright (c) 1997-2000 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ 2N/A /* wild == 1 allow wildcard specification as a name */ 2N/A /* check for reserved package names */ 2N/A * check for valid extensions; we must do this 2N/A * first since we need to look for SVR3 ".name" 2N/A * before we validate the package abbreviation 2N/A return (0);
/* SVR3 packages have no validation */ 2N/A /* wildcard specification */ 2N/A /* check for valid package name */ 2N/A /* Check for ABI package name length */ 2N/A return (0);
/* pkg is valid */ 2N/A/* presvr4flg - check for pre-svr4 package names also ? */ 2N/A /* pkg is assumed to be non-NULL upon entry */ 2N/A * this routine reacts based on the value passed in spec: 2N/A * NULL pkg must be valid and may be a wildcard spec 2N/A * "all" pkg must be valid and must be an instance 2N/A * "x.*" pkg must be valid and must be an instance of "x" 2N/A * "x*" pkg must be valid and must be an instance of "x" 2N/A return (
1);
/* invalid or reserved name */ 2N/A break;
/* wildcard spec, so stop right here */ 2N/A return (0);
/* identical match */ 2N/A return (0);
/* compare pkg.name to pkg */