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

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

?? mkdep.c

?? fsmlabs的real time linux的內核
?? C
字號:
/* * Originally by Linus Torvalds. * Smart CONFIG_* processing by Werner Almesberger, Michael Chastain. * * Usage: mkdep file ... *  * Read source files and output makefile dependency lines for them. * I make simple dependency lines for #include <*.h> and #include "*.h". * I also find instances of CONFIG_FOO and generate dependencies *    like include/config/foo.h. * * 1 August 1999, Michael Elizabeth Chastain, <mec@shout.net> * - Keith Owens reported a bug in smart config processing.  There used *   to be an optimization for "#define CONFIG_FOO ... #ifdef CONFIG_FOO", *   so that the file would not depend on CONFIG_FOO because the file defines *   this symbol itself.  But this optimization is bogus!  Consider this code: *   "#if 0 \n #define CONFIG_FOO \n #endif ... #ifdef CONFIG_FOO".  Here *   the definition is inactivated, but I still used it.  It turns out this *   actually happens a few times in the kernel source.  The simple way to *   fix this problem is to remove this particular optimization. */#include <ctype.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/fcntl.h>#include <sys/mman.h>#include <sys/stat.h>#include <sys/types.h>char __depname[512] = "\n\t@touch ";#define depname (__depname+9)int hasdep;struct path_struct {	int len;	char buffer[256-sizeof(int)];} path_array[2] = {	{  0, "" },	{  0, "" }};/* * This records all the configuration options seen. * In perl this would be a hash, but here it's a long string * of values separated by newlines.  This is simple and * extremely fast. */char * str_config  = NULL;int    size_config = 0;int    len_config  = 0;/* * Grow the configuration string to a desired length. * Usually the first growth is plenty. */void grow_config(int len){	if (str_config == NULL) {		len_config  = 0;		size_config = 4096;		str_config  = malloc(4096);		if (str_config == NULL)			{ perror("malloc"); exit(1); }	}	while (len_config + len > size_config) {		str_config = realloc(str_config, size_config *= 2);		if (str_config == NULL)			{ perror("malloc config"); exit(1); }	}}/* * Lookup a value in the configuration string. */int is_defined_config(const char * name, int len){	const char * pconfig;	const char * plast = str_config + len_config - len;	for ( pconfig = str_config + 1; pconfig < plast; pconfig++ ) {		if (pconfig[ -1] == '\n'		&&  pconfig[len] == '\n'		&&  !memcmp(pconfig, name, len))			return 1;	}	return 0;}/* * Add a new value to the configuration string. */void define_config(const char * name, int len){	grow_config(len + 1);	memcpy(str_config+len_config, name, len);	len_config += len;	str_config[len_config++] = '\n';}/* * Clear the set of configuration strings. */void clear_config(void){	len_config = 0;	define_config("", 0);}/* * This records all the precious .h filenames.  No need for a hash, * it's a long string of values enclosed in tab and newline. */char * str_precious  = NULL;int    size_precious = 0;int    len_precious  = 0;/* * Grow the precious string to a desired length. * Usually the first growth is plenty. */void grow_precious(int len){	if (str_precious == NULL) {		len_precious  = 0;		size_precious = 4096;		str_precious  = malloc(4096);		if (str_precious == NULL)			{ perror("malloc precious"); exit(1); }	}	while (len_precious + len > size_precious) {		str_precious = realloc(str_precious, size_precious *= 2);		if (str_precious == NULL)			{ perror("malloc"); exit(1); }	}}/* * Add a new value to the precious string. */void define_precious(const char * filename){	int len = strlen(filename);	grow_precious(len + 4);	*(str_precious+len_precious++) = '\t';	memcpy(str_precious+len_precious, filename, len);	len_precious += len;	memcpy(str_precious+len_precious, " \\\n", 3);	len_precious += 3;}/* * Handle an #include line. */void handle_include(int type, const char * name, int len){	struct path_struct *path = path_array+type;	if (len == 14 && !memcmp(name, "linux/config.h", len))		return;	if (len >= 7 && !memcmp(name, "config/", 7))		define_config(name+7, len-7-2);	memcpy(path->buffer+path->len, name, len);	path->buffer[path->len+len] = '\0';	if (access(path->buffer, F_OK) != 0)		return;	if (!hasdep) {		hasdep = 1;		printf("%s:", depname);	}	printf(" \\\n   %s", path->buffer);}/* * Record the use of a CONFIG_* word. */void use_config(const char * name, int len){	char *pc;	int i;	pc = path_array[0].buffer + path_array[0].len;	memcpy(pc, "config/", 7);	pc += 7;	for (i = 0; i < len; i++) {	    char c = name[i];	    if (isupper(c)) c = tolower(c);	    if (c == '_')   c = '/';	    pc[i] = c;	}	pc[len] = '\0';	if (is_defined_config(pc, len))	    return;	define_config(pc, len);	if (!hasdep) {		hasdep = 1;		printf("%s: ", depname);	}	printf(" \\\n   $(wildcard %s.h)", path_array[0].buffer);}/* * Macros for stunningly fast map-based character access. * __buf is a register which holds the current word of the input. * Thus, there is one memory access per sizeof(unsigned long) characters. */#if defined(__alpha__) || defined(__i386__) || defined(__ia64__) || defined(__MIPSEL__)	\    || defined(__arm__)#define LE_MACHINE#endif#ifdef LE_MACHINE#define next_byte(x) (x >>= 8)#define current ((unsigned char) __buf)#else#define next_byte(x) (x <<= 8)#define current (__buf >> 8*(sizeof(unsigned long)-1))#endif#define GETNEXT { \	next_byte(__buf); \	if ((unsigned long) next % sizeof(unsigned long) == 0) { \		if (next >= end) \			break; \		__buf = * (unsigned long *) next; \	} \	next++; \}/* * State machine macros. */#define CASE(c,label) if (current == c) goto label#define NOTCASE(c,label) if (current != c) goto label/* * Yet another state machine speedup. */#define MAX2(a,b) ((a)>(b)?(a):(b))#define MIN2(a,b) ((a)<(b)?(a):(b))#define MAX6(a,b,c,d,e,f) (MAX2(a,MAX2(b,MAX2(c,MAX2(d,MAX2(e,f))))))#define MIN6(a,b,c,d,e,f) (MIN2(a,MIN2(b,MIN2(c,MIN2(d,MIN2(e,f))))))/* * The state machine looks for (approximately) these Perl regular expressions: * *    m|\/\*.*?\*\/| *    m|'.*?'| *    m|".*?"| *    m|#\s*include\s*"(.*?)"| *    m|#\s*include\s*<(.*?>"| *    m|#\s*(?define|undef)\s*CONFIG_(\w*)| *    m|(?!\w)CONFIG_| *    m|__SMP__| * * About 98% of the CPU time is spent here, and most of that is in * the 'start' paragraph.  Because the current characters are * in a register, the start loop usually eats 4 or 8 characters * per memory read.  The MAX6 and MIN6 tests dispose of most * input characters with 1 or 2 comparisons. */void state_machine(const char * map, const char * end){	const char * next = map;	const char * map_dot;	unsigned long __buf = 0;	for (;;) {start:	GETNEXT__start:	if (current > MAX6('/','\'','"','#','C','_')) goto start;	if (current < MIN6('/','\'','"','#','C','_')) goto start;	CASE('/',  slash);	CASE('\'', squote);	CASE('"',  dquote);	CASE('#',  pound);	CASE('C',  cee);	CASE('_',  underscore);	goto start;/* / */slash:	GETNEXT	NOTCASE('*', __start);slash_star_dot_star:	GETNEXT__slash_star_dot_star:	NOTCASE('*', slash_star_dot_star);	GETNEXT	NOTCASE('/', __slash_star_dot_star);	goto start;/* '.*?' */squote:	GETNEXT	CASE('\'', start);	NOTCASE('\\', squote);	GETNEXT	goto squote;/* ".*?" */dquote:	GETNEXT	CASE('"', start);	NOTCASE('\\', dquote);	GETNEXT	goto dquote;/* #\s* */pound:	GETNEXT	CASE(' ',  pound);	CASE('\t', pound);	CASE('i',  pound_i);	CASE('d',  pound_d);	CASE('u',  pound_u);	goto __start;/* #\s*i */pound_i:	GETNEXT NOTCASE('n', __start);	GETNEXT NOTCASE('c', __start);	GETNEXT NOTCASE('l', __start);	GETNEXT NOTCASE('u', __start);	GETNEXT NOTCASE('d', __start);	GETNEXT NOTCASE('e', __start);	goto pound_include;/* #\s*include\s* */pound_include:	GETNEXT	CASE(' ',  pound_include);	CASE('\t', pound_include);	map_dot = next;	CASE('"',  pound_include_dquote);	CASE('<',  pound_include_langle);	goto __start;/* #\s*include\s*"(.*)" */pound_include_dquote:	GETNEXT	CASE('\n', start);	NOTCASE('"', pound_include_dquote);	handle_include(1, map_dot, next - map_dot - 1);	goto start;/* #\s*include\s*<(.*)> */pound_include_langle:	GETNEXT	CASE('\n', start);	NOTCASE('>', pound_include_langle);	handle_include(0, map_dot, next - map_dot - 1);	goto start;/* #\s*d */pound_d:	GETNEXT NOTCASE('e', __start);	GETNEXT NOTCASE('f', __start);	GETNEXT NOTCASE('i', __start);	GETNEXT NOTCASE('n', __start);	GETNEXT NOTCASE('e', __start);	goto pound_define_undef;/* #\s*u */pound_u:	GETNEXT NOTCASE('n', __start);	GETNEXT NOTCASE('d', __start);	GETNEXT NOTCASE('e', __start);	GETNEXT NOTCASE('f', __start);	goto pound_define_undef;/* * #\s*(define|undef)\s*CONFIG_(\w*) * * this does not define the word, because it could be inside another * conditional (#if 0).  But I do parse the word so that this instance * does not count as a use.  -- mec */pound_define_undef:	GETNEXT	CASE(' ',  pound_define_undef);	CASE('\t', pound_define_undef);	        NOTCASE('C', __start);	GETNEXT NOTCASE('O', __start);	GETNEXT NOTCASE('N', __start);	GETNEXT NOTCASE('F', __start);	GETNEXT NOTCASE('I', __start);	GETNEXT NOTCASE('G', __start);	GETNEXT NOTCASE('_', __start);	map_dot = next;pound_define_undef_CONFIG_word:	GETNEXT	if (isalnum(current) || current == '_')		goto pound_define_undef_CONFIG_word;	goto __start;/* \<CONFIG_(\w*) */cee:	if (next >= map+2 && (isalnum(next[-2]) || next[-2] == '_'))		goto start;	GETNEXT NOTCASE('O', __start);	GETNEXT NOTCASE('N', __start);	GETNEXT NOTCASE('F', __start);	GETNEXT NOTCASE('I', __start);	GETNEXT NOTCASE('G', __start);	GETNEXT NOTCASE('_', __start);	map_dot = next;cee_CONFIG_word:	GETNEXT	if (isalnum(current) || current == '_')		goto cee_CONFIG_word;	use_config(map_dot, next - map_dot - 1);	goto __start;/* __SMP__ */underscore:	GETNEXT NOTCASE('_', __start);	GETNEXT NOTCASE('S', __start);	GETNEXT NOTCASE('M', __start);	GETNEXT NOTCASE('P', __start);	GETNEXT NOTCASE('_', __start);	GETNEXT NOTCASE('_', __start);	use_config("SMP", 3);	goto __start;    }}/* * Generate dependencies for one file. */void do_depend(const char * filename, const char * command){	int mapsize;	int pagesizem1 = getpagesize()-1;	int fd;	struct stat st;	char * map;	fd = open(filename, O_RDONLY);	if (fd < 0) {		perror(filename);		return;	}	fstat(fd, &st);	if (st.st_size == 0) {		fprintf(stderr,"%s is empty\n",filename);		close(fd);		return;	}	mapsize = st.st_size;	mapsize = (mapsize+pagesizem1) & ~pagesizem1;	map = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0);	if ((long) map == -1) {		perror("mkdep: mmap");		close(fd);		return;	}	if ((unsigned long) map % sizeof(unsigned long) != 0)	{		fprintf(stderr, "do_depend: map not aligned\n");		exit(1);	}	hasdep = 0;	clear_config();	state_machine(map, map+st.st_size);	if (hasdep) {		puts(command);		if (*command)			define_precious(filename);	}	munmap(map, mapsize);	close(fd);}/* * Generate dependencies for all files. */int main(int argc, char **argv){	int len;	char *hpath;	hpath = getenv("HPATH");	if (!hpath) {		fputs("mkdep: HPATH not set in environment.  "		      "Don't bypass the top level Makefile.\n", stderr);		return 1;	}	len = strlen(hpath);	memcpy(path_array[0].buffer, hpath, len);	if (len && hpath[len-1] != '/')		path_array[0].buffer[len++] = '/';	path_array[0].buffer[len] = '\0';	path_array[0].len = len;	while (--argc > 0) {		const char * filename = *++argv;		const char * command  = __depname;		len = strlen(filename);		memcpy(depname, filename, len+1);		if (len > 2 && filename[len-2] == '.') {			if (filename[len-1] == 'c' || filename[len-1] == 'S') {			    depname[len-1] = 'o';			    command = "";			}		}		do_depend(filename, command);	}	if (len_precious) {		*(str_precious+len_precious) = '\0';		printf(".PRECIOUS:%s\n", str_precious);	}	return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av网站在线观看| 一区二区视频在线| 91麻豆精品视频| 欧美日韩国产综合一区二区 | 日本一区二区三级电影在线观看| 国产日韩三级在线| 日韩精品五月天| 99视频一区二区三区| 欧美乱熟臀69xxxxxx| 国产农村妇女精品| 麻豆国产精品官网| 91丨国产丨九色丨pron| 欧美成人欧美edvon| 天天操天天色综合| 99视频在线观看一区三区| 日韩美女主播在线视频一区二区三区| 亚洲图片你懂的| 精品亚洲免费视频| 欧美色图天堂网| 精品区一区二区| 日韩影视精彩在线| 成年人国产精品| 日韩三级.com| 三级欧美韩日大片在线看| 91视频在线观看免费| 久久这里只精品最新地址| 亚洲欧美日本韩国| 97超碰欧美中文字幕| 日本一区二区三区四区在线视频| 日韩国产欧美视频| 欧美日韩夫妻久久| 亚洲裸体xxx| 波多野结衣在线一区| 国产女人水真多18毛片18精品视频 | 欧美喷潮久久久xxxxx| 亚洲毛片av在线| 色哟哟在线观看一区二区三区| 久久久国产精品午夜一区ai换脸| 国产一区二区按摩在线观看| 日韩欧美综合在线| 麻豆免费看一区二区三区| 99精品国产99久久久久久白柏 | 日韩视频免费观看高清在线视频| 国产精品美女久久久久高潮| 国产最新精品免费| 精品欧美一区二区久久| 激情欧美一区二区| 日韩女优av电影| 韩国视频一区二区| 91精品国产综合久久精品性色| 日本成人在线视频网站| 欧美一卡在线观看| 久久99精品国产.久久久久久| 亚洲精品在线观看网站| 精品亚洲成a人在线观看| 精品精品国产高清a毛片牛牛| 精品中文av资源站在线观看| 日韩精品一区二区三区四区视频| 麻豆91精品91久久久的内涵| 欧美三级电影精品| 黄色小说综合网站| 国产日韩精品一区二区三区在线| 国产69精品久久久久毛片| 亚洲特黄一级片| 欧美日韩高清不卡| 国产一区高清在线| 亚洲精品免费在线观看| 欧美久久久久免费| 国产真实乱子伦精品视频| 欧美成人vps| 色综合久久久久久久久久久| 亚洲福利视频导航| 精品国产乱子伦一区| 91免费国产在线| 天使萌一区二区三区免费观看| 欧美大片一区二区| 91色porny在线视频| 日韩成人免费电影| 国产日韩欧美精品电影三级在线| 国产精品99久久久久久有的能看 | 欧美成人激情免费网| 成人精品鲁一区一区二区| 一区二区三区日韩欧美精品 | 欧美视频在线观看一区二区| 一区二区国产盗摄色噜噜| 日韩小视频在线观看专区| 国产成人av一区二区三区在线观看| 亚洲精品网站在线观看| 日韩西西人体444www| 99在线热播精品免费| 日韩和欧美的一区| 亚洲免费毛片网站| 精品电影一区二区| 欧美日本一区二区三区四区| 成人午夜av电影| 日本视频中文字幕一区二区三区| 中文字幕日本不卡| 精品国产免费久久| 欧美久久久久免费| 国产成人免费av在线| 久久精品久久99精品久久| 亚洲欧美国产77777| 26uuu久久天堂性欧美| 日韩一区二区在线观看视频播放| 91麻豆蜜桃一区二区三区| 国产在线播放一区三区四| 亚洲激情校园春色| 国产精品人妖ts系列视频| 欧美一区二区三区成人| 国产麻豆成人精品| 国产精一品亚洲二区在线视频| 亚洲国产一区视频| 亚洲精品久久久久久国产精华液| 亚洲日本va在线观看| 国产性做久久久久久| 欧美电影免费提供在线观看| 日韩一级片网站| 欧美一区二区精品在线| 欧美性大战久久| 欧美亚洲尤物久久| 欧美色成人综合| 欧洲精品中文字幕| 国产69精品久久久久毛片| 成人激情免费电影网址| 国产成人精品一区二区三区四区| 美国十次了思思久久精品导航| 久久国产夜色精品鲁鲁99| 青草av.久久免费一区| 午夜久久久久久| 久久精品国产久精国产| 美女网站视频久久| 国产老肥熟一区二区三区| 国产成人免费视频精品含羞草妖精| 国产美女av一区二区三区| 国产精品456露脸| 色婷婷激情一区二区三区| 在线观看av一区| 欧美日韩国产区一| 日韩一级片网址| 欧美国产乱子伦| 久久美女艺术照精彩视频福利播放| 欧美va天堂va视频va在线| 久久久精品欧美丰满| 日本一区二区三区视频视频| 亚洲丝袜自拍清纯另类| 亚洲综合成人在线视频| 亚洲国产成人tv| 美女爽到高潮91| 高清在线成人网| 国产精品资源在线| 日本久久电影网| 3atv一区二区三区| 精品日韩在线观看| 最新国产成人在线观看| 亚洲精品水蜜桃| 另类小说一区二区三区| 色94色欧美sute亚洲线路二 | 91麻豆精品国产综合久久久久久| 精品欧美一区二区在线观看| 国产精品久久久久桃色tv| 亚洲欧洲成人av每日更新| 香蕉久久夜色精品国产使用方法| 麻豆视频一区二区| 懂色av一区二区三区免费观看| 欧美日韩一区二区三区免费看| 日韩欧美国产一区二区三区 | 99热精品国产| 欧美三级在线看| 国产精品美女视频| 久久精品国产999大香线蕉| 在线免费一区三区| 欧美激情一区三区| 极品少妇xxxx精品少妇偷拍| 欧美日韩精品免费观看视频| 中文字幕一区二区三区不卡 | 久久一区二区三区四区| 亚洲成人第一页| 91老师国产黑色丝袜在线| 久久久亚洲精品石原莉奈| 日产欧产美韩系列久久99| 色哟哟欧美精品| 国产精品久久精品日日| 国产一区二区三区av电影| 日韩一级免费观看| 日韩av一区二区三区四区| 欧洲国产伦久久久久久久| 亚洲男人电影天堂| 99久久伊人精品| 国产精品电影一区二区三区| 国产成人超碰人人澡人人澡| 精品久久久三级丝袜| 日本在线不卡视频一二三区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 99久久国产综合精品女不卡| 国产日韩高清在线| 成人av在线播放网址| 欧美国产一区二区| 国产1区2区3区精品美女| 国产精品区一区二区三| 成人禁用看黄a在线|