RAD Studio |  |

sys\stat.h
Collapse All

The following functions, macros, and classes are provided in sys\stat.h:

Topics

Name | Description
S_Ixxxx #defines | Header File sys\stat.h Description Definitions used for file status and directory functions.
_stati64, _tstati64, stati64, _wstati64 | Header File sys\stat.h, tchar.h Category Directory Control Routines Prototype int stati64(const char *pathname, struct stati64 *buff); int _stati64(const char *__path, struct stati64 *__statbuf); int _wstati64(const wchar_t *pathname, struct stati64 *buff); // From tchar.h #define _tstati64 _stati64 Description Gather statistics about the file named by *pathP and place them in the buffer *bufP. The statistics fields are set thus: st_devset to -1 if S_IFCHR, else set to drive holding the file. st_ino0 st_modeUnix-style bit-set for file access rights st_nlink1 st_uid0 st_gid0 st_rdevsame as st_dev st_sizefile size (0 if S_IFDIR or S_IFCHR) st_atimetime file last changed (seconds since 1970) st_mtimesame as st_atime... more
fstat, stat, _wstat | Header File sys\stat.h Category Input/output Routines Prototype int fstat(int handle, struct stat *statbuf); int stat(const char *path, struct stat *statbuf); int _wstat(const wchar_t *path, struct stat *statbuf); Description Gets open file information. fstat stores information in the stat structure about the file or directory associated with handle. stat stores information about a given file or directory in the stat structure. The name of the file is path. statbuf points to the stat structure (defined in sys\stat.h). That structure contains the following fields:

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!