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

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

?? output.c

?? linux下獲取一些環(huán)境信息的代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
    case '+': strcpy(q, "  "); break;    case '|': strcpy(q, "  "); break;    case '\0': return q-outbuf;    /* redundant & not used */    }    if (rightward-2 < 0) {      *(q+rightward)='\0';      return max_rightward;    }    q += 2;    rightward -= 2;    p++;  }  return q-outbuf;   /* gcc likes this here */}/* XPG4-UNIX, according to Digital:The "args" and "command" specifiers show what was passed to the command.Modifications to the arguments are not shown.*//* * pp->cmd       short accounting name (comm & ucomm) * pp->cmdline   long name with args (args & command) * pp->environ   environment */// FIXME: some of these may hit the guard page in forest mode/* "command" is the same thing: long unless c */static int pr_args(char *restrict const outbuf, const proc_t *restrict const pp){  char *endp = outbuf;  unsigned flags;  int rightward=max_rightward;  if(forest_prefix){    int fh = forest_helper(outbuf);    endp += fh;    rightward -= fh;  }  if(bsd_c_option) flags = ESC_DEFUNCT;  else             flags = ESC_DEFUNCT | ESC_BRACKETS | ESC_ARGS;  endp += escape_command(endp, pp, OUTBUF_SIZE, &rightward, flags);  if(bsd_e_option && rightward>1){    const char **env = (const char**)pp->environ;    if(env && *env){      *endp++ = ' ';      rightward--;      endp += escape_strlist(endp, env, OUTBUF_SIZE, &rightward);    }  }  //return endp - outbuf;  return max_rightward-rightward;}/* "ucomm" is the same thing: short unless -f */static int pr_comm(char *restrict const outbuf, const proc_t *restrict const pp){  char *endp = outbuf;  unsigned flags;  int rightward=max_rightward;    if(forest_prefix){    int fh = forest_helper(outbuf);    endp += fh;    rightward -= fh;  }  if(unix_f_option) flags = ESC_DEFUNCT | ESC_BRACKETS | ESC_ARGS;  else              flags = ESC_DEFUNCT;  endp += escape_command(endp, pp, OUTBUF_SIZE, &rightward, flags);  if(bsd_e_option && rightward>1){    const char **env = (const char**)pp->environ;    if(env && *env){      *endp++ = ' ';      rightward--;      endp += escape_strlist(endp, env, OUTBUF_SIZE, &rightward);    }  }  //return endp - outbuf;  return max_rightward-rightward;}/* Non-standard, from SunOS 5 */static int pr_fname(char *restrict const outbuf, const proc_t *restrict const pp){  char *endp = outbuf;  int rightward = max_rightward;    if(forest_prefix){    int fh = forest_helper(outbuf);    endp += fh;    rightward -= fh;  }  if (rightward>8)  /* 8=default, but forest maybe feeds more */    rightward = 8;    endp += escape_str(endp, pp->cmd, OUTBUF_SIZE, &rightward);  //return endp - outbuf;  return max_rightward-rightward;}/* elapsed wall clock time, [[dd-]hh:]mm:ss format (not same as "time") */static int pr_etime(char *restrict const outbuf, const proc_t *restrict const pp){  unsigned long t;  unsigned dd,hh,mm,ss;  char *cp = outbuf;  t = seconds_since_boot - (unsigned long)(pp->start_time / Hertz);  ss = t%60;  t /= 60;  mm = t%60;  t /= 60;  hh = t%24;  t /= 24;  dd = t;  cp +=(     dd      ?  snprintf(cp, COLWID, "%u-", dd)           :  0 );  cp +=( (dd || hh)  ?  snprintf(cp, COLWID, "%02u:", hh)         :  0 );  cp +=                 snprintf(cp, COLWID, "%02u:%02u", mm, ss)       ;  return (int)(cp-outbuf);}/* "Processor utilisation for scheduling."  --- we use %cpu w/o fraction */static int pr_c(char *restrict const outbuf, const proc_t *restrict const pp){  unsigned long long total_time;   /* jiffies used by this process */  unsigned pcpu = 0;               /* scaled %cpu, 99 means 99% */  unsigned long long seconds;      /* seconds of process life */  total_time = pp->utime + pp->stime;  if(include_dead_children) total_time += (pp->cutime + pp->cstime);  seconds = seconds_since_boot - pp->start_time / Hertz;  if(seconds) pcpu = (total_time * 100ULL / Hertz) / seconds;  if (pcpu > 99U) pcpu = 99U;  return snprintf(outbuf, COLWID, "%2u", pcpu);}/* normal %CPU in ##.# format. */static int pr_pcpu(char *restrict const outbuf, const proc_t *restrict const pp){  unsigned long long total_time;   /* jiffies used by this process */  unsigned pcpu = 0;               /* scaled %cpu, 999 means 99.9% */  unsigned long long seconds;      /* seconds of process life */  total_time = pp->utime + pp->stime;  if(include_dead_children) total_time += (pp->cutime + pp->cstime);  seconds = seconds_since_boot - pp->start_time / Hertz;  if(seconds) pcpu = (total_time * 1000ULL / Hertz) / seconds;  if (pcpu > 999U)    return snprintf(outbuf, COLWID, "%u", pcpu/10U);  return snprintf(outbuf, COLWID, "%u.%u", pcpu/10U, pcpu%10U);}/* this is a "per-mill" format, like %cpu with no decimal point */static int pr_cp(char *restrict const outbuf, const proc_t *restrict const pp){  unsigned long long total_time;   /* jiffies used by this process */  unsigned pcpu = 0;               /* scaled %cpu, 999 means 99.9% */  unsigned long long seconds;      /* seconds of process life */  total_time = pp->utime + pp->stime;  if(include_dead_children) total_time += (pp->cutime + pp->cstime);  seconds = seconds_since_boot - pp->start_time / Hertz ;  if(seconds) pcpu = (total_time * 1000ULL / Hertz) / seconds;  if (pcpu > 999U) pcpu = 999U;  return snprintf(outbuf, COLWID, "%3u", pcpu);}static int pr_pgid(char *restrict const outbuf, const proc_t *restrict const pp){  return snprintf(outbuf, COLWID, "%u", pp->pgrp);}static int pr_pid(char *restrict const outbuf, const proc_t *restrict const pp){  return snprintf(outbuf, COLWID, "%u", pp->tgid);}static int pr_ppid(char *restrict const outbuf, const proc_t *restrict const pp){  return snprintf(outbuf, COLWID, "%u", pp->ppid);}/* cumulative CPU time, [dd-]hh:mm:ss format (not same as "etime") */static int pr_time(char *restrict const outbuf, const proc_t *restrict const pp){  unsigned long t;  unsigned dd,hh,mm,ss;  int c;  t = (pp->utime + pp->stime) / Hertz;  ss = t%60;  t /= 60;  mm = t%60;  t /= 60;  hh = t%24;  t /= 24;  dd = t;  c  =( dd ? snprintf(outbuf, COLWID, "%u-", dd) : 0              );  c +=( snprintf(outbuf+c, COLWID, "%02u:%02u:%02u", hh, mm, ss)    );  return c;}/* HP-UX puts this (I forget, vsz or vsize?) in kB and uses "sz" for pages. * Unix98 requires "vsz" to be kB. * Tru64 does both vsize and vsz like "1.23M" * * Our pp->vm_size is kB and our pp->vsize is pages. * * TODO: add flag for "1.23M" behavior, on this and other columns. */static int pr_vsz(char *restrict const outbuf, const proc_t *restrict const pp){  return snprintf(outbuf, COLWID, "%lu", pp->vm_size);}//////////////////////////////////////////////////////////////////////////////////////// "PRI" is created by "opri", or by "pri" when -c is used.//// Unix98 only specifies that a high "PRI" is low priority.// Sun and SCO add the -c behavior. Sun defines "pri" and "opri".// Linux may use "priority" for historical purposes.//// According to the kernel's fs/proc/array.c and kernel/sched.c source,// the kernel reports it in /proc via this://        p->prio - MAX_RT_PRIO// such that "RT tasks are offset by -200. Normal tasks are centered// around 0, value goes from -16 to +15" but who knows if that is// before or after the conversion...//// <linux/sched.h> says:// MAX_RT_PRIO is currently 100.       (so we see 0 in /proc)// RT tasks have a p->prio of 0 to 99. (so we see -100 to -1)// non-RT tasks are from 100 to 139.   (so we see 0 to 39)// Lower values have higher priority, as in the UNIX standard.//// In any case, pp->priority+100 should get us back to what the kernel// has for p->prio.//// Test results with the "yes" program on a 2.6.x kernel://// # ps -C19,_20 -o pri,opri,intpri,priority,ni,pcpu,pid,comm// PRI PRI PRI PRI  NI %CPU  PID COMMAND//   0  99  99  39  19 10.6 8686 19//  34  65  65   5 -20 94.7 8687 _20//// Grrr. So the UNIX standard "PRI" must NOT be from "pri".// Either of the others will do. We use "opri" for this.// (and use "pri" when the "-c" option is used)// Probably we should have Linux-specific "pri_for_l" and "pri_for_lc"//// sched_get_priority_min.2 says the Linux static priority is// 1..99 for RT and 0 for other... maybe 100 is kernel-only?//// A nice range would be -99..0 for RT and 1..40 for normal,// which is pp->priority+1. (3-digit max, positive is normal,// negative or 0 is RT, and meets the standard for PRI)//// legal as UNIX "PRI"// "priority"         (was -20..20, now -100..39)static int pr_priority(char *restrict const outbuf, const proc_t *restrict const pp){    /* -20..20 */    return snprintf(outbuf, COLWID, "%ld", pp->priority);}// legal as UNIX "PRI"// "intpri" and "opri" (was 39..79, now  -40..99)static int pr_opri(char *restrict const outbuf, const proc_t *restrict const pp){        /* 39..79 */    return snprintf(outbuf, COLWID, "%ld", 60 + pp->priority);}// legal as UNIX "PRI"// "pri_foo"   --  match up w/ nice values of sleeping processes (-120..19)static int pr_pri_foo(char *restrict const outbuf, const proc_t *restrict const pp){    return snprintf(outbuf, COLWID, "%ld", pp->priority - 20);}// legal as UNIX "PRI"// "pri_bar"   --  makes RT pri show as negative       (-99..40)static int pr_pri_bar(char *restrict const outbuf, const proc_t *restrict const pp){    return snprintf(outbuf, COLWID, "%ld", pp->priority + 1);}// legal as UNIX "PRI"// "pri_baz"   --  the kernel's ->prio value, as of Linux 2.6.8     (1..140)static int pr_pri_baz(char *restrict const outbuf, const proc_t *restrict const pp){    return snprintf(outbuf, COLWID, "%ld", pp->priority + 100);}// not legal as UNIX "PRI"// "pri"               (was 20..60, now    0..139)static int pr_pri(char *restrict const outbuf, const proc_t *restrict const pp){         /* 20..60 */    return snprintf(outbuf, COLWID, "%ld", 39 - pp->priority);}// not legal as UNIX "PRI"// "pri_api"   --  match up w/ RT API    (-40..99)static int pr_pri_api(char *restrict const outbuf, const proc_t *restrict const pp){    return snprintf(outbuf, COLWID, "%ld", -1 - pp->priority);}static int pr_nice(char *restrict const outbuf, const proc_t *restrict const pp){  if(pp->sched!=0 && pp->sched!=-1) return snprintf(outbuf, COLWID, "-");  return snprintf(outbuf, COLWID, "%ld", pp->nice);}// HP-UX   "cls": RT RR RR2 ???? HPUX FIFO KERN// Solaris "class": SYS TS FX IA RT FSS (FIFO is RR w/ Inf quant)//                  FIFO+RR share RT; FIFO has Inf quant//                  IA=interactive; FX=fixed; TS=timeshare; SYS=system//                  FSS=fairshare; INTS=interrupts// Tru64   "policy": FF RR TS// IRIX    "class": RT TS B BC WL GN//                  RT=real-time; TS=time-share; B=batch; BC=batch-critical//                  WL=weightless; GN=gang-scheduled//                  see miser(1) for this; PRI has some letter codes toostatic int pr_class(char *restrict const outbuf, const proc_t *restrict const pp){  switch(pp->sched){  case -1: return snprintf(outbuf, COLWID, "-");   // not reported  case  0: return snprintf(outbuf, COLWID, "TS");  // SCHED_OTHER  case  1: return snprintf(outbuf, COLWID, "FF");  // SCHED_FIFO

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品捆绑美女sm三区| 天涯成人国产亚洲精品一区av| 欧美日韩高清一区| 99久久精品免费看国产| a亚洲天堂av| 成人av网站免费观看| 粉嫩一区二区三区性色av| 国产精品一区久久久久| 国产成人鲁色资源国产91色综| 黄页网站大全一区二区| 久久国产剧场电影| 美腿丝袜亚洲色图| 国内精品伊人久久久久影院对白| 麻豆91在线播放免费| 国内精品免费**视频| 国产成人免费视频网站 | caoporn国产精品| 成人黄页毛片网站| 在线观看日韩精品| 日韩一区二区免费电影| 精品入口麻豆88视频| 国产日韩欧美a| 亚洲男人的天堂一区二区| 中文字幕在线视频一区| 亚洲影视在线观看| 美女视频黄a大片欧美| 国产一区二区导航在线播放| 国产激情一区二区三区| 色视频一区二区| 欧美性大战久久久| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲欧洲国产日本综合| 亚洲综合色在线| 日韩电影免费一区| 成人激情免费网站| 日韩一区二区三区三四区视频在线观看| 欧美成va人片在线观看| 亚洲欧美怡红院| 免费人成在线不卡| 99这里只有精品| 欧美一区二区在线免费观看| 国产欧美精品日韩区二区麻豆天美| 亚洲欧美另类综合偷拍| 精品一区二区免费| 欧美午夜电影在线播放| 国产亚洲综合性久久久影院| 亚洲四区在线观看| 极品尤物av久久免费看| 欧美日韩国产一级片| 最新国产成人在线观看| 狠狠色综合日日| 欧美精品在线观看一区二区| 国产精品天天看| 精品在线免费观看| 欧美色图免费看| 中文字幕+乱码+中文字幕一区| 爽好久久久欧美精品| 91亚洲精品久久久蜜桃| 久久新电视剧免费观看| 污片在线观看一区二区| 99精品国产一区二区三区不卡| 精品日韩成人av| 人人精品人人爱| 欧美探花视频资源| 亚洲综合清纯丝袜自拍| fc2成人免费人成在线观看播放| 亚洲精品一区二区三区影院| 免费av成人在线| 欧美影院午夜播放| 樱桃视频在线观看一区| 一本到三区不卡视频| 国产精品国产三级国产有无不卡| 狠狠色综合色综合网络| 欧美v亚洲v综合ⅴ国产v| 美女视频黄a大片欧美| 欧美一区二区三区人| 午夜精品爽啪视频| 欧美精品九九99久久| 亚洲成人av电影在线| 欧美三区免费完整视频在线观看| 亚洲人成人一区二区在线观看| 成人晚上爱看视频| 国产精品国产自产拍高清av | 欧美中文字幕一区二区三区亚洲| 日韩理论片网站| 色婷婷国产精品| 亚洲gay无套男同| 欧美日本不卡视频| 日韩不卡一区二区| 精品国产免费久久| 成人av电影在线| 亚洲老司机在线| 欧美日韩不卡在线| 久久精品国产成人一区二区三区| 精品国产一区二区亚洲人成毛片| 亚洲第一激情av| 精品日韩一区二区三区 | 亚洲福利视频导航| 9191国产精品| 韩国午夜理伦三级不卡影院| 久久久国产精品麻豆| 丁香天五香天堂综合| 一区二区三区四区中文字幕| 欧美精品乱人伦久久久久久| 青草国产精品久久久久久| 久久这里都是精品| 99精品视频一区二区| 视频一区视频二区中文| 久久综合久久久久88| 99精品国产热久久91蜜凸| 亚洲国产一区二区三区青草影视| 91麻豆精品国产无毒不卡在线观看| 精品一区二区三区免费毛片爱| 中文子幕无线码一区tr| 欧美精品乱码久久久久久| 国产精品中文字幕日韩精品| 亚洲免费av在线| 精品黑人一区二区三区久久| 色婷婷激情综合| 国产在线视视频有精品| 一区二区三区视频在线观看 | 国产一区在线精品| 一区二区三区 在线观看视频| 国产亚洲综合色| 91精品欧美久久久久久动漫| 96av麻豆蜜桃一区二区| 久久www免费人成看片高清| 亚洲一区成人在线| 国产精品久久三区| 亚洲精品在线三区| 欧美美女一区二区三区| av电影在线观看一区| 久久国产精品72免费观看| 午夜国产不卡在线观看视频| 国产精品乱码一区二区三区软件 | 国产成a人亚洲精品| 免费高清在线视频一区·| 自拍视频在线观看一区二区| 久久久久久夜精品精品免费| 日韩精品中午字幕| 欧美日韩高清一区二区| 99精品久久只有精品| 国产一区二区三区电影在线观看| 国产无遮挡一区二区三区毛片日本| 欧美综合欧美视频| 波多野结衣中文字幕一区| 亚洲成人第一页| 国产精品视频线看| 亚洲精品一区在线观看| 欧美色精品在线视频| 91免费国产在线观看| 国产黄色91视频| 久久99久久久久| 一区二区三区高清不卡| 亚洲精品成人精品456| 中文字幕欧美日本乱码一线二线| 欧美一二三区在线观看| 欧美一区二区三区成人| 欧美在线一二三四区| 成人avav影音| 成人ar影院免费观看视频| 91女人视频在线观看| 国产宾馆实践打屁股91| 国产一区在线看| 久久97超碰色| 国产精品中文字幕欧美| 精品一二三四区| 日韩国产一二三区| 日韩高清国产一区在线| 日韩黄色一级片| 男男gaygay亚洲| 性做久久久久久久免费看| 亚洲综合久久av| 日韩一区欧美二区| 麻豆精品蜜桃视频网站| 日韩av电影天堂| 蓝色福利精品导航| 成人毛片在线观看| 99re热视频这里只精品| 91免费视频网址| 欧美最猛性xxxxx直播| 91精品国产综合久久婷婷香蕉 | 亚洲女子a中天字幕| 亚洲色图视频网| 亚洲精品视频在线观看免费| 亚洲一区二区三区四区中文字幕| 日韩和的一区二区| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美伊人久久大香线蕉综合69| 色婷婷亚洲综合| 欧美日韩国产一区| 欧美激情中文字幕| 亚洲综合区在线| 蜜臀av国产精品久久久久| 国产精品12区| av电影天堂一区二区在线| 成人av电影免费在线播放| 91久久精品一区二区三| 久久久久久亚洲综合影院红桃| 欧美激情一二三区|