v4.0.0-rc3 - add is_process_root
This commit is contained in:
@@ -34,4 +34,20 @@
|
||||
|
||||
void runtime_exists();
|
||||
|
||||
/*
|
||||
* is_process_root
|
||||
*
|
||||
* DESCRIPTION: is_process_root checks if the process is running with root privileges.
|
||||
* PARAMETERS:
|
||||
* None.
|
||||
* RETURN VALUES:
|
||||
* 0 on root, 1 on non-root
|
||||
* CAVEATS:
|
||||
* None.
|
||||
* EXAMPLE:
|
||||
* is_process_root();
|
||||
*/
|
||||
|
||||
int is_process_root();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user