inode_s5(4)


inode (s5) -- format of an s5 i-node

Synopsis

   #include <sys/types.h>
   #include <sys/fs/s5ino.h>

Description

An i-node for a plain file or directory in an s5 file system has the following structure defined by 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).

References

l3tol(3C), s5-specific fs_s5(4), stat(2), types(5)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004