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

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

?? write_entry.c

?? ncurses-5.4 需要的就來下把 一定會有用的哦
?? C
?? 第 1 頁 / 共 2 頁
字號:
/**************************************************************************** * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc.              * *                                                                          * * Permission is hereby granted, free of charge, to any person obtaining a  * * copy of this software and associated documentation files (the            * * "Software"), to deal in the Software without restriction, including      * * without limitation the rights to use, copy, modify, merge, publish,      * * distribute, distribute with modifications, sublicense, and/or sell       * * copies of the Software, and to permit persons to whom the Software is    * * furnished to do so, subject to the following conditions:                 * *                                                                          * * The above copyright notice and this permission notice shall be included  * * in all copies or substantial portions of the Software.                   * *                                                                          * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    * * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               * *                                                                          * * Except as contained in this notice, the name(s) of the above copyright   * * holders shall not be used in advertising or otherwise to promote the     * * sale, use or other dealings in this Software without prior written       * * authorization.                                                           * ****************************************************************************//**************************************************************************** *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               * *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         * ****************************************************************************//* *	write_entry.c -- write a terminfo structure onto the file system */#include <curses.priv.h>#include <sys/stat.h>#include <tic.h>#include <term_entry.h>#ifndef S_ISDIR#define S_ISDIR(mode) ((mode & S_IFMT) == S_IFDIR)#endif#if 0#define TRACE_OUT(p) DEBUG(2, p)#else#define TRACE_OUT(p)		/*nothing */#endifMODULE_ID("$Id: write_entry.c,v 1.58 2002/04/21 20:35:08 tom Exp $")static int total_written;static int write_object(FILE *, TERMTYPE *);static voidwrite_file(char *filename, TERMTYPE * tp){    FILE *fp = (_nc_access(filename, W_OK) == 0) ? fopen(filename, "wb") : 0;    if (fp == 0) {	perror(filename);	_nc_syserr_abort("can't open %s/%s", _nc_tic_dir(0), filename);    }    DEBUG(1, ("Created %s", filename));    if (write_object(fp, tp) == ERR) {	_nc_syserr_abort("error writing %s/%s", _nc_tic_dir(0), filename);    }    fclose(fp);}/* *	make_directory(char *path) * *	Make a directory if it doesn't exist. */static intmake_directory(const char *path){    int rc;    struct stat statbuf;    char fullpath[PATH_MAX];    const char *destination = _nc_tic_dir(0);    if (path == destination || *path == '/') {	if (strlen(path) + 1 > sizeof(fullpath))	    return (-1);	(void) strcpy(fullpath, path);    } else {	if (strlen(destination) + strlen(path) + 2 > sizeof(fullpath))	    return (-1);	(void) sprintf(fullpath, "%s/%s", destination, path);    }    if ((rc = stat(path, &statbuf)) < 0) {	rc = mkdir(path, 0777);    } else {	if (_nc_access(path, R_OK | W_OK | X_OK) < 0) {	    rc = -1;		/* permission denied */	} else if (!(S_ISDIR(statbuf.st_mode))) {	    rc = -1;		/* not a directory */	}    }    return rc;}NCURSES_EXPORT(void)_nc_set_writedir(char *dir)/* set the write directory for compiled entries */{    const char *destination;    char actual[PATH_MAX];    if (dir == 0	&& use_terminfo_vars())	dir = getenv("TERMINFO");    if (dir != 0)	(void) _nc_tic_dir(dir);    destination = _nc_tic_dir(0);    if (make_directory(destination) < 0) {	char *home = _nc_home_terminfo();	if (home != 0) {	    destination = home;	    if (make_directory(destination) < 0)		_nc_err_abort("%s: permission denied (errno %d)",			      destination, errno);	}    }    /*     * Note: because of this code, this logic should be exercised     * *once only* per run.     */    if (chdir(_nc_tic_dir(destination)) < 0	|| getcwd(actual, sizeof(actual)) == 0)	_nc_err_abort("%s: not a directory", destination);    _nc_keep_tic_dir(strdup(actual));}/* *	check_writeable(char code) * *	Miscellaneous initialisations * *	Check for access rights to destination directories *	Create any directories which don't exist. *	Note: there's no reason to return the result of make_directory(), since *	this function is called only in instances where that has to succeed. * */static voidcheck_writeable(int code){    static const char dirnames[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";    static bool verified[sizeof(dirnames)];    char dir[2];    char *s = 0;    if (code == 0 || (s = strchr(dirnames, code)) == 0)	_nc_err_abort("Illegal terminfo subdirectory \"%c\"", code);    if (verified[s - dirnames])	return;    dir[0] = code;    dir[1] = '\0';    if (make_directory(dir) < 0) {	_nc_err_abort("%s/%s: permission denied", _nc_tic_dir(0), dir);    }    verified[s - dirnames] = TRUE;}/* *	_nc_write_entry() * *	Save the compiled version of a description in the filesystem. * *	make a copy of the name-list *	break it up into first-name and all-but-last-name *	creat(first-name) *	write object information to first-name *	close(first-name) *      for each name in all-but-last-name *	    link to first-name * *	Using 'time()' to obtain a reference for file timestamps is unreliable, *	e.g., with NFS, because the filesystem may have a different time *	reference.  We check for pre-existence of links by latching the first *	timestamp from a file that we create. * *	The _nc_warning() calls will report a correct line number only if *	_nc_curr_line is properly set before the write_entry() call. */void_nc_write_entry(TERMTYPE * const tp){    struct stat statbuf;    char name_list[MAX_TERMINFO_LENGTH];    char *first_name, *other_names;    char *ptr;    char filename[PATH_MAX];    char linkname[PATH_MAX];#if USE_SYMLINKS    char symlinkname[PATH_MAX];#if !HAVE_LINK#undef HAVE_LINK#define HAVE_LINK 1#endif#endif /* USE_SYMLINKS */    static int call_count;    static time_t start_time;	/* time at start of writes */    if (call_count++ == 0) {	start_time = 0;    }    (void) strcpy(name_list, tp->term_names);    DEBUG(7, ("Name list = '%s'", name_list));    first_name = name_list;    ptr = &name_list[strlen(name_list) - 1];    other_names = ptr + 1;    while (ptr > name_list && *ptr != '|')	ptr--;    if (ptr != name_list) {	*ptr = '\0';	for (ptr = name_list; *ptr != '\0' && *ptr != '|'; ptr++)	    continue;	if (*ptr == '\0')	    other_names = ptr;	else {	    *ptr = '\0';	    other_names = ptr + 1;	}    }    DEBUG(7, ("First name = '%s'", first_name));    DEBUG(7, ("Other names = '%s'", other_names));    _nc_set_type(first_name);    if (strlen(first_name) > sizeof(filename) - 3)	_nc_warning("terminal name too long.");    sprintf(filename, "%c/%s", first_name[0], first_name);    /*     * Has this primary name been written since the first call to     * write_entry()?  If so, the newer write will step on the older,     * so warn the user.     */    if (start_time > 0 &&	stat(filename, &statbuf) >= 0	&& statbuf.st_mtime >= start_time) {	_nc_warning("name multiply defined.");    }    check_writeable(first_name[0]);    write_file(filename, tp);    if (start_time == 0) {	if (stat(filename, &statbuf) < 0	    || (start_time = statbuf.st_mtime) == 0) {	    _nc_syserr_abort("error obtaining time from %s/%s",			     _nc_tic_dir(0), filename);	}    }    while (*other_names != '\0') {	ptr = other_names++;	while (*other_names != '|' && *other_names != '\0')	    other_names++;	if (*other_names != '\0')	    *(other_names++) = '\0';	if (strlen(ptr) > sizeof(linkname) - 3) {	    _nc_warning("terminal alias %s too long.", ptr);	    continue;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区日韩| 欧美四级电影在线观看| 4438亚洲最大| 国产精品第一页第二页第三页| 蜜桃精品在线观看| 91麻豆免费在线观看| 国产日韩一级二级三级| 美日韩一区二区| 精品视频免费在线| 亚洲视频资源在线| 国产不卡免费视频| 精品乱人伦小说| 日韩综合在线视频| 欧美性色aⅴ视频一区日韩精品| 国产精品天干天干在观线| 加勒比av一区二区| 日韩欧美在线观看一区二区三区| 亚洲一二三区在线观看| a美女胸又www黄视频久久| 精品国产一区二区三区不卡| 日本欧美韩国一区三区| 欧美挠脚心视频网站| 亚洲综合精品久久| 色综合久久88色综合天天| 国产精品免费观看视频| 国产成人av一区二区三区在线观看| 欧美不卡视频一区| 青青国产91久久久久久| 51精品国自产在线| 午夜精品123| 欧美日韩国产首页| 亚洲国产cao| 欧美丝袜第三区| 亚洲亚洲人成综合网络| 色欧美88888久久久久久影院| 欧美激情一二三区| 成人丝袜18视频在线观看| 欧美激情综合在线| 91精品国产福利| 亚洲一区二区av电影| 欧美性色黄大片手机版| 亚洲成人自拍一区| 欧美老年两性高潮| 日韩不卡一区二区| 欧美一区三区四区| 久色婷婷小香蕉久久| 欧美大片顶级少妇| 精品系列免费在线观看| 国产亚洲一区二区在线观看| 国产不卡高清在线观看视频| 中文字幕中文字幕在线一区| 91色在线porny| 一二三四区精品视频| 欧美三级视频在线| 日韩二区在线观看| 精品国产一区二区精华| 国产丶欧美丶日本不卡视频| 国产精品久线观看视频| 欧洲在线/亚洲| 日本视频中文字幕一区二区三区| 欧美成人bangbros| 丁香婷婷综合五月| 亚洲乱码中文字幕| 欧美日韩一区在线观看| 另类小说一区二区三区| 欧美国产国产综合| 欧美性生交片4| 美女网站在线免费欧美精品| 国产日韩欧美不卡| 色94色欧美sute亚洲线路一久| 爽好久久久欧美精品| 欧美精品一区二区三区视频| 99久久伊人精品| 一区二区三区蜜桃网| 3d动漫精品啪啪一区二区竹菊 | 欧美不卡123| 成人免费福利片| 亚洲成在人线在线播放| 欧美成人一区二区三区在线观看 | 久久福利视频一区二区| 亚洲国产高清aⅴ视频| 在线观看视频欧美| 激情综合亚洲精品| 亚洲精品日韩综合观看成人91| 91 com成人网| 成人免费视频免费观看| 亚洲成人久久影院| 久久久影院官网| 91福利资源站| 国产麻豆精品在线观看| 一区二区成人在线观看| 精品国产麻豆免费人成网站| 色综合久久久久久久| 韩国女主播成人在线观看| 亚洲人吸女人奶水| 日韩免费高清电影| 亚洲国产精品传媒在线观看| 欧美性猛交xxxxxx富婆| 国产麻豆精品theporn| 亚洲一卡二卡三卡四卡无卡久久| 久久久三级国产网站| 欧美婷婷六月丁香综合色| 国产成a人亚洲| 日韩精品亚洲专区| 中文字幕一区不卡| 精品久久久久香蕉网| 91国内精品野花午夜精品 | 又紧又大又爽精品一区二区| 精品久久久久久综合日本欧美| 91免费观看视频在线| 黄色日韩网站视频| 三级不卡在线观看| 中文字幕亚洲欧美在线不卡| 欧美电视剧免费观看| 欧美日韩在线不卡| 99久久精品国产毛片| 国模套图日韩精品一区二区| 亚洲国产精品精华液网站| 中文字幕在线一区免费| 精品国产亚洲在线| 欧美丰满高潮xxxx喷水动漫| 99国产欧美久久久精品| 国产精品一区在线观看你懂的| 天堂成人免费av电影一区| 亚洲美女电影在线| 国产精品三级视频| 久久蜜桃av一区精品变态类天堂| 欧美日韩国产一级| 在线精品国精品国产尤物884a| 国产成人精品一区二区三区网站观看 | 欧美日韩中字一区| 色综合久久综合网97色综合| 国产 欧美在线| 国产美女娇喘av呻吟久久| 麻豆久久一区二区| 日韩在线a电影| 亚洲一区av在线| 一区二区三区波多野结衣在线观看 | 成人免费视频app| 国产99一区视频免费| 国产一区激情在线| 久99久精品视频免费观看| 奇米亚洲午夜久久精品| 丝袜美腿亚洲一区| 亚洲chinese男男1069| 亚洲综合成人在线视频| 亚洲精品欧美专区| 一区二区三区四区在线播放| 国产精品污www在线观看| 亚洲国产精品二十页| 国产精品午夜免费| 中文一区在线播放| 国产精品人成在线观看免费| 中文久久乱码一区二区| 国产精品每日更新| 国产精品国模大尺度视频| **欧美大码日韩| 自拍偷拍国产精品| 亚洲欧美日韩一区| 亚洲综合网站在线观看| 91麻豆swag| 日本韩国精品一区二区在线观看| 91在线视频播放| 色偷偷88欧美精品久久久| 欧美伊人久久大香线蕉综合69| 欧美午夜宅男影院| 69av一区二区三区| 精品欧美一区二区在线观看| 久久蜜桃av一区精品变态类天堂| 国产亚洲成aⅴ人片在线观看| 国产精品亲子伦对白| 亚洲你懂的在线视频| 亚洲国产综合91精品麻豆| 日韩va亚洲va欧美va久久| 精品无人区卡一卡二卡三乱码免费卡| 久久超级碰视频| 福利一区福利二区| 色欧美片视频在线观看在线视频| 精品视频一区二区不卡| 日韩午夜在线影院| 日本一区二区三区在线观看| 亚洲视频免费在线观看| 天天亚洲美女在线视频| 韩国中文字幕2020精品| 成人深夜视频在线观看| 色av成人天堂桃色av| 日韩一区二区免费视频| 国产午夜亚洲精品羞羞网站| 国产精品美女久久久久久久久| 亚洲精选免费视频| 午夜久久久久久| 国产精品 欧美精品| 成人av片在线观看| 国产精品一二三四区| 91丝袜国产在线播放| 欧美日韩国产中文| 欧美一区二区黄| 国产精品久久久久久亚洲伦| 一区二区三区欧美亚洲| 亚洲v中文字幕|