⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 processes.h

📁 opensolaris下列出top进程
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -