The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    sem_getvalue
    
     - get the value of a semaphore
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <semaphore.h>
    int sem_getvalue (sem_t * restrict sem int * restrict sval);
     

    DESCRIPTION

    The sem_getvalue ();
    function sets the variable pointed to by Fa sval to the current value of the semaphore pointed to by Fa sem , as of the time that the call to sem_getvalue ();
    is actually run.  

    RETURN VALUES

    Rv -std sem_getvalue  

    ERRORS

    The sem_getvalue ();
    function will fail if:

    Bq Er EINVAL
    The Fa sem argument points to an invalid semaphore.

     

    SEE ALSO

    sem_post3, sem_trywait3, sem_wait3, sem(4)  

    STANDARDS

    The sem_getvalue ();
    function conforms to St -p1003.1-96 .

    The value of the semaphore is never negative, even if there are threads blocked on the semaphore. POSIX is somewhat ambiguous in its wording with regard to what the value of the semaphore should be if there are blocked waiting threads, but this behavior is conformant, given the wording of the specification.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    STANDARDS


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




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

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