Symbol: R_OK
bin/csh/exp.c
417
i = !access(short2str(ep), R_OK);
bin/ksh/c_ksh.c
189
if (p && access(p, R_OK) == -1)
bin/ksh/c_sh.c
203
file = search(cp, search_path, R_OK, &err);
bin/ksh/c_sh.c
268
if ((fd = coproc_getfd(R_OK, &emsg)) < 0) {
bin/ksh/c_sh.c
282
else if ((fd = check_fd(cp, R_OK, &emsg)) < 0) {
bin/ksh/c_test.c
228
return test_eaccess(opnd1, R_OK) == 0;
bin/ksh/exec.c
1107
X_OK | ((iop->flag & IORDUP) ? R_OK : W_OK),
bin/ksh/exec.c
865
tp->u.fpath = search(name, fpath, R_OK,
bin/ksh/exec.c
918
(npath = search(name, fpath, R_OK,
bin/ksh/io.c
333
(((mode & R_OK) && fl != O_RDONLY) ||
bin/ksh/io.c
399
int fd = (mode & R_OK) ? coproc.read : coproc.write;
bin/pax/file_subs.c
503
} else if (access(nm, R_OK | W_OK | X_OK) == -1) {
bin/pax/file_subs.c
673
if ((access(name, R_OK | W_OK | X_OK) == -1) &&
bin/test/test.c
429
return access(nm, R_OK) == 0;
games/fortune/fortune/fortune.c
701
if (access(datfile, R_OK) < 0) {
lib/libcurses/base/lib_screen.c
1033
if (_nc_access(file, R_OK) >= 0
lib/libcurses/base/lib_screen.c
976
if (_nc_access(file, R_OK) >= 0
lib/libcurses/curses.priv.h
1326
#ifndef R_OK
lib/libcurses/tinfo/access.c
153
result = ACCESS(head, R_OK | W_OK | X_OK);
lib/libcurses/tinfo/access.c
62
# define ACCESS(FN, MODE) access((FN), (MODE)&(R_OK|W_OK))
lib/libcurses/tinfo/read_entry.c
590
if (_nc_access(filename, R_OK) < 0
lib/libcurses/tinfo/read_termcap.c
1130
if (_nc_access(termpaths[i], R_OK) == 0
lib/libcurses/tinfo/read_termcap.c
328
} else if ((_nc_access(db_array[current], R_OK) < 0)
lib/libcurses/tinfo/read_termcap.c
919
if (_nc_access(temp, R_OK) == 0) {
lib/libcurses/tinfo/read_termcap.c
949
&& _nc_access(path, R_OK) == 0) {
lib/libcurses/tinfo/write_entry.c
209
} else if (_nc_access(path, R_OK | W_OK | X_OK) < 0) {
libexec/ld.so/ldconfig/ldconfig.c
152
if (access(search_dirs[i], R_OK) < 0)
regress/lib/libc/sys/t_access.c
47
static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };
regress/sys/kern/access/access.c
58
{ EACCES, 0, UID_YES, UID_NO, GID_NO, GID_NO, R_OK, w_w_exists },
regress/sys/kern/access/access.c
59
{ EACCES, 0, UID_NO, UID_NO, GID_YES, GID_NO, R_OK, w_w_exists },
regress/sys/kern/access/access.c
60
{ EACCES, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, w_w_exists },
regress/sys/kern/access/access.c
61
{ EACCES, 1, UID_NO, UID_YES, GID_NO, GID_NO, R_OK, w_w_exists },
regress/sys/kern/access/access.c
62
{ EACCES, 1, UID_NO, UID_NO, GID_NO, GID_YES, R_OK, w_w_exists },
regress/sys/kern/access/access.c
64
{ EACCES, 0, UID_YES, UID_NO, GID_NO, GID_NO, R_OK, w_r_exists },
regress/sys/kern/access/access.c
65
{ EACCES, 0, UID_NO, UID_NO, GID_YES, GID_NO, R_OK, r_w_exists },
regress/sys/kern/access/access.c
66
{ EACCES, 1, UID_NO, UID_YES, GID_NO, GID_NO, R_OK, w_r_exists },
regress/sys/kern/access/access.c
67
{ EACCES, 1, UID_NO, UID_NO, GID_NO, GID_YES, R_OK, r_w_exists },
regress/sys/kern/access/access.c
69
{ EACCES, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, w_r_exists },
regress/sys/kern/access/access.c
70
{ EACCES, 1, UID_NO, UID_YES, GID_NO, GID_YES, R_OK, w_r_exists },
regress/sys/kern/access/access.c
71
{ EACCES, 0, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, w_r_exists },
regress/sys/kern/access/access.c
72
{ EACCES, 1, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, w_r_exists },
regress/sys/kern/access/access.c
75
{ 0, 0, UID_YES, UID_NO, GID_NO, GID_NO, R_OK, r_w_exists },
regress/sys/kern/access/access.c
76
{ 0, 0, UID_NO, UID_NO, GID_YES, GID_NO, R_OK, w_r_exists },
regress/sys/kern/access/access.c
77
{ 0, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, r_w_exists },
regress/sys/kern/access/access.c
78
{ 0, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, r_r_exists },
regress/sys/kern/access/access.c
79
{ 0, 1, UID_NO, UID_YES, GID_NO, GID_NO, R_OK, r_w_exists },
regress/sys/kern/access/access.c
80
{ 0, 1, UID_NO, UID_NO, GID_NO, GID_YES, R_OK, w_r_exists },
regress/sys/kern/access/access.c
81
{ 0, 1, UID_NO, UID_YES, GID_NO, GID_YES, R_OK, r_w_exists },
regress/sys/kern/access/access.c
82
{ 0, 1, UID_NO, UID_YES, GID_NO, GID_YES, R_OK, r_r_exists },
regress/sys/kern/access/access.c
84
{ 0, 0, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, r_w_exists },
regress/sys/kern/access/access.c
85
{ 0, 0, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, r_r_exists },
regress/sys/kern/access/access.c
86
{ 0, 1, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, r_w_exists },
regress/sys/kern/access/access.c
87
{ 0, 1, UID_YES, UID_YES, GID_YES, GID_YES, R_OK, r_r_exists },
regress/sys/kern/unveil/access.c
43
if (access(filename, R_OK) == 0)
regress/sys/kern/unveil/syscalls.c
434
UV_SHOULD_SUCCEED((access(filename, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
436
UV_SHOULD_SUCCEED((access(filename, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
440
UV_SHOULD_SUCCEED((access("poop", R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
448
UV_SHOULD_SUCCEED((access("poop", R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
449
UV_SHOULD_SUCCEED((access("../subdir1/poop", R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
510
UV_SHOULD_SUCCEED((access(uv_file1, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
511
UV_SHOULD_ENOENT((access(uv_file2, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
512
UV_SHOULD_ENOENT((access("/etc/passwd", R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
513
UV_SHOULD_SUCCEED((access(uv_dir1, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
514
UV_SHOULD_ENOENT((access(uv_dir2, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
515
UV_SHOULD_ENOENT((access("/", R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
519
UV_SHOULD_SUCCEED((access(uv_file1, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
520
UV_SHOULD_ENOENT((access(uv_file2, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
521
UV_SHOULD_SUCCEED((access(uv_dir1, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
522
UV_SHOULD_ENOENT((access(uv_dir2, R_OK) == -1), "access");
regress/sys/kern/unveil/syscalls.c
523
UV_SHOULD_ENOENT((access("/", R_OK) == -1), "access");
regress/sys/mfs_noperm/nopermtest.c
114
EXPECT_OK(access(".", R_OK | W_OK | X_OK));
regress/sys/mfs_noperm/nopermtest.c
130
EXPECT_OK(access("sub", R_OK | W_OK | X_OK));
regress/sys/mfs_noperm/nopermtest.c
86
EXPECT_ERRNO(access(mnt, R_OK), EACCES);
sbin/init/init.c
1325
if (access(_PATH_RUNCOM, R_OK) != -1) {
sbin/reboot/reboot.c
184
if (access(_PATH_RC, R_OK) != -1) {
sbin/shutdown/shutdown.c
454
if (access(_PATH_RC, R_OK) != -1) {
sys/kern/vfs_syscalls.c
2011
if (amode & ~(R_OK | W_OK | X_OK))
sys/kern/vfs_syscalls.c
2034
if (amode & R_OK)
usr.bin/mandoc/mansearch.c
188
mpage->file, R_OK) == -1) {
usr.bin/mg/buffer.c
971
if (access(curbp->b_fname, F_OK|R_OK) != 0) {
usr.bin/mg/dired.c
948
if ((access(dname, R_OK | X_OK)) == -1) {
usr.bin/rdist/docmd.c
674
if (access(name, R_OK) == -1 || stat(name, &stb) == -1) {
usr.bin/rdist/rdist.c
305
if (access("distfile", R_OK) == 0)
usr.bin/rdist/rdist.c
307
else if (access("Distfile", R_OK) == 0)
usr.bin/rdist/rdist.c
313
if (access(distfile, R_OK) != 0)
usr.bin/tic/progs.priv.h
185
#ifndef R_OK
usr.bin/tic/tic.c
597
|| access(result, R_OK | W_OK) != 0) {
usr.bin/tic/tic.c
604
|| access(result, R_OK | W_OK | X_OK) != 0) {
usr.bin/tic/tic.c
620
&& access(result, R_OK | W_OK | X_OK) == 0) {
usr.sbin/acme-client/main.c
159
if (access(certdir, R_OK) == -1) {
usr.sbin/acme-client/main.c
164
if (access(chngdir, R_OK) == -1) {
usr.sbin/apmd/apmd.c
733
if (access(file, X_OK|R_OK)) {
usr.sbin/config/mkmakefile.c
213
if (access(source, R_OK) == 0) {
usr.sbin/hotplugd/hotplugd.c
154
if (access(file, X_OK | R_OK) == -1) {
usr.sbin/httpd/server_http.c
1556
if ((ret = faccessat(rootfd, path, R_OK, 0)) != -1)
usr.sbin/installboot/efi_installboot.c
409
if (access(src, R_OK) == 0) {
usr.sbin/ocspcheck/ocspcheck.c
613
if (access(X509_get_default_cert_file(), R_OK) == 0)
usr.sbin/vmd/config.c
293
uid, R_OK) == -1) {
usr.sbin/vmd/config.c
316
uid, R_OK) == -1) {
usr.sbin/vmd/config.c
334
aflags = R_OK | W_OK;
usr.sbin/vmd/config.c
379
aflags = R_OK;
usr.sbin/vmd/vmd.c
1573
mode |= amode & R_OK ? S_IROTH : 0;
usr.sbin/vmd/vmd.c
1579
mode |= amode & R_OK ? S_IRUSR : 0;
usr.sbin/vmd/vmd.c
1585
mode |= amode & R_OK ? S_IRGRP : 0;