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

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

?? relocatable.c

?? xmms-1.2.10.tar.gz學習使用的就下吧
?? C
字號:
/* Provide relocatable packages.   Copyright (C) 2003 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,   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 "xmalloc.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 __EMX__ || defined __DJGPP__  /* Win32, 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 FILESYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)#else  /* Unix */# define ISSLASH(C) ((C) == '/')# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)# define FILESYSTEM_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}/* 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 + FILESYSTEM_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 + FILESYSTEM_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;	      }#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__	    /* Win32, 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;    }  }}#if defined PIC && defined INSTALLDIR/* Full pathname of shared library, or NULL.  */static char *shared_library_fullname;#if defined _WIN32 || defined __WIN32__/* 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;      shared_library_fullname = strdup (location);    }  return TRUE;}#else /* Unix */static voidfind_shared_library_fullname (){#ifdef __linux__  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 / Unix *//* Return the full pathname of the current shared library.   Return NULL if unknown.   Guaranteed to work only on Linux and Woe32.  */static char *get_shared_library_fullname (){#if !(defined _WIN32 || defined __WIN32__)  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一区二区三区免费野_久草精品视频
91精品国产高清一区二区三区| 亚欧色一区w666天堂| 久久精品国产999大香线蕉| 欧美日韩免费在线视频| 亚洲第一在线综合网站| 欧美日韩精品欧美日韩精品一| 亚洲综合色网站| 欧美日韩激情在线| 美女mm1313爽爽久久久蜜臀| 欧美电影免费观看高清完整版在线| 另类人妖一区二区av| 久久欧美一区二区| 成人av电影在线| 一区二区视频在线| 欧美人与性动xxxx| 国产在线不卡一区| 亚洲国产激情av| 色婷婷精品大在线视频| 五月天久久比比资源色| 精品国产乱码久久久久久久久 | 国产亚洲欧美一级| 丁香天五香天堂综合| 亚洲精品国产一区二区精华液| 久久人人爽人人爽| 91同城在线观看| 日日夜夜精品视频免费| 久久久青草青青国产亚洲免观| 99亚偷拍自图区亚洲| 午夜久久久久久久久久一区二区| 精品福利一区二区三区免费视频| 成人高清伦理免费影院在线观看| 亚洲高清不卡在线观看| 精品成人a区在线观看| 91理论电影在线观看| 久久精品噜噜噜成人av农村| 国产精品看片你懂得| 制服丝袜成人动漫| 成人高清视频免费观看| 婷婷综合在线观看| 国产精品久久久久久户外露出| 欧美日本一区二区三区| 成人午夜视频免费看| 石原莉奈在线亚洲三区| 中文字幕一区在线| 精品电影一区二区三区| 欧美日韩色一区| 91影视在线播放| 国产精品69毛片高清亚洲| 亚洲无人区一区| 国产精品麻豆网站| 99热这里都是精品| 91精品国产乱码久久蜜臀| 黑人精品欧美一区二区蜜桃| 亚洲一级二级在线| 中文字幕亚洲不卡| 国产无一区二区| 日韩三级在线观看| 欧美日韩在线播| 色诱亚洲精品久久久久久| 国产福利一区二区三区在线视频| 五月天精品一区二区三区| 亚洲综合视频网| 最好看的中文字幕久久| 欧美国产欧美综合| 久久久不卡影院| www国产精品av| 日韩写真欧美这视频| 欧美日韩在线不卡| 欧美视频一区在线观看| 91免费在线看| 91蜜桃免费观看视频| 成人免费不卡视频| 成人性生交大片| 国产成人免费xxxxxxxx| 国产一区二区三区不卡在线观看| 日本视频一区二区三区| 日日嗨av一区二区三区四区| 午夜日韩在线电影| 丝袜诱惑制服诱惑色一区在线观看 | 欧美人体做爰大胆视频| 91在线播放网址| 99热这里都是精品| 91网址在线看| 色婷婷国产精品综合在线观看| www.爱久久.com| 91在线视频免费观看| 91丨porny丨首页| 色综合色狠狠天天综合色| 色婷婷综合在线| 在线免费观看视频一区| 91高清视频免费看| 欧美日韩中文精品| 69久久99精品久久久久婷婷| 欧美一级日韩一级| 26uuu国产日韩综合| 国产欧美日韩麻豆91| 国产精品久久久久精k8| 亚洲欧美另类在线| 婷婷一区二区三区| 久久不见久久见免费视频1| 国产精品影视网| av在线播放不卡| 欧美日韩视频一区二区| 日韩精品一区二区三区视频在线观看| 欧美电影免费观看高清完整版| 久久九九久精品国产免费直播| 中文字幕精品一区| 亚洲图片欧美一区| 久久精品噜噜噜成人88aⅴ| 成人自拍视频在线观看| 91久久精品日日躁夜夜躁欧美| 欧美美女视频在线观看| 久久久久久久性| 亚洲欧美色图小说| 热久久免费视频| 国产不卡视频一区| 欧美日韩mp4| 国产欧美一区二区精品性色 | 黑人巨大精品欧美一区| 不卡av在线网| 7777精品伊人久久久大香线蕉最新版| 精品国产乱码久久久久久图片 | 久久亚洲精华国产精华液 | 亚洲欧美一区二区三区久本道91| 午夜精品久久久久久久| 国产精品一级片| 欧美三级视频在线| 国产女人aaa级久久久级 | hitomi一区二区三区精品| 欧美日本一道本| 中文字幕一区二区三区四区不卡 | 在线免费观看视频一区| 日韩色视频在线观看| 亚洲人一二三区| 国模少妇一区二区三区| 欧美亚洲高清一区| 国产精品天美传媒沈樵| 免费在线观看精品| 国产欧美中文在线| 亚洲第一激情av| 99精品久久只有精品| 精品久久五月天| 亚洲电影中文字幕在线观看| 成人免费精品视频| 精品国产乱码久久久久久图片| 亚洲国产欧美一区二区三区丁香婷| 国产精品99久久久久久似苏梦涵| 欧美日韩久久久| 亚洲日本在线a| 国产91丝袜在线播放| 日韩欧美一区二区在线视频| 亚洲电影中文字幕在线观看| 91影院在线免费观看| 国产精品网站一区| 国产一区在线观看视频| 欧美一区二区高清| 亚洲国产乱码最新视频| 色域天天综合网| 日韩美女久久久| eeuss鲁片一区二区三区在线观看| 2020国产成人综合网| 毛片av一区二区三区| 7777精品伊人久久久大香线蕉的 | 丝袜美腿亚洲一区| 在线观看日韩一区| 亚洲久本草在线中文字幕| 99久久精品免费| 国产精品卡一卡二| 不卡av免费在线观看| 国产精品色在线| 成人黄色电影在线| 国产精品成人一区二区三区夜夜夜| 国产精品自产自拍| 国产欧美1区2区3区| 成人av在线网站| 亚洲色图视频网站| 色播五月激情综合网| 亚洲最大的成人av| 欧美日本一区二区| 卡一卡二国产精品| 久久精子c满五个校花| 国产成人在线免费观看| 中文字幕av一区二区三区免费看| 成人爽a毛片一区二区免费| 国产精品毛片久久久久久| 99精品黄色片免费大全| 一区二区三区高清在线| 欧美精品日韩一本| 免费高清视频精品| 久久欧美中文字幕| 99久久婷婷国产| 亚洲影院在线观看| 日韩欧美资源站| 国产精品正在播放| 亚洲欧洲综合另类在线| 91麻豆精品国产自产在线观看一区 | 欧美一区国产二区| 国产美女在线精品| 亚洲三级在线免费| 日韩女优制服丝袜电影|