#include <corecrt.h>
#include <sys/types.h>
#include <pshpack8.h>
#include <poppack.h>
Go to the source code of this file.
|
| _ACRTIMP int __cdecl | _fstat32 (int, struct _stat32 *) |
| |
| _ACRTIMP int __cdecl | _fstat32i64 (int, struct _stat32i64 *) |
| |
| _ACRTIMP int __cdecl | _fstat64 (int, struct _stat64 *) |
| |
| _ACRTIMP int __cdecl | _fstat64i32 (int, struct _stat64i32 *) |
| |
| _ACRTIMP int __cdecl | _stat32 (const char *, struct _stat32 *) |
| |
| _ACRTIMP int __cdecl | _stat32i64 (const char *, struct _stat32i64 *) |
| |
| _ACRTIMP int __cdecl | _stat64 (const char *, struct _stat64 *) |
| |
| _ACRTIMP int __cdecl | _stat64i32 (const char *, struct _stat64i32 *) |
| |
| _ACRTIMP int __cdecl | _umask (int) |
| |
| _ACRTIMP int __cdecl | _wstat32 (const wchar_t *, struct _stat32 *) |
| |
| _ACRTIMP int __cdecl | _wstat32i64 (const wchar_t *, struct _stat32i64 *) |
| |
| _ACRTIMP int __cdecl | _wstat64 (const wchar_t *, struct _stat64 *) |
| |
| _ACRTIMP int __cdecl | _wstat64i32 (const wchar_t *, struct _stat64i32 *) |
| |
| static int | fstat (int fd, struct stat *ptr) |
| |
| static int | stat (const char *path, struct stat *ptr) |
| |
| static int | umask (int fd) |
| |
◆ __stat64
◆ _DEV_T_DEFINED
◆ _fstat64
◆ _fstat64i32
◆ _INO_T_DEFINED
◆ _OFF_T_DEFINED
◆ _S_IEXEC
◆ _S_IFCHR
◆ _S_IFDIR
◆ _S_IFIFO
◆ _S_IFMT
◆ _S_IFREG
◆ _S_IREAD
◆ _S_IWRITE
◆ _stat64
◆ _stat64i32
◆ _STAT_DEFINED
◆ _UMASK_DEFINED
◆ _wstat64
◆ _wstat64i32
◆ S_IEXEC
◆ S_IFCHR
◆ S_IFDIR
◆ S_IFMT
◆ S_IFREG
◆ S_IREAD
◆ S_IWRITE
◆ _dev_t
◆ _ino_t
◆ _off_t
◆ _fstat32()
Definition at line 2030 of file file.c.
2031{
2034
2039}
static void msvcrt_stat64_to_stat32(const struct _stat64 *buf64, struct _stat32 *buf)
GLenum GLuint GLenum GLsizei const GLchar * buf
◆ _fstat32i64()
Definition at line 2044 of file file.c.
2045{
2048
2053}
static void msvcrt_stat64_to_stat32i64(const struct _stat64 *buf64, struct _stat32i64 *buf)
◆ _fstat64()
Definition at line 1934 of file file.c.
1935{
1939
1942 {
1944 return -1;
1945 }
1946
1948 {
1949 WARN(
":failed-NULL buf\n");
1952 return -1;
1953 }
1954
1958 {
1962 }
1964 {
1968 }
1969 else
1970 {
1975
1978 {
1982 return -1;
1983 }
1986 buf->st_mode |= 0222;
1991 buf->st_mtime =
buf->st_ctime =
dw;
1993 TRACE(
":dwFileAttributes = %#lx, mode set to %#x\n",
1995 }
1997 return 0;
1998}
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetFileType(HANDLE hFile)
void msvcrt_set_errno(int err)
static ioinfo * get_ioinfo(int fd)
static void release_ioinfo(ioinfo *info)
GLuint GLuint GLsizei GLenum type
REFIID LPVOID DWORD_PTR dw
static HANDLE PIO_APC_ROUTINE PVOID PIO_STATUS_BLOCK io
#define FILE_ATTRIBUTE_READONLY
NTSYSAPI NTSTATUS NTAPI NtQueryInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, OUT PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
BOOLEAN NTAPI RtlTimeToSecondsSince1970(PLARGE_INTEGER Time, PULONG ElapsedSeconds)
#define FileStandardInformation
◆ _fstat64i32()
Definition at line 2058 of file file.c.
2059{
2062
2067}
static void msvcrt_stat64_to_stat64i32(const struct _stat64 *buf64, struct _stat64i32 *buf)
◆ _stat32()
Definition at line 517 of file stat.cpp.
518{
520}
static int __cdecl common_stat(wchar_t const *const path, StatStruct *const result)
◆ _stat32i64()
◆ _stat64()
Definition at line 3188 of file file.c.
3189{
3192
3197}
static wchar_t * wstrdupa_utf8(const char *str)
static const WCHAR pathW[]
◆ _stat64i32()
◆ _umask()
Definition at line 3486 of file file.c.
3487{
3491 return old_umask;
3492}
Referenced by umask().
◆ _wstat32()
◆ _wstat32i64()
◆ _wstat64()
Definition at line 3276 of file file.c.
3277{
3281 int plen;
3282
3284
3286 while (plen &&
path[plen-1]==
' ')
3287 plen--;
3288
3289 if (plen==2 &&
path[1]==
':')
3290 {
3292 return -1;
3293 }
3294
3295#if _MSVCR_VER<140
3296 if (plen>=2 &&
path[plen-2]!=
':' && (
path[plen-1]==
'\\' ||
path[plen-1]==
'/'))
3297 {
3299 return -1;
3300 }
3301#endif
3302
3304 {
3307 return -1;
3308 }
3309
3311
3312
3315 else
3317
3318
3321 else
3322 {
3324
3325 if (plen > 6 &&
path[plen-4] ==
'.')
3326 {
3331 }
3332 }
3333
3336
3343 buf->st_mtime =
buf->st_ctime =
dw;
3344 TRACE(
"%d %d %#I64x %I64d %I64d %I64d\n",
buf->st_mode,
buf->st_nlink,
3345 buf->st_size,
buf->st_atime,
buf->st_mtime,
buf->st_ctime);
3346 return 0;
3347}
static const WCHAR *const ext[]
BOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
int CDECL _getdrive(void)
static const ULONGLONG WCCMD
static const ULONGLONG WCBAT
static const ULONGLONG WCCOM
static const ULONGLONG WCEXE
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
#define FILE_ATTRIBUTE_DIRECTORY
FILETIME ftLastAccessTime
DWORD WINAPI GetLastError(void)
◆ _wstat64i32()
◆ fstat()
◆ stat()
◆ umask()
Definition at line 221 of file stat.h.
_ACRTIMP int __cdecl _umask(int)