Lines Matching defs:info
190 req->fs.info.new_pathw = NULL;
224 req->fs.info.new_pathw = (WCHAR*) pos;
227 req->fs.info.new_pathw = NULL;
451 int flags = req->fs.info.file_flags;
540 if (!((req->fs.info.mode & ~current_umask) & _S_IWRITE)) {
769 if (req->fs.info.offset == -1) {
772 pos.QuadPart = req->fs.info.offset;
782 for (index = 0; index < req->fs.info.nbufs; ++index) {
783 read_size += req->fs.info.bufs[index].len;
808 index < req->fs.info.nbufs && done_read < read_size;
810 size_t this_read_size = MIN(req->fs.info.bufs[index].len,
816 memcpy(req->fs.info.bufs[index].base,
837 if (req->fs.info.offset == -1) {
848 int64_t offset = req->fs.info.offset;
900 req->fs.info.bufs[index].base,
901 req->fs.info.bufs[index].len,
906 } while (result && index < req->fs.info.nbufs);
952 for (index = 0; index < req->fs.info.nbufs; ++index) {
953 write_size += req->fs.info.bufs[index].len;
963 } else if (req->fs.info.offset == -1) {
966 pos.QuadPart = req->fs.info.offset;
1010 for (index = 0; index < req->fs.info.nbufs; ++index) {
1016 req->fs.info.bufs[index].base,
1017 req->fs.info.bufs[index].len);
1027 done_write += req->fs.info.bufs[index].len;
1041 if (req->fs.info.offset == -1) {
1054 int64_t offset = req->fs.info.offset;
1105 req->fs.info.bufs[index].base,
1106 req->fs.info.bufs[index].len,
1111 } while (result && index < req->fs.info.nbufs);
1142 BY_HANDLE_FILE_INFORMATION info;
1160 if (!GetFileInformationByHandle(handle, &info)) {
1166 if (info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
1172 if (!(info.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
1190 if (info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) {
1194 basic.FileAttributes = (info.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY) |
1426 FILE_DIRECTORY_INFORMATION* info;
1434 info = (FILE_DIRECTORY_INFORMATION*) position;
1437 next_entry_offset = info->NextEntryOffset;
1440 wchar_len = info->FileNameLength / sizeof info->FileName[0];
1446 while (wchar_len > 0 && info->FileName[wchar_len - 1] == L'\0')
1451 if (wchar_len == 1 && info->FileName[0] == L'.')
1453 if (wchar_len == 2 && info->FileName[0] == L'.' &&
1454 info->FileName[1] == L'.')
1459 CP_UTF8, 0, &info->FileName[0], wchar_len, NULL, 0, NULL, NULL);
1490 &info->FileName[0],
1502 if (info->FileAttributes & FILE_ATTRIBUTE_DEVICE)
1504 else if (info->FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
1506 else if (info->FileAttributes & FILE_ATTRIBUTE_DIRECTORY)
1546 req->fs.info.nbufs = 0;
1954 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) {
2011 eof_info.EndOfFile.QuadPart = req->fs.info.offset;
2070 flags = req->fs.info.file_flags;
2079 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) {
2090 fs__stat_impl_from_path(req->fs.info.new_pathw, 0, &new_statbuf) != 0) {
2102 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out;
2103 size_t length = req->fs.info.bufsml[0].len;
2104 int64_t offset = req->fs.info.offset;
2163 if (!(req->fs.info.mode & W_OK) ||
2175 int result = _wchmod(req->file.pathw, req->fs.info.mode);
2230 if (req->fs.info.mode & _S_IWRITE) {
2371 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL);
2448 /* Set the info about the substitute name */
2477 /* Set the info about the print name */
2490 /* Put general info in the data buffer */
2556 new_pathw = req->fs.info.new_pathw;
2558 if (req->fs.info.file_flags & UV_FS_SYMLINK_JUNCTION) {
2563 if (req->fs.info.file_flags & UV_FS_SYMLINK_DIR)
2876 if (req->fs.info.bufs != req->fs.info.bufsml)
2877 uv__free(req->fs.info.bufs);
2881 req->fs.info.new_pathw = NULL;
2882 req->fs.info.bufs = NULL;
2900 req->fs.info.file_flags = flags;
2901 req->fs.info.mode = mode;
2929 req->fs.info.nbufs = nbufs;
2930 req->fs.info.bufs = req->fs.info.bufsml;
2931 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml))
2932 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs));
2934 if (req->fs.info.bufs == NULL) {
2939 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs));
2941 req->fs.info.offset = offset;
2962 req->fs.info.nbufs = nbufs;
2963 req->fs.info.bufs = req->fs.info.bufsml;
2964 if (nbufs > ARRAY_SIZE(req->fs.info.bufsml))
2965 req->fs.info.bufs = uv__malloc(nbufs * sizeof(*bufs));
2967 if (req->fs.info.bufs == NULL) {
2972 memcpy(req->fs.info.bufs, bufs, nbufs * sizeof(*bufs));
2974 req->fs.info.offset = offset;
3005 req->fs.info.mode = mode;
3069 req->fs.info.file_flags = flags;
3144 req->fs.info.file_flags = flags;
3290 req->fs.info.offset = offset;
3318 req->fs.info.file_flags = flags;
3327 req->fs.info.fd_out = fd_out;
3328 req->fs.info.offset = in_offset;
3329 req->fs.info.bufsml[0].len = length;
3348 req->fs.info.mode = flags;
3364 req->fs.info.mode = mode;
3373 req->fs.info.mode = mode;