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

📄 is_server.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef SunB1#ident			"@(#)is_server.c 1.1 92/07/30 SMI; SunOS MLS";#else#ident			"@(#)is_server.c 1.1 92/07/30 SMI";#endif /* SunB1 */#endif lint/* *	Copyright (c) 1989 Sun Microsystems, Inc. */#include <sys/file.h>#include "install.h"/****************************************************************************** Function : (int) is_server()** ** Return values :  1 : if the host is a server of the architecture** 		    0 : if the host is not a server of the architecture**** Description : this function checks if the host machine is a server of the**		 architecture that was passed to it by string.  We**		 check if any clients have been created using that**		 architecture.  If they have, we return a true (1), if not,**		 we return a false (0).********************************************************************************/intis_server(arch)	char		*arch;		/* full aprid string */{	char		pathname[MAXPATHLEN];	char		buf[MEDIUM_STR];	(void) sprintf(pathname, "/tftpboot/boot.%s",		       aprid_to_irid(arch, buf));	if (access(pathname, 0) == 0)		return(1);	else		return(0);		}

⌨️ 快捷键说明

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