ps_data.c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 53 行
C
53 行
#ifndef ultrix#include "machine/reg.h"#include "machine/pte.h"#include "machine/psl.h"#include "../h/param.h"#include "../h/systm.h"#include "../h/map.h"#include "../h/user.h"#include "../h/kernel.h"#include "../h/proc.h"#include "../h/buf.h"#include "../h/socketvar.h"#include "../h/vnode.h"#include "../h/pathname.h"#include "../h/seg.h"#include "../h/vm.h"#include "../h/text.h"#include "../h/file.h"#include "../h/uio.h"#include "../h/acct.h"#include "../h/exec.h"#include "../h/vfs.h"#include "../h/conf.h"#include "../mipsvme/vmevar.h"#include "../fs/ufs/inode.h"#include "../h/ioctl.h"#include "../h/tty.h"/* the entries here need to match the constants in ps_data.h */int ps_data[] = { /* proc */ sizeof(struct proc), /* pte */ sizeof(struct pte), /* text */ sizeof(struct text), /* user */ sizeof(struct user), /* user.u_comm */ sizeof(up->u_comm), /* user.u_arg */ sizeof(up->u_arg), /* inode */ sizeof(struct inode), /* tty */ sizeof(struct tty), /* ucred */ sizeof(struct ucred), /* rusage */ sizeof(struct rusage), /* file */ sizeof(struct file), /* ucred */ sizeof(struct ucred), /* rusage */ sizeof(struct rusage), /* map */ sizeof(struct map), /* swdevt */ sizeof(struct swdevt), /* vme_device */ sizeof(struct vme_device), /* vme_driver */ sizeof(struct vme_driver), 1};#endif not ultrix
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?