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

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

?? relocatable.c

?? linux 支持 NTFS-3G.linux-arm ntfs 文件體統的支持
?? C
字號:
/* Provide relocatable packages.   Copyright (C) 2003-2005 Free Software Foundation, Inc.   Written by Bruno Haible <bruno@clisp.org>, 2003.   This program is free software; you can redistribute it and/or modify it   under the terms of the GNU Library 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   Library General Public License for more details.   You should have received a copy of the GNU Library General Public   License along with this program; if not, write to the Free Software   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,   USA.  *//* Tell glibc's <stdio.h> to provide a prototype for getline().   This must come before <config.h> because <config.h> may include   <features.h>, and once <features.h> has been included, it's too late.  */#ifndef _GNU_SOURCE# define _GNU_SOURCE	1#endif#ifdef HAVE_CONFIG_H# include "config.h"#endif/* Specification.  */#include "relocatable.h"#if ENABLE_RELOCATABLE#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#ifdef NO_XMALLOC# define xmalloc malloc#else# include "xalloc.h"#endif#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__# define WIN32_LEAN_AND_MEAN# include <windows.h>#endif#if DEPENDS_ON_LIBCHARSET# include <libcharset.h>#endif#if DEPENDS_ON_LIBICONV && HAVE_ICONV# include <iconv.h>#endif#if DEPENDS_ON_LIBINTL && ENABLE_NLS# include <libintl.h>#endif/* Faked cheap 'bool'.  */#undef bool#undef false#undef true#define bool int#define false 0#define true 1/* Pathname support.   ISSLASH(C)           tests whether C is a directory separator character.   IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification. */#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__  /* Win32, Cygwin, OS/2, DOS */# define ISSLASH(C) ((C) == '/' || (C) == '\\')# define HAS_DEVICE(P) \    ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \     && (P)[1] == ':')# define IS_PATH_WITH_DIR(P) \    (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P))# define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)#else  /* Unix */# define ISSLASH(C) ((C) == '/')# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)# define FILE_SYSTEM_PREFIX_LEN(P) 0#endif/* Original installation prefix.  */static char *orig_prefix;static size_t orig_prefix_len;/* Current installation prefix.  */static char *curr_prefix;static size_t curr_prefix_len;/* These prefixes do not end in a slash.  Anything that will be concatenated   to them must start with a slash.  *//* Sets the original and the current installation prefix of this module.   Relocation simply replaces a pathname starting with the original prefix   by the corresponding pathname with the current prefix instead.  Both   prefixes should be directory names without trailing slash (i.e. use ""   instead of "/").  */static voidset_this_relocation_prefix (const char *orig_prefix_arg,			    const char *curr_prefix_arg){  if (orig_prefix_arg != NULL && curr_prefix_arg != NULL      /* Optimization: if orig_prefix and curr_prefix are equal, the	 relocation is a nop.  */      && strcmp (orig_prefix_arg, curr_prefix_arg) != 0)    {      /* Duplicate the argument strings.  */      char *memory;      orig_prefix_len = strlen (orig_prefix_arg);      curr_prefix_len = strlen (curr_prefix_arg);      memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1);#ifdef NO_XMALLOC      if (memory != NULL)#endif	{	  memcpy (memory, orig_prefix_arg, orig_prefix_len + 1);	  orig_prefix = memory;	  memory += orig_prefix_len + 1;	  memcpy (memory, curr_prefix_arg, curr_prefix_len + 1);	  curr_prefix = memory;	  return;	}    }  orig_prefix = NULL;  curr_prefix = NULL;  /* Don't worry about wasted memory here - this function is usually only     called once.  */}/* Sets the original and the current installation prefix of the package.   Relocation simply replaces a pathname starting with the original prefix   by the corresponding pathname with the current prefix instead.  Both   prefixes should be directory names without trailing slash (i.e. use ""   instead of "/").  */voidset_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg){  set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg);  /* Now notify all dependent libraries.  */#if DEPENDS_ON_LIBCHARSET  libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);#endif#if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109  libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);#endif#if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix  libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);#endif}#if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR)/* Convenience function:   Computes the current installation prefix, based on the original   installation prefix, the original installation directory of a particular   file, and the current pathname of this file.  Returns NULL upon failure.  */#ifdef IN_LIBRARY#define compute_curr_prefix local_compute_curr_prefixstatic#endifconst char *compute_curr_prefix (const char *orig_installprefix,		     const char *orig_installdir,		     const char *curr_pathname){  const char *curr_installdir;  const char *rel_installdir;  if (curr_pathname == NULL)    return NULL;  /* Determine the relative installation directory, relative to the prefix.     This is simply the difference between orig_installprefix and     orig_installdir.  */  if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))      != 0)    /* Shouldn't happen - nothing should be installed outside $(prefix).  */    return NULL;  rel_installdir = orig_installdir + strlen (orig_installprefix);  /* Determine the current installation directory.  */  {    const char *p_base = curr_pathname + FILE_SYSTEM_PREFIX_LEN (curr_pathname);    const char *p = curr_pathname + strlen (curr_pathname);    char *q;    while (p > p_base)      {	p--;	if (ISSLASH (*p))	  break;      }    q = (char *) xmalloc (p - curr_pathname + 1);#ifdef NO_XMALLOC    if (q == NULL)      return NULL;#endif    memcpy (q, curr_pathname, p - curr_pathname);    q[p - curr_pathname] = '\0';    curr_installdir = q;  }  /* Compute the current installation prefix by removing the trailing     rel_installdir from it.  */  {    const char *rp = rel_installdir + strlen (rel_installdir);    const char *cp = curr_installdir + strlen (curr_installdir);    const char *cp_base =      curr_installdir + FILE_SYSTEM_PREFIX_LEN (curr_installdir);    while (rp > rel_installdir && cp > cp_base)      {	bool same = false;	const char *rpi = rp;	const char *cpi = cp;	while (rpi > rel_installdir && cpi > cp_base)	  {	    rpi--;	    cpi--;	    if (ISSLASH (*rpi) || ISSLASH (*cpi))	      {		if (ISSLASH (*rpi) && ISSLASH (*cpi))		  same = true;		break;	      }	    /* Do case-insensitive comparison if the filesystem is always or	       often case-insensitive.  It's better to accept the comparison	       if the difference is only in case, rather than to fail.  */#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__	    /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */	    if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi)		!= (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi))	      break;#else	    if (*rpi != *cpi)	      break;#endif	  }	if (!same)	  break;	/* The last pathname component was the same.  opi and cpi now point	   to the slash before it.  */	rp = rpi;	cp = cpi;      }    if (rp > rel_installdir)      /* Unexpected: The curr_installdir does not end with rel_installdir.  */      return NULL;    {      size_t curr_prefix_len = cp - curr_installdir;      char *curr_prefix;      curr_prefix = (char *) xmalloc (curr_prefix_len + 1);#ifdef NO_XMALLOC      if (curr_prefix == NULL)	return NULL;#endif      memcpy (curr_prefix, curr_installdir, curr_prefix_len);      curr_prefix[curr_prefix_len] = '\0';      return curr_prefix;    }  }}#endif /* !IN_LIBRARY || PIC */#if defined PIC && defined INSTALLDIR/* Full pathname of shared library, or NULL.  */static char *shared_library_fullname;#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__/* Determine the full pathname of the shared library when it is loaded.  */BOOL WINAPIDllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved){  (void) reserved;  if (event == DLL_PROCESS_ATTACH)    {      /* The DLL is being loaded into an application's address range.  */      static char location[MAX_PATH];      if (!GetModuleFileName (module_handle, location, sizeof (location)))	/* Shouldn't happen.  */	return FALSE;      if (!IS_PATH_WITH_DIR (location))	/* Shouldn't happen.  */	return FALSE;      {#if defined __CYGWIN__	/* On Cygwin, we need to convert paths coming from Win32 system calls	   to the Unix-like slashified notation.  */	static char location_as_posix_path[2 * MAX_PATH];	/* There's no error return defined for cygwin_conv_to_posix_path.	   See cygwin-api/func-cygwin-conv-to-posix-path.html.	   Does it overflow the buffer of expected size MAX_PATH or does it	   truncate the path?  I don't know.  Let's catch both.  */	cygwin_conv_to_posix_path (location, location_as_posix_path);	location_as_posix_path[MAX_PATH - 1] = '\0';	if (strlen (location_as_posix_path) >= MAX_PATH - 1)	  /* A sign of buffer overflow or path truncation.  */	  return FALSE;	shared_library_fullname = strdup (location_as_posix_path);#else	shared_library_fullname = strdup (location);#endif      }    }  return TRUE;}#else /* Unix except Cygwin */static voidfind_shared_library_fullname (){#if defined __linux__ && __GLIBC__ >= 2  /* Linux has /proc/self/maps. glibc 2 has the getline() function.  */  FILE *fp;  /* Open the current process' maps file.  It describes one VMA per line.  */  fp = fopen ("/proc/self/maps", "r");  if (fp)    {      unsigned long address = (unsigned long) &find_shared_library_fullname;      for (;;)	{	  unsigned long start, end;	  int c;	  if (fscanf (fp, "%lx-%lx", &start, &end) != 2)	    break;	  if (address >= start && address <= end - 1)	    {	      /* Found it.  Now see if this line contains a filename.  */	      while (c = getc (fp), c != EOF && c != '\n' && c != '/')		continue;	      if (c == '/')		{		  size_t size;		  int len;		  ungetc (c, fp);		  shared_library_fullname = NULL; size = 0;		  len = getline (&shared_library_fullname, &size, fp);		  if (len >= 0)		    {		      /* Success: filled shared_library_fullname.  */		      if (len > 0 && shared_library_fullname[len - 1] == '\n')			shared_library_fullname[len - 1] = '\0';		    }		}	      break;	    }	  while (c = getc (fp), c != EOF && c != '\n')	    continue;	}      fclose (fp);    }#endif}#endif /* (WIN32 or Cygwin) / (Unix except Cygwin) *//* Return the full pathname of the current shared library.   Return NULL if unknown.   Guaranteed to work only on Linux, Cygwin and Woe32.  */static char *get_shared_library_fullname (){#if !(defined _WIN32 || defined __WIN32__ || defined __CYGWIN__)  static bool tried_find_shared_library_fullname;  if (!tried_find_shared_library_fullname)    {      find_shared_library_fullname ();      tried_find_shared_library_fullname = true;    }#endif  return shared_library_fullname;}#endif /* PIC *//* Returns the pathname, relocated according to the current installation   directory.  */const char *relocate (const char *pathname){#if defined PIC && defined INSTALLDIR  static int initialized;  /* Initialization code for a shared library.  */  if (!initialized)    {      /* At this point, orig_prefix and curr_prefix likely have already been	 set through the main program's set_program_name_and_installdir	 function.  This is sufficient in the case that the library has	 initially been installed in the same orig_prefix.  But we can do	 better, to also cover the cases that 1. it has been installed	 in a different prefix before being moved to orig_prefix and (later)	 to curr_prefix, 2. unlike the program, it has not moved away from	 orig_prefix.  */      const char *orig_installprefix = INSTALLPREFIX;      const char *orig_installdir = INSTALLDIR;      const char *curr_prefix_better;      curr_prefix_better =	compute_curr_prefix (orig_installprefix, orig_installdir,			     get_shared_library_fullname ());      if (curr_prefix_better == NULL)	curr_prefix_better = curr_prefix;      set_relocation_prefix (orig_installprefix, curr_prefix_better);      initialized = 1;    }#endif  /* Note: It is not necessary to perform case insensitive comparison here,     even for DOS-like filesystems, because the pathname argument was     typically created from the same Makefile variable as orig_prefix came     from.  */  if (orig_prefix != NULL && curr_prefix != NULL      && strncmp (pathname, orig_prefix, orig_prefix_len) == 0)    {      if (pathname[orig_prefix_len] == '\0')	/* pathname equals orig_prefix.  */	return curr_prefix;      if (ISSLASH (pathname[orig_prefix_len]))	{	  /* pathname starts with orig_prefix.  */	  const char *pathname_tail = &pathname[orig_prefix_len];	  char *result =	    (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);#ifdef NO_XMALLOC	  if (result != NULL)#endif	    {	      memcpy (result, curr_prefix, curr_prefix_len);	      strcpy (result + curr_prefix_len, pathname_tail);	      return result;	    }	}    }  /* Nothing to relocate.  */  return pathname;}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国欧美国产1区| 日韩国产精品久久久久久亚洲| 在线观看91视频| 成人午夜av影视| 国产一区二区在线观看免费| 六月丁香综合在线视频| 免费在线看成人av| 美国欧美日韩国产在线播放| 蜜臀91精品一区二区三区 | 国产不卡高清在线观看视频| 国产真实精品久久二三区| 狠狠色丁香婷婷综合久久片| 国产麻豆视频一区二区| 高清在线不卡av| 91麻豆免费视频| 91电影在线观看| 337p亚洲精品色噜噜狠狠| 91精品视频网| 久久婷婷综合激情| 久久久三级国产网站| 国产精品久久久久一区二区三区共 | 欧美最猛黑人xxxxx猛交| 国产农村妇女精品| 亚洲视频你懂的| 亚洲欧美日韩久久精品| 亚洲综合激情网| 男男成人高潮片免费网站| 国产一区二区不卡| 91亚洲精华国产精华精华液| 日本韩国精品在线| 精品国产乱子伦一区| 中文一区二区完整视频在线观看| 亚洲欧洲av另类| 日韩精品亚洲专区| 国产一区二区看久久| 欧美在线综合视频| 欧美va亚洲va在线观看蝴蝶网| 亚洲国产激情av| 婷婷六月综合亚洲| 国产成人午夜片在线观看高清观看| 99久久精品国产观看| 91精品欧美久久久久久动漫| 欧美高清在线视频| 午夜影院在线观看欧美| 国产乱码精品一区二区三区忘忧草| 91久久精品日日躁夜夜躁欧美| 精品人伦一区二区色婷婷| 一区二区三区四区av| 久久99国产精品免费| 日本伦理一区二区| 久久网这里都是精品| 亚洲一区二区视频在线观看| 激情综合网av| 欧美日韩精品综合在线| 国产欧美日韩在线| 精品制服美女久久| 欧美日韩精品电影| 亚洲男人的天堂一区二区| 国产精品一级在线| 日韩精品一区二区三区在线播放| 一级女性全黄久久生活片免费| 韩国欧美国产1区| 日韩视频在线观看一区二区| 亚洲一区二区三区视频在线播放| 日韩片之四级片| 亚洲www啪成人一区二区麻豆 | 国产精品成人在线观看| 久久 天天综合| 欧美一区二视频| 午夜欧美视频在线观看| 欧美三级蜜桃2在线观看| 中文字幕一区二区三区视频| 国产精品一区一区三区| 久久久久久久久97黄色工厂| 久久草av在线| 日韩一级免费一区| 日本视频中文字幕一区二区三区| 欧美日韩国产综合视频在线观看| 亚洲最大成人综合| 色综合久久久久综合| 亚洲人成网站精品片在线观看| 成人午夜av影视| 中文字幕在线视频一区| 成人91在线观看| 亚洲品质自拍视频网站| 91黄色小视频| 亚洲va韩国va欧美va| 91 com成人网| 狠狠色丁香久久婷婷综| 国产精品色婷婷久久58| 成人高清免费在线播放| 综合激情网...| 欧洲精品一区二区| 视频一区二区中文字幕| 日韩亚洲电影在线| 国内精品写真在线观看| 国产日韩欧美一区二区三区乱码| 成人免费高清视频在线观看| 亚洲欧洲精品成人久久奇米网| 久久久综合精品| 国产91精品免费| 亚洲精品乱码久久久久久| 欧美日韩国产系列| 久久99久久99精品免视看婷婷| 久久久久久久综合| 在线精品视频一区二区| 免费成人美女在线观看.| 久久久久国产精品人| 91麻豆蜜桃一区二区三区| 日韩av一级片| 日本一区二区三区在线不卡| 欧美亚洲国产bt| 国产精一区二区三区| 中文字幕视频一区二区三区久| 欧美日韩亚洲丝袜制服| 国产综合色精品一区二区三区| 亚洲精品高清视频在线观看| 欧美一区二区三区在线视频| 国产高清不卡一区二区| 亚洲国产cao| 国产三级一区二区| 在线综合亚洲欧美在线视频| 成人午夜av在线| 另类欧美日韩国产在线| 一区二区三区在线视频观看58| 久久久久久久久久久电影| 欧美性色黄大片手机版| 成人污视频在线观看| 奇米影视一区二区三区小说| 亚洲欧美一区二区三区久本道91| 日韩欧美精品在线视频| 欧美曰成人黄网| 成人性色生活片| 毛片基地黄久久久久久天堂| 一区二区三区**美女毛片| 国产欧美精品国产国产专区| 欧美一级视频精品观看| 欧美视频一区二区三区四区| 成人精品国产福利| 国产成人免费在线观看| 麻豆精品视频在线观看视频| 日韩在线一二三区| 一区二区三区中文字幕| 中文字幕一区二区三区在线播放 | 欧美精品99久久久**| 99精品久久久久久| 成人性生交大片免费看中文网站| 麻豆中文一区二区| 日韩黄色片在线观看| 午夜欧美一区二区三区在线播放| 亚洲一区二区免费视频| 亚洲宅男天堂在线观看无病毒| 亚洲天堂中文字幕| 中文字幕欧美一| 亚洲欧美激情视频在线观看一区二区三区| 久久久久久久综合| 日本一区二区三区视频视频| 国产欧美日韩中文久久| 亚洲国产岛国毛片在线| 国产精品情趣视频| 国产精品久久毛片a| 亚洲日本丝袜连裤袜办公室| 成人欧美一区二区三区黑人麻豆 | 欧美日韩高清一区| 欧美优质美女网站| 欧美日韩三级在线| 欧美一级片在线看| 久久综合久久99| 国产欧美视频在线观看| 亚洲色图欧洲色图| 亚洲动漫第一页| 美女一区二区久久| 丰满放荡岳乱妇91ww| 99视频在线观看一区三区| 欧洲av在线精品| 日韩欧美一级二级| 国产日韩欧美高清在线| 中文字幕亚洲精品在线观看| 亚洲永久免费av| 日本特黄久久久高潮| 成人国产电影网| 欧美日本在线播放| 久久久不卡网国产精品二区| 中文字幕亚洲欧美在线不卡| 性久久久久久久久久久久| 激情文学综合网| 色婷婷综合久久久中文字幕| 7777精品伊人久久久大香线蕉 | 亚洲影院久久精品| 精品在线播放午夜| 99久久精品99国产精品| 91精品国产综合久久久久久久 | 舔着乳尖日韩一区| 国产在线播精品第三| 91电影在线观看| 国产丝袜美腿一区二区三区| 香蕉加勒比综合久久| 福利一区在线观看| 日韩欧美在线不卡| 亚洲精品视频一区二区|