Lines Matching refs:tmp
1426 let mut tmp: PosixStatx = PosixStatx::new(); in do_statx() localVariable
1430 tmp.stx_mask |= PosixStatxMask::STATX_BASIC_STATS; in do_statx()
1431 tmp.stx_blksize = metadata.blk_size as u32; in do_statx()
1433 tmp.stx_mode = metadata.mode; in do_statx()
1436 tmp.stx_nlink = metadata.nlinks as u32; in do_statx()
1439 tmp.stx_uid = metadata.uid as u32; in do_statx()
1442 tmp.stx_gid = metadata.gid as u32; in do_statx()
1445 tmp.stx_atime.tv_sec = metadata.atime.tv_sec; in do_statx()
1446 tmp.stx_atime.tv_nsec = metadata.atime.tv_nsec; in do_statx()
1449 tmp.stx_mtime.tv_sec = metadata.ctime.tv_sec; in do_statx()
1450 tmp.stx_mtime.tv_nsec = metadata.ctime.tv_nsec; in do_statx()
1454 tmp.stx_ctime.tv_sec = metadata.mtime.tv_sec; in do_statx()
1455 tmp.stx_ctime.tv_nsec = metadata.mtime.tv_nsec; in do_statx()
1458 tmp.stx_inode = metadata.inode_id.into() as u64; in do_statx()
1461 tmp.stx_size = metadata.size; in do_statx()
1464 tmp.stx_blocks = metadata.blocks as u64; in do_statx()
1469 tmp.stx_btime.tv_sec = metadata.ctime.tv_sec; in do_statx()
1470 tmp.stx_btime.tv_nsec = metadata.ctime.tv_nsec; in do_statx()
1473 tmp.stx_attributes = StxAttributes::STATX_ATTR_APPEND; in do_statx()
1474 tmp.stx_attributes_mask |= in do_statx()
1476 tmp.stx_dev_major = metadata.dev_id as u32; in do_statx()
1477 tmp.stx_dev_minor = metadata.dev_id as u32; // in do_statx()
1478 tmp.stx_rdev_major = metadata.raw_dev.data(); in do_statx()
1479 tmp.stx_rdev_minor = metadata.raw_dev.data(); in do_statx()
1482 tmp.stx_mnt_id = 0; in do_statx()
1485 tmp.stx_dio_mem_align = 0; in do_statx()
1486 tmp.stx_dio_offset_align = 0; in do_statx()
1490 FileType::File => tmp.stx_mode.insert(ModeType::S_IFREG), in do_statx()
1491 FileType::Dir => tmp.stx_mode.insert(ModeType::S_IFDIR), in do_statx()
1492 FileType::BlockDevice => tmp.stx_mode.insert(ModeType::S_IFBLK), in do_statx()
1493 FileType::CharDevice => tmp.stx_mode.insert(ModeType::S_IFCHR), in do_statx()
1494 FileType::SymLink => tmp.stx_mode.insert(ModeType::S_IFLNK), in do_statx()
1495 FileType::Socket => tmp.stx_mode.insert(ModeType::S_IFSOCK), in do_statx()
1496 FileType::Pipe => tmp.stx_mode.insert(ModeType::S_IFIFO), in do_statx()
1497 FileType::KvmDevice => tmp.stx_mode.insert(ModeType::S_IFCHR), in do_statx()
1498 FileType::FramebufferDevice => tmp.stx_mode.insert(ModeType::S_IFCHR), in do_statx()
1501 writer.copy_one_to_user(&tmp, 0)?; in do_statx()