-------------------------------------------------------------------------*\ * Creates and sets up a socket \*-------------------------------------------------------------------------*/
| 122 | * Creates and sets up a socket |
| 123 | \*-------------------------------------------------------------------------*/ |
| 124 | int socket_create(p_socket ps, int domain, int type, int protocol) { |
| 125 | *ps = socket(domain, type, protocol); |
| 126 | if (*ps != SOCKET_INVALID) return IO_DONE; |
| 127 | else return errno; |
| 128 | } |
| 129 | |
| 130 | /*-------------------------------------------------------------------------*\ |
| 131 | * Binds or returns error message |
no outgoing calls
no test coverage detected