�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: ���������-������ Up: ���������� ��������� ��������� Previous: ���������� ��������� ���������   Contents   Index

������������� msgctl

� ���������� ������ msgctl ��������� ������� ���������� ������ ������ ���:

        #include <sys/types.h>
        #include <sys/ipc.h>
        #include <sys/msg.h>

        int msgctl (msqid, cmd, buf)
        int msqid, cmd;
        struct msqid_ds *buf;
��� �������� ���������� ��������� ����� ����; � ������ ������� ������������ -1.

� �������� ��������� msqid ������ ��������� ������������� ������� ���������, �������������� ���������� ��� ������ ���������� ������ msgget.

����������� �������� ������������ ��������� ��������� cmd. ���������� �������� ���:

IPC_STAT

��������� ���������� � ��������� �������, ������������ � ��������� ������, ��������������� � ��������������� msqid, � ���������������� ���������, �� ������� ��������� �������� buf.

IPC_SET

� ��������� ������, ��������������� � ��������������� msqid, �������������� �������� ����������� ��������������� ������������ � ������, ���� �� ��������, ����������� ����������� ����� ���� � �������.

IPC_RMID

������� �� ������� ������������� msqid, ������������� ������ ��������� � ��������������� � ��� ��������� ������.

����� ��������� ����������� �������� IPC_SET ��� IPC_RMID, ������� ������ ����� ����������� ������������� ������������, ������ ���� ��������������� ��������� ��� ��������� �������, ���� �������������� �����������������. ����� ��������� �������� IPC_STAT, ��������� ����� �� ������.



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������