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

📄 prot.c

📁 一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX, FreeBSD, Digital Unix (OSF1), Solaris and HP-UX.
💻 C
字号:
/****************** Start of $RCSfile: prot.c,v $  ****************** $Source: /home/alb/afbackup/afbackup-3.3.8.1/RCS/prot.c,v $* $Id: prot.c,v 1.2 2004/07/08 20:34:45 alb Exp alb $* $Date: 2004/07/08 20:34:45 $* $Author: alb $********* description *********************************************************************************************************************/#include <conf.h>#include <version.h>  static char * fileversion = "$RCSfile: prot.c,v $ $Source: /home/alb/afbackup/afbackup-3.3.8.1/RCS/prot.c,v $ $Id: prot.c,v 1.2 2004/07/08 20:34:45 alb Exp alb $ " PACKAGE " " VERSION_STRING;#include <ctype.h>#include <stdio.h>#include <string.h>#include <prot.h>static AFBProtocol	prot[] = AFB_PROTOCOL;static AFBProtocol	*(prot_items[256]);AFBProtocol **init_prot_spec(){  Int32		i;  AFBProtocol	*nop = NULL;  memset(prot_items, 0, 256 * sizeof(prot_items[0]));  for(i = 0; i < sizeof(prot) / sizeof(prot[0]); i++){    prot_items[prot[i].cmd] = prot + i;    if(prot[i].cmd == NOOPERATION)	nop = prot + i;  }  for(i = 0; i < 256; i++)    if(isspace(i))	prot_items[i] = nop;  return(prot_items);}

⌨️ 快捷键说明

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