| plan 9 kernel history: overview | file list | diff list |
1991/0421/port/dev.c (diff list | history)
| 1991/0414/sys/src/9/port/dev.c:71,82 – 1991/0421/sys/src/9/port/dev.c:71,83 (short | long | prev | next) | ||
|
Copy nc->aux in devclone. Bug fix confusion: now walk is returning on error.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1990/0227 | if(nc == 0) nc = newchan(); nc->type = c->type; | |
| 1991/0421 | nc->dev = c->dev; | |
| 1990/0227 | nc->mode = c->mode; nc->qid = c->qid; nc->offset = c->offset; | |
| 1991/0421 | nc->aux = c->aux; | |
| 1990/0303 | nc->mchan = c->mchan; nc->mqid = c->mqid; | |
| 1990/0227 | return nc; | |
| 1991/0414/sys/src/9/port/dev.c:119,125 – 1991/0421/sys/src/9/port/dev.c:120,129 | ||
| 1991/0414 | return 0; } nc = (*devtab[c->type].clone)(c, 0); | |
| 1991/0421 | if((*devtab[nc->type].walk)(nc, name) == 0){ close(nc); nc = 0; } | |
| 1991/0414 | poperror(); return nc; | |
| 1991/0411 | } | |