Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

ctermid(3) OSS Library Calls Reference Manual
RELATED INFORMATION
Functions: ttyname(3).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
If the s parameter is a null pointer, the string is stored in an internal static area and the
address is returned. The next call to the ctermid() function overwrites the contents of
the internal static area.
The following are HP extensions to the XPG4 Version 2 specification:
The error values [ENOMEM] and [ENOTOSS] can be returned.
1166 Hewlett-Packard Company 527187-017