The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    sem_init
    
     - initialize an unnamed semaphore
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <semaphore.h>
    int sem_init (sem_t *sem int pshared unsigned int value);
     

    DESCRIPTION

    The sem_init ();
    function initializes the unnamed semaphore pointed to by Fa sem to have the value Fa value . A non-zero value for Fa pshared specifies a shared semaphore that can be used by multiple processes, which this implementation is not capable of.

    Following a successful call to sem_init (,);
    Fa sem can be used as an argument in subsequent calls to sem_wait3, sem_trywait3, sem_post3, and sem_destroy3. The Fa sem argument is no longer valid after a successful call to sem_destroy3.  

    RETURN VALUES

    Rv -std sem_init  

    ERRORS

    The sem_init ();
    function will fail if:

    Bq Er EINVAL
    The Fa value argument exceeds SEM_VALUE_MAX
    Bq Er ENOSPC
    Memory allocation error.
    Bq Er EPERM
    Unable to initialize a shared semaphore.

     

    SEE ALSO

    sem_destroy3, sem_getvalue3, sem_post3, sem_trywait3, sem_wait3, sem(4)  

    STANDARDS

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

    This implementation does not support shared semaphores, and reports this fact by setting errno to Er EPERM . This is perhaps a stretch of the intention of POSIX but is compliant, with the caveat that sem_init ();
    always reports a permissions error when an attempt to create a shared semaphore is made.


     

    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
    Добавить, Поддержать, Вебмастеру