processes.h

来自「opensolaris下列出top进程」· C头文件 代码 · 共 39 行

H
39
字号
#include <glibtop/proclist.h>#include <glibtop/procstate.h>#include <glibtop/proctime.h>typedef struct _process process;struct _process{  process *next, *prev;  int pid, utime;  int diff;  int touched;  char cmd[40];};/** * utility functions */int update_process (process * task);int insert_process (process * root, int pid);int cleanup_touched (process * root);int clean_list (process * root);/** * create a list of processes */process *create_processlist ();/** * update the list of processes */int update_processlist (process * root);/** * find top processes * root  - the first node of process list * max   - list of pointers to be filled with pointers to top processes */int find_top_processes (process * root, process ** max, int number);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?