plan 9 kernel history: overview | file list | diff list

1992/0428/port/devcons.c (diff list | history)

1992/0411/sys/src/9/port/devcons.c:325,3741992/0428/sys/src/9/port/devcons.c:325,376 (short | long | prev | next)
1990/0227    
} 
 
enum{ 
	Qdir, 
1992/0428    
	Qchal, 
	Qclock, 
1990/0227    
	Qcons, 
1991/1224    
	Qconsctl, 
1990/0227    
	Qcputime, 
1992/0428    
	Qcrypt, 
	Qdir, 
	Qkey, 
	Qklog, 
1991/0607    
	Qlights, 
1992/0428    
	Qmsec, 
1991/0607    
	Qnoise, 
1992/0428    
	Qnoteid, 
1990/0227    
	Qnull, 
	Qpgrpid, 
	Qpid, 
	Qppid, 
	Qtime, 
	Quser, 
1991/0607    
	Qklog, 
	Qmsec, 
	Qclock, 
1991/0425    
	Qsysstat, 
1991/0705    
	Qswap, 
1991/1127    
	Qcrypt, 
	Qkey, 
	Qchal, 
1992/0321    
	Qsysname, 
1992/0428    
	Qsysstat, 
	Qtime, 
	Quser, 
1990/0227    
}; 
 
Dirtab consdir[]={ 
1992/0428    
	"chal",		{Qchal},	8,		0666, 
	"clock",	{Qclock},	2*NUMSIZE,	0444, 
1991/1211    
	"cons",		{Qcons},	0,		0660, 
1991/1224    
	"consctl",	{Qconsctl},	0,		0220, 
1991/1127    
	"cputime",	{Qcputime},	6*NUMSIZE,	0444, 
1991/1211    
	"time",		{Qtime},	NUMSIZE,	0664, 
1991/1127    
	"clock",	{Qclock},	2*NUMSIZE,	0444, 
	"msec",		{Qmsec},	NUMSIZE,	0444, 
1992/0428    
	"crypt",	{Qcrypt},	0,		0666, 
	"key",		{Qkey},		DESKEYLEN,	0622, 
	"klog",		{Qklog},	0,		0444, 
1991/1211    
	"lights",	{Qlights},	0,		0220, 
1992/0428    
	"msec",		{Qmsec},	NUMSIZE,	0444, 
1991/1211    
	"noise",	{Qnoise},	0,		0220, 
1992/0428    
	"noteid",	{Qnoteid},	NUMSIZE,	0444, 
1991/1112    
	"null",		{Qnull},	0,		0666, 
1991/1127    
	"pgrpid",	{Qpgrpid},	NUMSIZE,	0444, 
	"pid",		{Qpid},		NUMSIZE,	0444, 
	"ppid",		{Qppid},	NUMSIZE,	0444, 
	"user",		{Quser},	0,		0666, 
	"chal",		{Qchal},	8,		0666, 
	"crypt",	{Qcrypt},	0,		0666, 
1992/0323    
	"key",		{Qkey},		DESKEYLEN,	0622, 
1991/1112    
	"klog",		{Qklog},	0,		0444, 
1991/1127    
	"sysstat",	{Qsysstat},	0,		0666, 
1992/0321    
	"sysname",	{Qsysname},	0,		0664, 
1991/1211    
	"swap",		{Qswap},	0,		0664, 
1992/0428    
	"sysname",	{Qsysname},	0,		0664, 
	"sysstat",	{Qsysstat},	0,		0666, 
	"time",		{Qtime},	NUMSIZE,	0664, 
	"user",		{Quser},	0,		0666, 
1990/0227    
}; 
 
#define	NCONS	(sizeof consdir/sizeof(Dirtab)) 
1992/0411/sys/src/9/port/devcons.c:569,5741992/0428/sys/src/9/port/devcons.c:571,579
1990/0227    
 
	case Qpgrpid: 
1991/0411    
		return readnum(offset, buf, n, u->p->pgrp->pgrpid, NUMSIZE); 
1992/0428    
 
	case Qnoteid: 
		return readnum(offset, buf, n, u->p->noteid, NUMSIZE); 
1990/0227    
 
	case Qpid: 
1991/0411    
		return readnum(offset, buf, n, u->p->pid, NUMSIZE); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)