Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

UNLINK(2)

��������
unlink - �������� �������� ��������

���������

        int unlink (path)
        char *path;

��������
��������� ����� unlink ������� ������� ��������, �������� ���������� ������, �� ������� ��������� �������� path.

��������� ����� unlink ����������� �������� � ������� �������� �� ���������, ���� ��������� ���� �� ���� �� ��������� �������:

[ENOTDIR]
��������� �������� �� �������� ���������.
[ENOENT]
�������� ���� �� ����������.
[EACCES]
��� ����� �� ����� ��� ���������� ��������.
[EACCES]
�������� �������� ������� ������ � �������, ����� �� ������ � ������� ���.
[EPERM]
�������� ���� �������� ���������, � ����������� ������������� ������������ �� ���� ������������� �����������������.
[EBUSY]
������� ��������, ������� ������ ���� ������, �������� ������ ����������� ��� �������������� �������� �������.
[ETXTBSY]
��������� ������� �������� �������� ��������� ������� �� ����������� ����, ������� �����������.
[EROFS]
��������� ������� �������� ����������� �������� �������, ��������� ������ �� ������.
[EFAULT]
�������� path ��������� �� ������� ����������� �������� ��������� ������������.
[EINTR]
�� ����� ���������� ���������� ������ ���������� ������.
[ENOLINK]
���������� ��� path ��������� �� ��������� ���������, ����� � ������� � ������ ������ ���.
[EMULTIHOP] ���������� path ������� ������������� ��������� � ��������� �����������.

����� ��� ������ �� ���� ������� � ��� ��������, ��� �������� ���� ���� �������� ��������, ���������� ������ ������������ ������������� � ���� ��������� ������������. ���� ���� ��� ����� ��������� ����� ���� ��������, ����� ��������� ��������� ������ �� ����, �� ���������� ����������� ����� ������������� �� ������� �������� ��� ����� ����������.

��. �����
close(2), link(2), open(2).
rm(1) � ����������� ������������.

�����������
��� �������� ���������� ��������� ����� 0; � ������ ������ ������������ -1, � ���������� errno ������������� ��� ������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT