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

CHDIR(2)

��������
chdir - ����� �������� ��������

���������

        int chdir (path)
        char *path;

��������
�������� path �������� ���������� �� ���������� ��� ��������. ����� ���������� ���������� ������ chdir ��������� ������� ���������� ������� (�������). ������ � �������� �������� ���������� ����� ������ �� ���������� ������, ������ ������ ������� ������� �� /.

��������� ����� chdir ����������� �������� � ����� �������� �������� �� ����������, ���� ��������� ���� �� ���� �� ��������� �������:

[ENOTDIR]
��������� �������� �� �������� ���������.
[ENOENT]
��������� ������� �� ����������.
[EACCES]
��� ���������� �������� ����������� ����� �� �����.
[EFAULT]
�������� path ��������� �� ������� ����������� �������� ��������� ������������.
[EINTR]
�� ����� ���������� ���������� ������ ���������� ������.
[ENOLINK]
���������� ��� path ��������� �� ��������� ���������, ����� � ������� � ������ ������ ���.
[EMULTIHOP] ���������� path ������� ������������� ��������� � ��������� �����������.

��. �����
chroot(2).

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