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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? output.c

?? linux下獲取一些環(huán)境信息的代碼
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/* * Copyright 1999-2004 by Albert Cahalan; all rights reserved. * * This file may be used subject to the terms and conditions of the * GNU Library General Public License Version 2, or any later version * at your option, as published by the Free Software Foundation. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. *//* * This file is really gross, and I know it. I looked into several * alternate ways to deal with the mess, and they were all ugly. * * FreeBSD has a fancy hack using offsets into a struct -- that * saves code but it is _really_ gross. See the PO macro below. * * We could have a second column width for wide output format. * For example, Digital prints the real-time signals. *//* * Data table idea: * * table 1 maps aix to specifier * table 2 maps shortsort to specifier * table 3 maps macro to specifiers * table 4 maps specifier to title,datatype,offset,vendor,helptext * table 5 maps datatype to justification,width,widewidth,sorting,printing * * Here, "datatype" could be user,uid,u16,pages,deltaT,signals,tty,longtty... * It must be enough to determine printing and sorting. * * After the tables, increase width as needed to fit the header. * * Table 5 could go in a file with the output functions. */ #include <ctype.h>#include <fcntl.h>#include <grp.h>#include <limits.h>#include <pwd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/ioctl.h>#include <sys/resource.h>#include <sys/types.h>#include <sys/mman.h>#include <time.h>#include <unistd.h>#include <dlfcn.h>#include "../proc/readproc.h"#include "../proc/sysinfo.h"#include "../proc/wchan.h"#include "../proc/procps.h"#include "../proc/devname.h"#include "../proc/escape.h"#include "common.h"/* TODO: * Stop assuming system time is local time. */#define COLWID 240 /* satisfy snprintf, which is faster than sprintf */static unsigned max_rightward = 0x12345678; /* space for RIGHT stuff */static unsigned max_leftward = 0x12345678; /* space for LEFT stuff */static int wide_signals;  /* true if we have room */static unsigned long seconds_since_1970;static unsigned long time_of_boot;static unsigned long page_shift;/*************************************************************************//************ Lots of sort functions, starting with the NOP **************/static int sr_nop(const proc_t* a, const proc_t* b){  (void)a;(void)b; /* shut up gcc */  return 0;}#define CMP_STR(NAME) \static int sr_ ## NAME(const proc_t* P, const proc_t* Q) { \    return strcmp(P->NAME, Q->NAME); \}#define CMP_INT(NAME) \static int sr_ ## NAME (const proc_t* P, const proc_t* Q) { \    if (P->NAME < Q->NAME) return -1; \    if (P->NAME > Q->NAME) return  1; \    return 0; \}/* fast version, for values which either: * a. differ by no more than 0x7fffffff * b. only need to be grouped same w/ same */#define CMP_SMALL(NAME) \static int sr_ ## NAME (const proc_t* P, const proc_t* Q) { \    return (int)(P->NAME) - (int)(Q->NAME); \}CMP_INT(rtprio)CMP_SMALL(sched)CMP_INT(cutime)CMP_INT(cstime)CMP_SMALL(priority)                                             /* nice */CMP_SMALL(nlwp)CMP_SMALL(nice)                                                 /* priority */CMP_INT(rss)      /* resident set size from stat file */ /* vm_rss, resident */CMP_INT(alarm)CMP_INT(size)      /* total pages */                     /* vm_size, vsize */CMP_INT(resident)  /* resident pages */                     /* vm_rss, rss */CMP_INT(share)     /* shared pages */CMP_INT(trs)       /* executable pages */CMP_INT(lrs)       /* obsolete "library" pages above 0x60000000 */CMP_INT(drs)       /* other pages (assumed data?) */CMP_INT(dt)        /* dirty pages */CMP_INT(vm_size)    /* kB VM */                             /* size, vsize */CMP_INT(vm_lock)    /* kB locked */CMP_INT(vm_rss)     /* kB rss */                          /* rss, resident */CMP_INT(vm_data)    /* kB "data" == data-stack */CMP_INT(vm_stack)   /* kB stack */CMP_INT(vm_exe)     /* kB "exec" == exec-lib */CMP_INT(vm_lib)     /* kB "libraries" */CMP_INT(vsize)      /* pages VM */                        /* size, vm_size */CMP_INT(rss_rlim)CMP_SMALL(flags)CMP_INT(min_flt)CMP_INT(maj_flt)CMP_INT(cmin_flt)CMP_INT(cmaj_flt)CMP_INT(utime)CMP_INT(stime)    /* Old: sort by systime. New: show start time. Uh oh. */CMP_INT(start_code)CMP_INT(end_code)CMP_INT(start_stack)CMP_INT(kstk_esp)CMP_INT(kstk_eip)CMP_INT(start_time)CMP_INT(wchan)/* CMP_STR(*environ) *//* CMP_STR(*cmdline) */CMP_STR(ruser)CMP_STR(euser)CMP_STR(suser)CMP_STR(fuser)CMP_STR(rgroup)CMP_STR(egroup)CMP_STR(sgroup)CMP_STR(fgroup)CMP_STR(cmd)/* CMP_STR(ttyc) */    /* FIXME -- use strncmp with 8 max */CMP_INT(ruid)CMP_INT(rgid)CMP_INT(euid)CMP_INT(egid)CMP_INT(suid)CMP_INT(sgid)CMP_INT(fuid)CMP_INT(fgid)CMP_SMALL(tid)CMP_SMALL(tgid)CMP_SMALL(ppid)CMP_SMALL(pgrp)CMP_SMALL(session)CMP_INT(tty)CMP_SMALL(tpgid)CMP_SMALL(pcpu)CMP_SMALL(state)/* approximation to: kB of address space that could end up in swap */static int sr_swapable(const proc_t* P, const proc_t* Q) {  unsigned long p_swapable = P->vm_data + P->vm_stack;  unsigned long q_swapable = Q->vm_data + Q->vm_stack;  if (p_swapable < q_swapable) return -1;  if (p_swapable > q_swapable) return  1;  return 0;}/***************************************************************************//************ Lots of format functions, starting with the NOP **************/// so popular it can't be "static"int pr_nop(char *restrict const outbuf, const proc_t *restrict const pp){  (void)pp;  return snprintf(outbuf, COLWID, "%c", '-');}/********* Unix 98 ************//***Only comm and args are allowed to contain blank characters; all others arenot. Any implementation-dependent variables will be specified in the systemdocumentation along with the default header and indicating if the fieldmay contain blank characters.Some headers do not have a standardized specifier!%CPU	pcpu	The % of cpu time used recently, with unspecified "recently".ADDR		The address of the process.C		Processor utilisation for scheduling.CMD		The command name, or everything with -f.COMMAND	args	Command + args. May chop as desired. May use either version.COMMAND	comm	argv[0]ELAPSED	etime	Elapsed time since the process was started. [[dd-]hh:]mm:ssF		Flags (octal and additive)GROUP	group	Effective group ID, prefer text over decimal.NI	nice	Decimal system scheduling priority, see nice(1).PGID	pgid	The decimal value of the process group ID.PID	pid	Decimal PID.PPID	ppid	Decimal PID.PRI		Priority. Higher numbers mean lower priority.RGROUP	rgroup	Real group ID, prefer text over decimal.RUSER	ruser	Real user ID, prefer text over decimal.S		The state of the process.STIME		Starting time of the process.SZ		The size in blocks of the core image of the process.TIME	time	Cumulative CPU time. [dd-]hh:mm:ssTT	tty	Name of tty in format used by who(1).TTY		The controlling terminal for the process.UID		UID, or name when -fUSER	user	Effective user ID, prefer text over decimal.VSZ	vsz	Virtual memory size in decimal kB.WCHAN		Where waiting/sleeping or blank if running.The nice value is used to compute the priority.For some undefined ones, Digital does:F       flag    Process flags -- but in hex!PRI     pri     Process priorityS       state   Symbolic process statusTTY     tt,tty,tname,longtname  -- all do "ttyp1", "console", "??"UID     uid     Process user ID (effective UID)WCHAN   wchan   Address of event on which aFor some undefined ones, Sun does:ADDR	addr	memory address of the processC	c	Processor utilization  for  scheduling  (obsolete).CMDF	fS	s	state: OSRZTSTIME		start time, printed w/o blanks. If 24h old, months & daysSZ		size (in pages) of the swappable process's image in main memoryTTYUID	uidWCHAN	wchanFor some undefined ones, SCO does:ADDR	addr	Virtual address of the process' entry in the process table.SZ		swappable size in kB of the virtual data and stackSTIME	stime	hms or md time format***//* Source & destination are known. Return bytes or screen characters? */static int forest_helper(char *restrict const outbuf){  char *p = forest_prefix;  char *q = outbuf;  int rightward=max_rightward;  if(!*p) return 0;  /* Arrrgh! somebody defined unix as 1 */  if(forest_type == 'u') goto unixy;  while(*p){    switch(*p){    case ' ': strcpy(q, "    ");  break;    case 'L': strcpy(q, " \\_ "); break;    case '+': strcpy(q, " \\_ "); break;    case '|': strcpy(q, " |  ");  break;    case '\0': return q-outbuf;    /* redundant & not used */    }    if (rightward-4 < 0) {      *(q+rightward)='\0';      return max_rightward;    }    q += 4;    rightward -= 4;    p++;  }  return q-outbuf;   /* gcc likes this here */unixy:  while(*p){    switch(*p){    case ' ': strcpy(q, "  "); break;    case 'L': strcpy(q, "  "); break;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美激情在线| 亚洲一线二线三线久久久| 777亚洲妇女| 欧美精品在线一区二区| 一本色道久久综合亚洲精品按摩| 粉嫩aⅴ一区二区三区四区| 国精产品一区一区三区mba视频| 麻豆精品国产传媒mv男同| 日韩激情在线观看| 日本亚洲天堂网| 蜜桃久久精品一区二区| 奇米四色…亚洲| 狠狠网亚洲精品| 丁香婷婷综合网| av一区二区不卡| 91视频xxxx| 欧美日韩国产免费| 欧美一级免费大片| 久久香蕉国产线看观看99| 国产欧美精品一区aⅴ影院| 亚洲国产经典视频| 亚洲精品免费电影| 日韩中文字幕91| 久久99九九99精品| 国产99久久久久| 99久久精品一区| 欧美性感一区二区三区| 在线不卡欧美精品一区二区三区| 欧美一区在线视频| 精品国产百合女同互慰| 国产精品天干天干在观线| 亚洲精品视频在线| 日韩av在线发布| 国产乱码精品一区二区三区五月婷 | 欧美在线观看一区| 欧美二区三区的天堂| 久久久无码精品亚洲日韩按摩| 国产精品卡一卡二| 日韩中文欧美在线| 粉嫩av一区二区三区粉嫩| 在线观看av一区| 精品国产1区2区3区| 中文字幕一区二区三区四区 | 亚洲一区精品在线| 久久精品国产**网站演员| 成人免费毛片a| 欧美日韩一区二区电影| 久久一留热品黄| 亚洲一区二区成人在线观看| 久久国产精品72免费观看| 91在线观看视频| 日韩女同互慰一区二区| 综合在线观看色| 精品在线播放午夜| 91尤物视频在线观看| 欧美成人伊人久久综合网| 亚洲欧洲www| 久久99精品久久久| 色噜噜狠狠色综合中国| 久久综合久久综合久久| 亚洲国产日韩a在线播放| 国产91精品在线观看| 中文字幕精品在线不卡| 亚洲1区2区3区视频| 成人免费视频视频在线观看免费| 69堂精品视频| 亚洲欧洲日韩在线| 国产一区二区在线观看免费| 欧美在线一二三| 欧美国产精品v| 麻豆精品一区二区| 欧美日韩国产电影| 亚洲色图一区二区三区| 国产精品一区二区三区四区| 欧美区一区二区三区| 亚洲视频综合在线| 国产91富婆露脸刺激对白| 日韩欧美国产一区在线观看| 亚洲精品欧美激情| 99热在这里有精品免费| 国产欧美精品一区二区色综合 | 成人夜色视频网站在线观看| 337p亚洲精品色噜噜噜| 亚洲一区二区免费视频| 91亚洲资源网| 国产精品久久久久三级| 国产盗摄一区二区| 欧美一级日韩免费不卡| 亚洲高清免费视频| 色综合色狠狠综合色| 亚洲欧洲成人av每日更新| 国v精品久久久网| 久久久精品蜜桃| 国产成人精品影视| 久久久噜噜噜久噜久久综合| 国产一区二区在线视频| 久久综合精品国产一区二区三区 | 国产酒店精品激情| 亚洲精品一区二区三区香蕉| 麻豆91在线观看| 欧美一区二区精品久久911| 日本成人在线一区| 欧美另类变人与禽xxxxx| 午夜精品久久久久久久久 | 亚洲一区二区av在线| 欧美在线不卡视频| 亚洲精品国产高清久久伦理二区| 91日韩在线专区| 亚洲一区在线播放| 欧美精品亚洲二区| 日韩精品国产精品| 欧美v日韩v国产v| 激情综合网天天干| 国产色婷婷亚洲99精品小说| 国产91清纯白嫩初高中在线观看| 国产精品入口麻豆九色| 91在线看国产| 亚洲国产精品久久人人爱蜜臀 | 欧美精品一区二区高清在线观看| 激情国产一区二区| 国产亚洲1区2区3区| 成人aa视频在线观看| 亚洲最新在线观看| 欧美精品第1页| 国模娜娜一区二区三区| 国产精品卡一卡二卡三| 日本高清不卡一区| 亚洲大片免费看| 日韩一区二区三区免费看| 国产麻豆成人精品| 亚洲天堂免费在线观看视频| 欧美日韩在线不卡| 久久国产生活片100| 天使萌一区二区三区免费观看| 制服.丝袜.亚洲.中文.综合| 国产麻豆91精品| 亚洲男人天堂av| 4438x亚洲最大成人网| 国产呦精品一区二区三区网站| 国产精品拍天天在线| 欧美精品在线视频| 国产风韵犹存在线视精品| 亚洲一区二区三区四区在线免费观看 | 国产经典欧美精品| 亚洲制服丝袜av| 日韩欧美亚洲国产另类| 国产成人av电影在线观看| 一区二区免费看| 久久免费电影网| 欧美视频一区在线| 国产精品系列在线播放| 一区二区三区国产精品| 精品久久久久av影院| 91美女片黄在线| 激情伊人五月天久久综合| 亚洲欧美在线观看| 日韩免费看的电影| 色狠狠色狠狠综合| 国产成人免费在线视频| 午夜免费久久看| 国产精品色噜噜| 日韩美女一区二区三区四区| 色偷偷久久人人79超碰人人澡| 久久97超碰色| 亚洲图片欧美综合| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美三级一区二区| 福利一区二区在线观看| 蜜臀av性久久久久蜜臀aⅴ| 亚洲欧美激情插| 国产欧美精品一区二区色综合朱莉| 欧美伦理电影网| 色综合视频在线观看| 国产超碰在线一区| 久久国产三级精品| 天堂久久久久va久久久久| 亚洲欧美另类久久久精品| 国产亚洲人成网站| 日韩亚洲欧美一区二区三区| 91蝌蚪porny| 成人性生交大合| 狠狠色综合播放一区二区| 婷婷国产v国产偷v亚洲高清| 亚洲激情中文1区| 中文字幕中文字幕在线一区| 久久精品亚洲精品国产欧美| 日韩一区二区麻豆国产| 欧美日韩精品欧美日韩精品一综合| 国产69精品久久久久777| 国产一区中文字幕| 久久99精品一区二区三区三区| 水蜜桃久久夜色精品一区的特点| 亚洲人精品午夜| 国产精品国产三级国产| 国产丝袜欧美中文另类| 久久亚洲精华国产精华液| 精品日韩成人av| 精品国产乱码久久久久久图片 | 精品久久久久一区二区国产| 制服丝袜亚洲网站|