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) 1996, by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * m_pathmax: mks specific library routine. 2N/A * Copyright 1992 by Mortice Kern Systems Inc. All rights reserved. 2N/A * - Determine current configuration value for PC_PATH_MAX 2N/A * relative to 'path'. 2N/A * - If 'path' is NULL, then relative to "/" 2N/A * configuration value 2N/A * or M_PATH_MAX if configuration value is indeterminate 2N/A * or -1 and errno is set if there's a problem with 'path' 2N/A * unlimited size - so we use M_PATH_MAX 2N/A * - use a sufficiently LARGE number (e.g 1024 or 2048) 2N/A /* ASSUME: cannot get errno = EINVAL because PC_PATH_MAX * must be supported, and must 2N/A * be associated with all *valid* 'path's 2N/A * (if 'path' is not valid, then we 2N/A * should get ENOENT or ENOTDIR, 2N/A printf(
"pathconf() = -1 and errno = EINVAL\n");
2N/A * "make m_pathma COPTS=TEST" - using MKS make and MKS environment 2N/A * "cc -o m_pathma -DTEST m_pathma.c" - to get sunos std libraries