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

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

?? rm.c

?? 《Linux應(yīng)用開發(fā)技術(shù)詳解》附書光盤中的例程。
?? C
字號(hào):
/* `rm' file deletion utility for GNU.
   Copyright (C) 88, 90, 91, 1994-2002 Free Software Foundation, Inc.

   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.  */

/* Written by Paul Rubin, David MacKenzie, and Richard Stallman.
   Reworked to use chdir and avoid recursion by Jim Meyering.  */

/* Implementation overview:

   In the `usual' case, RM saves no state for directories it is processing.
   When a removal fails (either due to an error or to an interactive `no'
   reply), the failure is noted (see description of `ht' in remove.c's
   remove_cwd_entries function) so that when/if the containing directory
   is reopened, RM doesn't try to remove the entry again.

   RM may delete arbitrarily deep hierarchies -- even ones in which file
   names (from root to leaf) are longer than the system-imposed maximum.
   It does this by using chdir to change to each directory in turn before
   removing the entries in that directory.

   RM detects directory cycles by maintaining a table of the currently
   active directories.  See the description of active_dir_map in remove.c.

   RM is careful to avoid forming full file names whenever possible.
   A full file name is formed only when it is about to be used -- e.g.
   in a diagnostic or in an interactive-mode prompt.

   RM minimizes the number of lstat system calls it makes.  On systems
   that have valid d_type data in directory entries, RM makes only one
   lstat call per command line argument -- regardless of the depth of
   the hierarchy.  */

#include <config.h>
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
#include <assert.h>

#include "system.h"
#include "error.h"
#include "remove.h"
#include "save-cwd.h"

/* The official name of this program (e.g., no `g' prefix).  */
#define PROGRAM_NAME "rm"

#define AUTHORS \
  N_ ("Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering")

/* Name this program was run with.  */
char *program_name;

/* For long options that have no equivalent short option, use a
   non-character as a pseudo short option, starting with CHAR_MAX + 1.  */
enum
{
  PRESUME_INPUT_TTY_OPTION = CHAR_MAX + 1
};

static struct option const long_opts[] =
{
  {"directory", no_argument, NULL, 'd'},
  {"force", no_argument, NULL, 'f'},
  {"interactive", no_argument, NULL, 'i'},

  /* This is solely for testing.  Do not document.  */
  /* It is relatively difficult to ensure that there is a tty on stdin.
     Since rm acts differently depending on that, without this option,
     it'd be harder to test the parts of rm that depend on that setting.  */
  {"presume-input-tty", no_argument, NULL, PRESUME_INPUT_TTY_OPTION},

  {"recursive", no_argument, NULL, 'r'},
  {"verbose", no_argument, NULL, 'v'},
  {GETOPT_HELP_OPTION_DECL},
  {GETOPT_VERSION_OPTION_DECL},
  {NULL, 0, NULL, 0}
};

void
usage (int status)
{
  if (status != 0)
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
	     program_name);
  else
    {
      printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
      fputs (_("\
Remove (unlink) the FILE(s).\n\
\n\
  -d, --directory       unlink FILE, even if it is a non-empty directory\n\
                          (super-user only)\n\
  -f, --force           ignore nonexistent files, never prompt\n\
  -i, --interactive     prompt before any removal\n\
  -r, -R, --recursive   remove the contents of directories recursively\n\
  -v, --verbose         explain what is being done\n\
"), stdout);
      fputs (HELP_OPTION_DESCRIPTION, stdout);
      fputs (VERSION_OPTION_DESCRIPTION, stdout);
      printf (_("\
\n\
To remove a file whose name starts with a `-', for example `-foo',\n\
use one of these commands:\n\
  %s -- -foo\n\
\n\
  %s ./-foo\n\
"),
	      program_name, program_name);
      fputs (_("\
\n\
Note that if you use rm to remove a file, it is usually possible to recover\n\
the contents of that file.  If you want more assurance that the contents are\n\
truly unrecoverable, consider using shred.\n\
"), stdout);
      printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
    }
  exit (status);
}

static void
rm_option_init (struct rm_options *x)
{
  x->unlink_dirs = 0;
  x->ignore_missing_files = 0;
  x->interactive = 0;
  x->recursive = 0;
  x->stdin_tty = isatty (STDIN_FILENO);
  x->verbose = 0;
}

int
main (int argc, char **argv)
{
  struct rm_options x;
  int fail = 0;
  int c;

  program_name = argv[0];
  setlocale (LC_ALL, "");
  bindtextdomain (PACKAGE, LOCALEDIR);
  textdomain (PACKAGE);

  atexit (close_stdout);

  rm_option_init (&x);

  while ((c = getopt_long (argc, argv, "dfirvR", long_opts, NULL)) != -1)
    {
      switch (c)
	{
	case 0:		/* Long option.  */
	  break;
	case 'd':
	  x.unlink_dirs = 1;
	  break;
	case 'f':
	  x.interactive = 0;
	  x.ignore_missing_files = 1;
	  break;
	case 'i':
	  x.interactive = 1;
	  x.ignore_missing_files = 0;
	  break;
	case 'r':
	case 'R':
	  x.recursive = 1;
	  break;
	case PRESUME_INPUT_TTY_OPTION:
	  x.stdin_tty = 1;
	  break;
	case 'v':
	  x.verbose = 1;
	  break;
	case_GETOPT_HELP_CHAR;
	case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
	default:
	  usage (EXIT_FAILURE);
	}
    }

  if (optind == argc)
    {
      if (x.ignore_missing_files)
	exit (EXIT_SUCCESS);
      else
	{
	  error (0, 0, _("too few arguments"));
	  usage (EXIT_FAILURE);
	}
    }

  {
    size_t n_files = argc - optind;
    char const *const *file = (char const *const *) argv + optind;

    enum RM_status status = rm (n_files, file, &x);
    assert (VALID_STATUS (status));
    if (status == RM_ERROR)
      fail = 1;
  }

  exit (fail);
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色图免费看| 91福利视频网站| 亚洲综合视频在线| 久久综合九色综合久久久精品综合| 成人午夜伦理影院| 石原莉奈在线亚洲三区| 中文字幕一区二区三区在线观看| 欧美日韩高清不卡| 北条麻妃国产九九精品视频| 久久99久久久欧美国产| 亚洲国产综合91精品麻豆| 国产欧美一区二区精品性色| 欧美精品v日韩精品v韩国精品v| aaa欧美色吧激情视频| 精品一区二区在线免费观看| 午夜伦理一区二区| 日韩毛片精品高清免费| 国产欧美一区二区精品仙草咪| 91精品国产色综合久久久蜜香臀| 日本道精品一区二区三区| 国产69精品久久久久毛片| 青青草成人在线观看| 亚欧色一区w666天堂| 亚洲免费观看高清完整版在线观看| 国产亚洲成aⅴ人片在线观看 | 99久久伊人精品| 狠狠色综合日日| 免费高清在线一区| 日本午夜一区二区| 视频一区二区三区在线| 午夜久久久久久久久久一区二区| 亚洲激情欧美激情| 一区二区视频在线| 中文字幕一区二区三区色视频| 中文字幕 久热精品 视频在线| 精品91自产拍在线观看一区| 日韩欧美国产小视频| 日韩午夜激情免费电影| 欧美一区欧美二区| 日韩欧美一级二级| 日韩欧美在线观看一区二区三区| 91精品国产一区二区| 日韩视频一区二区三区在线播放| 日韩一区和二区| 精品理论电影在线观看| 亚洲精品在线一区二区| 久久久青草青青国产亚洲免观| 久久在线免费观看| 国产精品污网站| 亚洲图片欧美激情| 一卡二卡三卡日韩欧美| 五月天激情综合| 久久精品久久久精品美女| 麻豆免费精品视频| 国产91在线|亚洲| 99久久精品情趣| 欧美亚洲日本国产| 欧美丰满美乳xxx高潮www| 日韩三级在线免费观看| 久久久久久电影| 国产精品盗摄一区二区三区| 悠悠色在线精品| 男男成人高潮片免费网站| 国产精品综合网| 色婷婷av一区二区三区之一色屋| 欧美性三三影院| 精品少妇一区二区三区| 国产精品色哟哟网站| 亚洲国产乱码最新视频 | 日韩成人av影视| 麻豆成人av在线| 成人的网站免费观看| 91久久人澡人人添人人爽欧美| 欧美日韩国产高清一区| 精品91自产拍在线观看一区| 亚洲色图制服诱惑 | 久久噜噜亚洲综合| 亚洲免费资源在线播放| 午夜精品久久久久久久| 国产成人精品免费在线| 欧美日韩一区二区在线观看视频 | 波多野结衣欧美| 4438亚洲最大| 中文字幕不卡三区| 日韩精品久久理论片| 国产91精品露脸国语对白| 欧美日韩视频第一区| 久久一区二区视频| 亚洲国产aⅴ天堂久久| 国产成人av在线影院| 欧美系列在线观看| 国产精品日韩成人| 青青草国产成人av片免费| 91一区二区在线| 久久综合九色综合97_久久久| 亚洲日本在线视频观看| 久久精品国产**网站演员| 99re在线视频这里只有精品| 精品国产乱码久久久久久老虎| 亚洲另类色综合网站| 国产精品自拍三区| 欧美一区二区三区视频在线观看| 亚洲私人黄色宅男| 韩日av一区二区| 91精品免费在线| 亚洲另类在线制服丝袜| 粉嫩aⅴ一区二区三区四区| 91精品国产乱| 亚洲综合一区二区三区| 成人app网站| 久久精品男人天堂av| 蜜臀av性久久久久蜜臀aⅴ流畅 | 美腿丝袜亚洲综合| 欧美少妇一区二区| 最新高清无码专区| 国产成人精品亚洲日本在线桃色| 日韩一级片在线播放| 亚洲电影中文字幕在线观看| 91在线小视频| 亚洲人成在线观看一区二区| 国产成人在线视频播放| 久久综合视频网| 韩日欧美一区二区三区| 日韩欧美国产综合在线一区二区三区| 一区二区三区四区在线免费观看| 成人午夜激情视频| 国产日韩v精品一区二区| 国产剧情一区二区三区| 久久综合丝袜日本网| 国产尤物一区二区在线| 精品久久久久久久久久久久久久久 | 日本不卡一二三| 337p亚洲精品色噜噜| 日韩有码一区二区三区| 337p亚洲精品色噜噜噜| 日本视频在线一区| 日韩欧美二区三区| 韩国av一区二区三区在线观看| 精品免费99久久| 国产精品夜夜嗨| 亚洲国产成人在线| av一区二区三区| 亚洲人成在线播放网站岛国| 色综合天天综合狠狠| 亚洲三级在线看| 日本韩国视频一区二区| 亚洲福利一二三区| 91精品一区二区三区在线观看| 免费成人在线观看视频| 欧美精品一区二区三| 国产成人亚洲精品狼色在线| 国产精品沙发午睡系列990531| 99久久国产综合精品色伊| 一区二区三区蜜桃| 欧美日韩1234| 久久精品免费观看| 欧美韩国日本不卡| 91影院在线免费观看| 一区二区三区**美女毛片| 欧美国产激情一区二区三区蜜月| 国产高清视频一区| 亚洲欧美成aⅴ人在线观看| 欧美日韩国产高清一区| 激情综合一区二区三区| 中文字幕一区二区在线观看| 在线看日本不卡| 美女国产一区二区| 中文字幕制服丝袜一区二区三区| 日本精品免费观看高清观看| 日本不卡1234视频| 国产精品乱码久久久久久| 精品婷婷伊人一区三区三| 精品在线观看免费| 中文字幕一区不卡| 日韩一区二区三区四区| 成人av在线一区二区| 午夜精品视频一区| 久久久www成人免费毛片麻豆 | 亚洲地区一二三色| 欧美不卡一区二区| 一本色道久久综合亚洲精品按摩| 奇米一区二区三区av| 中文字幕一区不卡| 精品日韩一区二区| 日本丰满少妇一区二区三区| 国内成+人亚洲+欧美+综合在线| 综合久久久久久久| 欧美精品一区二区三区视频| 在线影视一区二区三区| 国产麻豆91精品| 日韩在线一区二区| 日韩一区欧美小说| 久久一留热品黄| 欧美一区日本一区韩国一区| 91视频一区二区| 国产成人在线色| 麻豆一区二区在线| 亚洲va国产va欧美va观看| 国产精品色噜噜| 久久久久久综合|