LookupPrivilegeValue in QNX

Hi All,
I need to migrate some requirements from windows to QNX. As per one requirement process have privileges to shutdown,backup,restore entire system and windows code has used LookupPrivilegeValue API for granting privileges. My doubt are,

  1. Is there any way in QNX to shutdown entire system using application.
  2. Is there any equilivalent for windows specific API LookupPrivilegeValue in QNX.
  1. system(“shutdown”);

  2. Check whether the process is root?

Thanks maschoen it worked and system rebooted after using this API.

Just to be clear, system(“shutdown”) just runs a shell as in:

sh shutdown

and shutdown is program that shuts the system down.