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

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

?? localealias.c

?? minicom2.0源代碼
?? C
字號:
/* Handle aliases for locale names.   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.   Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2, or (at your option)   any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software Foundation,   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#ifdef HAVE_CONFIG_H# include <config.h>#endif#include <ctype.h>#include <stdio.h>#include <sys/types.h>#ifdef __GNUC__# define alloca __builtin_alloca# define HAVE_ALLOCA 1#else# if defined HAVE_ALLOCA_H || defined _LIBC#  include <alloca.h># else#  ifdef _AIX #pragma alloca#  else#   ifndef allocachar *alloca ();#   endif#  endif# endif#endif#if defined STDC_HEADERS || defined _LIBC# include <stdlib.h>#elsechar *getenv ();# ifdef HAVE_MALLOC_H#  include <malloc.h># elsevoid free ();# endif#endif#if defined HAVE_STRING_H || defined _LIBC# ifndef _GNU_SOURCE#  define _GNU_SOURCE	1# endif# include <string.h>#else# include <strings.h># ifndef memcpy#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)# endif#endif#if !HAVE_STRCHR && !defined _LIBC# ifndef strchr#  define strchr index# endif#endif#include "gettext.h"#include "gettextP.h"/* @@ end of prolog @@ */#ifdef _LIBC/* Rename the non ANSI C functions.  This is required by the standard   because some ANSI C functions will require linking with this object   file and the name space must not be polluted.  */# define strcasecmp __strcasecmp# define mempcpy __mempcpy# define HAVE_MEMPCPY	1/* We need locking here since we can be called from different places.  */# include <bits/libc-lock.h>__libc_lock_define_initialized (static, lock);#endif/* For those loosing systems which don't have `alloca' we have to add   some additional code emulating it.  */#ifdef HAVE_ALLOCA/* Nothing has to be done.  */# define ADD_BLOCK(list, address) /* nothing */# define FREE_BLOCKS(list) /* nothing */#elsestruct block_list{  void *address;  struct block_list *next;};# define ADD_BLOCK(list, addr)						      \  do {									      \    struct block_list *newp = (struct block_list *) malloc (sizeof (*newp));  \    /* If we cannot get a free block we cannot add the new element to	      \       the list.  */							      \    if (newp != NULL) {							      \      newp->address = (addr);						      \      newp->next = (list);						      \      (list) = newp;							      \    }									      \  } while (0)# define FREE_BLOCKS(list)						      \  do {									      \    while (list != NULL) {						      \      struct block_list *old = list;					      \      list = list->next;						      \      free (old);							      \    }									      \  } while (0)# undef alloca# define alloca(size) (malloc (size))#endif	/* have alloca */struct alias_map{  const char *alias;  const char *value;};static char *string_space = NULL;static size_t string_space_act = 0;static size_t string_space_max = 0;static struct alias_map *map;static size_t nmap = 0;static size_t maxmap = 0;/* Prototypes for local functions.  */static size_t read_alias_file PARAMS ((const char *fname, int fname_len))     internal_function;static void extend_alias_table PARAMS ((void));static int alias_compare PARAMS ((const struct alias_map *map1,				  const struct alias_map *map2));const char *_nl_expand_alias (name)    const char *name;{  static const char *locale_alias_path = LOCALE_ALIAS_PATH;  struct alias_map *retval;  const char *result = NULL;  size_t added;#ifdef _LIBC  __libc_lock_lock (lock);#endif  do    {      struct alias_map item;      item.alias = name;      if (nmap > 0)	retval = (struct alias_map *) bsearch (&item, map, nmap,					       sizeof (struct alias_map),					       (int (*) PARAMS ((const void *,								 const void *))						) alias_compare);      else	retval = NULL;      /* We really found an alias.  Return the value.  */      if (retval != NULL)	{	  result = retval->value;	  break;	}      /* Perhaps we can find another alias file.  */      added = 0;      while (added == 0 && locale_alias_path[0] != '\0')	{	  const char *start;	  while (locale_alias_path[0] == ':')	    ++locale_alias_path;	  start = locale_alias_path;	  while (locale_alias_path[0] != '\0' && locale_alias_path[0] != ':')	    ++locale_alias_path;	  if (start < locale_alias_path)	    added = read_alias_file (start, locale_alias_path - start);	}    }  while (added != 0);#ifdef _LIBC  __libc_lock_unlock (lock);#endif  return result;}static size_tinternal_functionread_alias_file (fname, fname_len)     const char *fname;     int fname_len;{#ifndef HAVE_ALLOCA  struct block_list *block_list = NULL;#endif  FILE *fp;  char *full_fname;  size_t added;  static const char aliasfile[] = "/locale.alias";  full_fname = (char *) alloca (fname_len + sizeof aliasfile);  ADD_BLOCK (block_list, full_fname);#ifdef HAVE_MEMPCPY  mempcpy (mempcpy (full_fname, fname, fname_len),	   aliasfile, sizeof aliasfile);#else  memcpy (full_fname, fname, fname_len);  memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile);#endif  fp = fopen (full_fname, "r");  if (fp == NULL)    {      FREE_BLOCKS (block_list);      return 0;    }  added = 0;  while (!feof (fp))    {      /* It is a reasonable approach to use a fix buffer here because	 a) we are only interested in the first two fields	 b) these fields must be usable as file names and so must not	    be that long       */      unsigned char buf[BUFSIZ];      unsigned char *alias;      unsigned char *value;      unsigned char *cp;      if (fgets (buf, sizeof buf, fp) == NULL)	/* EOF reached.  */	break;      /* Possibly not the whole line fits into the buffer.  Ignore	 the rest of the line.  */      if (strchr (buf, '\n') == NULL)	{	  char altbuf[BUFSIZ];	  do	    if (fgets (altbuf, sizeof altbuf, fp) == NULL)	      /* Make sure the inner loop will be left.  The outer loop		 will exit at the `feof' test.  */	      break;	  while (strchr (altbuf, '\n') == NULL);	}      cp = buf;      /* Ignore leading white space.  */      while (isspace (cp[0]))	++cp;      /* A leading '#' signals a comment line.  */      if (cp[0] != '\0' && cp[0] != '#')	{	  alias = cp++;	  while (cp[0] != '\0' && !isspace (cp[0]))	    ++cp;	  /* Terminate alias name.  */	  if (cp[0] != '\0')	    *cp++ = '\0';	  /* Now look for the beginning of the value.  */	  while (isspace (cp[0]))	    ++cp;	  if (cp[0] != '\0')	    {	      size_t alias_len;	      size_t value_len;	      value = cp++;	      while (cp[0] != '\0' && !isspace (cp[0]))		++cp;	      /* Terminate value.  */	      if (cp[0] == '\n')		{		  /* This has to be done to make the following test		     for the end of line possible.  We are looking for		     the terminating '\n' which do not overwrite here.  */		  *cp++ = '\0';		  *cp = '\n';		}	      else if (cp[0] != '\0')		*cp++ = '\0';	      if (nmap >= maxmap)		extend_alias_table ();	      alias_len = strlen (alias) + 1;	      value_len = strlen (value) + 1;	      if (string_space_act + alias_len + value_len > string_space_max)		{		  /* Increase size of memory pool.  */		  size_t new_size = (string_space_max				     + (alias_len + value_len > 1024					? alias_len + value_len : 1024));		  char *new_pool = (char *) realloc (string_space, new_size);		  if (new_pool == NULL)		    {		      FREE_BLOCKS (block_list);		      return added;		    }		  string_space = new_pool;		  string_space_max = new_size;		}	      map[nmap].alias = memcpy (&string_space[string_space_act],					alias, alias_len);	      string_space_act += alias_len;	      map[nmap].value = memcpy (&string_space[string_space_act],					value, value_len);	      string_space_act += value_len;	      ++nmap;	      ++added;	    }	}    }  /* Should we test for ferror()?  I think we have to silently ignore     errors.  --drepper  */  fclose (fp);  if (added > 0)    qsort (map, nmap, sizeof (struct alias_map),	   (int (*) PARAMS ((const void *, const void *))) alias_compare);  FREE_BLOCKS (block_list);  return added;}static voidextend_alias_table (){  size_t new_size;  struct alias_map *new_map;  new_size = maxmap == 0 ? 100 : 2 * maxmap;  new_map = (struct alias_map *) realloc (map, (new_size						* sizeof (struct alias_map)));  if (new_map == NULL)    /* Simply don't extend: we don't have any more core.  */    return;  map = new_map;  maxmap = new_size;}#ifdef _LIBCstatic void __attribute__ ((unused))free_mem (void){  if (string_space != NULL)    free (string_space);  if (map != NULL)    free (map);}text_set_element (__libc_subfreeres, free_mem);#endifstatic intalias_compare (map1, map2)     const struct alias_map *map1;     const struct alias_map *map2;{#if defined _LIBC || defined HAVE_STRCASECMP  return strcasecmp (map1->alias, map2->alias);#else  const unsigned char *p1 = (const unsigned char *) map1->alias;  const unsigned char *p2 = (const unsigned char *) map2->alias;  unsigned char c1, c2;  if (p1 == p2)    return 0;  do    {      /* I know this seems to be odd but the tolower() function in	 some systems libc cannot handle nonalpha characters.  */      c1 = isupper (*p1) ? tolower (*p1) : *p1;      c2 = isupper (*p2) ? tolower (*p2) : *p2;      if (c1 == '\0')	break;      ++p1;      ++p2;    }  while (c1 == c2);  return c1 - c2;#endif}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久看| 国产一区二区三区日韩| 免费人成在线不卡| 九一久久久久久| 偷拍一区二区三区四区| 丝袜亚洲另类欧美综合| 久久久午夜电影| 国产精品国产三级国产aⅴ中文| 欧美电视剧免费全集观看| 欧美日韩国产123区| 日韩午夜av一区| 在线视频欧美精品| av电影一区二区| 国产精品正在播放| 韩国欧美国产1区| 日韩av一区二区在线影视| 亚洲成年人影院| 青娱乐精品视频| 黄色日韩网站视频| 成人国产视频在线观看| 色综合色综合色综合| 日韩美女视频一区二区在线观看| 亚洲国产精品ⅴa在线观看| 综合电影一区二区三区| 日产欧产美韩系列久久99| 精彩视频一区二区| 成人高清视频在线| 欧美三级三级三级| 久久久久久久久伊人| 一区二区不卡在线播放 | 中文av一区特黄| 亚洲一区二区三区在线| 国产精品系列在线播放| 欧美一区国产二区| 亚洲一区二区三区四区五区黄| 国产精品一区一区三区| 日韩一区二区在线观看视频 | 成人免费高清在线观看| 制服.丝袜.亚洲.另类.中文| 久久天天做天天爱综合色| 亚洲综合一区二区精品导航| 精品一区二区精品| 欧美日韩精品系列| 亚洲在线成人精品| 不卡影院免费观看| 美女精品一区二区| 欧美日韩三级一区| 亚洲综合丁香婷婷六月香| 在线观看一区二区精品视频| 亚洲一区视频在线| 日韩精品中文字幕一区二区三区 | 男人的j进女人的j一区| 色哟哟一区二区三区| 最新国产成人在线观看| 99re成人精品视频| 亚洲女子a中天字幕| 色婷婷综合久久| 青青草国产成人av片免费| 亚洲精品在线免费观看视频| 国产999精品久久久久久绿帽| 欧美国产日韩一二三区| 成人黄色小视频在线观看| 国产精品久久久久久久久搜平片| 99久久精品费精品国产一区二区| 欧美国产一区在线| 一本到高清视频免费精品| 亚洲国产sm捆绑调教视频 | 成人aaaa免费全部观看| 日韩极品在线观看| 国产精品国产自产拍高清av王其 | 一区二区三区在线免费观看| 91丨porny丨国产| 婷婷六月综合亚洲| 久久精品夜色噜噜亚洲a∨| 成人性生交大片免费看视频在线 | 欧美绝品在线观看成人午夜影视| 三级影片在线观看欧美日韩一区二区 | 亚洲美女电影在线| 欧美tickling挠脚心丨vk| 一本一道综合狠狠老| 久久国产福利国产秒拍| 亚洲一二三四区| 亚洲人成在线观看一区二区| 欧美精品一区二区精品网| 日本乱人伦aⅴ精品| 国产成人精品亚洲午夜麻豆| 午夜精品久久久久影视| 自拍视频在线观看一区二区| 久久久久久久久蜜桃| 91精品国产91久久综合桃花| 欧美性受xxxx黑人xyx性爽| 成人少妇影院yyyy| 国产精品99久| 国产黄色成人av| 国产成人精品亚洲日本在线桃色| 久久成人综合网| 久久精品国产亚洲高清剧情介绍| 亚洲国产一区在线观看| 亚洲精品乱码久久久久久久久 | 日韩二区在线观看| 午夜久久久久久久久| 一区二区三区在线免费| 亚洲老司机在线| 国产精品福利影院| 国产欧美一区二区三区网站 | 国产午夜精品福利| 精品成人免费观看| 国产欧美日韩久久| 国产精品电影一区二区| 一区二区三区中文在线| 亚洲激情自拍偷拍| 美女一区二区三区| www.欧美日韩国产在线| 欧洲人成人精品| 欧美一区二区三区影视| 欧美国产日韩在线观看| 洋洋成人永久网站入口| 免费在线视频一区| 成人午夜激情在线| 91亚洲国产成人精品一区二区三 | 日韩美女啊v在线免费观看| 一区二区三区欧美日| 一区二区三区四区在线播放| 亚洲激情综合网| 激情综合色综合久久| 国产精品一级在线| 欧美在线高清视频| 日韩精品一区二区三区视频在线观看| 久久久久久久久伊人| 一区二区免费看| 久久国产夜色精品鲁鲁99| 99久久精品久久久久久清纯| 欧美日韩国产不卡| 91精品在线观看入口| 日本一区二区三区四区在线视频 | 国产视频在线观看一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 国产麻豆午夜三级精品| 精品免费日韩av| 美国毛片一区二区三区| 欧美午夜免费电影| 综合亚洲深深色噜噜狠狠网站| 国模套图日韩精品一区二区| 91麻豆精品国产91久久久更新时间| 亚洲制服丝袜av| 91福利社在线观看| 一区二区三区在线视频免费观看| 成人性生交大合| 久久伊99综合婷婷久久伊| 日韩国产精品久久久久久亚洲| 在线看日韩精品电影| 亚洲激情图片qvod| 97久久超碰国产精品| 国产亚洲va综合人人澡精品| 免费av成人在线| 日韩欧美一二区| 蜜臀av亚洲一区中文字幕| 7777精品伊人久久久大香线蕉经典版下载| 国产女人水真多18毛片18精品视频 | 韩日av一区二区| 中文字幕乱码日本亚洲一区二区 | 精品捆绑美女sm三区| 麻豆久久久久久| 国产亚洲一区二区在线观看| 国产精品一区二区不卡| 国产精品久久久久久久蜜臀| 99国产精品久久久| 午夜欧美电影在线观看| 日韩精品一区二区在线观看| 国产高清成人在线| 18涩涩午夜精品.www| 欧美综合一区二区三区| 五月激情综合网| 欧美精品日日鲁夜夜添| 国产成人免费视频网站| 成人欧美一区二区三区白人 | 欧美性色aⅴ视频一区日韩精品| 天堂一区二区在线免费观看| 日韩色在线观看| 国产91丝袜在线播放九色| 亚洲日本成人在线观看| 日韩美女天天操| 91色综合久久久久婷婷| 亚洲6080在线| 国产精品传媒视频| 欧美精品粉嫩高潮一区二区| 美女视频黄频大全不卡视频在线播放| 久久综合色8888| 欧美日韩在线播放| 国产剧情一区二区| 亚洲一区二区三区在线看| 久久男人中文字幕资源站| 色综合欧美在线视频区| 国产一区不卡精品| 亚洲成a人片在线观看中文| 久久久久久黄色| 欧洲一区二区av| 国产成人免费av在线| 亚洲一二三四区不卡| 国产精品高潮呻吟|