sysmgr_reboot()

Reboot the system

Synopsis:

#include <sys/sysmgr.h>

int sysmgr_reboot( void );

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The sysmgr_reboot() function reboots the calling computer. You need to be root for this function to succeed.

Returns:

The sysmgr_reboot() function doesn't return if successful. If an error occurs, it returns:

EPERM
You need to be root to call this function.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

procnto in the Utilities Reference