Home
last modified time | relevance | path

Searched refs:umask (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
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
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
Dmirror-permissions-win.test5 ## to use umask(1). Windows has no umask, so it can be considered
/external/python/cpython2/Lib/distutils/tests/
Dtest_dir_util.py58 umask = os.umask(0o002)
59 os.umask(umask)
62 stat.S_IMODE(os.stat(self.target).st_mode), 0o700 & ~umask)
65 stat.S_IMODE(os.stat(self.target2).st_mode), 0o555 & ~umask)
/external/python/cpython3/Lib/distutils/tests/
Dtest_dir_util.py60 umask = os.umask(0o002)
61 os.umask(umask)
64 stat.S_IMODE(os.stat(self.target).st_mode), 0o700 & ~umask)
67 stat.S_IMODE(os.stat(self.target2).st_mode), 0o555 & ~umask)
/external/libbrillo/brillo/
Dfile_utils_test.cc89 mode_t old_umask = umask(kPermissions777); in TEST_F()
91 umask(old_umask); in TEST_F()
263 const mode_t old_mask = umask(mask); in TEST_F()
268 umask(old_mask); in TEST_F()
285 const mode_t old_mask = umask(mask); in TEST_F()
286 umask(old_mask); in TEST_F()
304 const mode_t old_mask = umask(mask); in TEST_F()
310 umask(old_mask); in TEST_F()
318 const mode_t old_mask = umask(mask); in TEST_F()
324 umask(old_mask); in TEST_F()
[all …]
Dscoped_umask.cc12 saved_umask_ = umask(new_umask); in ScopedUmask()
16 umask(saved_umask_); in ~ScopedUmask()
/external/ltp/testcases/kernel/syscalls/vfork/
Dvfork01.c155 Cumask = umask(0); in main()
161 umask(Cumask); in main()
311 Pumask = umask(0); in setup()
312 umask(Pumask); /* in setup()
/external/selinux/libsemanage/src/
Dsemanage_store.c548 mask = umask(0077); in semanage_create_store()
550 umask(mask); in semanage_create_store()
555 umask(mask); in semanage_create_store()
574 mask = umask(0077); in semanage_create_store()
576 umask(mask); in semanage_create_store()
582 umask(mask); in semanage_create_store()
600 mask = umask(0077); in semanage_create_store()
602 umask(mask); in semanage_create_store()
608 umask(mask); in semanage_create_store()
626 mask = umask(0077); in semanage_create_store()
[all …]
Ddatabase_file.c129 mask = umask(0077); in dbase_file_flush()
131 umask(mask); in dbase_file_flush()
/external/llvm/test/Other/
Dumask.ll4 ; RUN: umask 000
10 ; RUN: umask 002
/external/python/oauth2client/oauth2client/
Dfile.py79 old_umask = os.umask(0o177)
83 os.umask(old_umask)
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/
Dcreate_directory.pass.cpp33 mode_t old_mask = umask(0); in read_umask()
34 umask(old_mask); // reset the mask to the old value. in read_umask()
/external/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/
Dcreate_directory.pass.cpp32 mode_t old_mask = umask(0); in read_umask()
33 umask(old_mask); // reset the mask to the old value. in read_umask()
/external/ipsec-tools/src/racoon/
Dmain.c159 umask(077);
160 if (umask(077) != 077) {
/external/strace/
Dumask.c3 SYS_FUNC(umask) in SYS_FUNC() argument
/external/e2fsprogs/lib/blkid/
Dsave.c101 mode_t save_umask = umask(022); in blkid_flush_cache()
104 umask(save_umask); in blkid_flush_cache()
/external/clang/test/CodeGen/
D2003-11-04-EmptyStruct.c4 struct fs_struct { rwlock_t lock; int umask; }; member
/external/llvm-project/clang/test/CodeGen/
D2003-11-04-EmptyStruct.c4 struct fs_struct { rwlock_t lock; int umask; }; member
/external/strace/tests-m32/
Dumask.c7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/strace/tests/
Dumask.c7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/strace/tests-mx32/
Dumask.c7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/crosvm/devices/src/virtio/fs/
Dpassthrough.rs266 let previous = unsafe { libc::umask(self.old) }; in drop()
280 old: unsafe { libc::umask(mask) }, in set()
503 umask: Mutex<Umask>, field
542 umask: Mutex::new(Umask), in new()
1073 unsafe { libc::umask(0o000) }; in init()
1192 umask: u32, in mkdir()
1198 let mut um = self.umask.lock(); in mkdir()
1199 let _scoped_umask = um.set(umask); in mkdir()
1273 umask: u32, in chromeos_tmpfile()
1285 let mut um = self.umask.lock(); in chromeos_tmpfile()
[all …]
/external/ltp/testcases/kernel/syscalls/setuid/
Dsetuid03.c47 umask(0); in setup()
/external/ltp/testcases/kernel/syscalls/close/
Dclose02.c109 umask(0); in setup()

12345678910>>...12