test06.c 299 B

12345678910111213141516171819
  1. #include "unpxti.h"
  2. int
  3. main(int argc, char **argv)
  4. {
  5. int fd;
  6. struct t_call *tcall;
  7. fd = T_open(XTI_TCP, O_RDWR, NULL);
  8. tcall = T_alloc(fd, T_CALL, T_ALL);
  9. printf("first t_alloc OK\n");
  10. tcall = T_alloc(fd, T_CALL, T_ADDR | T_OPT | T_UDATA);
  11. printf("second t_alloc OK\n");
  12. exit(0);
  13. }