| plan 9 kernel history: overview | file list | diff list |
1992/0619/port/pgrp.c (diff list | history)
| 1992/0607/sys/src/9/port/pgrp.c:5,79 – 1992/0619/sys/src/9/port/pgrp.c:5,14 (short | long | prev | next) | ||
| 1990/0227 | #include "fns.h" | |
| 1992/0111 | #include "../port/error.h" | |
| 1990/0227 | ||
| 1992/0128 |
| |
| 1992/0619 | static Ref pgrpid; static Ref mountid; | |
| 1990/0227 | ||
| 1991/0705 |
| |
| 1990/0227 |
| |
| 1991/1011 |
| |
| 1990/0227 |
| |
| 1991/0705 |
| |
| 1990/0227 |
| |
| 1991/0705 |
| |
| 1991/1011 |
| |
| 1991/1127 |
| |
| 1990/0227 | ||
| 1992/0128 |
| |
| 1990/1110 |
| |
| 1990/0227 |
| |
| 1991/1011 |
| |
| 1990/1110 |
| |
| 1990/0227 |
| |
| 1991/1127 |
| |
| 1990/0227 |
| |
| 1990/0825 |
| |
| 1990/0227 | ||
| 1991/0705 |
| |
| 1991/1018 |
| |
| 1991/0705 |
| |
| 1990/0227 | ||
| 1991/0705 |
| |
| 1990/0227 |
| |
| 1990/1110 |
| |
| 1992/0428 | pgrpnote(ulong noteid, char *a, long n, int flag) | |
| 1990/1110 | { | |
| 1992/0428 | Proc *p, *ep; | |
| 1992/0607/sys/src/9/port/pgrp.c:109,130 – 1992/0619/sys/src/9/port/pgrp.c:44,55 | ||
| 1990/0227 | { Pgrp *p; | |
| 1991/0705 |
| |
| 1991/1127 |
| |
| 1991/0806 |
| |
| 1991/1011 |
| |
| 1991/0705 |
| |
| 1990/0227 |
| |
| 1991/0705 |
| |
| 1990/0227 |
| |
| 1992/0520 |
| |
| 1992/0619 | p = smalloc(sizeof(Pgrp)+sizeof(Crypt)); p->ref = 1; /* This needs to have its own arena for protection */ p->crypt = (Crypt*)((uchar*)p+sizeof(Pgrp)); p->pgrpid = incref(&pgrpid); return p; | |
| 1991/0705 | } Egrp* | |
| 1992/0607/sys/src/9/port/pgrp.c:132,150 – 1992/0619/sys/src/9/port/pgrp.c:57,68 | ||
| 1991/0705 | { Egrp *e; | |
| 1992/0520 |
| |
| 1992/0619 | e = smalloc(sizeof(Egrp)+sizeof(Env)*conf.npgenv); /* This is a sleazy hack to make malloc work .. devenv need rewriting. */ e->etab = (Env*)((uchar*)e+sizeof(Egrp)); e->ref = 1; return e; | |
| 1991/0705 | } Fgrp* | |
| 1992/0607/sys/src/9/port/pgrp.c:152,171 – 1992/0619/sys/src/9/port/pgrp.c:70,78 | ||
| 1991/0705 | { Fgrp *f; | |
| 1992/0520 |
| |
| 1992/0619 | f = smalloc(sizeof(Fgrp)); f->ref = 1; return f; | |
| 1991/0705 | } Fgrp* | |
| 1992/0607/sys/src/9/port/pgrp.c:221,235 – 1992/0619/sys/src/9/port/pgrp.c:128,138 | ||
| 1991/1011 | close(f->from); mountfree(f->mount); next = f->hash; | |
| 1992/0619 | free(f); | |
| 1990/0227 | } | |
| 1991/1011 | } | |
| 1990/0227 |
| |
| 1991/0212 | qunlock(&p->debug); | |
| 1990/0227 |
| |
| 1992/0619 | free(p); | |
| 1990/0227 | } } | |
| 1992/0607/sys/src/9/port/pgrp.c:243,252 – 1992/0619/sys/src/9/port/pgrp.c:146,153 | ||
| 1991/1018 | e = eg->etab; for(i=0; i<eg->nenv; i++, e++) envpgclose(e); | |
| 1991/0705 |
| |
| 1991/1018 |
| |
| 1991/0705 |
| |
| 1992/0619 | free(eg); | |
| 1991/0705 | } } | |
| 1992/0607/sys/src/9/port/pgrp.c:261,270 – 1992/0619/sys/src/9/port/pgrp.c:162,168 | ||
| 1991/0705 | if(c = f->fd[i]) close(c); | |
| 1992/0619 | free(f); | |
| 1991/0705 | } } | |
| 1992/0607/sys/src/9/port/pgrp.c:274,304 – 1992/0619/sys/src/9/port/pgrp.c:172,183 | ||
| 1990/0227 | { | |
| 1991/1011 | Mount *m, *f, *e; | |
| 1990/0227 | ||
| 1991/1011 |
| |
| 1990/0227 |
| |
| 1991/1011 |
| |
| 1990/0227 |
| |
| 1991/1011 |
| |
| 1990/0227 |
| |
| 1992/0520 |
| |
| 1992/0619 | m = smalloc(sizeof(Mount)); m->to = to; m->head = mh; incref(to); m->mountid = incref(&mountid); return m; | |
| 1990/0227 | } void | |
| 1992/0607/sys/src/9/port/pgrp.c:331,337 – 1992/0619/sys/src/9/port/pgrp.c:210,216 | ||
| 1991/1011 | for(h = from->mnthash; h < e; h++) { | |
| 1991/1113 | l = tom++; | |
| 1991/1011 | for(f = *h; f; f = f->hash) { | |
| 1992/0619 | mh = smalloc(sizeof(Mhead)); | |
| 1991/1011 | mh->from = f->from; incref(mh->from); *l = mh; | |
| 1992/0607/sys/src/9/port/pgrp.c:347,391 – 1992/0619/sys/src/9/port/pgrp.c:226,232 | ||
| 1991/1011 | runlock(&from->ns); } | |
| 1991/0514 | ||
| 1991/1011 |
| |
| 1992/0520 |
| |
| 1991/1011 |
| |
| 1992/0607/sys/src/9/port/pgrp.c:392,400 – 1992/0619/sys/src/9/port/pgrp.c:233,240 | ||
| 1991/1011 | for(f = m; f->next; f = f->next) close(f->to); | |
| 1992/0619 | ||
| 1991/1011 | close(f->to); | |
| 1992/0619 | free(f); | |
| 1990/0227 | } | |