⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgrp.h

📁 南京航空航天大学开发的一个类Unix和Linux的操作系统,好不好看看就知道了,
💻 H
字号:
#ifndef _KERNPGRP_H#define _KERNPGRP_H#include <lib/queue.h>#include "sched.h"#include "signal.h"struct session_t;struct pgrp_t {	CHAIN(,pgrp_t); /* next/prev member in the same session */	CHAIN(hash,pgrp_t);	pid_t pgid;	Q(member,task_t) taskq;	session_t * session;	pgrp_t(session_t * s, task_t * t);	~pgrp_t();	void post(int signo);	int kill(int signo);	/* 1) A process grounp is not "orphaned" if in this grounp there exist 	      at least one process whose parent is in a different process group 	      which belongs to the same session.	   2) Newly orphaned process grounps are to receive a SIGHUP and a 	      SIGCONT. */	int orphaned();	void neworphaned();};QUEUE(,pgrp_t);QUEUE(hash,pgrp_t);struct tty_t;struct session_t {	CHAIN(,session_t);	pid_t sid;	task_t * leader;	pgrp_t * fg; /* foreground pgrp */	tty_t * tty; /* control term */	Q(,pgrp_t) pgrpq;	session_t(task_t * task);	~session_t();	void post(int signo);	int kill(int signo);	int getfg(pid_t * pgid);	int setfg(pid_t pgid);};QUEUE(,session_t);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -