|
|
#include <sys/types.h> #include <sys/fs/s5ino.h>
/* Inode structure as it appears on a disk block. */struct dinode { o_mode_t di_mode; /* mode and type of file */ o_nlink_t di_nlink; /* number of links to file */ o_uid_t di_uid; /* owner's user id */ o_gid_t di_gid; /* owner's group id */ off_t di_size; /* number of bytes in file */ char di_addr[39]; /* disk block addresses */ unsigned char di_gen; /* file generation number */ time_t di_atime; /* time last accessed */ time_t di_mtime; /* time last modified */ time_t di_ctime; /* time status last changed */ };
/* * Of the 40 address bytes: * 39 are used as disk addresses * 13 addresses of 3 bytes each * and the 40th is used as a * file generation number */
For the meaning of the defined types off_t and time_t see types(5).