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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ascmagic.c

?? sleuthit-2.09 一個磁盤的工具集
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice immediately at the beginning of the file, without modification, *    this list of conditions, and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. *   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *//* * ASCII magic -- file types that we know based on keywords * that can appear anywhere in the file. * * Extensively modified by Eric Fischer <enf@pobox.com> in July, 2000, * to handle character codes other than ASCII on a unified basis. * * Joerg Wunsch <joerg@freebsd.org> wrote the original support for 8-bit * international characters, now subsumed into this file. */#include "file.h"#include "magic.h"#include <stdio.h>#include <string.h>#include <memory.h>#include <ctype.h>#include <stdlib.h>#ifdef HAVE_UNISTD_H#include <unistd.h>#endif#include "names.h"#ifndef	lintFILE_RCSID("@(#)$File: ascmagic.c,v 1.50 2007/03/15 14:51:00 christos Exp $")#endif	/* lint */typedef unsigned long unichar;#define MAXLINELEN 300	/* longest sane line length */#define ISSPC(x) ((x) == ' ' || (x) == '\t' || (x) == '\r' || (x) == '\n' \		  || (x) == 0x85 || (x) == '\f')private int looks_ascii(const unsigned char *, size_t, unichar *, size_t *);private int looks_utf8(const unsigned char *, size_t, unichar *, size_t *);private int looks_unicode(const unsigned char *, size_t, unichar *, size_t *);private int looks_latin1(const unsigned char *, size_t, unichar *, size_t *);private int looks_extended(const unsigned char *, size_t, unichar *, size_t *);private void from_ebcdic(const unsigned char *, size_t, unsigned char *);private int ascmatch(const unsigned char *, const unichar *, size_t);protected intfile_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes){	size_t i;	unsigned char *nbuf = NULL;	unichar *ubuf = NULL;		size_t ulen;	struct names *p;	int rv = -1;	const char *code = NULL;	const char *code_mime = NULL;	const char *type = NULL;	const char *subtype = NULL;	const char *subtype_mime = NULL;	int has_escapes = 0;	int has_backspace = 0;	int seen_cr = 0;	int n_crlf = 0;	int n_lf = 0;	int n_cr = 0;	int n_nel = 0;	size_t last_line_end = (size_t)-1;	int has_long_lines = 0;	/*	 * Undo the NUL-termination kindly provided by process()	 * but leave at least one byte to look at	 */	while (nbytes > 1 && buf[nbytes - 1] == '\0')		nbytes--;	if ((nbuf = calloc(1, (nbytes + 1) * sizeof(nbuf[0]))) == NULL)		goto done;	if ((ubuf = calloc(1, (nbytes + 1) * sizeof(ubuf[0]))) == NULL)		goto done;	/*	 * Then try to determine whether it's any character code we can	 * identify.  Each of these tests, if it succeeds, will leave	 * the text converted into one-unichar-per-character Unicode in	 * ubuf, and the number of characters converted in ulen.	 */	if (looks_ascii(buf, nbytes, ubuf, &ulen)) {		code = "ASCII";		code_mime = "us-ascii";		type = "text";	} else if (looks_utf8(buf, nbytes, ubuf, &ulen)) {		code = "UTF-8 Unicode";		code_mime = "utf-8";		type = "text";	} else if ((i = looks_unicode(buf, nbytes, ubuf, &ulen)) != 0) {		if (i == 1)			code = "Little-endian UTF-16 Unicode";		else			code = "Big-endian UTF-16 Unicode";		type = "character data";		code_mime = "utf-16";    /* is this defined? */	} else if (looks_latin1(buf, nbytes, ubuf, &ulen)) {		code = "ISO-8859";		type = "text";		code_mime = "iso-8859-1"; 	} else if (looks_extended(buf, nbytes, ubuf, &ulen)) {		code = "Non-ISO extended-ASCII";		type = "text";		code_mime = "unknown";	} else {		from_ebcdic(buf, nbytes, nbuf);		if (looks_ascii(nbuf, nbytes, ubuf, &ulen)) {			code = "EBCDIC";			type = "character data";			code_mime = "ebcdic";		} else if (looks_latin1(nbuf, nbytes, ubuf, &ulen)) {			code = "International EBCDIC";			type = "character data";			code_mime = "ebcdic";		} else {			rv = 0;			goto done;  /* doesn't look like text at all */		}	}	if (nbytes <= 1) {		rv = 0;		goto done;	}	/*	 * for troff, look for . + letter + letter or .\";	 * this must be done to disambiguate tar archives' ./file	 * and other trash from real troff input.	 *	 * I believe Plan 9 troff allows non-ASCII characters in the names	 * of macros, so this test might possibly fail on such a file.	 */	if ((ms->flags & MAGIC_NO_CHECK_TROFF) == 0 && *ubuf == '.') {		unichar *tp = ubuf + 1;		while (ISSPC(*tp))			++tp;	/* skip leading whitespace */		if ((tp[0] == '\\' && tp[1] == '\"') ||		    (isascii((unsigned char)tp[0]) &&		     isalnum((unsigned char)tp[0]) &&		     isascii((unsigned char)tp[1]) &&		     isalnum((unsigned char)tp[1]) &&		     ISSPC(tp[2]))) {			subtype_mime = "text/troff";			subtype = "troff or preprocessor input";			goto subtype_identified;		}	}	if ((ms->flags & MAGIC_NO_CHECK_FORTRAN) == 0 &&	    (*buf == 'c' || *buf == 'C') && ISSPC(buf[1])) {		subtype_mime = "text/fortran";		subtype = "fortran program";		goto subtype_identified;	}	/* look for tokens from names.h - this is expensive! */	if ((ms->flags & MAGIC_NO_CHECK_TOKENS) != 0)		goto subtype_identified;	i = 0;	while (i < ulen) {		size_t end;		/*		 * skip past any leading space		 */		while (i < ulen && ISSPC(ubuf[i]))			i++;		if (i >= ulen)			break;		/*		 * find the next whitespace		 */		for (end = i + 1; end < nbytes; end++)			if (ISSPC(ubuf[end]))				break;		/*		 * compare the word thus isolated against the token list		 */		for (p = names; p < names + NNAMES; p++) {			if (ascmatch((const unsigned char *)p->name, ubuf + i,			    end - i)) {				subtype = types[p->type].human;				subtype_mime = types[p->type].mime;				goto subtype_identified;			}		}		i = end;	}subtype_identified:	/*	 * Now try to discover other details about the file.	 */	for (i = 0; i < ulen; i++) {		if (ubuf[i] == '\n') {			if (seen_cr)				n_crlf++;			else				n_lf++;			last_line_end = i;		} else if (seen_cr)			n_cr++;		seen_cr = (ubuf[i] == '\r');		if (seen_cr)			last_line_end = i;		if (ubuf[i] == 0x85) { /* X3.64/ECMA-43 "next line" character */			n_nel++;			last_line_end = i;		}		/* If this line is _longer_ than MAXLINELEN, remember it. */		if (i > last_line_end + MAXLINELEN)			has_long_lines = 1;		if (ubuf[i] == '\033')			has_escapes = 1;		if (ubuf[i] == '\b')			has_backspace = 1;	}	/* Beware, if the data has been truncated, the final CR could have	   been followed by a LF.  If we have HOWMANY bytes, it indicates	   that the data might have been truncated, probably even before	   this function was called. */	if (seen_cr && nbytes < HOWMANY)		n_cr++;	if ((ms->flags & MAGIC_MIME)) {		if (subtype_mime) {			if (file_printf(ms, subtype_mime) == -1)				goto done;		} else {			if (file_printf(ms, "text/plain") == -1)				goto done;		}		if (code_mime) {			if (file_printf(ms, "; charset=") == -1)				goto done;			if (file_printf(ms, code_mime) == -1)				goto done;		}	} else {		if (file_printf(ms, code) == -1)			goto done;		if (subtype) {			if (file_printf(ms, " ") == -1)				goto done;			if (file_printf(ms, subtype) == -1)				goto done;		}		if (file_printf(ms, " ") == -1)			goto done;		if (file_printf(ms, type) == -1)			goto done;		if (has_long_lines)			if (file_printf(ms, ", with very long lines") == -1)				goto done;		/*		 * Only report line terminators if we find one other than LF,		 * or if we find none at all.		 */		if ((n_crlf == 0 && n_cr == 0 && n_nel == 0 && n_lf == 0) ||		    (n_crlf != 0 || n_cr != 0 || n_nel != 0)) {			if (file_printf(ms, ", with") == -1)				goto done;			if (n_crlf == 0 && n_cr == 0 && n_nel == 0 && n_lf == 0)			{				if (file_printf(ms, " no") == -1)					goto done;			} else {				if (n_crlf) {					if (file_printf(ms, " CRLF") == -1)						goto done;					if (n_cr || n_lf || n_nel)						if (file_printf(ms, ",") == -1)							goto done;				}				if (n_cr) {					if (file_printf(ms, " CR") == -1)						goto done;					if (n_lf || n_nel)						if (file_printf(ms, ",") == -1)							goto done;				}				if (n_lf) {					if (file_printf(ms, " LF") == -1)						goto done;					if (n_nel)						if (file_printf(ms, ",") == -1)							goto done;				}				if (n_nel)					if (file_printf(ms, " NEL") == -1)						goto done;			}			if (file_printf(ms, " line terminators") == -1)				goto done;		}		if (has_escapes)			if (file_printf(ms, ", with escape sequences") == -1)				goto done;		if (has_backspace)			if (file_printf(ms, ", with overstriking") == -1)				goto done;	}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品国产视频| 粉嫩高潮美女一区二区三区| 日韩免费观看高清完整版在线观看| 久久国产婷婷国产香蕉| 国产婷婷色一区二区三区四区| 成人一区二区三区视频在线观看| 亚洲一区二区三区四区不卡| 欧美一区二区三区视频免费播放| 成人永久免费视频| 午夜视黄欧洲亚洲| 国产精品免费久久久久| 精品视频免费看| 国产91精品久久久久久久网曝门| 亚洲一区二区三区美女| 久久日一线二线三线suv| 在线观看日韩电影| 国产久卡久卡久卡久卡视频精品| 一区二区三区**美女毛片| 日韩欧美资源站| 日本乱码高清不卡字幕| 国产一区二区三区电影在线观看| 一区二区三区在线观看视频| 精品久久久久久久久久久久久久久| 91免费观看国产| 国产自产2019最新不卡| 亚洲h动漫在线| 日韩一区有码在线| 久久精品日韩一区二区三区| 7777精品伊人久久久大香线蕉超级流畅 | 午夜精品久久久久久久 | 亚洲欧美视频在线观看| 91精品久久久久久久99蜜桃| 99国产欧美久久久精品| 韩国av一区二区三区在线观看| 亚洲一级二级三级在线免费观看| 国产精品你懂的| 久久久国际精品| 欧美成人精品高清在线播放| 制服丝袜成人动漫| 欧美日韩另类一区| 在线观看亚洲专区| 97se亚洲国产综合自在线观| 丰满亚洲少妇av| 国产乱码精品一区二区三区av | 精品国产一区二区精华| 88在线观看91蜜桃国自产| 色www精品视频在线观看| 不卡av电影在线播放| 91在线云播放| 亚洲另类色综合网站| 国产三级一区二区三区| 欧美变态凌虐bdsm| 欧美一区二区三区在线视频| 欧美日韩卡一卡二| 欧美日韩国产不卡| 欧美色综合影院| 91国产精品成人| 欧美综合天天夜夜久久| 91福利资源站| 欧美三电影在线| 欧美老肥妇做.爰bbww| 欧美日韩激情在线| 91精品国产免费| 日韩欧美精品三级| 亚洲精品在线电影| 国产女人水真多18毛片18精品视频| 国产亚洲福利社区一区| 中文av字幕一区| 亚洲乱码国产乱码精品精98午夜| 亚洲欧美另类图片小说| 亚洲综合偷拍欧美一区色| 亚洲午夜电影在线| 日韩精品免费视频人成| 蜜桃av噜噜一区二区三区小说| 免费观看在线色综合| 精品一区二区成人精品| 国产精品自产自拍| 99精品桃花视频在线观看| 色老综合老女人久久久| 欧美日韩小视频| 日韩精品一区二区三区在线 | 成人午夜av在线| 91麻豆免费观看| 欧美乱妇23p| www国产成人免费观看视频 深夜成人网| 久久一夜天堂av一区二区三区| 国产精品视频麻豆| 亚洲成人777| 国产乱码精品一区二区三区av| 99精品在线免费| 7777精品伊人久久久大香线蕉的 | 91精品婷婷国产综合久久| 欧美成人a在线| 91精品啪在线观看国产60岁| 91年精品国产| 777亚洲妇女| 国产精品天干天干在线综合| 亚洲一区中文在线| 国模一区二区三区白浆| 91丨九色丨蝌蚪丨老版| 欧美一区二区三区人| 国产精品视频一二| 免费看黄色91| 99国内精品久久| 亚洲精品一区二区精华| 亚洲人快播电影网| 国产精品综合网| 欧美精品亚洲一区二区在线播放| 国产午夜精品一区二区三区嫩草| 亚洲一区在线视频| 国产不卡视频一区二区三区| 5月丁香婷婷综合| 国产精品久久久久久久蜜臀| 五月婷婷久久综合| 99久久国产综合精品麻豆| 国产日韩高清在线| 亚洲一级二级在线| 成人高清在线视频| 精品成人一区二区三区四区| 伊人婷婷欧美激情| 高清国产一区二区| 91精品国产一区二区三区| 亚洲天堂成人网| 激情av综合网| 欧美一区二区三区播放老司机| 亚洲色图第一区| 国产69精品久久久久毛片| 欧美一区二区三区在线观看视频| 一区二区三区在线免费| 成人国产电影网| 国产日韩欧美精品电影三级在线| 麻豆精品在线播放| 在线电影国产精品| 一区二区不卡在线视频 午夜欧美不卡在| 国产一区二区调教| 日韩免费一区二区| 蜜桃久久久久久| 欧美一级夜夜爽| 午夜精品福利视频网站| 欧美亚洲动漫另类| 一区二区三区不卡在线观看| caoporen国产精品视频| 国产精品天天看| 成人听书哪个软件好| 久久综合九色综合97婷婷女人 | 婷婷综合另类小说色区| 日本精品一区二区三区高清| 国产精品久久久久一区二区三区| 国产成人免费视频一区| 久久久久久电影| 国产美女久久久久| 中文字幕精品一区二区三区精品| 国产精品1区2区3区| 久久久精品免费网站| 国产一区不卡精品| 国产视频不卡一区| 丁香网亚洲国际| 中文字幕一区二区三区色视频| 91玉足脚交白嫩脚丫在线播放| 亚洲欧美自拍偷拍色图| 91天堂素人约啪| 亚洲一区视频在线观看视频| 欧美日韩在线一区二区| 日韩激情视频网站| 精品国产污网站| 成人手机电影网| 亚洲欧美色综合| 欧美不卡在线视频| 国产一区二区不卡| **网站欧美大片在线观看| 日本韩国一区二区| 亚洲第一福利一区| 欧美tickling网站挠脚心| 国产成人自拍在线| 亚洲视频在线观看一区| 欧美私模裸体表演在线观看| 视频一区二区三区入口| 亚洲精品在线网站| 99国产精品久久久久久久久久久| 亚洲精品视频免费看| 国产精品 日产精品 欧美精品| 欧美午夜在线观看| 蜜臀精品久久久久久蜜臀| 久久久美女毛片| 91美女在线观看| 欧美aaa在线| 国产精品毛片无遮挡高清| 在线观看一区二区精品视频| 琪琪一区二区三区| 国产日韩欧美综合一区| 欧洲激情一区二区| 老司机精品视频在线| 国产精品黄色在线观看 | 制服丝袜亚洲色图| 国产高清精品在线| 午夜激情综合网| 中文字幕的久久| 欧美一级日韩一级| 91丨porny丨户外露出| 日韩 欧美一区二区三区|