ReactOS  0.4.13-dev-482-ge57f103
stat.h File Reference
#include <crtdefs.h>
#include <sys/types.h>
Include dependency graph for stat.h:

Go to the source code of this file.

Classes

struct  _stat32
 
struct  _stat
 
struct  stat
 

Macros

#define _STAT_DEFINED
 
#define __stat64   _stat64
 
#define _S_IFMT   0xF000
 
#define _S_IFDIR   0x4000
 
#define _S_IFCHR   0x2000
 
#define _S_IFIFO   0x1000
 
#define _S_IFREG   0x8000
 
#define _S_IREAD   0x0100
 
#define _S_IWRITE   0x0080
 
#define _S_IEXEC   0x0040
 
#define _WSTAT_DEFINED
 
#define _fstat64i32   _fstat
 
#define _S_IFBLK   0x3000 /* Block: Is this ever set under w32? */
 
#define S_IFMT   _S_IFMT
 
#define S_IFDIR   _S_IFDIR
 
#define S_IFCHR   _S_IFCHR
 
#define S_IFREG   _S_IFREG
 
#define S_IREAD   _S_IREAD
 
#define S_IWRITE   _S_IWRITE
 
#define S_IEXEC   _S_IEXEC
 
#define S_IFIFO   _S_IFIFO
 
#define S_IFBLK   _S_IFBLK
 
#define _S_IRWXU   (_S_IREAD | _S_IWRITE | _S_IEXEC)
 
#define _S_IXUSR   _S_IEXEC
 
#define _S_IWUSR   _S_IWRITE
 
#define S_IRWXU   _S_IRWXU
 
#define S_IXUSR   _S_IXUSR
 
#define S_IWUSR   _S_IWUSR
 
#define S_IRUSR   _S_IRUSR
 
#define _S_IRUSR   _S_IREAD
 
#define S_ISDIR(m)   (((m) & S_IFMT) == S_IFDIR)
 
#define S_ISFIFO(m)   (((m) & S_IFMT) == S_IFIFO)
 
#define S_ISCHR(m)   (((m) & S_IFMT) == S_IFCHR)
 
#define S_ISBLK(m)   (((m) & S_IFMT) == S_IFBLK)
 
#define S_ISREG(m)   (((m) & S_IFMT) == S_IFREG)
 

Functions

_CRTIMP int __cdecl _fstat (_In_ int _FileDes, _Out_ struct _stat *_Stat)
 
_CRTIMP int __cdecl _fstat32 (_In_ int _FileDes, _Out_ struct _stat32 *_Stat)
 
_CRTIMP int __cdecl _stat (_In_z_ const char *_Name, _Out_ struct _stat *_Stat)
 
_CRTIMP int __cdecl _stat32 (_In_z_ const char *_Name, _Out_ struct _stat32 *_Stat)
 
_CRTIMP int __cdecl _wstat (_In_z_ const wchar_t *_Name, _Out_ struct _stat *_Stat)
 
_CRTIMP int __cdecl _wstat32 (_In_z_ const wchar_t *_Name, _Out_ struct _stat32 *_Stat)
 
__CRT_INLINE int __cdecl _fstat32 (int _FileDes, struct _stat32 *_Stat)
 
__CRT_INLINE int __cdecl _fstat32i64 (int _FileDes, struct _stat32i64 *_Stat)
 
_CRTIMP int __cdecl stat (const char *_Filename, struct stat *_Stat)
 
_CRTIMP int __cdecl fstat (int _Desc, struct stat *_Stat)
 
_CRTIMP int __cdecl wstat (const wchar_t *_Filename, struct stat *_Stat)
 

Macro Definition Documentation

◆ __stat64

#define __stat64   _stat64

Definition at line 129 of file stat.h.

◆ _fstat64i32

#define _fstat64i32   _fstat

Compatibility definitons

Definition at line 269 of file stat.h.

◆ _S_IEXEC

#define _S_IEXEC   0x0040

Definition at line 140 of file stat.h.

◆ _S_IFBLK

#define _S_IFBLK   0x3000 /* Block: Is this ever set under w32? */

Definition at line 309 of file stat.h.

◆ _S_IFCHR

#define _S_IFCHR   0x2000

Definition at line 135 of file stat.h.

◆ _S_IFDIR

#define _S_IFDIR   0x4000

Definition at line 134 of file stat.h.

◆ _S_IFIFO

#define _S_IFIFO   0x1000

Definition at line 136 of file stat.h.

◆ _S_IFMT

#define _S_IFMT   0xF000

Definition at line 133 of file stat.h.

◆ _S_IFREG

#define _S_IFREG   0x8000

Definition at line 137 of file stat.h.

◆ _S_IREAD

#define _S_IREAD   0x0100

Definition at line 138 of file stat.h.

◆ _S_IRUSR

#define _S_IRUSR   _S_IREAD

Definition at line 329 of file stat.h.

◆ _S_IRWXU

#define _S_IRWXU   (_S_IREAD | _S_IWRITE | _S_IEXEC)

Definition at line 321 of file stat.h.

◆ _S_IWRITE

#define _S_IWRITE   0x0080

Definition at line 139 of file stat.h.

◆ _S_IWUSR

#define _S_IWUSR   _S_IWRITE

Definition at line 323 of file stat.h.

◆ _S_IXUSR

#define _S_IXUSR   _S_IEXEC

Definition at line 322 of file stat.h.

◆ _STAT_DEFINED

#define _STAT_DEFINED

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 24 of file stat.h.

◆ _WSTAT_DEFINED

#define _WSTAT_DEFINED

Definition at line 217 of file stat.h.

◆ S_IEXEC

#define S_IEXEC   _S_IEXEC

Definition at line 317 of file stat.h.

◆ S_IFBLK

#define S_IFBLK   _S_IFBLK

Definition at line 319 of file stat.h.

◆ S_IFCHR

#define S_IFCHR   _S_IFCHR

Definition at line 313 of file stat.h.

◆ S_IFDIR

#define S_IFDIR   _S_IFDIR

Definition at line 312 of file stat.h.

◆ S_IFIFO

#define S_IFIFO   _S_IFIFO

Definition at line 318 of file stat.h.

◆ S_IFMT

#define S_IFMT   _S_IFMT

Definition at line 311 of file stat.h.

◆ S_IFREG

#define S_IFREG   _S_IFREG

Definition at line 314 of file stat.h.

◆ S_IREAD

#define S_IREAD   _S_IREAD

Definition at line 315 of file stat.h.

◆ S_IRUSR

#define S_IRUSR   _S_IRUSR

Definition at line 328 of file stat.h.

◆ S_IRWXU

#define S_IRWXU   _S_IRWXU

Definition at line 325 of file stat.h.

◆ S_ISBLK

#define S_ISBLK (   m)    (((m) & S_IFMT) == S_IFBLK)

Definition at line 334 of file stat.h.

◆ S_ISCHR

#define S_ISCHR (   m)    (((m) & S_IFMT) == S_IFCHR)

Definition at line 333 of file stat.h.

◆ S_ISDIR

#define S_ISDIR (   m)    (((m) & S_IFMT) == S_IFDIR)

Definition at line 331 of file stat.h.

◆ S_ISFIFO

#define S_ISFIFO (   m)    (((m) & S_IFMT) == S_IFIFO)

Definition at line 332 of file stat.h.

◆ S_ISREG

#define S_ISREG (   m)    (((m) & S_IFMT) == S_IFREG)

Definition at line 335 of file stat.h.

◆ S_IWRITE

#define S_IWRITE   _S_IWRITE

Definition at line 316 of file stat.h.

◆ S_IWUSR

#define S_IWUSR   _S_IWUSR

Definition at line 327 of file stat.h.

◆ S_IXUSR

#define S_IXUSR   _S_IXUSR

Definition at line 326 of file stat.h.

Function Documentation

◆ _fstat()

_CRTIMP int __cdecl _fstat ( _In_ int  _FileDes,
_Out_ struct _stat _Stat 
)

Referenced by _fstat32(), CRTDLL__fstat(), and fstat().

◆ _fstat32() [1/2]

_CRTIMP int __cdecl _fstat32 ( _In_ int  _FileDes,
_Out_ struct _stat32 _Stat 
)

◆ _fstat32() [2/2]

__CRT_INLINE int __cdecl _fstat32 ( int  _FileDes,
struct _stat32 _Stat 
)

Definition at line 270 of file stat.h.

271  {
272  struct _stat _Stat64;
273  int ret = _fstat(_FileDes, &_Stat64);
274  _Stat->st_dev = _Stat64.st_dev;
275  _Stat->st_ino = _Stat64.st_ino;
276  _Stat->st_mode = _Stat64.st_mode;
277  _Stat->st_nlink = _Stat64.st_nlink;
278  _Stat->st_uid = _Stat64.st_uid;
279  _Stat->st_gid = _Stat64.st_gid;
280  _Stat->st_rdev = _Stat64.st_rdev;
281  _Stat->st_size = _Stat64.st_size;
282  _Stat->st_atime = (__time32_t)_Stat64.st_atime;
283  _Stat->st_mtime = (__time32_t)_Stat64.st_mtime;
284  _Stat->st_ctime = (__time32_t)_Stat64.st_ctime;
285  return ret;
286  }
_dev_t st_rdev
Definition: stat.h:33
__time32_t st_atime
Definition: stat.h:35
Definition: stat.h:40
long __time32_t
Definition: crtdefs.h:358
__time32_t st_ctime
Definition: stat.h:37
short st_gid
Definition: stat.h:32
_off_t st_size
Definition: stat.h:34
short st_nlink
Definition: stat.h:30
int ret
unsigned short st_mode
Definition: stat.h:29
short st_uid
Definition: stat.h:31
__time32_t st_mtime
Definition: stat.h:36
_CRTIMP int __cdecl _fstat(_In_ int _FileDes, _Out_ struct _stat *_Stat)
_ino_t st_ino
Definition: stat.h:28
_dev_t st_dev
Definition: stat.h:27

◆ _fstat32i64()

__CRT_INLINE int __cdecl _fstat32i64 ( int  _FileDes,
struct _stat32i64 _Stat 
)

Definition at line 287 of file stat.h.

288  {
289  struct _stat64 _Stat64;
290  int ret = _fstat64(_FileDes, &_Stat64);
291  _Stat->st_dev = _Stat64.st_dev;
292  _Stat->st_ino = _Stat64.st_ino;
293  _Stat->st_mode = _Stat64.st_mode;
294  _Stat->st_nlink = _Stat64.st_nlink;
295  _Stat->st_uid = _Stat64.st_uid;
296  _Stat->st_gid = _Stat64.st_gid;
297  _Stat->st_rdev = _Stat64.st_rdev;
298  _Stat->st_size = _Stat64.st_size;
299  _Stat->st_atime = (__time32_t)_Stat64.st_atime;
300  _Stat->st_mtime = (__time32_t)_Stat64.st_mtime;
301  _Stat->st_ctime = (__time32_t)_Stat64.st_ctime;
302  return ret;
303  }
__MINGW_EXTENSION __int64 st_size
Definition: wchar.h:700
_ino_t st_ino
Definition: wchar.h:694
__time32_t st_ctime
Definition: wchar.h:703
long __time32_t
Definition: crtdefs.h:358
_dev_t st_dev
Definition: wchar.h:693
unsigned short st_mode
Definition: wchar.h:695
__time32_t st_mtime
Definition: wchar.h:702
_dev_t st_rdev
Definition: wchar.h:699
short st_gid
Definition: wchar.h:698
short st_uid
Definition: wchar.h:697
int CDECL _fstat64(int fd, struct __stat64 *buf)
Definition: stat64.c:102
Definition: wchar.h:720
int ret
short st_nlink
Definition: wchar.h:696
__time32_t st_atime
Definition: wchar.h:701

◆ _stat()

_CRTIMP int __cdecl _stat ( _In_z_ const char _Name,
_Out_ struct _stat _Stat 
)

Referenced by CRTDLL__stat(), MkDirs(), and stat().

◆ _stat32()

_CRTIMP int __cdecl _stat32 ( _In_z_ const char _Name,
_Out_ struct _stat32 _Stat 
)

◆ _wstat()

_CRTIMP int __cdecl _wstat ( _In_z_ const wchar_t _Name,
_Out_ struct _stat _Stat 
)

Referenced by wstat().

◆ _wstat32()

_CRTIMP int __cdecl _wstat32 ( _In_z_ const wchar_t _Name,
_Out_ struct _stat32 _Stat 
)

◆ fstat()

__CRT_INLINE int __cdecl fstat ( int  _Desc,
struct stat _Stat 
)

Definition at line 341 of file stat.h.

341  {
342  return _fstat(_Desc,(struct _stat *)_Stat);
343 }
Definition: stat.h:40
_CRTIMP int __cdecl _fstat(_In_ int _FileDes, _Out_ struct _stat *_Stat)

Referenced by disk_query_directory(), disk_query_information(), disk_set_information(), import_certs_from_path(), File::length(), load_licence(), loadFile(), main(), NotifyInfo(), printercache_load_blob(), ruserpass(), sendrequest(), and test_stat().

◆ stat()

__CRT_INLINE int __cdecl stat ( const char _Filename,
struct stat _Stat 
)

Definition at line 345 of file stat.h.

345  {
346  return _stat(_Filename,(struct _stat *)_Stat);
347 }
Definition: stat.h:40
_CRTIMP int __cdecl _stat(_In_z_ const char *_Name, _Out_ struct _stat *_Stat)

Referenced by _cwait(), _des_crypt_call(), _svcauth_unix(), add_font_proc(), add_storages_to_table(), adns__query_fail(), adns__search_next(), adns_submit(), alpha_blend_pixels_hrgn(), auth_errmsg(), authunix_refresh(), brush_fill_pixels(), check_enum_cache(), check_family(), check_iml_data(), check_metafile(), check_storage_contents(), checkarch(), CheckForNewV3User(), chmc_appendfile(), clnt_sperrno(), clone_element(), CoGetInstanceFromIStorage(), compat_isdir(), compat_nextdir(), compat_nextfile(), create_EnumSTATPROPSETSTG(), CCabinet::CreateSimpleCabinet(), CustomMarshal_MarshalInterface(), disk_create(), disk_query_directory(), draw_driver_string(), draw_string_callback(), encode_image_wic(), enum_stream_names(), expect_rawformat(), f_getfree(), f_mkfs(), find_volume(), FindFonts(), fnIMultiLanguage3_ConvertStringInIStream(), gdip_format_string(), gdip_get_font_metrics(), gdip_transform_points(), GdipAddPathClosedCurve2(), GdipAddPathClosedCurve2I(), GdipAddPathCurve2(), GdipAddPathCurve2I(), GdipAddPathLine2I(), GdipBeginContainer(), GdipBitmapLockBits(), GdipBitmapUnlockBits(), GdipCloneBitmapArea(), GdipCloneBrush(), GdipCloneFont(), GdipCloneImageAttributes(), GdipClonePen(), GdipCombineRegionPath(), GdipCombineRegionRect(), GdipCombineRegionRegion(), GdipCreateAdjustableArrowCap(), GdipCreateBitmapFromFile(), GdipCreateBitmapFromHICON(), GdipCreateBitmapFromResource(), GdipCreateBitmapFromScan0(), GdipCreateBitmapFromStream(), GdipCreateCachedBitmap(), GdipCreateCustomLineCap(), GdipCreateFont(), GdipCreateFontFamilyFromName(), GdipCreateFontFromLogfontW(), GdipCreateHBITMAPFromBitmap(), GdipCreateHICONFromBitmap(), GdipCreateLineBrush(), GdipCreateLineBrushFromRectWithAngle(), GdipCreateMetafileFromEmf(), GdipCreateMetafileFromStream(), GdipCreatePathGradient(), GdipCreatePathGradientFromPath(), GdipCreatePathGradientI(), GdipCreateRegionHrgn(), GdipCreateRegionPath(), GdipCreateRegionRect(), GdipCreateTexture(), GdipCreateTexture2(), GdipCreateTexture2I(), GdipDeleteGraphics(), GdipDrawClosedCurve2I(), GdipDrawImagePointsRect(), GdipEnumerateMetafileSrcRectDestPoints(), GdipFillClosedCurve2I(), GdipFillEllipse(), GdipFillPath(), GdipFillPie(), GdipFillPolygon(), GdipFillPolygonI(), GdipFillRegion(), GdipFlattenPath(), GdipGetDC(), GdipGetFontCollectionFamilyList(), GdipGetFontHeight(), GdipGetFontHeightGivenDPI(), GdipGetGenericFontFamilyMonospace(), GdipGetGenericFontFamilySansSerif(), GdipGetGenericFontFamilySerif(), GdipGetImageGraphicsContext(), GdipGetImageThumbnail(), GdipGetPathGradientRect(), GdipGetPathGradientRectI(), GdipGetPropertyItem(), GdipGetRegionScans(), GdipGetRegionScansCount(), GdipGetRegionScansI(), GdipGetVisibleClipBounds(), GdipGetVisibleClipBoundsI(), GdipGraphicsClear(), GdipImageRotateFlip(), GdipImageSelectActiveFrame(), GdipIsEqualRegion(), GdipIsOutlineVisiblePathPoint(), GdipIsVisibleClipEmpty(), GdipIsVisiblePoint(), GdipIsVisibleRect(), GdipIsVisibleRegionPoint(), GdipIsVisibleRegionRect(), GdipLoadImageFromFile(), GdipLoadImageFromStream(), GdipMeasureCharacterRanges(), GdipPlayMetafileRecord(), GdipRecordMetafile(), GdipRecordMetafileStream(), GdipReleaseDC(), GdipResetWorldTransform(), GdipRotateWorldTransform(), GdipSaveImageToFile(), GdipSaveImageToStream(), GdipScaleWorldTransform(), GdipSetCompositingMode(), GdipSetCompositingQuality(), GdipSetEmpty(), GdipSetInfinite(), GdipSetInterpolationMode(), GdipSetPageScale(), GdipSetPageUnit(), GdipSetPixelOffsetMode(), GdipSetSmoothingMode(), GdipSetTextRenderingHint(), GdipSetWorldTransform(), GdipTranslateWorldTransform(), generate_random(), get_clip_hrgn(), get_graphics_bounds(), get_graphics_device_bounds(), get_graphics_transform(), get_path_hrgn(), get_region_hrgn(), get_region_scans_data(), get_visible_clip_region(), CCabinet::GetAttributesOnFile(), CCabinet::GetFileTimes(), getit(), InitOurDirectory(), IPropertyStorage_fnStat(), TConfig::keyfile_init(), load_dib(), load_emf(), load_mf_pict(), load_streams(), LoadUnknownMetadata(), LresultFromObject(), main(), make_directory_records(), measure_ranges_callback(), METAFILE_AddBrushObject(), METAFILE_AddImageAttributesObject(), METAFILE_AddImageObject(), METAFILE_AddPathObject(), METAFILE_AddPenObject(), METAFILE_AddRegionObject(), METAFILE_AddSimpleProperty(), METAFILE_BeginContainer(), METAFILE_BeginContainerNoParams(), METAFILE_CreateCompressedImageStream(), METAFILE_DrawImagePointsRect(), METAFILE_DrawPath(), METAFILE_EndContainer(), METAFILE_FillPath(), METAFILE_FillRectangles(), METAFILE_GetDC(), METAFILE_GetGraphicsContext(), METAFILE_GraphicsClear(), METAFILE_GraphicsDeleted(), METAFILE_MultiplyWorldTransform(), METAFILE_PlaybackGetDC(), METAFILE_PlaybackUpdateClip(), METAFILE_PlaybackUpdateWorldTransform(), METAFILE_ResetWorldTransform(), METAFILE_RestoreGraphics(), METAFILE_RotateWorldTransform(), METAFILE_SaveGraphics(), METAFILE_ScaleWorldTransform(), METAFILE_SetClipRect(), METAFILE_SetClipRegion(), METAFILE_SetPageTransform(), METAFILE_SetWorldTransform(), METAFILE_TranslateWorldTransform(), METAFILE_WriteEndOfFile(), METAFILE_WriteHeader(), MkSpoolDir(), mono_assembly_search_hook_fn(), MSI_DatabaseApplyTransformW(), msi_get_stream_size(), MSI_OpenDatabaseW(), msi_table_apply_transform(), MsiSIPIsMyTypeOfFile(), new_assign_statement(), new_call_statement(), new_case_clausule(), new_const_statement(), new_dim_statement(), new_elseif_decl(), new_foreach_statement(), new_forto_statement(), new_function_statement(), new_if_statement(), new_onerror_statement(), new_select_statement(), new_set_statement(), new_statement(), new_while_statement(), NotifyInfo(), OLECONVERT_GetOLE10ProgID(), OleDoAutoConvert(), open_weak_exclusive(), parseAndPrintFile(), play_metafile(), play_metafile_proc(), process_directory(), prop_enum_stat(), PropertyStorage_ReadFromStream(), query_simple(), read_stream_data(), scan_specified_files(), searchonefile(), SHPropStgReadMultiple(), SHPropStgWriteMultiple(), SOFTWARE_GdipDrawDriverString(), SOFTWARE_GdipDrawPath(), SOFTWARE_GdipDrawThinPath(), SOFTWARE_GdipFillPath(), SOFTWARE_GdipFillRegion(), source_add_statement(), stat_filter(), statusclb_OnDataAvailable(), StorageImpl_Construct(), stream_info(), stream_to_storage(), svc_getreq_common(), sync_metafile(), Test2(), Test3(), test_bitmapfromgraphics(), test_bufferrawformat(), test_captype(), test_characterrange(), test_clear(), test_clipping(), test_colorkey(), test_colormatrix(), test_constructor(), test_constructor3(), test_constructor_destructor(), test_containers(), test_converttoemfplus(), test_create_adjustable_cap(), test_createeffect(), test_createfont(), test_createfromwmf(), test_createfromwmf_noplaceable(), test_createhbitmap(), test_digitsubstitution(), test_dispose(), test_drawimage(), test_drawpath(), test_emfonly(), test_empty(), test_encoders(), test_fillpath(), test_fillrect(), test_flushed_getdata(), test_FlushFileBuffers(), test_fmtusertypestg(), test_font_metrics(), test_fontfamily(), test_fontfamily_properties(), test_frameunit(), test_FromGdiDib(), test_fromhicon(), test_gamma(), test_GdipCloneImage(), test_GdipCreateBitmapFromHBITMAP(), test_GdipGetImageFlags(), test_GdipImageGetFrameDimensionsCount(), test_gditransform(), test_gditransform_cb(), test_getadjustedpalette(), test_getdc(), test_getgenericdefault(), test_getgenerics(), test_getgenerictypographic(), test_GetImageDimension(), test_getsetpixel(), test_getsubpathcount(), test_getthumbnail(), test_hascurve(), test_heightgivendpi(), test_hglobal_storage_creation(), test_hglobal_storage_stat(), test_histogram(), test_imageabort(), test_InProcess(), test_inset(), test_installedfonts(), test_isidentity(), test_isvalid(), test_linejoin(), test_LoadingImages(), test_loadwmf(), test_LockBits(), test_LockBits_UserBuf(), test_logfont(), test_long_name(), test_multiframegif(), test_nextmarker(), test_nextmarkerpath(), test_nextpathtype(), test_nextsubpath(), test_nextsubpathpath(), test_nullframerect(), test_OutOfProcess(), test_pagetransform(), test_palette(), test_persiststreaminit(), test_properties(), test_remaptable(), test_resolution(), test_rotateflip(), test_save_restore(), test_SavingImages(), test_scale(), test_Scan0(), test_simple(), test_stat(), test_storage_refcount(), test_streamenum(), test_stringformatflags(), test_tabstops(), test_testcontrol(), test_toplevel_stat(), test_waittxempty(), test_worldtransform(), TimerCallback1(), transform_region_element(), TruncBatchLog(), VfdStartDriver(), VfdStopDriver(), write_if_change(), write_stream(), WriteFmtUserTypeStg(), xdr_reference(), xdr_sizeof(), and xsltCheckFilename().

◆ wstat()

__CRT_INLINE int __cdecl wstat ( const wchar_t _Filename,
struct stat _Stat 
)

Definition at line 349 of file stat.h.

349  {
350  return _wstat(_Filename,(struct _stat *)_Stat);
351 }
Definition: stat.h:40
_CRTIMP int __cdecl _wstat(_In_z_ const wchar_t *_Name, _Out_ struct _stat *_Stat)