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

📄 clean_yp.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef SunB1#ident			"@(#)clean_yp.c 1.1 92/07/30 SMI; SunOS MLS";#else#ident			"@(#)clean_yp.c 1.1 92/07/30 SMI";#endif /* SunB1 */#endif lint/* * Copyright (c) 1990 by Sun Microsystems,Inc *//***************************************************************************** Function : (void) clean_yp()**** Return Value : none**** Description : This function *******************************************************************************/#include "install.h"voidclean_yp(root_path, yp_type)	char	*root_path;	int	yp_type;{	char	cmd[MAXPATHLEN + 15];	/*	 *	If this client is not running NIS, then delete the NIS stuff or	 *	if it's a client or slave, remove the Makefile and updaters	 */	switch(yp_type) {	case YP_NONE :		(void) sprintf(cmd, "rm -rf %s%s/var/yp", dir_prefix(),			       root_path);		x_system(cmd);		break;	case YP_CLIENT :	case YP_SLAVE :		(void) sprintf(cmd, "%s%s/var/yp/Makefile", dir_prefix(),			       root_path);		(void) unlink(cmd);		(void) sprintf(cmd, "%s%s/var/yp/updaters", dir_prefix(),			       root_path);		(void) unlink(cmd);		break;	}}

⌨️ 快捷键说明

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