| plan 9 kernel history: overview | file list | diff list |
1991/1113/port/pgrp.c (diff list | history)
| 1991/1112/sys/src/9/port/pgrp.c:313,332 – 1991/1113/sys/src/9/port/pgrp.c:313,333 (short | long | prev | next) | ||
| 1991/0514 | void pgrpcpy(Pgrp *to, Pgrp *from) { | |
| 1991/1011 |
| |
| 1991/1113 | Mhead **h, **e, *f, **tom, **l, *mh; | |
| 1991/1011 | Mount *n, *m, **link; | |
| 1991/0514 | ||
| 1991/1011 | rlock(&from->ns); e = &from->mnthash[MNTHASH]; | |
| 1991/1113 | tom = to->mnthash; | |
| 1991/1011 | for(h = from->mnthash; h < e; h++) { | |
| 1991/1113 | l = tom++; | |
| 1991/1011 | for(f = *h; f; f = f->hash) { mh = newmnthead(); mh->from = f->from; incref(mh->from); | |
| 1991/1113 | l = &mh->hash; | |
| 1991/1011 | link = &mh->mount; for(m = f->mount; m; m = m->next) { n = newmount(mh, m->to); | |