devsons: remove #c/pgrpid
The process group id is essentially a unique id of the namespace but it was never well documented nor is it used by any program.
This commit is contained in:
parent
d0cc9e2eb6
commit
d919ad3b5e
4 changed files with 0 additions and 12 deletions
|
@ -17,7 +17,6 @@ cons \- console, clocks, process/process group ids, user, null, reboot, etc.
|
||||||
.B /dev/mordor
|
.B /dev/mordor
|
||||||
.B /dev/null
|
.B /dev/null
|
||||||
.B /dev/osversion
|
.B /dev/osversion
|
||||||
.B /dev/pgrpid
|
|
||||||
.B /dev/pid
|
.B /dev/pid
|
||||||
.B /dev/ppid
|
.B /dev/ppid
|
||||||
.B /dev/random
|
.B /dev/random
|
||||||
|
@ -247,9 +246,6 @@ The other files served by the
|
||||||
.I cons
|
.I cons
|
||||||
device are all single numbers:
|
device are all single numbers:
|
||||||
.TP 10
|
.TP 10
|
||||||
.B pgrpid
|
|
||||||
process group number
|
|
||||||
.TP
|
|
||||||
.B pid
|
.B pid
|
||||||
process number
|
process number
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -308,7 +308,6 @@ enum{
|
||||||
Qhostowner,
|
Qhostowner,
|
||||||
Qnull,
|
Qnull,
|
||||||
Qosversion,
|
Qosversion,
|
||||||
Qpgrpid,
|
|
||||||
Qpid,
|
Qpid,
|
||||||
Qppid,
|
Qppid,
|
||||||
Qrandom,
|
Qrandom,
|
||||||
|
@ -340,7 +339,6 @@ static Dirtab consdir[]={
|
||||||
"kprint", {Qkprint, 0, QTEXCL}, 0, DMEXCL|0440,
|
"kprint", {Qkprint, 0, QTEXCL}, 0, DMEXCL|0440,
|
||||||
"null", {Qnull}, 0, 0666,
|
"null", {Qnull}, 0, 0666,
|
||||||
"osversion", {Qosversion}, 0, 0444,
|
"osversion", {Qosversion}, 0, 0444,
|
||||||
"pgrpid", {Qpgrpid}, NUMSIZE, 0444,
|
|
||||||
"pid", {Qpid}, NUMSIZE, 0444,
|
"pid", {Qpid}, NUMSIZE, 0444,
|
||||||
"ppid", {Qppid}, NUMSIZE, 0444,
|
"ppid", {Qppid}, NUMSIZE, 0444,
|
||||||
"random", {Qrandom}, 0, 0444,
|
"random", {Qrandom}, 0, 0444,
|
||||||
|
@ -504,9 +502,6 @@ consread(Chan *c, void *buf, long n, vlong off)
|
||||||
case Qkprint:
|
case Qkprint:
|
||||||
return qread(kprintoq, buf, n);
|
return qread(kprintoq, buf, n);
|
||||||
|
|
||||||
case Qpgrpid:
|
|
||||||
return readnum((ulong)offset, buf, n, up->pgrp->pgrpid, NUMSIZE);
|
|
||||||
|
|
||||||
case Qpid:
|
case Qpid:
|
||||||
return readnum((ulong)offset, buf, n, up->pid, NUMSIZE);
|
return readnum((ulong)offset, buf, n, up->pid, NUMSIZE);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ enum {
|
||||||
Whinesecs = 10, /* frequency of out-of-resources printing */
|
Whinesecs = 10, /* frequency of out-of-resources printing */
|
||||||
};
|
};
|
||||||
|
|
||||||
static Ref pgrpid;
|
|
||||||
static Ref mountid;
|
static Ref mountid;
|
||||||
|
|
||||||
Pgrp*
|
Pgrp*
|
||||||
|
@ -19,7 +18,6 @@ newpgrp(void)
|
||||||
|
|
||||||
p = smalloc(sizeof(Pgrp));
|
p = smalloc(sizeof(Pgrp));
|
||||||
p->ref = 1;
|
p->ref = 1;
|
||||||
p->pgrpid = incref(&pgrpid);
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -474,7 +474,6 @@ struct Pgrp
|
||||||
Ref;
|
Ref;
|
||||||
RWlock ns; /* Namespace n read/one write lock */
|
RWlock ns; /* Namespace n read/one write lock */
|
||||||
int noattach;
|
int noattach;
|
||||||
ulong pgrpid;
|
|
||||||
Mhead *mnthash[MNTHASH];
|
Mhead *mnthash[MNTHASH];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue