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

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

?? 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;	}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品高清在线| 一区二区国产盗摄色噜噜| 亚洲大片一区二区三区| 国产精品1区2区3区| 欧美日韩成人高清| 国产精品国产三级国产专播品爱网 | 99视频有精品| 久久网这里都是精品| 日韩av中文字幕一区二区三区| 波多野结衣视频一区| 欧美成人精品3d动漫h| 亚洲国产日韩精品| 91麻豆产精品久久久久久| 国产亚洲视频系列| 久久精品国产一区二区| 欧美日韩国产大片| 亚洲一区二区在线播放相泽| www.久久久久久久久| 国产亚洲一本大道中文在线| 精品一区二区三区欧美| 在线播放/欧美激情| 亚洲一区二区四区蜜桃| 91色视频在线| 国产精品久久久久一区| 国产二区国产一区在线观看| 精品国产麻豆免费人成网站| 婷婷久久综合九色综合绿巨人| 91浏览器入口在线观看| 国产精品电影一区二区| 成人黄色小视频| 国产亚洲欧美在线| 国产成人免费视| 久久久久久免费网| 国产在线精品免费| 亚洲精品一区二区三区在线观看 | 中文字幕不卡一区| 国产精品123| 日本一区二区综合亚洲| 国产福利一区二区| 亚洲国产经典视频| 99久久精品国产导航| 成人欧美一区二区三区1314| 成人av集中营| 亚洲品质自拍视频| 欧美在线观看你懂的| 亚洲一级电影视频| 欧美喷水一区二区| 视频在线观看国产精品| 欧美一区二区视频在线观看2022| 奇米精品一区二区三区在线观看一| 777午夜精品视频在线播放| 日韩高清在线观看| 精品国产91久久久久久久妲己| 激情另类小说区图片区视频区| 2023国产精品| 国产精品一区二区三区网站| 国产精品视频你懂的| 99免费精品在线| 亚洲精品久久久久久国产精华液| 欧美亚洲国产一区二区三区| 亚洲大尺度视频在线观看| 91精品国产免费| 韩国精品免费视频| 日本一区二区三区四区| 99国产精品久| 亚洲图片欧美色图| 制服.丝袜.亚洲.另类.中文| 国产在线精品免费| 中文字幕中文字幕一区二区| 在线观看欧美黄色| 日本中文字幕一区二区视频| 久久影视一区二区| 99视频一区二区三区| 亚洲sss视频在线视频| 欧美一区二区三区在线观看| 国产伦精品一区二区三区在线观看| 国产精品久久久久婷婷二区次| 91丝袜美女网| 日本伊人午夜精品| 国产精品欧美一级免费| 欧美三级资源在线| 精品一区二区三区香蕉蜜桃| 中文字幕在线不卡一区二区三区| 欧美色爱综合网| 韩日欧美一区二区三区| 亚洲视频一二区| 欧美一级黄色大片| 不卡一区二区三区四区| 天堂va蜜桃一区二区三区漫画版| 国产午夜亚洲精品不卡| 欧美三级欧美一级| 国产福利精品一区| 午夜私人影院久久久久| 国产香蕉久久精品综合网| 欧美亚一区二区| 国产精品一二三区| 五月婷婷另类国产| 欧美国产日本视频| 欧美一区二区三区成人| av动漫一区二区| 麻豆91免费观看| 亚洲欧美另类在线| 精品粉嫩超白一线天av| 色播五月激情综合网| 国产乱码字幕精品高清av| 亚洲午夜一二三区视频| 中文字幕欧美激情一区| 日韩一级免费观看| 色婷婷综合久久久中文字幕| 国产综合色精品一区二区三区| 亚洲伊人色欲综合网| 欧美国产精品专区| 日韩欧美国产三级电影视频| 91成人在线免费观看| 国产99久久久国产精品免费看| 日韩国产在线观看| 亚洲综合清纯丝袜自拍| 中文字幕精品综合| www久久久久| 欧美美女bb生活片| 色吊一区二区三区| 99视频精品免费视频| 国产一区日韩二区欧美三区| 视频一区视频二区中文| 一区二区三区四区在线免费观看| 中文字幕av一区二区三区高| 精品国产污污免费网站入口 | 欧美精品一二三| 91麻豆123| 9色porny自拍视频一区二区| 国产一区二区三区在线观看精品 | 黄色小说综合网站| 丝袜美腿亚洲一区| 亚洲国产毛片aaaaa无费看| 男人的j进女人的j一区| 亚洲国产色一区| 亚洲视频一区在线观看| 中文字幕的久久| 国产女人水真多18毛片18精品视频| 精品久久久久久亚洲综合网| 91精品国产乱码久久蜜臀| 欧美视频在线一区二区三区 | 色婷婷久久久综合中文字幕| 成人免费视频app| 精品亚洲欧美一区| 美女视频一区在线观看| 日本欧美肥老太交大片| 日韩在线观看一区二区| 亚洲1区2区3区4区| 天堂久久久久va久久久久| 丝袜美腿高跟呻吟高潮一区| 视频一区视频二区在线观看| 午夜欧美2019年伦理| 午夜精品视频一区| 日本欧美一区二区| 日本不卡一区二区| 麻豆一区二区三| 狠狠色丁香婷婷综合| 国产一区二区三区日韩| 国产一区二区三区观看| 国产伦理精品不卡| 成人免费毛片app| www.日韩大片| 一本高清dvd不卡在线观看| 91福利视频久久久久| 欧美日产国产精品| 日韩欧美综合一区| 久久久蜜桃精品| 国产精品亲子乱子伦xxxx裸| 1区2区3区精品视频| 亚洲精品自拍动漫在线| 亚洲成av人片在线观看| 免费人成精品欧美精品| 狠狠色狠狠色合久久伊人| 国产乱对白刺激视频不卡| 国产a区久久久| 色婷婷久久久亚洲一区二区三区| 在线免费不卡电影| 欧美电影在线免费观看| 日韩精品在线网站| 国产日本欧洲亚洲| 亚洲私人影院在线观看| 亚洲最大成人综合| 日本怡春院一区二区| 国产精品亚洲专一区二区三区| 成人avav影音| 欧美日韩一区二区欧美激情| 日韩欧美国产一区二区三区| 国产精品私房写真福利视频| 亚洲精品五月天| 日本成人在线看| 成人在线一区二区三区| 在线观看欧美日本| 精品国产乱子伦一区| 国产精品久久久久影院| 亚洲一区二区三区在线看| 久国产精品韩国三级视频| www.亚洲激情.com| 91精品国产福利在线观看| 国产日韩欧美综合一区|