亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readproc.h

?? openmosix使用工具.mtop, mosmon, mps等。用于控制openmosix。openmosix 使用工具.mtop, mosmon, mps等。用于控制openmosix。openm
?? H
字號:
/* * New Interface to Process Table -- PROCTAB Stream (a la Directory streams) * Copyright (C) 1996 Charles L. Blake. * Copyright (C) 1998 Michael K. Johnson * May be distributed under the terms of the * GNU Library General Public License, a copy of which is provided * in the file ../COPYING.LIB *//*** Modified on 27 Nov 2003 by Moreno 'baro' Baricevic <baro@democritos.it>** Added openMosix proc files handling for "nmigs", "lock", "cantmove".** Modified or added sections are delimited by "OMINFO" comments.**** "where" info was already handled (previously added by Mathieu Cousin** <Mathieu.Cousin@crm.mot.com>) and now merged with new modifications.*//* Basic data structure which holds all information we can get about a process. * (unless otherwise specified, fields are read from /proc/#/stat) */typedef struct proc_s {    char    	user[10],	/* user name corresponding to owner of process */    	cmd[40],	/* basename of executable file in call to exec(2) */    	state,		/* single-char code for process state (S=sleeping) */    	ttyc[5],	/* string representation of controlling tty device */	**environ,	/* environment string vector (/proc/#/environ) */	**cmdline;	/* command line string vector (/proc/#/cmdline) */    int    	uid,		/* user id */    	pid,		/* process id */    	ppid,		/* pid of parent process */	pgrp,		/* process group id */	session,	/* session id */	tty,		/* full device number of controlling terminal */	tpgid,		/* terminal process group id */	priority,	/* kernel scheduling priority */	nice;		/* standard unix nice level of process *//* OMINFO { */    const char	*cantmove;	/* oM: cantmove */    int	where,		/* oM: node number */	nmigs,		/* oM: number of migrations */	lock;		/* oM: process locked *//* } OMINFO */    long long	signal,		/* mask of pending signals */	blocked,	/* mask of blocked signals */	sigignore,	/* mask of ignored signals */	sigcatch;	/* mask of caught  signals */    long	start_time,	/* start time of process -- seconds since 1-1-70 */	utime,		/* user-mode CPU time accumulated by process */	stime,		/* kernel-mode CPU time accumulated by process */	cutime,		/* cumulative utime of process and reaped children */	cstime,		/* cumulative stime of process and reaped children */    /* the next 7 members come from /proc/#/statm */	size,		/* total # of pages of memory */	resident,	/* number of resident set (non-swapped) pages (4k) */	share,		/* number of pages of shared (mmap'd) memory */	trs,		/* text resident set size */	lrs,		/* shared-lib resident set size */	drs,		/* data resident set size */	dt;		/* dirty pages */    unsigned        pcpu;           /* %CPU usage (is not filled in by readproc!!!) */    unsigned long	vsize,		/* number of pages of virtual memory ... */	rss,		/* resident set size from /proc/#/stat */	rss_rlim,	/* resident set size ... ? */	timeout,	/* ? */	it_real_value,	/* ? */	flags,		/* kernel flags for the process */	min_flt,	/* number of minor page faults since process start */	maj_flt,	/* number of major page faults since process start */	cmin_flt,	/* cumulative min_flt of process and child processes */	cmaj_flt,	/* cumulative maj_flt of process and child processes */	start_code,	/* address of beginning of code segment */	end_code,	/* address of end of code segment */	start_stack,	/* address of the bottom of stack for the process */	kstk_esp,	/* kernel stack pointer */	kstk_eip,	/* kernel stack pointer */	wchan;		/* address of kernel wait channel proc is sleeping in */    struct proc_s *l,	/* ptrs for building arbitrary linked structs */                  *r;	/* (i.e. singly/doubly-linked lists and trees */} proc_t;/* PROCTAB: data structure holding the persistent information readproc needs * from openproc().  The setup is intentionally similar to the dirent interface * and other system table interfaces (utmp+wtmp come to mind). */#include <sys/types.h>#include <dirent.h>#include <unistd.h>typedef struct {    DIR*	procfs;    int		flags;    pid_t*	pids;	/* pids of the procs */    dev_t*	ttys;	/* devnos of the cttys */    uid_t*	uids;	/* uids of procs */    int		nuid;	/* cannot really sentinel-terminate unsigned short[] */    char*	stats;	/* status chars (actually output into /proc//stat) */} PROCTAB;/* initialize a PROCTAB structure holding needed call-to-call persistent data */PROCTAB* openproc(int flags, ... /* pid_t*|uid_t*|dev_t*|char* [, int n] */ );/* Convenient wrapper around openproc and readproc to slurp in the whole process * table subset satisfying the constraints of flags and the optional PID list. * Free allocated memory with freeproctab().  Access via tab[N]->member.  The * pointer list is NULL terminated. */proc_t** readproctab(int flags, ... /* same as openproc */ );/* Convenient wrapper around openproc and readproc to slurp in the whole process * tree subset satisfying the constraints of flags and the optional PID list. */proc_t* readproctree(int flags, ... /* same as openproc */ );/* clean-up open files, etc from the openproc() */void closeproc(PROCTAB* PT);/* retrieve the next process matching the criteria set by the openproc() */proc_t* readproc(PROCTAB* PT, proc_t* return_buf);/* deallocate space allocated by readproc */void freeproc(proc_t* p);/* deallocate space allocated by readproctab */void freeproctab(proc_t** p);/* openproc/readproctab: * * Return PROCTAB* / *proc_t[] or NULL on error ((probably) "/proc" cannot be * opened.)  By default readproc will consider all processes as valid to parse * and return, but not actually fill in the cmdline, environ, and /proc/#/statm * derived memory fields. * * `flags' (a bitwise-or of PROC_* below) modifies the default behavior.  The * "fill" options will cause more of the proc_t to be filled in.  The "filter" * options all use the second argument as the pointer to a list of objects: * process status', process id's, user id's, and tty device numbers.  The third * argument is the length of the list (currently only used for lists of user * id's since unsigned short[] supports no convenient termination sentinel.) */#define PROC_FILLMEM 0x1   /* read statm into the appropriate proc_t entries */#define PROC_FILLCMD 0x2   /* alloc and fill in `cmdline' part of proc_t */#define PROC_FILLENV 0x4   /* alloc and fill in `environ' part of proc_t */#define PROC_FILLTTY 0x8   /* resolve device number -> tty name via psdevtab */#define PROC_FILLUSR 0x10  /* resolve user id number -> user name via passwd */                       /* consider only processes with one of the passed: */#define PROC_PID     0x100  /* process id numbers ( 0   terminated) */#define PROC_TTY     0x200  /* ctty device nos.   ( 0   terminated) */#define PROC_UID     0x400  /* user id numbers    ( length needed ) */#define PROC_STAT    0x800  /* status fields      ('\0' terminated) */#define PROC_ANYTTY  0x1000 /* proc must have a controlling terminal *//* utility functions which may be of general interest: *//* slurp /proc/DIR/FILE into a single large string into the passed   buffer.  return the number of bytes actually used.  used for stat,statm */int file2str(char *dir, char *file, char *buf, int buf_size);/* OMINFO { */int readint ( const char * dir , const char * file );const char * readcantmove ( const char * dir , const int lock );#define OM_MIGRATABLE	"migratable"#define OM_MIG_LOCKED	OM_MIGRATABLE " but locked"#define OM_NOT_AVAIL	"N/A"extern int oMout;/* } OMINFO *//* convert a file of null terminated strings into an argv-style string vector * which may be de-allocated with a single free() on a dereference of the return * value, e.g. free(*ret).  used for cmdline, environ. */char** file2strvec(char* directory, char* what);/* parse /proc/#/stat  entries in string s into a proc_t */void stat2proc(char* S, proc_t*);/* parse /proc/#/statm entries in string s into a proc_t */void statm2proc(char* s, proc_t*);/* convert a memory buffer with nulls into a single string,   replacing the nulls with sep.  No longer used. */void nulls2sep(char* str, int len, char sep);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品露脸国语对白| 精品1区2区在线观看| 亚洲免费成人av| 日本韩国一区二区三区视频| 亚洲愉拍自拍另类高清精品| 欧美亚洲一区二区在线观看| 亚洲国产视频一区二区| 一本大道久久a久久精品综合| 欧美精品一区二区三| 国产主播一区二区三区| 国产天堂亚洲国产碰碰| 99在线热播精品免费| 一区二区三区在线不卡| 91精品啪在线观看国产60岁| 日韩不卡一二三区| 久久久.com| 在线亚洲+欧美+日本专区| 日韩精品国产欧美| 国产午夜精品久久久久久久| 99久久婷婷国产| 丝袜亚洲另类欧美综合| 久久久亚洲高清| 欧美成人激情免费网| 99麻豆久久久国产精品免费优播| 亚洲欧美另类在线| 制服丝袜中文字幕一区| 国产成a人亚洲精品| 依依成人综合视频| 日韩精品一区二区在线| 91论坛在线播放| 欧美成人性福生活免费看| 国产精品中文字幕日韩精品 | 91精品国产aⅴ一区二区| 九九九久久久精品| 亚洲另类中文字| 日韩美女视频一区二区在线观看| 成人av影院在线| 裸体一区二区三区| 亚洲欧美一区二区三区久本道91| 欧美一区二区三区视频在线 | 本田岬高潮一区二区三区| 日本特黄久久久高潮 | 亚洲女同女同女同女同女同69| 91麻豆精品国产91久久久使用方法 | 国产欧美日韩中文久久| 91丨九色丨尤物| 精品一区二区三区视频 | 亚洲一区免费观看| 国产欧美一区二区精品性| 欧美疯狂做受xxxx富婆| 91尤物视频在线观看| 精品亚洲欧美一区| 天天av天天翘天天综合网色鬼国产 | 国内精品在线播放| 视频一区视频二区中文| 亚洲欧美在线视频观看| 久久免费的精品国产v∧| 欧美精品在线观看播放| 色婷婷综合久色| 高潮精品一区videoshd| 精品影院一区二区久久久| 午夜精品一区二区三区免费视频| 中文字幕一区二区日韩精品绯色| 久久综合久色欧美综合狠狠| 在线综合视频播放| 欧美午夜在线观看| 色综合天天综合网天天看片| 不卡一区二区三区四区| 成人激情小说网站| 国产不卡在线播放| 日本三级韩国三级欧美三级| 国产精品国产三级国产普通话蜜臀 | 免费一级片91| 免费一级片91| 奇米一区二区三区| 蜜桃视频一区二区| 日韩影院在线观看| 日韩电影一区二区三区四区| 亚洲一级二级三级在线免费观看| 亚洲欧美电影院| 亚洲精品第一国产综合野| 亚洲视频在线观看三级| 亚洲四区在线观看| 一级女性全黄久久生活片免费| 亚洲精选视频免费看| 亚洲精品福利视频网站| 亚洲午夜三级在线| 婷婷六月综合网| 麻豆一区二区99久久久久| 韩国在线一区二区| 国产精品亚洲视频| 成人丝袜高跟foot| 色噜噜久久综合| 精品视频资源站| 91精品国产欧美一区二区| 日韩欧美国产小视频| 国产网站一区二区三区| 免费在线看成人av| 久久国内精品视频| 福利电影一区二区| 色欧美88888久久久久久影院| 欧美日韩一区中文字幕| 日韩精品一区二区三区蜜臀| 国产亚洲欧美日韩俺去了| 中文字幕一区二区三区在线不卡 | 亚洲国产综合在线| 日韩精品1区2区3区| 国产精品99久久久久久久女警 | 欧美三级在线播放| 精品理论电影在线观看| 国产精品麻豆欧美日韩ww| 亚洲一区二区三区影院| 精品一二三四在线| 91麻豆免费在线观看| 欧美精品久久久久久久多人混战 | 91精品国产综合久久国产大片| 精品国产乱码久久久久久图片 | 国产福利一区在线| 欧美性色欧美a在线播放| 欧美成人一区二区三区| 亚洲三级在线免费| 看片的网站亚洲| 精品国产91九色蝌蚪| 国产精品另类一区| 日韩成人dvd| 99久久亚洲一区二区三区青草| 91精品国产色综合久久| 中文字幕一区二区三区视频| 奇米在线7777在线精品| 99国产精品久久久久久久久久久| 91精品国产综合久久国产大片| 国产精品久久久久久久久图文区| 日韩精品一二三| 91麻豆高清视频| 国产亚洲欧美日韩日本| 日韩av网站在线观看| 91丨九色丨国产丨porny| 26uuu另类欧美亚洲曰本| 亚洲1区2区3区视频| 成人激情小说网站| wwwwww.欧美系列| 日本大胆欧美人术艺术动态| 91在线视频18| 中文字幕欧美国产| 狠狠色狠狠色综合系列| 欧美精品乱人伦久久久久久| 亚洲乱码国产乱码精品精可以看 | 国产盗摄女厕一区二区三区| 欧美高清性hdvideosex| 一区二区欧美在线观看| 成人午夜精品在线| 久久一夜天堂av一区二区三区| 丝袜国产日韩另类美女| 欧洲av在线精品| 亚洲欧美乱综合| 色综合天天综合狠狠| 国产精品久久久久久久久免费相片| 韩国成人精品a∨在线观看| 欧美一区二区视频网站| 日韩伦理av电影| 日韩av一区二区在线影视| 99国产欧美久久久精品| 久久色在线视频| 激情欧美一区二区| 日韩欧美中文字幕一区| 日韩高清在线不卡| 欧美久久一区二区| 亚洲成人综合视频| 欧美精选一区二区| 五月天中文字幕一区二区| 欧美性色综合网| 五月激情综合网| 日韩三级中文字幕| 黄色资源网久久资源365| 欧美成人aa大片| 国产一区二区成人久久免费影院| 欧美mv日韩mv国产网站app| 精品在线观看视频| 国产日韩高清在线| 懂色一区二区三区免费观看| 中文字幕免费一区| 99久久久无码国产精品| 亚洲人成伊人成综合网小说| 在线一区二区视频| 日韩主播视频在线| 国产精品99久久久久久宅男| 欧美久久一区二区| 奇米一区二区三区| 日韩欧美国产1| 国产精品自拍在线| 1区2区3区欧美| 欧美色中文字幕| 日本视频中文字幕一区二区三区| 精品91自产拍在线观看一区| 高清在线不卡av| 亚洲一级二级三级在线免费观看| 91精品国产综合久久婷婷香蕉| 国产一区二区精品久久91| ㊣最新国产の精品bt伙计久久| 欧美性大战久久|