[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Stat Structure and Definitions

The header stat.h includes the stat structure, several type definitions and file mode definitions. Among the necessary types are

Defined types:

Type
Used to Store
nlink_t  
The number of links  
uid_t  
The user's ID  
gid_t  
The file size  
off_t  
The file size in bytes  

Macintosh Stat Structure:

Type
Variable
Purpose
mode_t  
st_mode  
File mode, see "File Modes"  
ino_t  
st_ino  
File serial number  
dev_t  
st_dev  
ID of device containing this file  
nlink_t  
st_nlink  
Number of links  
uid_t  
st_uid  
User ID of the file's owner  
gid_t  
st_gid  
Group ID of the file's group  
off_t  
st_size  
File size in bytes  
__std(time_t)  
st_atime  
Time of last access  
__std(time_t)  
st_mtime  
Time of last data modification  
__std(time_t)  
st_ctime  
Time of last file status change  
long  
st_blksize  
Optimal blocksize  
long  
st_blocks  
Blocks allocated for file  

F

Windows Stat Structure:

Type
Variable
Purpose
mode_t  
st_mode  
File mode, see "File Modes"  
ino_t  
st_ino  
File serial number  
dev_t  
st_dev  
ID of device containing this file  
nlink_t  
st_nlink  
Number of links  
uid_t  
st_uid  
User ID of the file's owner  
gid_t  
st_gid  
Group ID of the file's group  
off_t  
st_size  
File size in bytes  
time_t  
st_atime  
Time of last access  
time_t  
st_mtime  
Time of last data modification  
time_t  
st_ctime  
Time of last file status change  

F


File Modes

File mode infromation.

Macintosh File Modes:

File Mode
Purpose
S_IFMT  
File type  
S_IFIFO  
FIFO queue  
S_IFCHR  
Character special  
S_IFDIR  
Directory  
S_IFBLK  
Blocking stream  
S_IFREG  
Regular  
S_IFLNK  
Symbolic link  
S_IFSOCK  
Socket  

Windows File Modes:

File Mode
Purpose
S_IFMT  
File type mask  
S_IFDIR  
Directory  
S_IFCHR  
Character special  
S_IFIFO  
Pipe  
S_IFREG  
Regular  
S_IREAD  
Read permission, owner  
S_IWRITE  
Write permission, owner  
S_IEXEC  
Execute/search permission, owner  


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000