v4.0.0-rc3 - add is_process_root

This commit is contained in:
2024-10-08 13:36:28 -04:00
parent f00cdff880
commit 619e4bc346
2 changed files with 46 additions and 0 deletions

View File

@@ -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