XXIII. ������� Direct IOPHP ������������ ������� direct io, ��� ������� � ��������� Posix
Standard (������ 6), ��� ���������� ������� I/O �� ������ ����� ������, ��� I/O-������� ������ ����� C (fopen, fread,..).
��� ������� ������ �������� ��� ����� ������������ ������.
����� ��� ������� ��������, �� ������ ���������������� ��� � ������
--enable-dio. ��� ���������� �� ���������� ������� �������� ������������.
���� ����������� �������� ���� ��� ��������:
���������� �����, ������������ �������� dio_open().
��� ���������� �� ���������� ������� ��������.
- ����������
- dio_close - ��������� ���������� �����, �������� � fd
- dio_fcntl - ��������� fcntl c-���������� � fd
- dio_open - ��������� ����� ���� filename �� ������������������ ������� ������� �������
� ������� �������� ��� ������/mode
- dio_read -
������ n ���� �� fd � ���������� ��; ���� n �� ��������������, ������ ���� 1k
- dio_seek - ���� pos � fd, � �������
- dio_stat - �������� stat-���������� � ����������� ����� fd
- dio_truncate - ������� ���������� ����� fd �� offset ������
- dio_write - ���������� ������ � fd � ��������� ��������� �� ����������� �����
|