I_GRDOPT streamio Operation

Purpose

Returns the current read mode setting.

Description

The I_GRDOPT operation returns the current read mode setting in an int parameter pointed to by the arg parameter. Read modes are described in the read subroutine description.

This operation is part of STREAMS Kernel Extensions.

Error Codes

If unsuccessful, the errno global variable is set to the following value:

Value Description
EFAULT The arg parameter points outside the allocated address space.