fs: added some checks

This commit is contained in:
Matheus
2024-05-30 10:18:44 -03:00
parent 1821e0cb52
commit b13b317172
3 changed files with 23 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ int pipefs_close(vnode_t *node, int flags, cred_t *cred) {
return 0;
}
// TODO for pipefs_read and pipefs_write, the return actually depends on how much data is in the pipe
static int internalpoll(vnode_t *node, polldata_t *data, int events) {
pipenode_t *pipenode = (pipenode_t *)node;
int revents = 0;