tpi_close.lc 692 B

1234567891011121314151617
  1. #include "tpi_daytime.h"## 1 ##src/streams/tpi_close.c##
  2. void## 2 ##src/streams/tpi_close.c##
  3. tpi_close(int fd)## 3 ##src/streams/tpi_close.c##
  4. {## 4 ##src/streams/tpi_close.c##
  5. struct T_ordrel_req ordrel_req;## 5 ##src/streams/tpi_close.c##
  6. struct strbuf ctlbuf;## 6 ##src/streams/tpi_close.c##
  7. ordrel_req.PRIM_type = T_ORDREL_REQ;## 7 ##src/streams/tpi_close.c##
  8. ctlbuf.len = sizeof(struct T_ordrel_req);## 8 ##src/streams/tpi_close.c##
  9. ctlbuf.buf = (char *) &ordrel_req;## 9 ##src/streams/tpi_close.c##
  10. Putmsg(fd, &ctlbuf, NULL, 0);## 10 ##src/streams/tpi_close.c##
  11. Close(fd);## 11 ##src/streams/tpi_close.c##
  12. }## 12 ##src/streams/tpi_close.c##