The OpenNET Project / Index page

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

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

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

_longjmp (3)
  • _longjmp (3) ( Solaris man: Библиотечные вызовы )
  • >> _longjmp (3) ( FreeBSD man: Библиотечные вызовы )
  • _longjmp (3) ( POSIX man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    sigsetjmp
    
     
    siglongjmp
    
     
    setjmp
    
     
    longjmp
    
     
    _setjmp
    
     
    _longjmp
    
     
    longjmperror
    
     - non-local jumps
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <setjmp.h>
    int sigsetjmp (sigjmp_buf env int savemask);
    void siglongjmp (sigjmp_buf env int val);
    int setjmp (jmp_buf env);
    void longjmp (jmp_buf env int val);
    int _setjmp (jmp_buf env);
    void _longjmp (jmp_buf env int val);
    void longjmperror (void);
     

    DESCRIPTION

    The sigsetjmp (,);
    setjmp (,);
    and _setjmp ();
    functions save their calling environment in Fa env . Each of these functions returns 0.

    The corresponding longjmp ();
    functions restore the environment saved by their most recent respective invocations of the setjmp ();
    function. They then return so that program execution continues as if the corresponding invocation of the setjmp ();
    call had just returned the value specified by Fa val , instead of 0.

    Pairs of calls may be intermixed, i.e., both sigsetjmp ();
    and siglongjmp ();
    and setjmp ();
    and longjmp ();
    combinations may be used in the same program, however, individual calls may not, e.g. the Fa env argument to setjmp ();
    may not be passed to siglongjmp (.);

    The longjmp ();
    routines may not be called after the routine which called the setjmp ();
    routines returns.

    All accessible objects have values as of the time longjmp ();
    routine was called, except that the values of objects of automatic storage invocation duration that do not have the Vt volatile type and have been changed between the setjmp ();
    invocation and longjmp ();
    call are indeterminate.

    The setjmp (Ns / Ns Fn longjmp);
    pairs save and restore the signal mask while _setjmp (Ns / Ns Fn _longjmp);
    pairs save and restore only the register set and the stack. (See sigprocmask (2 . ));

    The sigsetjmp (Ns / Ns Fn siglongjmp);
    function pairs save and restore the signal mask if the argument Fa savemask is non-zero, otherwise only the register set and the stack are saved.  

    ERRORS

    If the contents of the Fa env are corrupted, or correspond to an environment that has already returned, the longjmp ();
    routine calls the routine longjmperror (3 .);
    If longjmperror ();
    returns the program is aborted (see abort(3)). The default version of longjmperror ();
    prints the message ``longjmp botch '' to standard error and returns. User programs wishing to exit more gracefully should write their own versions of longjmperror (.);
     

    SEE ALSO

    sigaction(2), sigaltstack(2), signal(3)  

    STANDARDS

    The setjmp ();
    and longjmp ();
    functions conform to St -isoC . The sigsetjmp ();
    and siglongjmp ();
    functions conform to St -p1003.1-88 .


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    ERRORS
    SEE ALSO
    STANDARDS


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




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

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