The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

reboot (3)
  • reboot (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
  • reboot (2) ( FreeBSD man: Системные вызовы )
  • reboot (2) ( Русские man: Системные вызовы )
  • reboot (2) ( Linux man: Системные вызовы )
  • >> reboot (3) ( Solaris man: Библиотечные вызовы )
  • reboot (8) ( FreeBSD man: Команды системного администрирования )
  • reboot (8) ( Linux man: Команды системного администрирования )
  •  

    NAME

    reboot - reboot system or halt processor
     
    

    SYNOPSIS

    #include <sys/reboot.h>
    
    int reboot(int howto, char *bootargs);
    

     

    DESCRIPTION

    The reboot() function reboots the system. The howto argument specifies the behavior of the system while rebooting and is a mask constructed by a bitwise-inclusive-OR of flags from the following list:

    RB_AUTOBOOT

    The machine is rebooted from the root filesystem on the default boot device. This is the default behavior. See boot(1M) and kernel(1M).

    RB_HALT

    The processor is simply halted; no reboot takes place. This option should be used with caution.

    RB_ASKNAME

    Interpreted by the bootstrap program and kernel, causing the user to be asked for pathnames during the bootstrap.

    RB_DUMP

    The system is forced to panic immediately without any further processing and a crash dump is written to the dump device (see dumpadm(1M)) before rebooting.

    Any other howto argument causes the kernel file to boot.

    The interpretation of the bootargs argument is platform-dependent.  

    RETURN VALUES

    Upon successful completion, reboot() never returns. Otherwise, -1 is returned and errno is set to indicate the error.  

    ERRORS

    The reboot() function will fail if:

    EPERM

    The {PRIV_SYS_CONFIG} privilege is not asserted in the effective set of the calling process.

     

    SEE ALSO

    Intro(1M), boot(1M), dumpadm(1M), halt(1M), init(1M), kernel(1M), reboot(1M), uadmin(2)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру