sockets: recv

This commit is contained in:
Matheus
2022-10-18 13:28:06 -03:00
parent 2b9cdff5ba
commit 1a48d652f5
3 changed files with 62 additions and 3 deletions
+3
View File
@@ -146,6 +146,9 @@ int vfs_read(int* error, vnode_t* node, void* buff, size_t count, size_t offset)
int type = GETTYPE(node->st.st_mode);
if(type == TYPE_SOCKET)
return socket_recv(node->objdata, buff, count, 0, error);
if(type == TYPE_FIFO){
return pipe_read(node->objdata, buff, count, error);
}