| 96 | // General |
| 97 | |
| 98 | T_ERRCODE socket_create(p_socket sock, int domain, int type, int protocol) { |
| 99 | *sock = socket(domain, type, protocol); |
| 100 | if (*sock > 0) { |
| 101 | return SUCCESS; |
| 102 | } else { |
| 103 | return errno; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | T_ERRCODE socket_destroy(p_socket sock) { |
| 108 | // TODO Figure out if I should be free-ing this |
no outgoing calls
no test coverage detected