Home
last modified time | relevance | path

Searched refs:Perms (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFileSystem.h156 perms Perms = perms_not_known; variable
164 basic_file_status(file_type Type, perms Perms, time_t ATime, in basic_file_status() argument
170 fs_st_size(Size), Type(Type), Perms(Perms) {} in basic_file_status()
172 basic_file_status(file_type Type, perms Perms, uint32_t LastAccessTimeHigh, in basic_file_status() argument
180 FileSizeLow(FileSizeLow), Type(Type), Perms(Perms) {} in basic_file_status()
185 perms permissions() const { return Perms; } in permissions()
222 void permissions(perms p) { Perms = p; } in permissions()
250 : basic_file_status(Type, Perms, ATime, ATimeNSec, MTime, MTimeNSec, in file_status()
254 file_status(file_type Type, perms Perms, uint32_t LinkCount, in file_status() argument
307 perms Perms = owner_all | group_all);
[all …]
H A DVirtualFileSystem.h56 llvm::sys::fs::perms Perms; variable
78 llvm::sys::fs::perms Perms);
93 llvm::sys::fs::perms getPermissions() const { return Perms; } in getPermissions()
476 llvm::sys::fs::perms Perms; member
515 Optional<llvm::sys::fs::perms> Perms, MakeNodeFn MakeNode);
539 Optional<llvm::sys::fs::perms> Perms = None);
567 Optional<llvm::sys::fs::perms> Perms = None);
580 Optional<llvm::sys::fs::perms> Perms = None);
/llvm-project-15.0.7/llvm/lib/Object/
H A DArchiveWriter.cpp110 M.Perms = AccessModeOrErr.get(); in getOldMember()
149 M.Perms = Status.permissions(); in getFile()
196 unsigned UID, unsigned GID, unsigned Perms, uint64_t Size) { in printRestOfMemberHeader() argument
204 printWithSpacePadding(Out, format("%o", Perms), 8); in printRestOfMemberHeader()
212 unsigned UID, unsigned GID, unsigned Perms, in printGNUSmallMemberHeader() argument
215 printRestOfMemberHeader(Out, ModTime, UID, GID, Perms, Size); in printGNUSmallMemberHeader()
227 printRestOfMemberHeader(Out, ModTime, UID, GID, Perms, in printBSDMemberHeader()
249 printWithSpacePadding(Out, format("%o", Perms), 12); // Permission in printBigArchiveMemberHeader()
285 M.Perms, Size); in printMemberHeader()
288 M.Perms, Size); in printMemberHeader()
[all …]
/llvm-project-15.0.7/lldb/unittests/Host/
H A DFileSystemTest.cpp135 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addRegularFile() argument
138 sys::fs::file_type::regular_file, Perms); in addRegularFile()
142 void addDirectory(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addDirectory() argument
145 sys::fs::file_type::directory_file, Perms); in addDirectory()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DArchiveWriter.h24 unsigned UID = 0, GID = 0, Perms = 0644; member
/llvm-project-15.0.7/llvm/lib/Support/
H A DVirtualFileSystem.cpp67 Type(Status.type()), Perms(Status.permissions()) {} in Status()
71 perms Perms) in Status() argument
73 Size(Size), Type(Type), Perms(Perms) {} in Status()
798 Group, Buffer ? Buffer->getBufferSize() : 0, Type, Perms); in makeStatus()
820 Optional<llvm::sys::fs::perms> Perms, in addFile() argument
841 const auto ResolvedPerms = Perms.value_or(sys::fs::all_all); in addFile()
897 Optional<llvm::sys::fs::perms> Perms) { in addFile() argument
899 Perms, in addFile()
915 Optional<llvm::sys::fs::perms> Perms) { in addFileNoOwn() argument
918 std::move(Perms), in addFileNoOwn()
[all …]
H A DPath.cpp968 perms Perms) { in create_directories() argument
973 std::error_code EC = create_directory(P, IgnoreExisting, Perms); in create_directories()
985 if ((EC = create_directories(Parent, IgnoreExisting, Perms))) in create_directories()
988 return create_directory(P, IgnoreExisting, Perms); in create_directories()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DPath.cpp2071 ErrorOr<fs::perms> Perms = fs::getPermissions(TempPath); in TEST_F() local
2072 ASSERT_TRUE(!!Perms); in TEST_F()
2077 Perms = fs::getPermissions(TempPath); in TEST_F()
2078 ASSERT_TRUE(!!Perms); in TEST_F()
2079 EXPECT_EQ(Perms.get(), AllRWE) << "Should have ignored umask"; in TEST_F()
2083 Perms = fs::getPermissions(TempPath); in TEST_F()
2084 ASSERT_TRUE(!!Perms); in TEST_F()
2085 EXPECT_EQ(Perms.get(), static_cast<fs::perms>(0755)) in TEST_F()
2092 Perms = fs::getPermissions(TempPath); in TEST_F()
2093 ASSERT_TRUE(!!Perms); in TEST_F()
[all …]
H A DVirtualFileSystemTest.cpp154 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addRegularFile() argument
157 sys::fs::file_type::regular_file, Perms); in addRegularFile()
161 void addDirectory(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addDirectory() argument
164 sys::fs::file_type::directory_file, Perms); in addDirectory()
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DPath.inc413 perms Perms) {
417 if (::mkdir(p.begin(), Perms) == -1) {
744 perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
745 Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev,
/llvm-project-15.0.7/lldb/source/Target/
H A DPlatform.cpp664 auto Perms = static_cast<llvm::sys::fs::perms>(file_permissions); in SetFilePermissions() local
665 return llvm::sys::fs::setPermissions(file_spec.GetPath(), Perms); in SetFilePermissions()
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DPath.inc241 perms Perms) {