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

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

?? error.c

?? Android 一些工具
?? C
字號:
/*	$NetBSD: error.c,v 1.31 2003/08/07 09:05:30 agc Exp $	*//*- * Copyright (c) 1991, 1993 *	The Regents of the University of California.  All rights reserved. * * This code is derived from software contributed to Berkeley by * Kenneth Almquist. * * 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, 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. * 3. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. */#include <sys/cdefs.h>#ifndef lint#if 0static char sccsid[] = "@(#)error.c	8.2 (Berkeley) 5/4/95";#else__RCSID("$NetBSD: error.c,v 1.31 2003/08/07 09:05:30 agc Exp $");#endif#endif /* not lint *//* * Errors and exceptions. */#include <signal.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <stdio.h>#include <string.h>#include "shell.h"#include "main.h"#include "options.h"#include "output.h"#include "error.h"#include "show.h"#define signal bsd_signal/* * Code to handle exceptions in C. */struct jmploc *handler;int exception;volatile int suppressint;volatile int intpending;char *commandname;static void exverror(int, const char *, va_list)    __attribute__((__noreturn__));/* * Called to raise an exception.  Since C doesn't include exceptions, we * just do a longjmp to the exception handler.  The type of exception is * stored in the global variable "exception". */voidexraise(int e){	if (handler == NULL)		abort();	exception = e;	longjmp(handler->loc, 1);}/* * Called from trap.c when a SIGINT is received.  (If the user specifies * that SIGINT is to be trapped or ignored using the trap builtin, then * this routine is not called.)  Suppressint is nonzero when interrupts * are held using the INTOFF macro.  The call to _exit is necessary because * there is a short period after a fork before the signal handlers are * set to the appropriate value for the child.  (The test for iflag is * just defensive programming.) */voidonint(void){	sigset_t nsigset;	if (suppressint) {		intpending = 1;		return;	}	intpending = 0;	sigemptyset(&nsigset);	sigprocmask(SIG_SETMASK, &nsigset, NULL);	if (rootshell && iflag)		exraise(EXINT);	else {		signal(SIGINT, SIG_DFL);		raise(SIGINT);	}	/* NOTREACHED */}static voidexvwarning(int sv_errno, const char *msg, va_list ap){	/* Partially emulate line buffered output so that:	 *	printf '%d\n' 1 a 2	 * and	 *	printf '%d %d %d\n' 1 a 2	 * both generate sensible text when stdout and stderr are merged.	 */	if (output.nextc != output.buf && output.nextc[-1] == '\n')		flushout(&output);	if (commandname)		outfmt(&errout, "%s: ", commandname);	if (msg != NULL) {		doformat(&errout, msg, ap);		if (sv_errno >= 0)			outfmt(&errout, ": ");	}	if (sv_errno >= 0)		outfmt(&errout, "%s", strerror(sv_errno));	out2c('\n');	flushout(&errout);}/* * Exverror is called to raise the error exception.  If the second argument * is not NULL then error prints an error message using printf style * formatting.  It then raises the error exception. */static voidexverror(int cond, const char *msg, va_list ap){	CLEAR_PENDING_INT;	INTOFF;#ifdef DEBUG	if (msg) {		TRACE(("exverror(%d, \"", cond));		TRACEV((msg, ap));		TRACE(("\") pid=%d\n", getpid()));	} else		TRACE(("exverror(%d, NULL) pid=%d\n", cond, getpid()));#endif	if (msg)		exvwarning(-1, msg, ap);	flushall();	exraise(cond);	/* NOTREACHED */}voiderror(const char *msg, ...){	va_list ap;	va_start(ap, msg);	exverror(EXERROR, msg, ap);	/* NOTREACHED */	va_end(ap);}voidexerror(int cond, const char *msg, ...){	va_list ap;	va_start(ap, msg);	exverror(cond, msg, ap);	/* NOTREACHED */	va_end(ap);}/* * error/warning routines for external builtins */voidsh_exit(int rval){	exerrno = rval & 255;	exraise(EXEXEC);}voidsh_err(int status, const char *fmt, ...){	va_list ap;	va_start(ap, fmt);	exvwarning(errno, fmt, ap);	va_end(ap);	sh_exit(status);}voidsh_verr(int status, const char *fmt, va_list ap){	exvwarning(errno, fmt, ap);	sh_exit(status);}voidsh_errx(int status, const char *fmt, ...){	va_list ap;	va_start(ap, fmt);	exvwarning(-1, fmt, ap);	va_end(ap);	sh_exit(status);}voidsh_verrx(int status, const char *fmt, va_list ap){	exvwarning(-1, fmt, ap);	sh_exit(status);}voidsh_warn(const char *fmt, ...){	va_list ap;	va_start(ap, fmt);	exvwarning(errno, fmt, ap);	va_end(ap);}voidsh_vwarn(const char *fmt, va_list ap){	exvwarning(errno, fmt, ap);}voidsh_warnx(const char *fmt, ...){	va_list ap;	va_start(ap, fmt);	exvwarning(-1, fmt, ap);	va_end(ap);}voidsh_vwarnx(const char *fmt, va_list ap){	exvwarning(-1, fmt, ap);}/* * Table of error messages. */struct errname {	short errcode;		/* error number */	short action;		/* operation which encountered the error */	const char *msg;	/* text describing the error */};#define ALL (E_OPEN|E_CREAT|E_EXEC)STATIC const struct errname errormsg[] = {	{ EINTR,	ALL,	"interrupted" },	{ EACCES,	ALL,	"permission denied" },	{ EIO,		ALL,	"I/O error" },	{ EEXIST,	ALL,	"file exists" },	{ ENOENT,	E_OPEN,	"no such file" },	{ ENOENT,	E_CREAT,"directory nonexistent" },	{ ENOENT,	E_EXEC,	"not found" },	{ ENOTDIR,	E_OPEN,	"no such file" },	{ ENOTDIR,	E_CREAT,"directory nonexistent" },	{ ENOTDIR,	E_EXEC,	"not found" },	{ EISDIR,	ALL,	"is a directory" },#ifdef EMFILE	{ EMFILE,	ALL,	"too many open files" },#endif	{ ENFILE,	ALL,	"file table overflow" },	{ ENOSPC,	ALL,	"file system full" },#ifdef EDQUOT	{ EDQUOT,	ALL,	"disk quota exceeded" },#endif#ifdef ENOSR	{ ENOSR,	ALL,	"no streams resources" },#endif	{ ENXIO,	ALL,	"no such device or address" },	{ EROFS,	ALL,	"read-only file system" },	{ ETXTBSY,	ALL,	"text busy" },#ifdef EAGAIN	{ EAGAIN,	E_EXEC,	"not enough memory" },#endif	{ ENOMEM,	ALL,	"not enough memory" },#ifdef ENOLINK	{ ENOLINK,	ALL,	"remote access failed" },#endif#ifdef EMULTIHOP	{ EMULTIHOP,	ALL,	"remote access failed" },#endif#ifdef ECOMM	{ ECOMM,	ALL,	"remote access failed" },#endif#ifdef ESTALE	{ ESTALE,	ALL,	"remote access failed" },#endif#ifdef ETIMEDOUT	{ ETIMEDOUT,	ALL,	"remote access failed" },#endif#ifdef ELOOP	{ ELOOP,	ALL,	"symbolic link loop" },#endif	{ E2BIG,	E_EXEC,	"argument list too long" },#ifdef ELIBACC	{ ELIBACC,	E_EXEC,	"shared library missing" },#endif	{ 0,		0,	NULL },};/* * Return a string describing an error.  The returned string may be a * pointer to a static buffer that will be overwritten on the next call. * Action describes the operation that got the error. */const char *errmsg(int e, int action){	struct errname const *ep;	static char buf[12];	for (ep = errormsg ; ep->errcode ; ep++) {		if (ep->errcode == e && (ep->action & action) != 0)			return ep->msg;	}	fmtstr(buf, sizeof buf, "error %d", e);	return buf;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费成人在线网站| 亚洲美女屁股眼交| 欧美精品高清视频| 色8久久人人97超碰香蕉987| 成人短视频下载| 波多野结衣中文一区| 成人不卡免费av| 99九九99九九九视频精品| 成人午夜av在线| 成人自拍视频在线观看| 成人av电影免费在线播放| 国产91对白在线观看九色| 成人av高清在线| 在线精品视频一区二区三四| 欧美日本一区二区在线观看| 欧美一级免费观看| 久久久综合九色合综国产精品| 亚洲精品一线二线三线无人区| 国产女人水真多18毛片18精品视频 | 7777精品伊人久久久大香线蕉经典版下载 | 国产精品久久久爽爽爽麻豆色哟哟| 国产三级久久久| 亚洲精品免费在线观看| 视频一区视频二区中文| 精品一区二区三区欧美| 成人v精品蜜桃久久一区| 色8久久人人97超碰香蕉987| 欧美一区日本一区韩国一区| 久久久噜噜噜久久中文字幕色伊伊 | 久久国内精品自在自线400部| 国产精品亚洲视频| 欧美主播一区二区三区| 欧美成人vps| 亚洲欧美另类图片小说| 免费不卡在线视频| 99久久精品国产导航| 欧美日韩国产高清一区| 久久精品视频在线看| 一区二区欧美精品| 国内精品第一页| 欧美日韩一区 二区 三区 久久精品| 日韩女优av电影| 一区二区三区精品视频| 国产高清不卡一区| 555夜色666亚洲国产免| 国产精品色眯眯| 久久99精品国产麻豆婷婷 | 亚洲第一福利视频在线| 国产福利一区二区三区视频| 欧美丰满少妇xxxbbb| 亚洲视频小说图片| 国产精品正在播放| 日韩欧美电影一二三| 性感美女久久精品| 91在线porny国产在线看| 久久综合色一综合色88| 婷婷开心激情综合| 在线观看免费一区| 亚洲欧美日韩中文字幕一区二区三区| 国产美女精品一区二区三区| 欧美一级在线视频| 日韩国产高清在线| 欧美日韩国产综合一区二区| 亚洲嫩草精品久久| av一二三不卡影片| 国产精品视频免费| 成人av免费在线观看| 中文字幕不卡在线| 波多野结衣一区二区三区| 中文字幕免费不卡在线| 国产91对白在线观看九色| 国产亚洲短视频| 国内精品久久久久影院薰衣草| 日韩欧美一区电影| 日韩国产精品大片| 欧美不卡一区二区三区| 捆绑变态av一区二区三区| 69堂成人精品免费视频| 日韩不卡手机在线v区| 欧美一区二视频| 久久国产视频网| 久久久久久久av麻豆果冻| 国产精品1区2区3区在线观看| 国产丝袜美腿一区二区三区| 国产乱人伦偷精品视频不卡 | 91蜜桃视频在线| 亚洲人成影院在线观看| 色菇凉天天综合网| 亚洲成av人片| 精品奇米国产一区二区三区| 国产一区二区三区电影在线观看| 国产午夜精品理论片a级大结局 | 欧美综合在线视频| 五月激情丁香一区二区三区| 日韩一级片在线观看| 国产一区二区伦理| 国产精品初高中害羞小美女文| 99久久综合国产精品| 亚洲在线免费播放| 欧美成人精品二区三区99精品| 国产成人精品亚洲午夜麻豆| 亚洲欧美成aⅴ人在线观看| 欧美日韩在线一区二区| 黄一区二区三区| 亚洲精品国产精品乱码不99| 91麻豆精品国产91久久久久 | 亚洲欧美日韩久久精品| 在线电影院国产精品| 国产精品系列在线观看| 亚洲一区二区av电影| 久久无码av三级| 色猫猫国产区一区二在线视频| 免费成人美女在线观看.| 最新国产成人在线观看| 欧美本精品男人aⅴ天堂| 色综合久久久久久久久| 国内精品第一页| 亚洲午夜激情av| 中文字幕av不卡| 91精品国产综合久久国产大片| 99久久综合精品| 国产一区二区三区在线观看精品| 一级特黄大欧美久久久| 国产视频亚洲色图| 欧美一区二区三区日韩| 91老司机福利 在线| 国产一区二区成人久久免费影院| 亚洲永久精品大片| 中文字幕在线不卡| 久久免费午夜影院| 日韩视频免费观看高清完整版| 色噜噜狠狠成人中文综合| 国产成人精品免费| 国产真实精品久久二三区| 亚洲成人av免费| 一区二区三区欧美亚洲| 国产精品三级电影| 国产日韩高清在线| 日韩欧美综合在线| 欧美精品在线一区二区三区| 在线视频欧美精品| 一本大道久久a久久精品综合| 国产激情视频一区二区三区欧美| 久久99国产精品久久| 日韩激情一二三区| 五月天激情综合网| 亚洲h动漫在线| 亚洲成av人片| 三级久久三级久久| 日韩不卡一区二区三区| 同产精品九九九| 天天综合天天综合色| 丝袜亚洲另类丝袜在线| 三级一区在线视频先锋| 日韩精品福利网| 蜜桃91丨九色丨蝌蚪91桃色| 奇米色一区二区| 久久99精品久久久久婷婷| 国产精品夜夜嗨| 国产麻豆精品95视频| 国产91清纯白嫩初高中在线观看 | 亚洲日本电影在线| 亚洲精品你懂的| 水野朝阳av一区二区三区| 午夜成人免费电影| 免费观看在线色综合| 国产资源精品在线观看| 成人三级伦理片| 91久久奴性调教| 在线观看91av| 国产欧美日韩视频在线观看| 自拍偷拍亚洲综合| 亚洲第一二三四区| 国内精品伊人久久久久av一坑| 高清视频一区二区| 欧洲激情一区二区| 欧美大片在线观看| 国产精品蜜臀av| 亚洲国产日韩精品| 另类调教123区| 国产suv一区二区三区88区| 色拍拍在线精品视频8848| 在线电影一区二区三区| 欧美国产精品v| 亚洲va天堂va国产va久| 国产精品影视天天线| 色综合激情五月| 精品国产91久久久久久久妲己 | 欧美男男青年gay1069videost | 日韩在线一区二区三区| 国内成人免费视频| 欧美羞羞免费网站| 久久九九久久九九| 午夜精品一区二区三区免费视频| 国产精品一级片| 在线不卡免费av| 亚洲视频你懂的| 国产在线精品国自产拍免费| 欧美日韩一卡二卡| 亚洲欧美在线视频观看|