9#define ALL_S_IREAD (_S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6))
10#define ALL_S_IWRITE (_S_IWRITE | (_S_IWRITE >> 3) | (_S_IWRITE >> 6))
11#define ALL_S_IEXEC (_S_IEXEC | (_S_IEXEC >> 3) | (_S_IEXEC >> 6))
14#define TCHAR4 ULONGLONG
19#define TCSIZE_BITS (sizeof(_TCHAR)*8)
21#define EXE (((TCHAR4)('e')<<(2*TCSIZE_BITS)) | ((TCHAR4)('x')<<TCSIZE_BITS) | ((TCHAR4)('e')))
22#define BAT (((TCHAR4)('b')<<(2*TCSIZE_BITS)) | ((TCHAR4)('a')<<TCSIZE_BITS) | ((TCHAR4)('t')))
23#define CMD (((TCHAR4)('c')<<(2*TCSIZE_BITS)) | ((TCHAR4)('m')<<TCSIZE_BITS) | ((TCHAR4)('d')))
24#define COM (((TCHAR4)('c')<<(2*TCSIZE_BITS)) | ((TCHAR4)('o')<<TCSIZE_BITS) | ((TCHAR4)('m')))
36 while (plen &&
path[plen-1]==
__T(
' '))
39 if (plen && (plen<2 ||
path[plen-2]!=
__T(
':')) &&
72 if (plen > 6 &&
path[plen-4] ==
__T(
'.'))
94 TRACE(
"%d %d 0x%08x%08x %d %d %d\n",
buf->st_mode,
buf->st_nlink,
95 (
int)(
buf->st_size >> 32),(
int)
buf->st_size,
96 (
int)
buf->st_atime,(
int)
buf->st_mtime,(
int)
buf->st_ctime);
118 WARN(
":failed-NULL buf\n");
124 memset(&hfi, 0,
sizeof(hfi));
_Check_return_ _CRTIMP int __cdecl _getdrive(void)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
static const WCHAR *const ext[]
BOOL WINAPI GetFileInformationByHandle(HANDLE hFile, LPBY_HANDLE_FILE_INFORMATION lpFileInformation)
DWORD WINAPI GetFileType(HANDLE hFile)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLuint GLuint GLsizei GLenum type
GLenum GLuint GLenum GLsizei const GLchar * buf
BOOLEAN NTAPI RtlTimeToSecondsSince1970(PLARGE_INTEGER Time, PULONG ElapsedSeconds)
REFIID LPVOID DWORD_PTR dw
#define FILE_ATTRIBUTE_READONLY
#define FILE_ATTRIBUTE_DIRECTORY
void _dosmaperr(unsigned long oserrcode)
_CRTIMP int *__cdecl _errno(void)
ioinfo * get_ioinfo(int fd)
void release_ioinfo(ioinfo *info)
int CDECL _fstat64(int fd, struct __stat64 *buf)
FILETIME ftLastAccessTime
#define GetFileAttributesEx
DWORD WINAPI GetLastError(void)