diff options
| author | rsc <rsc> | 2006-09-06 18:43:45 +0000 |
|---|---|---|
| committer | rsc <rsc> | 2006-09-06 18:43:45 +0000 |
| commit | 50e514be986e4d5b136879d1221b721b17493a78 (patch) | |
| tree | 02143f4bb428485d156c4671b35e31180aa5822c /proc.c | |
| parent | 9936bffa45c928ead9660a0df32d08a50b2b09c2 (diff) | |
| download | xv6-labs-2022-50e514be986e4d5b136879d1221b721b17493a78.tar.xz xv6-labs-2022-50e514be986e4d5b136879d1221b721b17493a78.zip | |
fd_* => file_*
Diffstat (limited to 'proc.c')
| -rw-r--r-- | proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -127,7 +127,7 @@ copyproc(struct proc *p) for(i = 0; i < NOFILE; i++){ np->ofile[i] = p->ofile[i]; if(np->ofile[i]) - fd_incref(np->ofile[i]); + fileincref(np->ofile[i]); } np->cwd = p->cwd; @@ -329,7 +329,7 @@ proc_exit(void) // Close all open files. for(fd = 0; fd < NOFILE; fd++){ if(cp->ofile[fd]){ - fd_close(cp->ofile[fd]); + fileclose(cp->ofile[fd]); cp->ofile[fd] = 0; } } |
