dl.c revision 98c080d502548e68bb9815459ea56e6ae282c430
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 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 2010 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Ensure that Conv_dl_mode_buf_t is large enough: 2N/A * MODESZ is the real minimum size of the buffer required by conv_dl_mode(). 2N/A * However, Conv_dl_mode_buf_t uses CONV_DL_MODE_BUFSIZE to set the 2N/A * buffer size. We do things this way because the definition of MODESZ uses 2N/A * information that is not available in the environment of other programs 2N/A#
error "CONV_DL_MODE_BUFSIZE does not match MODESZ" 2N/A * String conversion routine for dlopen() attributes. 2N/A * strings in conv_dl_flag(), depending on the value of the separator 2N/A * argument. To size the buffer, I use the default prefix and suffix 2N/A * sizes, and the alternate separator size, because they are larger. 2N/A * Ensure that Conv_dl_flag_buf_t is large enough: 2N/A * FLAGSZ is the real minimum size of the buffer required by conv_dl_flag(). 2N/A * However, Conv_dl_flag_buf_t uses CONV_DL_FLAG_BUFSIZE to set the 2N/A * buffer size. We do things this way because the definition of FLAGSZ uses 2N/A * information that is not available in the environment of other programs 2N/A#
error "CONV_DL_FLAG_BUFSIZE does not match FLAGSZ" 2N/A * String conversion routine for dldump() flags. 2N/A * crle(1) uses this routine to generate update information, and in this case 2N/A * we build a "|" separated string. 2N/A }
else {
/* Use default delimiters */ #
error "RTLD_DI_MAX has grown"