www.pudn.com > LFYOS.zip > file.h


#ifndef OS_FILE_CAPABILITY 
#define OS_FILE_CAPABILITY 
 
struct user_file_information{ 
	int memory_body_id,system_file_id,map_length,right; 
	struct capability capability; 
}; 
 
#define COPY_USER_FILE_INFORMATION(s,d)				\ 
{								\ 
	(d).memory_body_id=(s).memory_body_id;			\ 
	(d).system_file_id=(s).system_file_id;			\ 
	(d).map_length=(s).map_length;				\ 
	(d).right=(s).right;					\ 
	COPY_CAPABILITY((s).capability,(d).capability);		\ 
} 
 
struct system_file_information{ 
	int semaphore_id; 
	struct{ 
		int right; 
		struct capability capability; 
	}system_file[FILE_NUMBER]; 
}; 
 
#endif