Lines Matching refs:file

499     let path = tempdir.path().join("file");
536 let path = tempdir.path().join("file");
543 fchownat(Some(dirfd), "file", uid, gid, FchownatFlags::FollowSymlink)
547 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap();
550 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap_err();
624 let file = NamedTempFile::new().unwrap();
625 let path = file.path().to_str().unwrap();
762 let path = tempdir.path().join("file");
779 let path = tempdir.path().join("file");
905 // Create file
908 // Get file descriptor for base directory
913 // Attempt hard link file at relative path
938 // Create file
941 // Get file descriptor for base directory of new file
949 // Attempt hard link file using curent working directory as relative path for old file path
975 // Create file
978 // Get file descriptor for base directory of old file
986 // Attempt hard link file using current working directory as relative path for new file path
1019 // Create file
1022 // Create symlink to file
1025 // Get file descriptor for base directory
1030 // Attempt link symlink of file at relative path
1062 // Create file
1065 // Create symlink to file
1068 // Get file descriptor for base directory
1073 // Attempt link target of symlink of file at relative path
1085 // Check the file type of the new link
1092 // Check the number of hard links to the original file
1106 // Get file descriptor for base directory
1127 // Get file descriptor for base directory
1144 // Create file
1147 // Get file descriptor for base directory
1152 // Attempt unlink file at relative path
1204 // create a temporary file with permissions '-rw-r-----'
1205 let file = tempfile::NamedTempFile::new_in("/var/tmp").unwrap();
1206 let temp_path = file.into_temp_path();
1215 // trying to open the temporary file should fail with EACCES
1227 // open the temporary file with the current thread filesystem UID