Handbook
Glossary
already-root? ( -- ? )
Elevated permissions API
Next:
elevate ( win-console? posix-graphical? -- )
Vocabulary
elevate
Inputs
None
Outputs
?
a
boolean
Word description
Determine whether the current Factor process (on
unix
) or hardware thread {on
windows
) has administrator or elevated (root) privileges.
Definition
USING:
system
;
IN:
elevate
HOOK:
already-root?
os
( -- ? )
Methods
USING:
elevate
kernel
math
system
unix.ffi
;
M:
unix
already-root?
getuid
geteuid
[
zero?
]
bi@
or
;