| plan 9 kernel history: overview | file list | diff list |
1991/0712/port/devproc.c (diff list | history)
| 1991/0705/sys/src/9/port/devproc.c:19,24 – 1991/0712/sys/src/9/port/devproc.c:19,25 (short | long | prev | next) | ||
| 1990/0227 | Qtext, }; | |
| 1991/0712 | #define STATSIZE (2*NAMELEN+12+6*12) | |
| 1990/0227 | Dirtab procdir[]={ | |
| 1990/11211 | "ctl", {Qctl}, 0, 0600, "mem", {Qmem}, 0, 0600, | |
| 1991/0705/sys/src/9/port/devproc.c:26,32 – 1991/0712/sys/src/9/port/devproc.c:27,33 | ||
| 1990/11211 | "notepg", {Qnotepg}, 0, 0200, "proc", {Qproc}, sizeof(Proc), 0600, | |
| 1991/0705 | "segment", {Qsegment}, 0, 0400, | |
| 1990/11211 |
| |
| 1991/0712 | "status", {Qstatus}, STATSIZE, 0600, | |
| 1990/11211 | "text", {Qtext}, 0, 0600, | |
| 1990/0227 | }; | |
| 1991/0705/sys/src/9/port/devproc.c:348,364 – 1991/0712/sys/src/9/port/devproc.c:349,366 | ||
| 1990/0227 | return n; case Qstatus: | |
| 1991/0411 |
| |
| 1991/0712 | if(offset >= STATSIZE) | |
| 1990/0227 | return 0; | |
| 1991/0411 |
| |
| 1990/0227 |
| |
| 1991/0712 | if(offset+n > STATSIZE) n = STATSIZE - offset; j = sprint(statbuf, "%-27s %-27s %-11s ", p->text, p->pgrp->user, statename[p->state]); | |
| 1990/0227 | for(i=0; i<6; i++){ l = p->time[i]; if(i == TReal) l = MACHP(0)->ticks - l; | |
| 1990/0614 | l = TK2MS(l); | |
| 1990/0227 |
| |
| 1991/0712 | readnum(0, statbuf+j+NUMSIZE*i, NUMSIZE, l, NUMSIZE); | |
| 1990/0227 | } | |
| 1991/0411 | memmove(a, statbuf+offset, n); | |
| 1990/0227 | return n; | |