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

📄 is_miniroot.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef SunB1static	char		mls_sccsid[] = "@(#)is_miniroot.c 1.1 92/07/30 SMI; SunOS MLS";#elsestatic	char		sccsid[] = "@(#)is_miniroot.c 1.1 92/07/30 SMI";#endif /* SunB1 */#endif lint/* *	Copyright (c) 1989 Sun Microsystems, Inc. *//* *	Name:		is_miniroot() * *	Description:	Are we booted on the MINIROOT?  Returns 1 if *		we are and 0 if we are not. */#include <sys/file.h>intis_miniroot(){	static	int		init_done = 0;	/* initialization done? */	static	int		value = 0;	/* value to return */	if (init_done)		return(value);	if (access("/.MINIROOT", F_OK) == 0)		value = 1;	init_done = 1;	return(value);} /* end is_miniroot() */

⌨️ 快捷键说明

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