blob: 9ccd4621cbadb6650a659c04fe272c7b10715f4e [file]
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <sys/stat.h>
#include <stdlib.h>
#include "__mingw_fix_stat.h"
int __cdecl fstat64i32(int fd, struct _stat64i32 *stat);
int __cdecl stat64i32(const char *_Filename, struct _stat64i32 *_Stat);
int __cdecl stat64i32(const char *_Filename, struct _stat64i32 *_Stat)
{
return __MINGW_FIXED_STAT(fstat64i32, _stat64i32, _Filename, _Stat);
}
int (__cdecl *__MINGW_IMP_SYMBOL(stat64i32))(const char *, struct _stat64i32 *) = stat64i32;
/* On 64-bit systems stat() is ABI-compatible with stat64i32() */
#ifdef _WIN64
#undef stat
struct stat;
int __attribute__ ((alias ("stat64i32"))) __cdecl stat(const char *name, struct stat *stat);
extern int __attribute__ ((alias (__MINGW64_STRINGIFY(__MINGW_IMP_SYMBOL(stat64i32))))) (__cdecl *__MINGW_IMP_SYMBOL(stat))(const char *name, struct stat *stat);
#endif