4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
29 * Use is subject to license terms.
36 #include <sys/types.h>
49 * This function/macro gets the orientation bound to the specified iop.
52 * _WC_MODE if iop has been bound to Wide orientation
53 * _BYTE_MODE if iop has been bound to Byte orientation
54 * _NO_MODE if iop has been bound to neither Wide nor Byte
57 _getorientation(FILE *iop
)
59 if (GET_BYTE_MODE(iop
))
61 else if (GET_WC_MODE(iop
))
69 * This function/macro sets the orientation to the specified iop.
72 * flag may take one of the following:
73 * _WC_MODE Wide orientation
74 * _BYTE_MODE Byte orientation
78 _setorientation(FILE *iop
, _IOP_orientation_t mode
)