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 (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * This function sets the error indicator for the specified stream. 2N/A * This is a private API for the L10N method functions, especially 2N/A * The stream needs to have been properly locked. Usually, the wrapper 2N/A * function of fgetwc() locks the stream. 2N/A * _WC_MODE if iop has been bound to Wide orientation 2N/A * _BYTE_MODE if iop has been bound to Byte orientation 2N/A * _NO_MODE if iop has been bound to neither Wide nor Byte 2N/A * flag may take one of the following: 2N/A * _WC_MODE Wide orientation 2N/A * _BYTE_MODE Byte orientation 2N/A * _NO_MODE Unoriented 2N/A * From page 32 of XSH5 2N/A * Once a wide-character I/O function has been applied 2N/A * to a stream without orientation, the stream becomes 2N/A * wide-orientated. Similarly, once a byte I/O function 2N/A * has been applied to a stream without orientation, 2N/A * the stream becomes byte-orientated. Only a call to 2N/A * the freopen() function or the fwide() function can 2N/A * otherwise alter the orientation of a stream. 2N/A * _set_orientation_byte(FILE *iop) 2N/A * Note: this is now implemented as macro __SET_ORIENTATION_BYTE() 2N/A/* Returns the value of 'ps->__nconsumed' */ 2N/A/* Sets 'n' to 'ps->__nconsumed' */ 2N/A/* Copies 'len' bytes from '&ps->__consumed[index]' to 'str' */ 2N/A /* The max size of __consumed[] is 8 */ 2N/A/* Copies 'len' bytes from 'str' to '&ps->__consumed[index]' */ 2N/A /* The max size of __consumed[] is 8 */ 2N/A/* Returns 'ps->__lc_locale' */ 2N/A/* Sets 'loc' to 'ps->__lc_locale' */