struct t_call *nlsgetcall(int fd);
The t_call structure returned by nlsgetcall can be released using t_free(3xti).
nlsgetcall returns the
address of an allocated t_call structure or
NULL if a t_call structure cannot be allocated.
If the t_alloc succeeds, undefined
environment variables are indicated
by a negative
len field in the appropriate netbuf structure.
len field of zero in the netbuf structure is valid and means
that the original buffer in the listener's t_call structure was NULL.
len) in the appropriate netbuf structure.
lenfield in the netbuf structure is defined as being unsigned. In order to check for error returns, it should first be cast to an int.
The listener process limits the amount of user data (
and options data (
opt) to 128 bytes each.
addr is limited to 64 bytes.
If the original data was longer, no indication of overflow is given.
Server processes must call t_sync(3xti) before calling this routine.