Lines Matching refs:fd
78 void DPrintf(fd_t fd, const std::string &buffer)
80 LOG_ECMA(DEBUG) << "Unsupport dprintf fd(" << fd << ") in windows, buffer:" << buffer;
83 void FSync(fd_t fd)
85 LOG_ECMA(DEBUG) << "Unsupport fsync fd(" << fd << ") in windows";
88 void Close(fd_t fd)
90 CloseHandle(fd);
98 fd_t fd = CreateFile(fileName, flag, 0, nullptr, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);
99 if (fd == INVALID_FD) {
105 if (!GetFileSizeEx(fd, &fileSize)) {
106 CloseHandle(fd);
112 CloseHandle(fd);
118 fd_t extra = CreateFileMapping(fd, NULL, prot, size >> 32, size & 0xffffffff, nullptr);
120 CloseHandle(fd);
127 CloseHandle(fd);