/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access01.c | 11 * Basic test for access(2) using F_OK, R_OK, W_OK and X_OK 45 {FNAME_RWX, R_OK, "R_OK", 0, 3}, 47 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3}, 48 {FNAME_RWX, R_OK|X_OK, "R_OK|X_OK", 0, 3}, 50 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3}, 54 {FNAME_R, R_OK, "R_O [all...] |
H A D | access04.c | 60 {&longpathname, R_OK, ENAMETOOLONG}, 61 {&fname2, R_OK, ENOTDIR}, 62 {&sname1, R_OK, ELOOP},
|
H A D | access02.c | 14 * - check the existence or read/write/execute permissions on a file (mode argument: F_OK/R_OK/W_OK/X_OK) 46 {FNAME_R, R_OK, "R_OK", FNAME_R}, 50 {SNAME_R, R_OK, "R_OK", FNAME_R}, 82 case R_OK: in access_test()
|
H A D | access03.c | 27 {(void *)-1, R_OK, "R_OK"},
|
/third_party/ltp/testcases/kernel/syscalls/faccessat2/ |
H A D | faccessat202.c | 51 {&atcwd_fd, &bad_path, R_OK, 0, EFAULT, "invalid address"}, 52 {&atcwd_fd, &rel_path, R_OK, -1, EINVAL, "invalid flags"}, 54 {&bad_fd, &rel_path, R_OK, 0, EBADF, "invalid fd"}, 55 {&fd, &rel_path, R_OK, 0, ENOTDIR, "fd pointing to file"}, 56 {&atcwd_fd, &rel_path, R_OK, AT_EACCESS, EACCES,
|
H A D | faccessat201.c | 52 TST_EXP_PASS(faccessat2(*tc->fd, *tc->filename, R_OK, tc->flags), in verify_faccessat2() 53 "faccessat2(%d, %s, R_OK, %d)", in verify_faccessat2()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | faccessat.c | 61 * @tc.desc : The test file has read permission and amode is R_OK. 70 int isRead = faccessat(fd, ptr, R_OK, 0); in faccessat_0300() 132 * @tc.desc : The test file has read, write and executable permissions, and amode is R_OK|W_OK|X_Ok. 141 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0700() 149 * @tc.desc : The test file does not have read/write executable permission, and amode is R_OK|W_OK|X_OK. 158 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0800() 166 * @tc.desc : The test file has read permissions whith invalid flag parameter (0), and amode is R_OK. 175 int ret = faccessat(fd, ptr, R_OK, 0); in faccessat_0900() 185 * and amode is R_OK|W_OK|X_OK. 194 int isExecute = faccessat(AT_FDCWD, ptr, R_OK | W_O in faccessat_1000() [all...] |
/third_party/cups-filters/filter/foomatic-rip/ |
H A D | spooler.c | 113 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 117 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 120 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 123 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 126 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 129 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile() 132 if (access(job->ppdfile, R_OK) == 0) in find_ppdfile()
|
/third_party/node/test/parallel/ |
H A D | test-fs-access.js | 68 assert.strictEqual(typeof fs.R_OK, 'number'); 80 fs.access(__filename, fs.R_OK, common.mustCall(function(...args) { 83 fs.promises.access(__filename, fs.R_OK) 86 fs.access(readOnlyFile, fs.R_OK, common.mustCall(function(...args) { 89 fs.promises.access(readOnlyFile, fs.R_OK) 157 const mode = fs.R_OK | fs.W_OK; 164 { [Symbol.toPrimitive]() { return fs.R_OK; } },
|
/third_party/curl/lib/ |
H A D | curl_path.h | 34 # ifndef R_OK 35 # define R_OK 4 macro
|
/third_party/libsnd/src/ |
H A D | sf_unistd.h | 28 #ifndef R_OK 29 #define R_OK 4 /* Test for read permission. */ macro
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | makemanaliases.py | 49 if not os.access(src, os.R_OK): 55 if os.access(alias, os.R_OK):
|
/third_party/lame/test/ |
H A D | lametest.py | 47 status = os.access(name1, os.R_OK) 130 status = os.access(options_file, os.R_OK) 135 status = os.access(input_file, os.R_OK)
|
/third_party/openssl/ohos_lite/ |
H A D | e_os.h | 218 # ifndef R_OK 219 # define R_OK 4 macro
|
/third_party/ltp/lib/ |
H A D | tst_fips.c | 18 if (access(PATH_FIPS, R_OK) == 0) { in tst_fips_enabled()
|
H A D | get_path.c | 47 if (!access(path, R_OK) && !stat(path, &st) && S_ISREG(st.st_mode)) in file_exist()
|
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | private.h | 102 #include "unistd.h" /* for F_OK, R_OK, and other POSIX goodness */ 108 #ifndef R_OK 109 #define R_OK 4 macro 110 #endif /* !defined R_OK */
|
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A D | private.h | 102 #include "unistd.h" /* for F_OK, R_OK, and other POSIX goodness */ 108 #ifndef R_OK 109 #define R_OK 4 macro 110 #endif /* !defined R_OK */
|
/third_party/toybox/toys/pending/ |
H A D | mdev.c | 276 if (!access(dev, R_OK)) make_device(dev); in callback() 293 if (!access("/sys/block", R_OK)) dirtree_read("/sys/block", callback); in mdev_main()
|
/third_party/python/Lib/test/ |
H A D | test_unicode_file.py | 34 self.assertTrue(os.access(filename, os.R_OK)) 37 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
|
/third_party/ltp/testcases/kernel/syscalls/faccessat/ |
H A D | faccessat02.c | 40 TST_EXP_FAIL(faccessat(*tc->fd, TESTFILE, R_OK, 0), in verify_faccessat() 41 tc->exp_errno, "faccessat(%d, TESTFILE, R_OK, 0)", in verify_faccessat()
|
H A D | faccessat01.c | 51 TST_EXP_PASS(faccessat(*tc->fd, *tc->filename, R_OK, 0), in verify_faccessat() 52 "faccessat(%d, %s, R_OK, 0)", in verify_faccessat()
|
/third_party/node/test/fixtures/postject-copy/node_modules/postject/dist/ |
H A D | cli.js | 26 await fs.access(resource, constants.R_OK);
|
/third_party/ltp/testcases/kernel/security/cap_bound/ |
H A D | cap_bounds_r.c | 49 if (access(PROC_CAP_LAST, R_OK) == 0) { in main()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_unistd.cpp | 261 benchmark::DoNotOptimize(access(filename, R_OK)); in Bm_function_Access_read() 457 int mode = F_OK | R_OK | W_OK | X_OK; in Bm_function_Faccessat_Normal() 468 int mode = F_OK | R_OK | W_OK | X_OK; in Bm_function_Faccessat_Nofollow()
|