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

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

?? jobs.c

?? android-w.song.android.widget
?? C
?? 第 1 頁 / 共 5 頁
字號(hào):
  while (last->next != first)    last = last->next;  for (;;)    {      if (p != first)	fprintf (stream, format ? "     " : " |");      if (format != JLIST_STANDARD)	fprintf (stream, "%5ld", (long)p->pid);      fprintf (stream, " ");      if (format > -1 && job_index >= 0)	{	  show = format ? p : last;	  temp = printable_job_status (job_index, show, format);	  if (p != first)	    {	      if (format)		{		  if (show->running == first->running &&		      WSTATUS (show->status) == WSTATUS (first->status))		    temp = "";		}	      else		temp = (char *)NULL;	    }	  if (temp)	    {	      fprintf (stream, "%s", temp);	      es = STRLEN (temp);	      if (es == 0)		es = 2;	/* strlen ("| ") */	      name_padding = LONGEST_SIGNAL_DESC - es;	      fprintf (stream, "%*s", name_padding, "");	      if ((WIFSTOPPED (show->status) == 0) &&		  (WIFCONTINUED (show->status) == 0) &&		  WIFCORED (show->status))		fprintf (stream, _("(core dumped) "));	    }	}      if (p != first && format)	fprintf (stream, "| ");      if (p->command)	fprintf (stream, "%s", p->command);      if (p == last && job_index >= 0)	{	  temp = current_working_directory ();	  if (RUNNING (job_index) && (IS_FOREGROUND (job_index) == 0))	    fprintf (stream, " &");	  if (strcmp (temp, jobs[job_index]->wd) != 0)	    fprintf (stream,	      _("  (wd: %s)"), polite_directory_format (jobs[job_index]->wd));	}      if (format || (p == last))	{	  /* We need to add a CR only if this is an interactive shell, and	     we're reporting the status of a completed job asynchronously.	     We can't really check whether this particular job is being	     reported asynchronously, so just add the CR if the shell is	     currently interactive and asynchronous notification is enabled. */	  if (asynchronous_notification && interactive)	    fprintf (stream, "\r\n");	  else	    fprintf (stream, "\n");	}      if (p == last)	break;      p = p->next;    }  fflush (stream);}/* Print information to STREAM about jobs[JOB_INDEX] according to FORMAT.   Must be called with SIGCHLD blocked or queued with queue_sigchld */static voidpretty_print_job (job_index, format, stream)     int job_index, format;     FILE *stream;{  register PROCESS *p;  /* Format only pid information about the process group leader? */  if (format == JLIST_PID_ONLY)    {      fprintf (stream, "%ld\n", (long)jobs[job_index]->pipe->pid);      return;    }  if (format == JLIST_CHANGED_ONLY)    {      if (IS_NOTIFIED (job_index))	return;      format = JLIST_STANDARD;    }  if (format != JLIST_NONINTERACTIVE)    fprintf (stream, "[%d]%c ", job_index + 1,	      (job_index == js.j_current) ? '+':		(job_index == js.j_previous) ? '-' : ' ');  if (format == JLIST_NONINTERACTIVE)    format = JLIST_LONG;  p = jobs[job_index]->pipe;  print_pipeline (p, job_index, format, stream);  /* We have printed information about this job.  When the job's     status changes, waitchld () sets the notification flag to 0. */  jobs[job_index]->flags |= J_NOTIFIED;}static intprint_job (job, format, state, job_index)     JOB *job;     int format, state, job_index;{  if (state == -1 || (JOB_STATE)state == job->state)    pretty_print_job (job_index, format, stdout);  return (0);}voidlist_one_job (job, format, ignore, job_index)     JOB *job;     int format, ignore, job_index;{  pretty_print_job (job_index, format, stdout);}voidlist_stopped_jobs (format)     int format;{  cleanup_dead_jobs ();  map_over_jobs (print_job, format, (int)JSTOPPED);}voidlist_running_jobs (format)     int format;{  cleanup_dead_jobs ();  map_over_jobs (print_job, format, (int)JRUNNING);}/* List jobs.  If FORMAT is non-zero, then the long form of the information   is printed, else just a short version. */voidlist_all_jobs (format)     int format;{  cleanup_dead_jobs ();  map_over_jobs (print_job, format, -1);}/* Fork, handling errors.  Returns the pid of the newly made child, or 0.   COMMAND is just for remembering the name of the command; we don't do   anything else with it.  ASYNC_P says what to do with the tty.  If   non-zero, then don't give it away. */pid_tmake_child (command, async_p)     char *command;     int async_p;{  int forksleep;  sigset_t set, oset;  pid_t pid;  sigemptyset (&set);  sigaddset (&set, SIGCHLD);  sigaddset (&set, SIGINT);  sigemptyset (&oset);  sigprocmask (SIG_BLOCK, &set, &oset);  making_children ();  forksleep = 1;#if defined (BUFFERED_INPUT)  /* If default_buffered_input is active, we are reading a script.  If     the command is asynchronous, we have already duplicated /dev/null     as fd 0, but have not changed the buffered stream corresponding to     the old fd 0.  We don't want to sync the stream in this case. */  if (default_buffered_input != -1 &&      (!async_p || default_buffered_input > 0))    sync_buffered_stream (default_buffered_input);#endif /* BUFFERED_INPUT */  /* Create the child, handle severe errors.  Retry on EAGAIN. */  while ((pid = fork ()) < 0 && errno == EAGAIN && forksleep < FORKSLEEP_MAX)    {      /* bash-4.2 */      /* If we can't create any children, try to reap some dead ones. */      waitchld (-1, 0);      sys_error ("fork: retry");      if (sleep (forksleep) != 0)	break;      forksleep <<= 1;    }  if (pid < 0)    {      sys_error ("fork");      /* Kill all of the processes in the current pipeline. */      terminate_current_pipeline ();      /* Discard the current pipeline, if any. */      if (the_pipeline)	kill_current_pipeline ();      last_command_exit_value = EX_NOEXEC;      throw_to_top_level ();	/* Reset signals, etc. */    }  if (pid == 0)    {      /* In the child.  Give this child the right process group, set the	 signals to the default state for a new process. */      pid_t mypid;      mypid = getpid ();#if defined (BUFFERED_INPUT)      /* Close default_buffered_input if it's > 0.  We don't close it if it's	 0 because that's the file descriptor used when redirecting input,	 and it's wrong to close the file in that case. */      unset_bash_input (0);#endif /* BUFFERED_INPUT */      /* Restore top-level signal mask. */      sigprocmask (SIG_SETMASK, &top_level_mask, (sigset_t *)NULL);      if (job_control)	{	  /* All processes in this pipeline belong in the same	     process group. */	  if (pipeline_pgrp == 0)	/* This is the first child. */	    pipeline_pgrp = mypid;	  /* Check for running command in backquotes. */	  if (pipeline_pgrp == shell_pgrp)	    ignore_tty_job_signals ();	  else	    default_tty_job_signals ();	  /* Set the process group before trying to mess with the terminal's	     process group.  This is mandated by POSIX. */	  /* This is in accordance with the Posix 1003.1 standard,	     section B.7.2.4, which says that trying to set the terminal	     process group with tcsetpgrp() to an unused pgrp value (like	     this would have for the first child) is an error.  Section	     B.4.3.3, p. 237 also covers this, in the context of job control	     shells. */	  if (setpgid (mypid, pipeline_pgrp) < 0)	    sys_error (_("child setpgid (%ld to %ld)"), (long)mypid, (long)pipeline_pgrp);	  /* By convention (and assumption above), if	     pipeline_pgrp == shell_pgrp, we are making a child for	     command substitution.	     In this case, we don't want to give the terminal to the	     shell's process group (we could be in the middle of a	     pipeline, for example). */	  if (async_p == 0 && pipeline_pgrp != shell_pgrp && ((subshell_environment&SUBSHELL_ASYNC) == 0))	    give_terminal_to (pipeline_pgrp, 0);#if defined (PGRP_PIPE)	  if (pipeline_pgrp == mypid)	    pipe_read (pgrp_pipe);#endif	}      else			/* Without job control... */	{	  if (pipeline_pgrp == 0)	    pipeline_pgrp = shell_pgrp;	  /* If these signals are set to SIG_DFL, we encounter the curious	     situation of an interactive ^Z to a running process *working*	     and stopping the process, but being unable to do anything with	     that process to change its state.  On the other hand, if they	     are set to SIG_IGN, jobs started from scripts do not stop when	     the shell running the script gets a SIGTSTP and stops. */	  default_tty_job_signals ();	}#if defined (PGRP_PIPE)      /* Release the process group pipe, since our call to setpgid ()	 is done.  The last call to sh_closepipe is done in stop_pipeline. */      sh_closepipe (pgrp_pipe);#endif /* PGRP_PIPE */#if 0      /* Don't set last_asynchronous_pid in the child */      if (async_p)	last_asynchronous_pid = mypid;		/* XXX */      else#endif#if defined (RECYCLES_PIDS)      if (last_asynchronous_pid == mypid)        /* Avoid pid aliasing.  1 seems like a safe, unusual pid value. */	last_asynchronous_pid = 1;#endif    }  else    {      /* In the parent.  Remember the pid of the child just created	 as the proper pgrp if this is the first child. */      if (first_pid == NO_PID)	first_pid = pid;      else if (pid_wrap == -1 && pid < first_pid)	pid_wrap = 0;      else if (pid_wrap == 0 && pid >= first_pid)	pid_wrap = 1;      if (job_control)	{	  if (pipeline_pgrp == 0)	    {	      pipeline_pgrp = pid;	      /* Don't twiddle terminal pgrps in the parent!  This is the bug,		 not the good thing of twiddling them in the child! */	      /* give_terminal_to (pipeline_pgrp, 0); */	    }	  /* This is done on the recommendation of the Rationale section of	     the POSIX 1003.1 standard, where it discusses job control and	     shells.  It is done to avoid possible race conditions. (Ref.	     1003.1 Rationale, section B.4.3.3, page 236). */	  setpgid (pid, pipeline_pgrp);	}      else	{	  if (pipeline_pgrp == 0)	    pipeline_pgrp = shell_pgrp;	}      /* Place all processes into the jobs array regardless of the	 state of job_control. */      add_process (command, pid);      if (async_p)	last_asynchronous_pid = pid;#if defined (RECYCLES_PIDS)      else if (last_asynchronous_pid == pid)        /* Avoid pid aliasing.  1 seems like a safe, unusual pid value. */	last_asynchronous_pid = 1;#endif      if (pid_wrap > 0)	delete_old_job (pid);#if !defined (RECYCLES_PIDS)      /* Only check for saved status if we've saved more than CHILD_MAX	 statuses, unless the system recycles pids. */      if ((js.c_reaped + bgpids.npid) >= js.c_childmax)#endif	bgp_delete (pid);		/* new process, discard any saved status */      last_made_pid = pid;      /* keep stats */      js.c_totforked++;      js.c_living++;      /* Unblock SIGINT and SIGCHLD unless creating a pipeline, in which case	 SIGCHLD remains blocked until all commands in the pipeline have been	 created. */      sigprocmask (SIG_SETMASK, &oset, (sigset_t *)NULL);    }  return (pid);}/* These two functions are called only in child processes. */voidignore_tty_job_signals (){  set_signal_handler (SIGTSTP, SIG_IGN);  set_signal_handler (SIGTTIN, SIG_IGN);  set_signal_handler (SIGTTOU, SIG_IGN);}voiddefault_tty_job_signals (){  set_signal_handler (SIGTSTP, SIG_DFL);  set_signal_handler (SIGTTIN, SIG_DFL);  set_signal_handler (SIGTTOU, SIG_DFL);}/* When we end a job abnormally, or if we stop a job, we set the tty to the   state kept in here.  When a job ends normally, we set the state in here   to the state of the tty. */static TTYSTRUCT shell_tty_info;#if defined (NEW_TTY_DRIVER)static struct tchars shell_tchars;static struct ltchars shell_ltchars;#endif /* NEW_TTY_DRIVER */#if defined (NEW_TTY_DRIVER) && defined (DRAIN_OUTPUT)/* Since the BSD tty driver does not allow us to change the tty modes   while simultaneously waiting for output to drain and preserving   typeahead, we have to drain the output ourselves before calling   ioctl.  We cheat by finding the length of the output queue, and   using select to wait for an appropriate length of time.  This is   a hack, and should be labeled as such (it's a hastily-adapted   mutation of a `usleep' implementation).  It's only reason for   existing is the flaw in the BSD tty driver. */static int ttspeeds[] ={  0, 50, 75, 110, 134, 150, 200, 300, 600, 1200,  1800, 2400, 4800, 9600, 19200, 38400};static voiddraino (fd, ospeed)     int fd, ospeed;{  register int delay = ttspeeds[ospeed];  int n;  if (!delay)    return;  while ((ioctl (fd, TIOCOUTQ, &n) == 0) && n)    {      if (n > (delay / 100))	{	  struct timeval tv;	  n *= 10;		/* 2 bits more for conservativeness. */	  tv.tv_sec = n / delay;	  tv.tv_usec = ((n % delay) * 1000000) / delay;	  select (fd, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv);	}      else	break;    }}#endif /* NEW_TTY_DRIVER && DRAIN_OUTPUT *//* Return the fd from which we are actually getting input. */#define input_tty() (shell_tty != -1) ? shell_tty : fileno (stderr)/* Fill the contents of shell_tty_info with the current tty info. */intget_tty_state (){  int tty;  tty = input_tty ();  if (tty != -1)    {#if defined (NEW_TTY_DRIVER)      ioctl (tty, TIOCGETP, &shell_tty_info);      ioctl (tty, TIOCGETC, &shell_tchars);      ioctl (tty, TIOCGLTC, &shell_ltchars);#endif /* NEW_TTY_DRIVER */#if defined (TERMIO_TTY_DRIVER)      ioctl (tty, TCGETA, &shell_tty_info);#endif /* TERMIO_TTY_DRIVER */#if defined (TERMIOS_TTY_DRIVER)      if (tcgetattr (tty, &shell_tty_info) < 0)	{#if 0	  /* Only print an error message if we're really interactive at	     this time. */	  if (interactive)	    sys_error ("[%ld: %d (%d)] tcgetattr", (long)getpid (), shell_level, tty);#endif	  return -1;	}#endif /* TERMIOS_TTY_DRIVER */      if (check_window_size)	get_new_window_size (0, (int *)0, (int *)0);    }  return 0;}/* Make the current tty use the state in shell_tty_info. */intset_tty_state (){  int tty;  tty = input_tty ();  if (tty != -1)    {#if defined (NEW_TTY_DRIVER)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av亚洲精华国产精华精| 一本色道综合亚洲| 亚洲精品久久嫩草网站秘色| 欧美大片在线观看| 色婷婷综合久久久久中文| 免费视频最近日韩| 亚洲欧美另类小说| 久久综合成人精品亚洲另类欧美 | 青青草原综合久久大伊人精品| 中文字幕国产一区二区| 91精品国产91久久久久久一区二区| 成人网在线免费视频| 午夜欧美大尺度福利影院在线看| 国产精品久久久久三级| 精品国产三级a在线观看| 欧美性色aⅴ视频一区日韩精品| 国产福利精品导航| 卡一卡二国产精品| 偷拍一区二区三区四区| 亚洲色图欧美激情| 国产精品色哟哟网站| 精品日韩成人av| 欧美群妇大交群的观看方式| 色婷婷精品久久二区二区蜜臀av | 欧美日韩国产高清一区| 99久久精品免费精品国产| 国产一区二区视频在线| 日本va欧美va瓶| 日韩激情一区二区| 亚洲综合另类小说| 一区二区三区在线视频免费观看| 国产精品成人免费| 国产精品乱码妇女bbbb| 2023国产精品| 久久亚洲一区二区三区明星换脸| 精品久久久久久久人人人人传媒| 日韩丝袜美女视频| 日韩欧美成人一区二区| 欧美一区二区三区视频在线观看| 欧洲一区二区av| 91国产免费看| 欧洲av一区二区嗯嗯嗯啊| 91亚洲国产成人精品一区二三| voyeur盗摄精品| 91在线视频网址| av欧美精品.com| 色伊人久久综合中文字幕| 99国产精品99久久久久久| 99视频热这里只有精品免费| 91免费视频观看| 欧美无人高清视频在线观看| 欧美日韩电影在线| 日韩一区二区精品在线观看| 精品国产一区二区精华| 久久五月婷婷丁香社区| 国产人久久人人人人爽| 国产精品久久久久精k8| 亚洲精品国久久99热| 亚洲高清中文字幕| 开心九九激情九九欧美日韩精美视频电影| 精品一区二区三区免费视频| 国内精品免费**视频| 成人污污视频在线观看| 91久久精品午夜一区二区| 69久久99精品久久久久婷婷 | 国产亚洲视频系列| 国产精品热久久久久夜色精品三区| 国产精品毛片无遮挡高清| 一区二区三区四区不卡在线| 日韩在线一区二区三区| 国产精品一区二区男女羞羞无遮挡 | 亚洲靠逼com| 视频一区在线视频| 国产盗摄一区二区| 在线视频观看一区| 日韩精品一区二区三区三区免费 | 欧美日韩电影在线| 久久精品欧美日韩| 亚洲尤物视频在线| 国产揄拍国内精品对白| 色88888久久久久久影院按摩| 制服丝袜亚洲精品中文字幕| 国产日韩成人精品| 午夜精品久久久久久久| 国产成人免费在线观看| 欧美三级电影网| 国产精品欧美久久久久一区二区| 亚洲成人免费av| 成人国产精品免费观看视频| 欧美日韩免费观看一区二区三区| 久久久精品天堂| 丝袜亚洲另类欧美| 欧美一区二区三区免费观看视频 | 国产一区不卡精品| 色噜噜夜夜夜综合网| 精品国产99国产精品| 一区二区三区不卡视频| 福利一区二区在线观看| 在线不卡免费欧美| 国产精品国产三级国产aⅴ入口 | 免费成人在线影院| 91国偷自产一区二区三区成为亚洲经典| 精品国产一区二区国模嫣然| 亚洲午夜一区二区| www.欧美日韩国产在线| 亚洲精品一线二线三线无人区| 亚洲精品国产一区二区精华液 | 天天色综合天天| 99久久久精品| 国产日韩欧美一区二区三区乱码| 亚洲电影一区二区三区| 成人黄色国产精品网站大全在线免费观看 | 在线观看av一区| 国产精品进线69影院| 国产在线播精品第三| 日韩一区二区三区观看| 亚洲国产aⅴ成人精品无吗| av高清久久久| 国产精品色哟哟| 国产一区二区三区四| 日韩三级视频中文字幕| 天天操天天色综合| 在线观看日韩一区| 一区二区三区不卡视频| 一本到一区二区三区| 国产精品成人免费精品自在线观看 | 欧洲激情一区二区| 成人av在线一区二区| 欧美精品一区二区三区在线 | 亚洲精品福利视频网站| 99久久精品情趣| 中文字幕一区二区三区四区| 国产成人免费在线观看不卡| 日本一区二区三区高清不卡| 国产一区二区三区在线观看免费| 精品国产露脸精彩对白| 国产一区不卡在线| 国产肉丝袜一区二区| 成人精品高清在线| 国产精品久久久久久妇女6080| gogo大胆日本视频一区| 综合欧美亚洲日本| 色噜噜狠狠成人中文综合| 亚洲国产精品久久艾草纯爱| 精品视频一区二区三区免费| 日韩av中文字幕一区二区| 日韩一区二区精品| 国产精品911| 国产精品视频麻豆| 91视频国产资源| 亚洲国产精品久久艾草纯爱| 在线不卡免费欧美| 国产一区二区在线看| 中文av一区二区| av资源网一区| 亚洲福中文字幕伊人影院| 欧美一级高清大全免费观看| 激情综合网av| 国产人妖乱国产精品人妖| 色综合中文综合网| 精品视频一区二区不卡| 日本 国产 欧美色综合| 日韩一级黄色片| 国产毛片精品视频| 亚洲三级在线观看| 欧美精品久久天天躁| 精品中文av资源站在线观看| 欧美激情一区在线| 在线免费观看日韩欧美| 蜜臀av亚洲一区中文字幕| 欧美国产在线观看| 欧美色图第一页| 久久se精品一区精品二区| 国产人久久人人人人爽| 欧美婷婷六月丁香综合色| 久久99这里只有精品| 精品日韩99亚洲| 亚洲精品国产一区二区三区四区在线| 日本高清视频一区二区| 日韩av一级电影| 国产精品国产精品国产专区不蜜| 欧美色网站导航| 国产成人免费在线| 天天综合网 天天综合色| 久久久精品免费网站| 欧美午夜精品一区二区蜜桃| 精品系列免费在线观看| 尤物在线观看一区| 欧美一区二区三区不卡| 不卡一区二区三区四区| 奇米影视7777精品一区二区| 亚洲欧洲精品天堂一级| 精品少妇一区二区三区日产乱码| 99久久精品国产网站| 久久99精品国产.久久久久| 亚洲一区二区三区四区在线观看 | 麻豆精品视频在线观看免费| 亚洲欧洲性图库| www精品美女久久久tv| 欧美图片一区二区三区|