Home
last modified time | relevance | path

Searched full:umask (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
H A Drespect-umask.test1 ## This tests that the umask is respected when
4 ## Windows has no umask so this test makes no sense, nor would
5 ## it work because there is no umask(1) in a Windows environment
20 # RUN: umask 0022
25 # RUN: umask 0177
29 # RUN: umask 0122
H A Dmirror-permissions-unix.test4 ## The Unix version of this test must use umask(1) because
5 ## llvm-objcopy respects the umask in setting output permissions.
6 ## Setting the umask to 0 ensures deterministic permissions across
19 ## Set umask to be permissive of all permissions,
21 # RUN: umask 0
52 ## Ignore umask if the output filename is the same as the input filename.
53 # RUN: umask 022
H A Dmirror-permissions-win.test5 ## to use umask(1). Windows has no umask, so it can be considered
/llvm-project/llvm/test/tools/llvm-dwarfutil/ELF/X86/
H A Dmirror-permissions-unix.test1 ## The Unix version of this test must use umask(1) because
2 ## llvm-dwarfutil respects the umask in setting output permissions.
3 ## Setting the umask to 0 ensures deterministic permissions across
16 ## Set umask to be permissive of all permissions,
18 # RUN: umask 0
/llvm-project/bolt/test/
H A Dpermission.test2 # system's umask.
5 # %t.bolt` and `umask` commands (both results are displayed in octal), and
11 RUN: echo $(( 8#$(stat -c %a %t.bolt) & 8#$(umask) )) | FileCheck %s
/llvm-project/llvm/test/tools/llvm-readobj/ELF/
H A Dnote-freebsd-core.test58 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_UMASK (umask data)
105 # LLVM-NEXT: Type: NT_PROCSTAT_UMASK (umask data)
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/
H A Dcreate_directory.pass.cpp37 auto old_mask = umask(0); // int on Windows, mode_t on POSIX. in read_umask()
38 umask(old_mask); // reset the mask to the old value. in read_umask()
/llvm-project/clang/test/CodeGen/
H A D2003-11-04-EmptyStruct.c4 struct fs_struct { rwlock_t lock; int umask; }; member
/llvm-project/lldb/test/API/functionalities/postmortem/minidump-new/
H A Dlinux-x86_64_null_signal.yaml22 Umask: 0002
/llvm-project/llvm/utils/release/
H A Dexport.sh183 # Make sure umask is not overly restrictive.
184 umask 0022
/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-set-dir-mode.c32 const unsigned Expected = ~umask(0) & Mode; in test()
/llvm-project/llvm/unittests/Support/
H A DPath.cpp1008 // Set a 0000 umask so that we can test our directory permissions. in TEST_F()
1009 mode_t OldUmask = ::umask(0000); in TEST_F()
1023 // Restore umask to be safe. in TEST_F()
1024 ::umask(OldUmask); in TEST_F()
2107 unsigned OldMask = ::umask(0022); in TEST_F()
2110 << "getUmask() didn't return previously set umask()"; in TEST_F()
2111 EXPECT_EQ(::umask(OldMask), mode_t(0022U))
2112 << "getUmask() may have changed umask()"; in TEST_F()
2118 unsigned OldMask = ::umask(0022); in TEST_F()
2130 EXPECT_EQ(Perms.get(), AllRWE) << "Should have ignored umask b in TEST_F()
[all...]
H A Draw_ostream_test.cpp577 // Set umask to be permissive of all permissions. in TEST()
578 unsigned OldMask = ::umask(0); in TEST()
596 ::umask(OldMask); in TEST()
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dsignal-handler.rst87 ``times``, ``umask``, ``uname``, ``unlink``, ``unlinkat``, ``utime``,
/llvm-project/lldb/test/API/tools/lldb-server/
H A DTestGdbRemotePlatformFile.py369 old_umask = os.umask(0o22)
373 os.umask(old_umask)
/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc768 // Chose arbitary new mask and reset the umask to the old mask.
769 // umask(2) never fails so ignore the return of the second call.
770 unsigned Mask = ::umask(0);
771 (void)::umask(Mask);
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DSignalHandlerCheck.cpp187 "umask",
/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h646 /// @returns Mask reported by umask(2)
647 /// @note There is no umask on Windows. This function returns 0 always
649 /// umask(2) never fails. It is not thread safe.
/llvm-project/llvm/cmake/
H A Dconfig.guess111 …{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp…
112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
113 …{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp director…
/llvm-project/clang/include/clang/AST/
H A DType.h482 unsigned getCVRUQualifiers() const { return Mask & (CVRMask | UMask); }
500 assert(!(mask & ~CVRMask & ~UMask) && "bitmask contains non-CVRU bits");
504 bool hasUnaligned() const { return Mask & UMask; }
506 Mask = (Mask & ~UMask) | (flag ? UMask : 0);
508 void removeUnaligned() { Mask &= ~UMask; }
509 void addUnaligned() { Mask |= UMask; }
806 static constexpr uint64_t UMask = 0x8;
813 ~(CVRMask | UMask | GCAttrMask | LifetimeMask);
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc2275 PRE_SYSCALL(umask)(long mask) {}
2277 POST_SYSCALL(umask)(long res, long mask) {}
H A Dsanitizer_syscalls_netbsd.inc728 PRE_SYSCALL(umask)(long long newmask_) { /* Nothing to do */ }
729 POST_SYSCALL(umask)(long long res, long long newmask_) { /* Nothing to do */ }
/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4717 uint64_t UMask = SMask; in reassociationCanBreakAddressingModePattern()
4718 UMask |= maskTrailingOnes<uint64_t>(ShrAmt); in reassociationCanBreakAddressingModePattern()
4719 UMask &= maskTrailingOnes<uint64_t>(Size); in reassociationCanBreakAddressingModePattern()
4720 if (!isMask_64(UMask)) in reassociationCanBreakAddressingModePattern()
4725 const int64_t Width = llvm::countr_one(UMask) - ShrAmt; in reassociationCanBreakAddressingModePattern()
4647 uint64_t UMask = SMask; matchBitfieldExtractFromShrAnd() local
/llvm-project/compiler-rt/lib/dfsan/
H A Dlibc_ubuntu1404_abilist.txt3182 fun:umask=uninstrumented
/llvm-project/compiler-rt/utils/
H A Dgenerate_netbsd_syscalls.awk1084 } else if (syscall == "umask") {

12