HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
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).
STANDARDS CONFORMANCE
t_alloc(): SVID2, XPG3, XPG4
HP-UX 11i Version 2: September 2004 − 2 − Hewlett-Packard Company Section 3−−1047