char *t_alloc (fd, struct_type, fields) int fd; int struct_type; int fields; struct_type parameter can be one of the following: T_BIND struct t_bind T_CALL struct t_call T_OPTMGMT struct t_optmgmt T_DIS struct t_discon T_UNITDATA struct t_unitdata T_UDERROR struct t_uderr T_INFO struct t_info Each of the above structures, except T_INFO, contains at least one field of the struct netbuf type. The netbuf structure is described in the tiuser.h file. For each field of this type, the user may specify that the buffer for that field should be allo- cated as well. The fields parameter specifies this option, where the parameter is the bitwise-OR of any of the following: T_ADDR The addr field of the t_bind, t_call, t_unitdata, or t_uderr structure. T_OPT The opt field of the t_optmgmt, t_call, t_unitdata, or t_uderr structure. T_UDATA The udata field of the t_call, t_discon, or t_unitdata structure. T_ALL All relevant fields of the given structure. int t_accept (fd, resfd, call) int fd; int resfd; struct t_call *call; int t_bind(fd, req, ret) int fd; struct t_bind *req; struct t_bind *ret; int t_close(fd) int fd; int t_connect(fd, sndcall, rcvcall) int fd; struct t_call *sndcall; struct t_call *rcvcall; void t_error(errmsg) char *errmsg; extern int t_errno; extern char *t_errno; extern int t_nerr; int t_free(ptr, struct_type) char *ptr; int struct_type; int t_getinfo(fd, info) int fd; struct t_info *info; int t_getstate(fd) int fd; int t_listen(fd, call) int fd; struct t_call *call; int t_look(fd) int fd; int t_open(path, oflag, info) char *path; int oflag; struct t_info *info; int t_optmgmt(fd, req, ret) int fd; struct t_optmgmt *req; struct t_optmgmt *ret; int t_rcv(fd, buf, nbytes, flags) int fd; char *buf; unsigned nbytes; int *flags; int t_rcvconnect(fd, call) int fd; struct t_call *call; int t_rcvdis(fd, discon) int fd; struct t_discon *discon; int t_rcvrel(fd) int fd; int t_rcvudata(fd, unitdata, flags) int fd; struct t_unitdata *unitdata; int *flags; int t_rcvuderr(fd, uderr) int fd; struct t_uderr *uderr; int t_snd(fd, buf, nbytes, flags) int fd; char *buf; unsigned nbytes; int flags; int t_snddis(fd, call) int fd; struct t_call *call; int t_sndrel(fd) int fd; int t_sndudata(fd, unidata) int fd; struct t_unidata *unitdata; int t_sync(fd) int fd; int t_unbind(fd) int fd;