mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 12:53:33 +00:00
f0a75d274a
ZFS file system was ported from OpenSolaris operating system. The code in under CDDL license. I'd like to thank all SUN developers that created this great piece of software. Supported by: Wheel LTD (http://www.wheel.pl/) Supported by: The FreeBSD Foundation (http://www.freebsdfoundation.org/) Supported by: Sentex (http://www.sentex.net/)
19 lines
291 B
C
19 lines
291 B
C
#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(priv)
|
|
{
|
|
|
|
assert(priv == PRIV_SYS_CONFIG);
|
|
return (geteuid() == 0);
|
|
}
|
|
|
|
#endif /* !_OPENSOLARIS_PRIV_H_ */
|