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:
cinap_lenrek 2020-12-19 14:59:19 +01:00
parent d0cc9e2eb6
commit d919ad3b5e
4 changed files with 0 additions and 12 deletions

View file

@ -17,7 +17,6 @@ cons \- console, clocks, process/process group ids, user, null, reboot, etc.
.B /dev/mordor
.B /dev/null
.B /dev/osversion
.B /dev/pgrpid
.B /dev/pid
.B /dev/ppid
.B /dev/random
@ -247,9 +246,6 @@ The other files served by the
.I cons
device are all single numbers:
.TP 10
.B pgrpid
process group number
.TP
.B pid
process number
.TP

View file

@ -308,7 +308,6 @@ enum{
Qhostowner,
Qnull,
Qosversion,
Qpgrpid,
Qpid,
Qppid,
Qrandom,
@ -340,7 +339,6 @@ static Dirtab consdir[]={
"kprint", {Qkprint, 0, QTEXCL}, 0, DMEXCL|0440,
"null", {Qnull}, 0, 0666,
"osversion", {Qosversion}, 0, 0444,
"pgrpid", {Qpgrpid}, NUMSIZE, 0444,
"pid", {Qpid}, NUMSIZE, 0444,
"ppid", {Qppid}, NUMSIZE, 0444,
"random", {Qrandom}, 0, 0444,
@ -504,9 +502,6 @@ consread(Chan *c, void *buf, long n, vlong off)
case Qkprint:
return qread(kprintoq, buf, n);
case Qpgrpid:
return readnum((ulong)offset, buf, n, up->pgrp->pgrpid, NUMSIZE);
case Qpid:
return readnum((ulong)offset, buf, n, up->pid, NUMSIZE);

View file

@ -9,7 +9,6 @@ enum {
Whinesecs = 10, /* frequency of out-of-resources printing */
};
static Ref pgrpid;
static Ref mountid;
Pgrp*
@ -19,7 +18,6 @@ newpgrp(void)
p = smalloc(sizeof(Pgrp));
p->ref = 1;
p->pgrpid = incref(&pgrpid);
return p;
}

View file

@ -474,7 +474,6 @@ struct Pgrp
Ref;
RWlock ns; /* Namespace n read/one write lock */
int noattach;
ulong pgrpid;
Mhead *mnthash[MNTHASH];
};