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 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1988 AT&T */ 2N/A/* All Rights Reserved */ 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * 32-bit shadow functions _vscanf_c89(), _vfscanf_c89(), _vsscanf_c89() 2N/A * are included here. 2N/A * When using the c89 compiler to build 32-bit applications, the size 2N/A * of intmax_t is 32-bits, otherwise the size of intmax_t is 64-bits. 2N/A * The shadow function uses 32-bit size of intmax_t for %j conversion. 2N/A * The #pragma redefine_extname in <stdio.h> selects the proper routine 2N/A * at compile time for the user application. 2N/A * NOTE: the shadow function only exists in the 32-bit library. 2N/A * The dummy FILE * created for sscanf has the _IOWRT 2N/A * flag set to distinguish it from scanf and fscanf 2N/A * Mark the stream so that routines called by __doscan_u() 2N/A * do not do any locking. In particular this avoids a NULL 2N/A * lock pointer being used by getc() causing a core dump. 2N/A * See bugid - 1210179 program SEGV's in sscanf if linked with 2N/A * This also makes sscanf() quicker since it does not need 2N/A * to do any locking. 2N/A return (-
1);
/* this should never happen */ 2N/A /* as this stream is local to this function, no locking is be done */