t_alloc.3 (2010 09)

t
t_alloc(3) t_alloc(3)
RETURN VALUE
Upon successful completion, t_alloc() returns a pointer to the newly allocated structure. On failure,
a null pointer is returned.
ERRORS
On failure,
t_errno is set to one of the following:
[TBADF] fd, the specified endpoint identifier, does not refer to a transport endpoint.
[TSYSERR] A system error has occurred during execution of this function.
[TPROTO] (XTI only) This error indicates that a communication problem has been detected between
XTI and the transport provider for which there is no suitable XTI (
t_errno).
[TNOSTRUCTYPE]
Unsupported struct_type requested. This can include a request for a structure type
which is inconsistent with the transport provider type specified, that is, connection-
oriented or connectionless.
SEE ALSO
t_free(3), t_getinfo(3), t_open(3), thread_safety(5).
STANDARDS CONFORMANCE
t_alloc(): SVID2, XPG3, XPG4
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010