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

📄 authorize.c

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 C
字号:
#include "common.h"#include "send.h"/* *  Run a command to authorize or refuse entry.  Return status 0 means *  authorize, -1 means refuse. */voidauthorize(dest *dp){	process *pp;	String *errstr;	dp->authorized = 1;	pp = proc_start(s_to_c(dp->repl1), (stream *)0, (stream *)0, outstream(), 1, 0);	if (pp == 0){		dp->status = d_noforward;		return;	}	errstr = s_new();	while(s_read_line(pp->std[2]->fp, errstr))		;	if ((dp->pstat = proc_wait(pp)) != 0) {		dp->repl2 = errstr;		dp->status = d_noforward;	} else		s_free(errstr);	proc_free(pp);}

⌨️ 快捷键说明

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