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

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

?? fserve.c

?? 遠(yuǎn)程桌面連接工具
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/* $TOG: fserve.c /main/49 1997/06/10 11:23:56 barstow $ *//*Copyright (c) 1990  X ConsortiumPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THEX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Except as contained in this notice, the name of the X Consortium shall not beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from the X Consortium.*//* $XFree86: xc/lib/font/fc/fserve.c,v 3.4.2.2 1997/06/11 12:08:41 dawes Exp $ *//* * Copyright 1990 Network Computing Devices * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the names of Network Computing Devices, or Digital * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * * NETWORK COMPUTING DEVICES, AND DIGITAL AND DISCLAIM ALL WARRANTIES WITH * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF * THIS SOFTWARE. * * Author:  	Dave Lemke, Network Computing Devices, Inc *//* * font server specific font access */#ifdef WIN32#define _WILLWINSOCK_#endif#include	<X11/X.h>#include	<X11/Xos.h>#include	"X11/Xpoll.h"#include	"FS.h"#include	"FSproto.h"#include	"fontmisc.h"#include	"fontstruct.h"#include	"fservestr.h"#include	<errno.h>#if defined(X_NOT_STDC_ENV) && !defined(__EMX__)extern int errno;#define Time_t longextern Time_t time ();#else#include	<time.h>#define Time_t time_t#endif#ifdef NCD#include	<ncd/nvram.h>#endif#ifndef NULL#define NULL 0#endif#ifndef MIN#define MIN(a,b)    ((a)<(b)?(a):(b))#endif#define NONZEROMETRICS(pci) ((pci)->leftSideBearing || \			     (pci)->rightSideBearing || \			     (pci)->ascent || \			     (pci)->descent || \			     (pci)->characterWidth)extern FontPtr find_old_font();extern int  _fs_build_range();static int  fs_read_glyphs();static int  fs_read_list();static int  fs_read_list_info();static int  fs_font_type;extern fd_set _fs_fd_mask;static void fs_block_handler();static int  fs_wakeup();static FSFpePtr awaiting_reconnect;void        _fs_connection_died();static int  _fs_restart_connection();static void _fs_try_reconnect();static int  fs_send_query_info();static int  fs_send_query_extents();static int  fs_send_query_bitmaps();static int  fs_send_close_font();static void fs_client_died();static void _fs_client_access();static void _fs_client_resolution();char _fs_glyph_undefined;char _fs_glyph_requested;char _fs_glyph_zero_length;/* * Font server access * * the basic idea for the non-blocking access is to have the function * called multiple times until the actual data is returned, instead * of ClientBlocked. * * the first call to the function will cause the request to be sent to * the font server, and a block record to be stored in the fpe's list * of outstanding requests.  the FS block handler also sticks the * proper set of fd's into the select mask.  when data is ready to be * read in, the FS wakup handler will be hit.  this will read the * data off the wire into the proper block record, and then signal the * client that caused the block so that it can restart.  it will then * call the access function again, which will realize that the data has * arrived and return it. *//* XXX this should probably be a macro once its fully debugged *//* ARGSUSED */static void_fs_add_req_log(conn, opcode)    FSFpePtr    conn;    int         opcode;{#ifdef DEBUG    conn->reqbuffer[conn->reqindex++] = opcode;    if (conn->reqindex == REQUEST_LOG_SIZE)	conn->reqindex = 0;#endif    conn->current_seq++;}static Boolfs_name_check(name)    char       *name;{#ifdef __EMX__    /* OS/2 uses D:/XFree86/.... as fontfile pathnames, so check that     * there is not only a protocol/ prefix, but also that the first chars     * are not a drive letter     */    if (name && isalpha(*name) && name[1] == ':')      return FALSE;#endif    /* Just make sure there is a protocol/ prefix */    return (name && *name != '/' && strchr(name, '/'));}static void_fs_client_resolution(conn)    FSFpePtr    conn;{    fsSetResolutionReq srreq;    int         num_res;    FontResolutionPtr res;    res = GetClientResolutions(&num_res);    if (num_res) {	srreq.reqType = FS_SetResolution;	srreq.num_resolutions = num_res;	srreq.length = (SIZEOF(fsSetResolutionReq) +			(num_res * SIZEOF(fsResolution)) + 3) >> 2;	_fs_add_req_log(conn, FS_SetResolution);	if (_fs_write(conn, (char *) &srreq, SIZEOF(fsSetResolutionReq)) != -1)	    (void)_fs_write_pad(conn, (char *) res,				(num_res * SIZEOF(fsResolution)));    }}/* * sends the stuff that's meaningful to a newly opened or reset FS */static intfs_send_init_packets(conn)    FSFpePtr    conn;{    fsSetResolutionReq srreq;    fsSetCataloguesReq screq;    fsListCataloguesReq lcreq;    fsListCataloguesReply lcreply;    int         num_cats,                clen,                len;    char       *client_cat = (char *) 0,               *cp,               *sp,               *end;    int         num_res;    FontResolutionPtr res;    int         err = Successful;#define	CATALOGUE_SEP	'+'    res = GetClientResolutions(&num_res);    if (num_res) {	srreq.reqType = FS_SetResolution;	srreq.num_resolutions = num_res;	srreq.length = (SIZEOF(fsSetResolutionReq) +			(num_res * SIZEOF(fsResolution)) + 3) >> 2;	_fs_add_req_log(conn, FS_SetResolution);	if (_fs_write(conn, (char *) &srreq, SIZEOF(fsSetResolutionReq)) == -1)	{	    err = BadFontPath;	    goto fail;	}	if (_fs_write_pad(conn, (char *) res, (num_res * SIZEOF(fsResolution))) == -1)	{	    err = BadFontPath;	    goto fail;	}    }    sp = strrchr(conn->servername, '/');    /* don't get tricked by a non-existant catalogue list */    if (sp == strchr(conn->servername, '/')) {	/*	 * try original name -- this might be an alternate with no catalogues	 */	sp = strrchr(conn->requestedname, '/');	if (sp == strchr(conn->requestedname, '/'))		sp = (char *) 0;    }    if (sp) {			/* turn cats into counted list */	sp++;	/* allocate more than enough room */	cp = client_cat = (char *) xalloc(strlen(conn->servername));	if (!cp) {	    err = BadAlloc;	    goto fail;	}	num_cats = 0;	while (*sp) {	    end = strchr(sp, CATALOGUE_SEP);	    if (!end)		end = sp + strlen(sp);	    *cp++ = len = end - sp;	    num_cats++;	    memmove(cp, sp, len);	    sp += len;	    if (*sp == CATALOGUE_SEP)		sp++;	    cp += len;	}	clen = cp - client_cat;	/* our list checked out, so send it */	screq.reqType = FS_SetCatalogues;	screq.num_catalogues = num_cats;	screq.length = (SIZEOF(fsSetCataloguesReq) + clen + 3) >> 2;	_fs_add_req_log(conn, FS_SetCatalogues);	if (_fs_write(conn, (char *) &screq, SIZEOF(fsSetCataloguesReq)) == -1)	{	    err = BadFontPath;	    goto fail;	}	if (_fs_write_pad(conn, (char *) client_cat, clen) == -1)	{	    err = BadFontPath;	    goto fail;	}	/*	 * now sync up with the font server, to see if an error was generated	 * by a bogus catalogue	 */	lcreq.reqType = FS_ListCatalogues;	lcreq.length = (SIZEOF(fsListCataloguesReq)) >> 2;	lcreq.maxNames = 0;	lcreq.nbytes = 0;	_fs_add_req_log(conn, FS_SetCatalogues);	if (_fs_write(conn, (char *) &lcreq, SIZEOF(fsListCataloguesReq)) == -1)	{	    err = BadFontPath;	    goto fail;	}	/*	 * next bit will either by the ListCats reply, or an error followed by	 * the reply	 */	if (_fs_read(conn, (char *) &lcreply, SIZEOF(fsGenericReply)) == -1) {	    err = BadFontPath;	    goto fail;	}	if (lcreply.type == FS_Error &&		((fsError *) & lcreply)->major_opcode == FS_SetCatalogues) {	    _fs_eat_rest_of_error(conn, (fsError *) & lcreply);	    /* get ListCats response */	    (void) _fs_read(conn, (char *) &lcreply,			    SIZEOF(fsListCataloguesReply));	    err = BadFontPath;	    goto fail;	}	/* must be reply, swallow the rest of it */	_fs_eat_rest_of_error(conn, (fsError *) & lcreply);    }fail:    xfree(client_cat);    return err;}/*  * close font server and remove any state associated with * this connection - this includes any client records. */static voidfs_close_conn(conn)    FSFpePtr	conn;{    FSClientPtr	client, nclient;    /* XXX - hack.  The right fix is to remember that the font server       has gone away when we first discovered it. */    if (conn->trans_conn)        (void) _FontTransClose (conn->trans_conn);    if (conn->fs_fd != -1)        FD_CLR(conn->fs_fd, &_fs_fd_mask);    for (client = conn->clients; client; client = nclient)     {	nclient = client->next;	xfree (client);    }    conn->clients = NULL;}/* * the wakeup handlers have to be set when the FPE is open, and not * removed until it is freed, in order to handle unexpected data, like * events *//* ARGSUSED */static intfs_init_fpe(fpe)    FontPathElementPtr fpe;{    FSFpePtr    conn;    char       *name;    int         err;    /* open font server */    /* create FS specific fpe info */    errno = 0;    name = fpe->name;    /* hack for old style names */    if (*name == ':')	name++;			/* skip ':' */    conn = _fs_open_server(name);    if (conn) {	conn->requestedname = fpe->name; /* stash this for later init use */	fpe->private = (pointer) conn;	err = fs_send_init_packets(conn);	if (err != Successful) {	    fs_close_conn(conn);    	    xfree(conn->servername);    	    xfree(conn->alts);    	    xfree(conn);	    return err;	}	if (init_fs_handlers(fpe, fs_block_handler) != Successful)	    return AllocError;	FD_SET(conn->fs_fd, &_fs_fd_mask);	conn->attemptReconnect = TRUE;#ifdef NCD	if (configData.ExtendedFontDiags)	    printf("Connected to font server \"%s\"\n", name);#endif	return err;    }#ifdef DEBUG    fprintf(stderr, "failed to connect to FS \"%s\"\n", name);#endif#ifdef NCD    if (configData.ExtendedFontDiags)	printf("Failed to connect to font server \"%s\"\n", name);#endif    return (errno == ENOMEM) ? AllocError : BadFontPath;}static intfs_reset_fpe(fpe)    FontPathElementPtr fpe;{    (void) fs_send_init_packets((FSFpePtr) fpe->private);    return Successful;}/* * this shouldn't be called till all refs to the FPE are gone */static intfs_free_fpe(fpe)    FontPathElementPtr fpe;{    FSFpePtr    conn = (FSFpePtr) fpe->private;    FSFpePtr    recon,               *prev;    prev = &awaiting_reconnect;    while (*prev) {	recon = *prev;	if (conn == recon) {	    *prev = recon->next_reconnect;	    break;	}	prev = &recon->next_reconnect;    }    fs_close_conn(conn);    remove_fs_handlers(fpe, fs_block_handler,		       !XFD_ANYSET(&_fs_fd_mask) && !awaiting_reconnect);    xfree(conn->alts);    xfree(conn->servername);    xfree(conn);    fpe->private = (pointer) 0;#ifdef NCD    if (configData.ExtendedFontDiags)	printf("Disconnected from font server \"%s\"\n", fpe->name);#endif    return Successful;}static      FSBlockDataPtrfs_new_block_rec(fpe, client, type)    FontPathElementPtr fpe;    pointer     client;    int         type;{    FSBlockDataPtr blockrec,                br;    FSFpePtr    fsfpe = (FSFpePtr) fpe->private;    int         size;    blockrec = (FSBlockDataPtr) xalloc(sizeof(FSBlockDataRec));    if (!blockrec)	return (FSBlockDataPtr) 0;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本sm残虐另类| 欧美精选午夜久久久乱码6080| 日韩精品一二三区| 亚洲福利一区二区三区| 一区二区免费看| 亚洲品质自拍视频| 一区二区久久久久久| 亚洲一区二区在线免费看| 亚洲成人自拍网| 午夜精品久久久久久久久久久 | 亚洲成人激情av| 亚洲中国最大av网站| 亚洲.国产.中文慕字在线| 亚洲国产精品久久久久秋霞影院 | 高清在线观看日韩| 国产.精品.日韩.另类.中文.在线.播放| 国模套图日韩精品一区二区| 黄网站免费久久| 国产a级毛片一区| 色综合一个色综合亚洲| 欧美性视频一区二区三区| 欧美精品丝袜中出| 欧美大片顶级少妇| 欧美国产日韩亚洲一区| 国产精品久久久久一区二区三区共 | 国产精品丝袜在线| 亚洲欧美色一区| 一区二区三区中文字幕精品精品| 亚洲一区二区三区四区中文字幕 | 国产xxx精品视频大全| 9人人澡人人爽人人精品| 色婷婷久久99综合精品jk白丝| 欧美日韩视频不卡| 久久久精品国产免费观看同学| 国产精品毛片a∨一区二区三区| 亚洲另类色综合网站| 日韩综合小视频| 国产成人免费9x9x人网站视频| 91丝袜国产在线播放| 欧美精品一卡二卡| 中文字幕免费一区| 天天综合色天天综合色h| 国产美女精品一区二区三区| 色综合久久久久综合| 欧美一区二区三区系列电影| 中文字幕免费一区| 亚洲高清免费视频| 国产suv精品一区二区6| 欧美日韩一区二区在线观看| 精品国内片67194| 亚洲免费在线看| 韩国精品免费视频| 在线精品视频免费观看| 精品sm在线观看| 亚洲一区二区欧美| 国产精品18久久久久久久久久久久 | 日韩理论片一区二区| 美女mm1313爽爽久久久蜜臀| 99精品国产视频| 欧美tickling网站挠脚心| 亚洲欧美一区二区不卡| 韩国女主播一区| 欧美性高清videossexo| 国产片一区二区| 日韩成人一级片| 在线视频中文字幕一区二区| 久久精品视频网| 日韩主播视频在线| 91碰在线视频| 欧美极品xxx| 久久国产日韩欧美精品| 欧美亚洲国产一区二区三区| 欧美激情艳妇裸体舞| 青青草国产成人av片免费| 色狠狠一区二区| 亚洲国产精品t66y| 韩国中文字幕2020精品| 在线不卡免费av| 亚洲综合色丁香婷婷六月图片| 成人一级黄色片| 久久久久久久久久久久电影 | 国产一区二区三区在线看麻豆| 欧美视频完全免费看| 中文字幕一区二区5566日韩| 国内精品伊人久久久久av影院| 欧美日本精品一区二区三区| 亚洲黄色在线视频| 99re免费视频精品全部| 亚洲国产精品成人综合| 国产精一品亚洲二区在线视频| 91精品国产美女浴室洗澡无遮挡| 一区二区三区在线视频观看| av电影一区二区| 久久久激情视频| 国产又黄又大久久| 精品欧美黑人一区二区三区| 天堂在线亚洲视频| 欧美精品久久99久久在免费线| 亚洲一卡二卡三卡四卡| 久久精品免费在线观看| 狠狠色丁香婷综合久久| 久久久久综合网| 国产一区二区不卡| 国产喂奶挤奶一区二区三区| 国产a久久麻豆| 国产精品国产自产拍高清av| 成人白浆超碰人人人人| 国产精品久久久99| www.性欧美| 一区二区三区欧美视频| 欧美性感一类影片在线播放| 亚洲超丰满肉感bbw| 欧美一区二区三区在线观看视频 | 色素色在线综合| 一区二区三区四区在线免费观看| 在线观看不卡一区| 五月天视频一区| 精品国产青草久久久久福利| 国产精品综合一区二区三区| 中文字幕不卡三区| 91在线码无精品| 亚洲国产裸拍裸体视频在线观看乱了 | 美女视频免费一区| 亚洲精品一区二区三区99| 风流少妇一区二区| 自拍偷拍亚洲激情| 欧美日韩视频在线观看一区二区三区| 日日摸夜夜添夜夜添亚洲女人| 日韩欧美激情四射| 懂色av中文字幕一区二区三区| 国产精品护士白丝一区av| 在线观看91视频| 奇米色一区二区三区四区| 欧美成人vr18sexvr| 成人黄动漫网站免费app| 亚洲综合久久久| 欧美大片日本大片免费观看| 成人福利视频在线看| 亚洲福利视频三区| 久久久久国产精品免费免费搜索| 99久久精品免费| 午夜精品国产更新| 2023国产精华国产精品| 91在线观看一区二区| 日韩精品一区第一页| 中文字幕第一区第二区| 欧美日韩久久久久久| 国产伦精品一区二区三区免费| 日韩美女视频19| 日韩一级在线观看| a4yy欧美一区二区三区| 蜜臀a∨国产成人精品| 国产精品视频一二三| 在线不卡a资源高清| 成人亚洲精品久久久久软件| 石原莉奈在线亚洲三区| 国产精品系列在线| 日韩午夜在线观看视频| 久久久久久久久久久久电影| 色综合久久久网| 狠狠久久亚洲欧美| 亚洲午夜av在线| 国产女人18水真多18精品一级做| 欧美日韩视频一区二区| 成人丝袜视频网| 日韩成人精品在线| 综合久久国产九一剧情麻豆| 日韩欧美自拍偷拍| 91福利精品视频| 国产激情偷乱视频一区二区三区| 亚瑟在线精品视频| ...av二区三区久久精品| 日韩精品一区二区三区在线 | 亚洲人成网站在线| 久久日一线二线三线suv| 欧美唯美清纯偷拍| 99re这里只有精品6| 国产成人免费视| 激情综合网激情| 亚洲成人免费电影| 亚洲色图在线视频| 中文字幕免费不卡在线| 亚洲精品一区二区三区影院| 欧美高清视频一二三区| 在线观看国产一区二区| 成人18视频在线播放| 精品中文字幕一区二区| 奇米精品一区二区三区在线观看 | 99久久精品免费精品国产| 国产剧情av麻豆香蕉精品| 理论电影国产精品| 蜜臀久久久久久久| 五月婷婷色综合| 亚洲小说春色综合另类电影| 最新日韩av在线| 亚洲欧美色综合| 亚洲免费电影在线| 亚洲美女屁股眼交3| 亚洲人xxxx| 亚洲男人的天堂一区二区|