version 1.31, 2009/01/23 17:38:15 |
version 1.32, 2009/07/25 08:44:27 |
|
|
} |
} |
|
|
int |
int |
|
aproc_depend(struct aproc *p, struct aproc *dep) |
|
{ |
|
struct abuf *i; |
|
|
|
if (p == dep) |
|
return 1; |
|
LIST_FOREACH(i, &p->ibuflist, ient) { |
|
if (i->wproc && aproc_depend(i->wproc, dep)) |
|
return 1; |
|
} |
|
return 0; |
|
} |
|
|
|
int |
rpipe_in(struct aproc *p, struct abuf *ibuf_dummy) |
rpipe_in(struct aproc *p, struct abuf *ibuf_dummy) |
{ |
{ |
struct abuf *obuf = LIST_FIRST(&p->obuflist); |
struct abuf *obuf = LIST_FIRST(&p->obuflist); |
|
|
unsigned char *data; |
unsigned char *data; |
unsigned count; |
unsigned count; |
|
|
if (f->refs > 0) |
if (f->state & FILE_RINUSE) |
return 0; |
return 0; |
DPRINTFN(3, "rpipe_out: %s\n", p->name); |
DPRINTFN(3, "rpipe_out: %s\n", p->name); |
|
|
|
|
unsigned char *data; |
unsigned char *data; |
unsigned count; |
unsigned count; |
|
|
if (f->refs > 0) |
if (f->state & FILE_WINUSE) |
return 0; |
return 0; |
DPRINTFN(3, "wpipe_in: %s\n", p->name); |
DPRINTFN(3, "wpipe_in: %s\n", p->name); |
|
|