Current Path : /usr/src/cddl/compat/opensolaris/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/cddl/compat/opensolaris/include/priv.h |
/* $FreeBSD: release/9.1.0/cddl/compat/opensolaris/include/priv.h 219089 2011-02-27 19:41:40Z pjd $ */ #ifndef _OPENSOLARIS_PRIV_H_ #define _OPENSOLARIS_PRIV_H_ #include <sys/types.h> #include <unistd.h> #include <assert.h> #define PRIV_SYS_CONFIG 0 static __inline int priv_ineffect(int priv) { assert(priv == PRIV_SYS_CONFIG); return (geteuid() == 0); } #endif /* !_OPENSOLARIS_PRIV_H_ */