The OpenNET Project / Index page

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

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

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

shmdt (2)
  • shmdt (2) ( Solaris man: Системные вызовы )
  • >> shmdt (2) ( FreeBSD man: Системные вызовы )
  • shmdt (2) ( Русские man: Системные вызовы )
  • shmdt (2) ( Linux man: Системные вызовы )
  • shmdt (3) ( POSIX man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    shmat
    
     
    shmdt
    
     - attach or detach shared memory
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <machine/param.h>
       #include <sys/types.h>
       #include <sys/ipc.h>
       #include <sys/shm.h>
    void * shmat (int shmid const void *addr int flag);
    int shmdt (const void *addr);
     

    DESCRIPTION

    The shmat ();
    system call attaches the shared memory segment identified by Fa shmid to the calling process's address space. The address where the segment is attached is determined as follows:

    The shmdt ();
    system call detaches the shared memory segment at the address specified by Fa addr from the calling process's address space.  

    RETURN VALUES

    Upon success, shmat ();
    returns the address where the segment is attached; otherwise, -1 is returned and errno is set to indicate the error.

    Rv -std shmdt  

    ERRORS

    The shmat ();
    system call will fail if:

    Bq Er EINVAL
    No shared memory segment was found corresponding to Fa shmid .
    Bq Er EINVAL
    The Fa addr argument was not an acceptable address.

    The shmdt ();
    system call will fail if:

    Bq Er EINVAL
    The Fa addr argument does not point to a shared memory segment.

     

    SEE ALSO

    shmctl(2), shmget(2)


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO


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




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

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