Home
last modified time | relevance | path

Searched refs:R_OK (Results 1 – 25 of 101) sorted by relevance

12345

/openbsd/src/regress/sys/kern/access/
Daccess.c58 { 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/
Dsyscalls.c434 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 …]
Daccess.c43 if (access(filename, R_OK) == 0) in main()
/openbsd/src/gnu/lib/libiberty/src/
Dmake-temp-file.c39 #ifndef R_OK
40 #define R_OK 4 macro
72 && access (dir, R_OK | W_OK | X_OK) == 0) in try_dir()
Dmake-relative-prefix.c66 #ifndef R_OK
67 #define R_OK 4 macro
/openbsd/src/regress/sys/mfs_noperm/
Dnopermtest.c86 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/
Dmpw.h78 #ifndef R_OK
79 #define R_OK 4 macro
/openbsd/src/usr.bin/tic/
Dprogs.priv.h185 #ifndef R_OK
186 #define R_OK 4 /* Test for readable. */ macro
/openbsd/src/gnu/usr.bin/cvs/os2/
Dconfig.h354 #define R_OK 04 macro
357 #define X_OK R_OK /* I think this is right for OS/2. */
/openbsd/src/usr.bin/rdist/
Drdist.c305 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/
Daccess.c62 # define ACCESS(FN, MODE) access((FN), (MODE)&(R_OK|W_OK))
153 result = ACCESS(head, R_OK | W_OK | X_OK); in _nc_access()
Dread_termcap.c328 } 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/
Dunistd.h52 #define R_OK 0x04 /* test for read permission */ macro
/openbsd/src/gnu/gcc/gcc/config/i386/
Dxm-djgpp.h63 else if (access (djgpp, R_OK) == 0) \
/openbsd/src/gnu/usr.bin/texinfo/makeinfo/
Dmakeinfo.c3275 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/
Dxm-djgpp.h72 else if (access (djgpp, R_OK) == 0) \
/openbsd/src/usr.sbin/vmd/
Dconfig.c309 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/
Dio.c333 (((mode & R_OK) && fl != O_RDONLY) || in check_fd()
399 int fd = (mode & R_OK) ? coproc.read : coproc.write; in coproc_getfd()
Dc_sh.c203 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/
Dmain.c160 if (access(certdir, R_OK) == -1) { in main()
165 if (access(chngdir, R_OK) == -1) { in main()
/openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/
Dabi_check.cc334 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/
Dwin32.h206 #ifndef R_OK
207 # define R_OK 4 macro
/openbsd/src/gnu/usr.bin/cvs/emx/
Dfilesubr.c157 return isaccessible(file, R_OK);
201 if (mode & R_OK)
/openbsd/src/sbin/reboot/
Dreboot.c184 if (access(_PATH_RC, R_OK) != -1) { in main()
/openbsd/src/regress/lib/libc/sys/
Dt_access.c47 static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };

12345