/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*/
int b_flags; /* buffer status */
int b_error; /* expanded error field */
} bufinfo_t;
};
int dev_major; /* major number */
int dev_minor; /* minor number */
int dev_instance; /* instance number */
} devinfo_t;
};
int fi_oflags; /* open(2) flags for file descriptor */
} fileinfo_t;
fi_oflags = 0;
};
/*
* The following inline constants can be used to examine fi_oflags when using
* the fds[] array or a translated fileinfo_t. Note that the various open
* flags behave as a bit-field *except* for O_RDONLY, O_WRONLY, and O_RDWR.
* To test the open mode, you write code similar to that used with the fcntl(2)
* F_GET[X]FL command, such as: if ((fi_oflags & O_ACCMODE) == O_WRONLY).
*/
};
};