summaryrefslogtreecommitdiff
path: root/pipe.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 18:06:04 +0000
committerrsc <rsc>2006-09-06 18:06:04 +0000
commitd4c64e5d434d8b9ef4488dddbe8807aed9fd7e98 (patch)
treef692dd2db0eb474cc8282925acbc74ccb9abb8b1 /pipe.c
parent48b824703b35e17965c738743c7394e1fc0017ec (diff)
downloadxv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.tar.gz
xv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.tar.bz2
xv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.zip
writeable => writable
Diffstat (limited to 'pipe.c')
-rw-r--r--pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pipe.c b/pipe.c
index 6df4fbf..a1c9001 100644
--- a/pipe.c
+++ b/pipe.c
@@ -37,11 +37,11 @@ pipe_alloc(struct fd **fd1, struct fd **fd2)
initlock(&p->lock, "pipe");
(*fd1)->type = FD_PIPE;
(*fd1)->readable = 1;
- (*fd1)->writeable = 0;
+ (*fd1)->writable = 0;
(*fd1)->pipe = p;
(*fd2)->type = FD_PIPE;
(*fd2)->readable = 0;
- (*fd2)->writeable = 1;
+ (*fd2)->writable = 1;
(*fd2)->pipe = p;
return 0;
oops:
@@ -59,11 +59,11 @@ pipe_alloc(struct fd **fd1, struct fd **fd2)
}
void
-pipe_close(struct pipe *p, int writeable)
+pipe_close(struct pipe *p, int writable)
{
acquire(&p->lock);
- if(writeable){
+ if(writable){
p->writeopen = 0;
wakeup(&p->readp);
} else {