AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

I I �I I I I I � I I 1� 1 1 I I I I I ,� I I I I I I I I I I I I

!NODE ( 4) NAME inode - format of an inode SYNOPSIS #include #include FILES lusr lincludelsyslino.h SEE ALSO stat(2), fs(4), types(S). INODE ( 4) DESCRIPTION An i-node for a plain file or directory in a file system has the following structure defined by . I* I node structure as it appears on a disk block. *I struct dinode { ushort di_mode; I* mode and type of file *I short di_nlink; I* number of links to file *I ushort di_uid; I* owner's user id *I ushort di_gid; I* owner's group id *I off_t di_size; I* number of bytes in file *I char di_addr[40]; I* disk block addresses *I time_t di_atime; I* time last accessed *I time_t di_mtime; I* time last modified *I time_t di_ctime; I* time created *I }; I* * the 40 address bytes: * 39 used; 13 addresses * of 3 bytes each. *I For the meaning of the defined types off_t and time_t see types(S). - 1 -

!NODE ( 4)<br />

NAME<br />

inode - format of an inode<br />

SYNOPSIS<br />

#include <br />

#include <br />

FILES<br />

lusr lincludelsyslino.h<br />

SEE ALSO<br />

stat(2), fs(4), types(S).<br />

INODE ( 4)<br />

DESCRIPTION<br />

An i-node for a plain file or directory in a file system has the following<br />

structure defined by .<br />

I* I node structure as it appears on a disk block. *I<br />

struct dinode<br />

{<br />

ushort di_mode; I* mode and type of file *I<br />

short di_nlink; I* number of links to file *I<br />

ushort di_uid; I* owner's user id *I<br />

ushort di_gid; I* owner's group id *I<br />

off_t di_size; I* number of bytes in file *I<br />

char di_addr[40]; I* disk block addresses *I<br />

time_t di_atime; I* time last accessed *I<br />

time_t di_mtime; I* time last modified *I<br />

time_t di_ctime; I* time created *I<br />

};<br />

I*<br />

* the 40 address bytes:<br />

* 39 used; 13 addresses<br />

* of 3 bytes each.<br />

*I<br />

For the meaning of the defined types off_t and time_t see<br />

types(S).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!