REBOOT(2,L) AIX Technical Reference REBOOT(2,L) ------------------------------------------------------------------------------- reboot PURPOSE Reinitializes or halts system operation. SYNTAX #include <sys/reboot.h> reboot(howto, dev) int howto; char *dev; DESCRIPTION The reboot system call requests that the system be reinitialized (rebooted) or terminated (halted). The value of howto is interpreted as flag bits. The following flags are supported by AIX. Caller must have superuser privileges. If the reboot call fails, it returns to caller; otherwise, the call does not return. RB_NOSYNC prevents the normal write of buffered data to file systems. If RB_NOSYNC is not on, all buffered file writes are completed and all file systems are unmounted and marked as clean. Cleanly unmounted file systems are not normally checked during system initialization. RB_HALT causes the system to be halted instead of rebooted. If RB_HALT is specified, the AIX system is terminated and not restarted. If RB_HALT is omitted, the AIX system is terminated and immediately reinitialized. The dev parameter is currently ignored. ERROR CONDITIONS EPERM The calling process does not have INSTALL_SYS system privilege. RELATED INFORMATION The reboot command in AIX Operating System Commands Reference. Processed November 7, 1990 REBOOT(2,L) 1