Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
tcsetattr(3) OSS Library Calls Reference Manual
NOTES
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, you can use |
this function with 32-bit or 64-bit OSS applications.
RETURN VALUES
Upon successful completion, the value 0 (zero) is returned. Otherwise, the value -1 is returned
and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the tcsetattr( ) function sets errno to the correspond-
ing value:
[EBADF] The filedes parameter is not a valid file descriptor.
[EFAULT] The system detected a bad address while processing a parameter of the function
call.
[EINTR] A signal interrupted the tcsetattr( ) function.
[EINVAL] The optional_actions parameter is not a proper value.
[EIO] One of the following conditions exists:
• The process group of the caller is orphaned and the caller is not ignoring
or blocking the SIGTTOU signal.
• An input/or output error occurred. The device holding the terminal file
might be in the down state, or both processors that provide access to the
device might have failed.
[EISGUARDIAN]
The value used for the filedes parameter is appropriate only in the Guardian
environment.
[ENETDOWN]
The filedes parameter specifies a file in /E (a remote $ZTNT process) but com-
munication with the remote node has been lost.
[ENOTTY] The file associated with the filedes parameter is not a terminal.
[EWRONGID] The function was called for an operation involving an operating system
input/output process (IOP) that is in a down state or has failed.
RELATED INFORMATION
Functions: cfsetospeed(3), tcgetattr(3).
Files: termios(4).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specification:
• The tcsetattr( ) function can return the errno values [EFAULT], [EIO], [EISGUAR-
DIAN], [ENETDOWN], and [EWRONGID].
7−22 Hewlett-Packard Company 527187-017