diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 14:59:19 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 14:59:19 +0100 |
commit | d919ad3b5e8e98d7470275d724772de221e060f6 (patch) | |
tree | a28223f80f6fbfc55b048b60b062b49313bca919 | |
parent | d0cc9e2eb65222edb244f93d97d062e6f4eb5e7e (diff) | |
download | plan9front-d919ad3b5e8e98d7470275d724772de221e060f6.tar.xz |
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.
-rw-r--r-- | sys/man/3/cons | 4 | ||||
-rw-r--r-- | sys/src/9/port/devcons.c | 5 | ||||
-rw-r--r-- | sys/src/9/port/pgrp.c | 2 | ||||
-rw-r--r-- | sys/src/9/port/portdat.h | 1 |
4 files changed, 0 insertions, 12 deletions
diff --git a/sys/man/3/cons b/sys/man/3/cons index b898ebbab..96d6d6b62 100644 --- a/sys/man/3/cons +++ b/sys/man/3/cons @@ -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 diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index 3fda55399..eb60d411e 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -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); diff --git a/sys/src/9/port/pgrp.c b/sys/src/9/port/pgrp.c index 408370d35..9f9fb0b65 100644 --- a/sys/src/9/port/pgrp.c +++ b/sys/src/9/port/pgrp.c @@ -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; } diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index a5cdafa6a..417aa27e4 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -474,7 +474,6 @@ struct Pgrp Ref; RWlock ns; /* Namespace n read/one write lock */ int noattach; - ulong pgrpid; Mhead *mnthash[MNTHASH]; }; |