| /openbsd/src/regress/sys/kern/access/ |
| D | access.c | 58 { EACCES, 0, UID_YES, UID_NO, GID_NO, GID_NO, R_OK, w_w_exists }, 59 { EACCES, 0, UID_NO, UID_NO, GID_YES, GID_NO, R_OK, w_w_exists }, 60 { EACCES, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, w_w_exists }, 61 { EACCES, 1, UID_NO, UID_YES, GID_NO, GID_NO, R_OK, w_w_exists }, 62 { EACCES, 1, UID_NO, UID_NO, GID_NO, GID_YES, R_OK, w_w_exists }, 64 { EACCES, 0, UID_YES, UID_NO, GID_NO, GID_NO, R_OK, w_r_exists }, 65 { EACCES, 0, UID_NO, UID_NO, GID_YES, GID_NO, R_OK, r_w_exists }, 66 { EACCES, 1, UID_NO, UID_YES, GID_NO, GID_NO, R_OK, w_r_exists }, 67 { EACCES, 1, UID_NO, UID_NO, GID_NO, GID_YES, R_OK, r_w_exists }, 69 { EACCES, 0, UID_YES, UID_NO, GID_YES, GID_NO, R_OK, w_r_exists }, [all …]
|
| /openbsd/src/regress/sys/kern/unveil/ |
| D | syscalls.c | 434 UV_SHOULD_SUCCEED((access(filename, R_OK) == -1), "access"); in test_parent_dir() 436 UV_SHOULD_SUCCEED((access(filename, R_OK) == -1), "access"); in test_parent_dir() 440 UV_SHOULD_SUCCEED((access("poop", R_OK) == -1), "access"); in test_parent_dir() 448 UV_SHOULD_SUCCEED((access("poop", R_OK) == -1), "access"); in test_parent_dir() 449 UV_SHOULD_SUCCEED((access("../subdir1/poop", R_OK) == -1), "access"); in test_parent_dir() 510 UV_SHOULD_SUCCEED((access(uv_file1, R_OK) == -1), "access"); in test_access() 511 UV_SHOULD_ENOENT((access(uv_file2, R_OK) == -1), "access"); in test_access() 512 UV_SHOULD_ENOENT((access("/etc/passwd", R_OK) == -1), "access"); in test_access() 513 UV_SHOULD_SUCCEED((access(uv_dir1, R_OK) == -1), "access"); in test_access() 514 UV_SHOULD_ENOENT((access(uv_dir2, R_OK) == -1), "access"); in test_access() [all …]
|
| D | access.c | 43 if (access(filename, R_OK) == 0) in main()
|
| /openbsd/src/gnu/lib/libiberty/src/ |
| D | make-temp-file.c | 39 #ifndef R_OK 40 #define R_OK 4 macro 72 && access (dir, R_OK | W_OK | X_OK) == 0) in try_dir()
|
| D | make-relative-prefix.c | 66 #ifndef R_OK 67 #define R_OK 4 macro
|
| /openbsd/src/regress/sys/mfs_noperm/ |
| D | nopermtest.c | 86 EXPECT_ERRNO(access(mnt, R_OK), EACCES); in check_locked() 114 EXPECT_OK(access(".", R_OK | W_OK | X_OK)); in check_unlocked_vroot() 130 EXPECT_OK(access("sub", R_OK | W_OK | X_OK)); in check_unlocked_subdir()
|
| /openbsd/src/gnu/usr.bin/binutils/include/mpw/ |
| D | mpw.h | 78 #ifndef R_OK 79 #define R_OK 4 macro
|
| /openbsd/src/usr.bin/tic/ |
| D | progs.priv.h | 185 #ifndef R_OK 186 #define R_OK 4 /* Test for readable. */ macro
|
| /openbsd/src/gnu/usr.bin/cvs/os2/ |
| D | config.h | 354 #define R_OK 04 macro 357 #define X_OK R_OK /* I think this is right for OS/2. */
|
| /openbsd/src/usr.bin/rdist/ |
| D | rdist.c | 305 if (access("distfile", R_OK) == 0) in opendist() 307 else if (access("Distfile", R_OK) == 0) in opendist() 313 if (access(distfile, R_OK) != 0) in opendist()
|
| /openbsd/src/lib/libcurses/tinfo/ |
| D | access.c | 62 # define ACCESS(FN, MODE) access((FN), (MODE)&(R_OK|W_OK)) 153 result = ACCESS(head, R_OK | W_OK | X_OK); in _nc_access()
|
| D | read_termcap.c | 328 } else if ((_nc_access(db_array[current], R_OK) < 0) in _nc_getent() 919 if (_nc_access(temp, R_OK) == 0) { in _nc_tgetent() 949 && _nc_access(path, R_OK) == 0) { in add_tc() 1130 if (_nc_access(termpaths[i], R_OK) == 0 in _nc_read_termcap_entry()
|
| /openbsd/src/sys/sys/ |
| D | unistd.h | 52 #define R_OK 0x04 /* test for read permission */ macro
|
| /openbsd/src/gnu/gcc/gcc/config/i386/ |
| D | xm-djgpp.h | 63 else if (access (djgpp, R_OK) == 0) \
|
| /openbsd/src/gnu/usr.bin/texinfo/makeinfo/ |
| D | makeinfo.c | 3275 if (access (fullname, R_OK) != 0) in cm_image() 3284 if (access (fullname, R_OK) != 0) in cm_image() 3292 if (access (fullname, R_OK) != 0) { in cm_image() 3297 if (access (fullname, R_OK) != 0) { in cm_image() 3299 if (access (fullname, R_OK) != 0) { in cm_image() 3312 if (pathname == NULL && access (fullname, R_OK) != 0) in cm_image() 3318 if (pathname != NULL && access (pathname, R_OK) != 0) in cm_image() 3383 || access (fullname, R_OK) == 0 in cm_image() 3384 || (pathname != NULL && access (pathname, R_OK) == 0)) in cm_image() 3396 && access (fullname, R_OK) == 0 && !STREQ (fullname, txtname); in cm_image() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/i386/ |
| D | xm-djgpp.h | 72 else if (access (djgpp, R_OK) == 0) \
|
| /openbsd/src/usr.sbin/vmd/ |
| D | config.c | 309 uid, R_OK) == -1) { in config_setvm() 332 uid, R_OK) == -1) { in config_setvm() 350 aflags = R_OK | W_OK; in config_setvm() 375 aflags = R_OK; in config_setvm()
|
| /openbsd/src/bin/ksh/ |
| D | io.c | 333 (((mode & R_OK) && fl != O_RDONLY) || in check_fd() 399 int fd = (mode & R_OK) ? coproc.read : coproc.write; in coproc_getfd()
|
| D | c_sh.c | 203 file = search(cp, search_path, R_OK, &err); in c_dot() 268 if ((fd = coproc_getfd(R_OK, &emsg)) < 0) { in c_read() 282 else if ((fd = check_fd(cp, R_OK, &emsg)) < 0) { in c_read()
|
| /openbsd/src/usr.sbin/acme-client/ |
| D | main.c | 160 if (access(certdir, R_OK) == -1) { in main() 165 if (access(chngdir, R_OK) == -1) { in main()
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/ |
| D | abi_check.cc | 334 if (access(test_file, R_OK) != 0) in main() 340 if (access(baseline_file, R_OK) != 0) in main()
|
| /openbsd/src/gnu/usr.bin/perl/win32/ |
| D | win32.h | 206 #ifndef R_OK 207 # define R_OK 4 macro
|
| /openbsd/src/gnu/usr.bin/cvs/emx/ |
| D | filesubr.c | 157 return isaccessible(file, R_OK); 201 if (mode & R_OK)
|
| /openbsd/src/sbin/reboot/ |
| D | reboot.c | 184 if (access(_PATH_RC, R_OK) != -1) { in main()
|
| /openbsd/src/regress/lib/libc/sys/ |
| D | t_access.c | 47 static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };
|