indexing
	description: "Internal file information"

class interface
	UNIX_FILE_INFO

create 

	make
			-- Creation procedure

feature -- Initialization

	make
			-- Creation procedure
	
feature -- Access

			-- Date of last access

	buffered_file_info: SPECIAL [CHARACTER]
			-- Special data zone
			-- (from TO_SPECIAL)

			-- Date of last status change

			-- Last modification date

	device: INTEGER
			-- Device number on which inode resides

	device_type: INTEGER
			-- Device type on which inode resides

	file_name: STRING
			-- File name to which information applies.

	group_id: INTEGER
			-- GID of the file

	group_name: STRING
			-- Name of the file group, if available from /etc/group.
			-- Otherwise, the GID

	inode: INTEGER
			-- Inode number

	links: INTEGER
			-- Number of links

	owner_name: STRING
			-- Name of the file owner, if available from /etc/passwd.
			-- Otherwise, the UID

	protection: INTEGER
			-- Protection mode of file (12 lower bits)

	size: INTEGER
			-- File size, in bytes

	type: INTEGER
			-- File type (4 bits, 12 lowest bits zeroed)

	user_id: INTEGER
			-- UID of the file owner
	
feature -- Status report

	is_access_executable: BOOLEAN
			-- Is file executable by real UID?

	is_access_owner: BOOLEAN
			-- Is file owned by real UID?

	is_access_readable: BOOLEAN
			-- Is file readable by real UID?

	is_access_writable: BOOLEAN
			-- Is file writable by real UID?

	is_block: BOOLEAN
			-- Is file a device block special file?

	is_character: BOOLEAN
			-- Is file a character block special file?

	is_device: BOOLEAN
			-- Is file a device?

	is_directory: BOOLEAN
			-- Is file a directory?

	is_executable: BOOLEAN
			-- Is file executable by effective UID?

	is_fifo: BOOLEAN
			-- Is file a named pipe?

	is_owner: BOOLEAN
			-- Is file owned by effective UID?

	is_plain: BOOLEAN
			-- Is file a plain file?

	is_readable: BOOLEAN
			-- Is file readable by effective UID?

	is_setgid: BOOLEAN
			-- Is file setgid?

	is_setuid: BOOLEAN
			-- Is file setuid?

	is_socket: BOOLEAN
			-- Is file a named socket?

	is_sticky: BOOLEAN
			-- Is file sticky?

	is_symlink: BOOLEAN
			-- Is file a symbolic link?

	is_writable: BOOLEAN
			-- Is file writable by effective UID?
	
feature -- Element change

			-- Update information buffer: fill it in with information
			-- from the inode of f_name.
	
invariant

		-- from GENERAL
	reflexive_equality: standard_is_equal (Current);
	reflexive_conformance: conforms_to (Current);

end -- class UNIX_FILE_INFO