����14-2 linux/include/const.h
1 #ifndef _CONST_H
2 #define _CONST_H
3
4 #define BUFFER_END 0x200000 // ���建��ʹ���ڴ��ĩ�ˣ�������û��ʹ�øó�������
5
// i�ڵ����ݽṹ��i_mode�ֶεĸ���־λ��
6 #define I_TYPE 0170000 // ָ��i�ڵ����ͣ����������룩��
7 #define I_DIRECTORY 0040000 // ��Ŀ¼�ļ���
8 #define I_REGULAR 0100000 // �dz����ļ�������Ŀ¼�ļ��������ļ���
9 #define I_BLOCK_SPECIAL 0060000 // �ǿ��豸�����ļ���
10 #define I_CHAR_SPECIAL 0020000 // ���ַ��豸�����ļ���
11 #define I_NAMED_PIPE 0010000 // �������ܵ��ڵ㡣
12 #define I_SET_UID_BIT 0004000 // ��ִ��ʱ������Ч�û�ID���͡�
13 #define I_SET_GID_BIT 0002000 // ��ִ��ʱ������Ч��ID���͡�
14
15 #endif
16