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

UNISTD(4)

��������
unistd - ����� ������������� ��������

���������

#include <unistd.h>

��������
���������� ���� <unistd.h> �������� ������������� ��������� � ���������, ������� ��� �� ���� ������� � �����-���� ������ ���������� ������.

������������� ��������� ��� ������� � ������:

#define R_OK    4 /* ����� ����������� ��� ������ */
#define W_OK    2 /* ����� ����������� ��� ������ */
#define X_OK    1 /* ����� ����������� ��� ���������� */
#define F_OK    0 /* ����� �������� ������������� ����� */
#define F_ULOCK 0 /* �������������� ������ ���������������
                     ������� */
#define F_LOCK  1 /* ������������� ������� ��� ������������
                     ������������� */
#define F_TLOCK 2 /* ��������� � ������������� ������� ���
                     ������������ ������������� */
#define F_TEST  3 /* ���������, ������������� �� �������
                     ������� ���������� */

������������� ��������� ��� ���������������� � �����:

#define SEEK_SET 0 /* ���������� ��������� ����� ������
                      �������� */
#define SEEK_CUR 1 /* ���������� ��������� ����� ������
                      �������� �������� ���� �������� */
#define SEEK_END 2 /* ���������� ��������� ����� ������
                      EOF ���� �������� */

���������� �����:

#define GF_PATH "/etc/group"  /* ���������� ��� �����
                                 ����� */
#define PF_PATH "/etc/passwd" /* ���������� ��� �����
                                 ������� */
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT