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

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

?? ar.c

?? 基于4個mips核的noc設計
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* ar.c - Archive modify and extract.   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000   Free Software Foundation, Inc.This file is part of GNU Binutils.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  *//*   Bugs: should use getopt the way tar does (complete w/optional -) and   should have long options too. GNU ar used to check file against filesystem   in quick_update and replace operations (would check mtime). Doesn't warn   when name truncated. No way to specify pos_end. Error messages should be   more consistant.*/#include "bfd.h"#include "libiberty.h"#include "progress.h"#include "bucomm.h"#include "aout/ar.h"#include "libbfd.h"#include "arsup.h"#include "filenames.h"#include <sys/stat.h>#ifdef __GO32___#define EXT_NAME_LEN 3		/* bufflen of addition to name if it's MS-DOS */#else#define EXT_NAME_LEN 6		/* ditto for *NIX */#endif/* We need to open files in binary modes on system where that makes a   difference.  */#ifndef O_BINARY#define O_BINARY 0#endif#define BUFSIZE 8192/* Kludge declaration from BFD!  This is ugly!  FIXME!  XXX */struct ar_hdr *  bfd_special_undocumented_glue PARAMS ((bfd * abfd, const char *filename));/* Static declarations */static voidmri_emul PARAMS ((void));static const char *normalize PARAMS ((const char *, bfd *));static voidremove_output PARAMS ((void));static voidmap_over_members PARAMS ((bfd *, void (*)(bfd *), char **, int));static voidprint_contents PARAMS ((bfd * member));static voiddelete_members PARAMS ((bfd *, char **files_to_delete));#if 0static voiddo_quick_append PARAMS ((const char *archive_filename,			 char **files_to_append));#endifstatic voidmove_members PARAMS ((bfd *, char **files_to_move));static voidreplace_members PARAMS ((bfd *, char **files_to_replace, boolean quick));static voidprint_descr PARAMS ((bfd * abfd));static voidwrite_archive PARAMS ((bfd *));static voidranlib_only PARAMS ((const char *archname));static voidranlib_touch PARAMS ((const char *archname));static voidusage PARAMS ((int));/** Globals and flags */int mri_mode;/* This flag distinguishes between ar and ranlib:   1 means this is 'ranlib'; 0 means this is 'ar'.   -1 means if we should use argv[0] to decide.  */extern int is_ranlib;/* Nonzero means don't warn about creating the archive file if necessary.  */int silent_create = 0;/* Nonzero means describe each action performed.  */int verbose = 0;/* Nonzero means preserve dates of members when extracting them.  */int preserve_dates = 0;/* Nonzero means don't replace existing members whose dates are more recent   than the corresponding files.  */int newer_only = 0;/* Controls the writing of an archive symbol table (in BSD: a __.SYMDEF   member).  -1 means we've been explicitly asked to not write a symbol table;   +1 means we've been explictly asked to write it;   0 is the default.   Traditionally, the default in BSD has been to not write the table.   However, for POSIX.2 compliance the default is now to write a symbol table   if any of the members are object files.  */int write_armap = 0;/* Nonzero means it's the name of an existing member; position new or moved   files with respect to this one.  */char *posname = NULL;/* Sez how to use `posname': pos_before means position before that member.   pos_after means position after that member. pos_end means always at end.   pos_default means default appropriately. For the latter two, `posname'   should also be zero.  */enum pos  {    pos_default, pos_before, pos_after, pos_end  } postype = pos_default;static bfd **get_pos_bfd PARAMS ((bfd **, enum pos, const char *));/* For extract/delete only.  If COUNTED_NAME_MODE is true, we only   extract the COUNTED_NAME_COUNTER instance of that name.  */static boolean counted_name_mode = 0;static int counted_name_counter = 0;/* Whether to truncate names of files stored in the archive.  */static boolean ar_truncate = false;/* Whether to use a full file name match when searching an archive.   This is convenient for archives created by the Microsoft lib   program.  */static boolean full_pathname = false;int interactive = 0;static voidmri_emul (){  interactive = isatty (fileno (stdin));  yyparse ();}/* If COUNT is 0, then FUNCTION is called once on each entry.  If nonzero,   COUNT is the length of the FILES chain; FUNCTION is called on each entry   whose name matches one in FILES.  */static voidmap_over_members (arch, function, files, count)     bfd *arch;     void (*function) PARAMS ((bfd *));     char **files;     int count;{  bfd *head;  int match_count;  if (count == 0)    {      for (head = arch->next; head; head = head->next)	{	  PROGRESS (1);	  function (head);	}      return;    }  /* This may appear to be a baroque way of accomplishing what we want.     However we have to iterate over the filenames in order to notice where     a filename is requested but does not exist in the archive.  Ditto     mapping over each file each time -- we want to hack multiple     references.  */  for (; count > 0; files++, count--)    {      boolean found = false;      match_count = 0;      for (head = arch->next; head; head = head->next)	{	  PROGRESS (1);	  if (head->filename == NULL)	    {	      /* Some archive formats don't get the filenames filled in		 until the elements are opened.  */	      struct stat buf;	      bfd_stat_arch_elt (head, &buf);	    }	  if ((head->filename != NULL) &&	      (!FILENAME_CMP (normalize (*files, arch), head->filename)))	    {	      ++match_count;	      if (counted_name_mode		  && match_count != counted_name_counter) 		{		  /* Counting, and didn't match on count; go on to the                     next one.  */		  continue;		}	      found = true;	      function (head);	    }	}      if (!found)	/* xgettext:c-format */	fprintf (stderr, _("no entry %s in archive\n"), *files);    }}boolean operation_alters_arch = false;static voidusage (help)     int help;{  FILE *s;  s = help ? stdout : stderr;    if (! is_ranlib)    {      /* xgettext:c-format */      fprintf (s, _("Usage: %s [-X32_64] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"),	       program_name);      /* xgettext:c-format */      fprintf (s, _("       %s -M [<mri-script]\n"), program_name);      fprintf (s, _(" commands:\n"));      fprintf (s, _("  d            - delete file(s) from the archive\n"));      fprintf (s, _("  m[ab]        - move file(s) in the archive\n"));      fprintf (s, _("  p            - print file(s) found in the archive\n"));      fprintf (s, _("  q[f]         - quick append file(s) to the archive\n"));      fprintf (s, _("  r[ab][f][u]  - replace existing or insert new file(s) into the archive\n"));      fprintf (s, _("  t            - display contents of archive\n"));      fprintf (s, _("  x[o]         - extract file(s) from the archive\n"));      fprintf (s, _(" command specific modifiers:\n"));      fprintf (s, _("  [a]          - put file(s) after [member-name]\n"));      fprintf (s, _("  [b]          - put file(s) before [member-name] (same as [i])\n"));      fprintf (s, _("  [N]          - use instance [count] of name\n"));      fprintf (s, _("  [f]          - truncate inserted file names\n"));      fprintf (s, _("  [P]          - use full path names when matching\n"));      fprintf (s, _("  [o]          - preserve original dates\n"));      fprintf (s, _("  [u]          - only replace files that are newer than current archive contents\n"));      fprintf (s, _(" generic modifiers:\n"));      fprintf (s, _("  [c]          - do not warn if the library had to be created\n"));      fprintf (s, _("  [s]          - create an archive index (cf. ranlib)\n"));      fprintf (s, _("  [S]          - do not build a symbol table\n"));      fprintf (s, _("  [v]          - be verbose\n"));      fprintf (s, _("  [V]          - display the version number\n"));      fprintf (s, _("  [-X32_64]    - (ignored)\n"));    }  else    /* xgettext:c-format */    fprintf (s, _("Usage: %s [-vV] archive\n"), program_name);  list_supported_targets (program_name, stderr);  if (help)    fprintf (s, _("Report bugs to %s\n"), REPORT_BUGS_TO);  xexit (help ? 0 : 1);}/* Normalize a file name specified on the command line into a file   name which we will use in an archive.  */static const char *normalize (file, abfd)     const char *file;     bfd *abfd;{  const char *filename;  if (full_pathname)    return file;  filename = strrchr (file, '/');#ifdef HAVE_DOS_BASED_FILE_SYSTEM  {    /* We could have foo/bar\\baz, or foo\\bar, or d:bar.  */    char *bslash = strrchr (file, '\\');    if (filename == NULL || (bslash != NULL && bslash > filename))      filename = bslash;    if (filename == NULL && file[0] != '\0' && file[1] == ':')      filename = file + 1;  }#endif  if (filename != (char *) NULL)    filename++;  else    filename = file;  if (ar_truncate      && abfd != NULL      && strlen (filename) > abfd->xvec->ar_max_namelen)    {      char *s;      /* Space leak.  */      s = (char *) xmalloc (abfd->xvec->ar_max_namelen + 1);      memcpy (s, filename, abfd->xvec->ar_max_namelen);      s[abfd->xvec->ar_max_namelen] = '\0';      filename = s;    }  return filename;}/* Remove any output file.  This is only called via xatexit.  */static const char *output_filename = NULL;static FILE *output_file = NULL;static bfd *output_bfd = NULL;static voidremove_output (){  if (output_filename != NULL)    {      if (output_bfd != NULL && output_bfd->iostream != NULL)	fclose ((FILE *) (output_bfd->iostream));      if (output_file != NULL)	fclose (output_file);      unlink (output_filename);    }}/* The option parsing should be in its own function.   It will be when I have getopt working.  */intmain (argc, argv)     int argc;     char **argv;{  char *arg_ptr;  char c;  enum    {      none = 0, delete, replace, print_table,      print_files, extract, move, quick_append    } operation = none;  int arg_index;  char **files;  int file_count;  char *inarch_filename;  int show_version;#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)  setlocale (LC_MESSAGES, "");#endif  bindtextdomain (PACKAGE, LOCALEDIR);  textdomain (PACKAGE);  program_name = argv[0];  xmalloc_set_program_name (program_name);  if (is_ranlib < 0)    {      char *temp;      temp = strrchr (program_name, '/');#ifdef HAVE_DOS_BASED_FILE_SYSTEM	{	  /* We could have foo/bar\\baz, or foo\\bar, or d:bar.  */	  char *bslash = strrchr (program_name, '\\');	  if (temp == NULL || (bslash != NULL && bslash > temp))	    temp = bslash;	  if (temp == NULL && program_name[0] != '\0' && program_name[1] == ':')	    temp = program_name + 1;	}#endif      if (temp == NULL)	temp = program_name;      else	++temp;      if (strlen (temp) >= 6	  && FILENAME_CMP (temp + strlen (temp) - 6, "ranlib") == 0)	is_ranlib = 1;      else	is_ranlib = 0;    }  if (argc > 1 && argv[1][0] == '-')    {      if (strcmp (argv[1], "--help") == 0)	usage (1);      else if (strcmp (argv[1], "--version") == 0)	{	  if (is_ranlib)	    print_version ("ranlib");	  else	    print_version ("ar");	}    }  START_PROGRESS (program_name, 0);  bfd_init ();  set_default_bfd_target ();  show_version = 0;  xatexit (remove_output);  /* Ignored for (partial) AIX compatibility.  On AIX,     the -X option can be used to ignore certain kinds     of object files in the archive (the 64-bit objects     or the 32-bit objects).  GNU ar always looks at all     kinds of objects in an archive.  */  while (argc > 1 && strcmp (argv[1], "-X32_64") == 0)    {      argv++;      argc--;    }  if (is_ranlib)    {      boolean touch = false;      if (argc < 2 || strcmp (argv[1], "--help") == 0)	usage (0);      if (strcmp (argv[1], "-V") == 0	  || strcmp (argv[1], "-v") == 0	  || strncmp (argv[1], "--v", 3) == 0)	print_version ("ranlib");      arg_index = 1;      if (strcmp (argv[1], "-t") == 0)	{	  ++arg_index;	  touch = true;	}      while (arg_index < argc)	{	  if (! touch)	    ranlib_only (argv[arg_index]);	  else	    ranlib_touch (argv[arg_index]);	  ++arg_index;	}      xexit (0);    }  if (argc == 2 && strcmp (argv[1], "-M") == 0)    {      mri_emul ();      xexit (0);    }  if (argc < 2)    usage (0);  arg_ptr = argv[1];  if (*arg_ptr == '-')

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区免费不卡 | 日韩美女视频一区二区| 国产精品免费免费| 一区二区三区在线看| 美女任你摸久久| av亚洲精华国产精华精华| 精品视频一区三区九区| 欧美精品一区二区三区一线天视频 | 国产亚洲欧美中文| 亚洲免费在线播放| 美女视频黄久久| 91在线丨porny丨国产| 欧美久久久影院| 中文字幕不卡一区| 午夜精品久久久久久久久| 国产激情一区二区三区| 欧美伊人久久久久久午夜久久久久| 欧美成人官网二区| 一级日本不卡的影视| 国产一区二三区| 欧美在线短视频| 国产欧美一区二区三区沐欲| 亚洲一二三区不卡| 福利一区在线观看| 日韩欧美精品在线视频| 亚洲欧美aⅴ...| 国产乱码精品1区2区3区| 欧洲色大大久久| 国产精品午夜久久| 久久国产三级精品| 欧美色区777第一页| 国产视频一区在线播放| 天天综合天天做天天综合| 91丨porny丨户外露出| 久久久久久久久久久久久久久99 | 精品视频1区2区3区| 国产视频不卡一区| 蜜臀av性久久久久av蜜臀妖精| 91一区一区三区| 久久久久久电影| 精品在线观看视频| 欧美图区在线视频| 亚洲欧美aⅴ...| 国产99一区视频免费| 精品国产伦一区二区三区免费| 亚洲成人av一区二区| 91亚洲精华国产精华精华液| 精品99久久久久久| 免费在线看成人av| 制服丝袜日韩国产| 亚洲综合激情另类小说区| 99国产精品国产精品毛片| 欧美激情中文不卡| 国产乱淫av一区二区三区| 日韩精品影音先锋| 伦理电影国产精品| 欧美一级久久久| 日韩精品五月天| 欧美精品一卡二卡| 亚洲国产裸拍裸体视频在线观看乱了 | 91麻豆精品国产91久久久久久| 亚洲靠逼com| 色综合天天性综合| 亚洲欧美日韩一区二区三区在线观看| 国产不卡高清在线观看视频| 久久综合久久鬼色| 国产精品自拍三区| 久久久99免费| 国产成人在线观看免费网站| 久久九九久精品国产免费直播| 国产剧情av麻豆香蕉精品| 2014亚洲片线观看视频免费| 精品一区二区在线播放| 精品国产乱码久久久久久老虎| 麻豆精品精品国产自在97香蕉| 日韩欧美卡一卡二| 九九九精品视频| 2023国产精品视频| 国产成人综合亚洲网站| 国产日韩欧美一区二区三区综合| 国产精品自拍一区| 国产精品欧美极品| 色婷婷久久99综合精品jk白丝| 亚洲麻豆国产自偷在线| 欧美日韩亚洲国产综合| 免费欧美在线视频| 久久亚洲春色中文字幕久久久| 国产老女人精品毛片久久| 欧美国产亚洲另类动漫| 99精品视频一区| 午夜欧美电影在线观看| 日韩一级片在线播放| 国产一区二区看久久| 国产日韩欧美精品一区| 91免费版在线| 三级影片在线观看欧美日韩一区二区 | 国产精品水嫩水嫩| 欧洲精品一区二区| 日本亚洲一区二区| 久久只精品国产| 91网站最新地址| 婷婷国产在线综合| 亚洲精品一区在线观看| 成人性色生活片| 亚洲一区二区成人在线观看| 欧美成人三级电影在线| 粉嫩13p一区二区三区| 一区二区三区中文字幕| 日韩免费看网站| 99久久99久久免费精品蜜臀| 视频一区视频二区在线观看| 久久久精品欧美丰满| 色香色香欲天天天影视综合网| 免费一级片91| 国产精品丝袜久久久久久app| 欧美午夜在线观看| 国产真实乱子伦精品视频| 亚洲日本乱码在线观看| 欧美一区二区免费| 99在线精品一区二区三区| 日韩国产欧美在线播放| 国产精品乱人伦中文| 欧美肥妇free| 成人av在线播放网站| 婷婷综合久久一区二区三区| 欧美国产日本视频| 欧美夫妻性生活| 成人app在线观看| 蜜臀精品一区二区三区在线观看 | 色狠狠色狠狠综合| 国产一区在线不卡| 亚洲成人免费在线| 国产精品久久久久久久久动漫 | 精品在线播放午夜| 一区二区国产视频| 国产欧美精品在线观看| 欧美视频一区二| 国产91综合一区在线观看| 秋霞午夜av一区二区三区| 成人免费一区二区三区视频| 日韩精品最新网址| 欧美视频一二三区| 成人做爰69片免费看网站| 日韩精品成人一区二区三区| 亚洲欧洲无码一区二区三区| 26uuu成人网一区二区三区| 欧美肥妇bbw| 欧美在线观看一区二区| av在线一区二区| 国产成人综合亚洲网站| 久久99九九99精品| 亚洲18色成人| 亚洲精品中文字幕乱码三区| 国产欧美日韩在线观看| 日韩精品一区二区三区蜜臀| 欧美视频一区二区三区在线观看 | 亚洲国产一区视频| 成人欧美一区二区三区视频网页 | 色综合久久久久综合| 粉嫩久久99精品久久久久久夜| 毛片一区二区三区| 天堂在线亚洲视频| 亚洲综合免费观看高清完整版在线 | 日韩av电影免费观看高清完整版在线观看| 亚洲欧美一区二区视频| 国产亚洲一区二区在线观看| 日韩欧美不卡在线观看视频| 欧美系列在线观看| 色综合久久久网| 91在线视频18| 91在线观看地址| 色综合欧美在线视频区| 成人激情开心网| 成人av影视在线观看| 成年人国产精品| 成人性生交大片免费| 从欧美一区二区三区| 成人听书哪个软件好| 国产**成人网毛片九色 | 亚洲欧洲日产国产综合网| 欧美激情艳妇裸体舞| 久久久99久久精品欧美| 久久久久国产精品麻豆| 国产人成亚洲第一网站在线播放| 久久久久久电影| 亚洲国产精品t66y| 国产精品美女久久久久久久久久久| 国产欧美一区二区三区网站| 中文一区一区三区高中清不卡| 亚洲国产经典视频| 国产精品免费丝袜| 亚洲天堂久久久久久久| 亚洲黄色片在线观看| 亚洲图片欧美色图| 欧美aaaaa成人免费观看视频| 久久er99精品| 国产高清不卡二三区| 成人av中文字幕| 欧美午夜一区二区三区免费大片| 欧美日韩视频专区在线播放|