User Tools

Site Tools


unix-history:unix-v6:usr:sys:ino.h

Unix V6 /usr/sys/ino.h

/*
 * Inode structure as it appears on
 * the disk. Not used by the system,
 * but by things like check, df, dump.
 */
struct	inode
{
	int	i_mode;
	char	i_nlink;
	char	i_uid;
	char	i_gid;
	char	i_size0;
	char	*i_size1;
	int	i_addr[8];
	int	i_atime[2];
	int	i_mtime[2];
};
 
/* modes */
#define	IALLOC	0100000
#define	IFMT	060000
#define	IFDIR	040000
#define	IFCHR	020000
#define	IFBLK	060000
#define	ILARG	010000
#define	ISUID	04000
#define	ISGID	02000
#define	ISVTX	01000
#define	IREAD	0400
#define	IWRITE	0200
#define	IEXEC	0100
unix-history/unix-v6/usr/sys/ino.h.txt ยท Last modified: 2006/07/26 07:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki