os_root.c
来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· C语言 代码 · 共 37 行
C
37 行
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1999-2002 * Sleepycat Software. All rights reserved. */#include "db_config.h"#ifndef lintstatic const char revid[] = "$Id: os_root.c,v 11.6 2002/01/11 15:53:01 bostic Exp $";#endif /* not lint */#ifndef NO_SYSTEM_INCLUDES#include <sys/types.h>#include <unistd.h>#endif#include "db_int.h"/* * __os_isroot -- * Return if user has special permissions. * * PUBLIC: int __os_isroot __P((void)); */int__os_isroot(){#ifdef HAVE_GETUID return (getuid() == 0);#else return (0);#endif}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?