O_RDONLY          518 daemons/pacemakerd/pcmkd_subdaemons.c         pcmk__open_devnull(O_RDONLY);   // stdin (fd 0)
O_RDONLY          121 lib/common/pid.c     fd = open(filename, O_RDONLY);
O_RDONLY           63 lib/common/procfs.c     fd = open(procpath, O_RDONLY);
O_RDONLY          305 lib/common/utils.c     pcmk__open_devnull(O_RDONLY);   // stdin (fd 0)
O_RDONLY           91 maint/gnulib/lib/chown.c     int fd = open (file, O_RDONLY | open_flags);
O_RDONLY           55 maint/gnulib/lib/copy-file.c   src_fd = open (src_filename, O_RDONLY | O_BINARY | O_CLOEXEC);
O_RDONLY           74 maint/gnulib/lib/dup.c         dupfd = open (path, O_RDONLY);
O_RDONLY          116 maint/gnulib/lib/dup2.c   tempfd = open ("NUL", O_RDONLY);
O_RDONLY          128 maint/gnulib/lib/dup2.c       return open(path, O_RDONLY);
O_RDONLY          188 maint/gnulib/lib/execute.c        || (nullinfd = open ("NUL", O_RDONLY, 0)) >= 0)
O_RDONLY          278 maint/gnulib/lib/execute.c                                                         "/dev/null", O_RDONLY,
O_RDONLY          310 maint/gnulib/lib/fcntl.in.h # define O_EXEC O_RDONLY /* This is often close enough in older systems.  */
O_RDONLY          367 maint/gnulib/lib/fcntl.in.h # define O_SEARCH O_RDONLY /* This is often close enough in older systems.  */
O_RDONLY          378 maint/gnulib/lib/fcntl.in.h #if ~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
O_RDONLY          380 maint/gnulib/lib/fcntl.in.h # define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
O_RDONLY           81 maint/gnulib/lib/fopen.c             open_direction = O_RDONLY;
O_RDONLY          173 maint/gnulib/lib/fopen.c         if (open_direction != O_RDONLY)
O_RDONLY           62 maint/gnulib/lib/freadable.c           return (flags == O_RDONLY || flags == O_RDWR);
O_RDONLY           36 maint/gnulib/lib/freopen-safer.c   int value = open ("/dev/null", O_RDONLY);
O_RDONLY           78 maint/gnulib/lib/freopen.c           int nullfd = open (null_device, O_RDONLY | O_CLOEXEC);
O_RDONLY          179 maint/gnulib/lib/get-rusage-as.c   int fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666);
O_RDONLY           83 maint/gnulib/lib/get_ppid_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          124 maint/gnulib/lib/get_ppid_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          161 maint/gnulib/lib/get_ppid_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          199 maint/gnulib/lib/get_ppid_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          298 maint/gnulib/lib/get_ppid_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          114 maint/gnulib/lib/get_progname_of.c     fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          167 maint/gnulib/lib/get_progname_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          232 maint/gnulib/lib/get_progname_of.c     fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          393 maint/gnulib/lib/get_progname_of.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          276 maint/gnulib/lib/getcwd.c       fd = __openat64 (fd, "..", O_RDONLY);
O_RDONLY          515 maint/gnulib/lib/getloadavg.c   fd = open (LINUX_LDAV_FILE, O_RDONLY | O_CLOEXEC);
O_RDONLY          571 maint/gnulib/lib/getloadavg.c   int fd = open (NETBSD_LDAV_FILE, O_RDONLY | O_CLOEXEC);
O_RDONLY          879 maint/gnulib/lib/getloadavg.c       int fd = open ("/dev/kmem", O_RDONLY | O_CLOEXEC);
O_RDONLY          888 maint/gnulib/lib/getloadavg.c       kd = kvm_open (0, 0, 0, O_RDONLY, 0);
O_RDONLY          236 maint/gnulib/lib/getprogname.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          262 maint/gnulib/lib/getprogname.c   fd = open (buf, O_RDONLY);
O_RDONLY          177 maint/gnulib/lib/getrandom.c       int oflags = (O_RDONLY + O_CLOEXEC
O_RDONLY           71 maint/gnulib/lib/getumask.c     int fd = open ("/proc/self/status", O_RDONLY);
O_RDONLY          604 maint/gnulib/lib/javacomp.c   fd = open (compiled_file_name, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
O_RDONLY          916 maint/gnulib/lib/mountlist.c     lockfd = open (MNTTAB_LOCK, O_RDONLY | O_CLOEXEC);
O_RDONLY          158 maint/gnulib/lib/open.c       && ((flags & O_ACCMODE) == O_RDONLY
O_RDONLY          159 maint/gnulib/lib/open.c           || (O_SEARCH != O_RDONLY && (flags & O_ACCMODE) == O_SEARCH)))
O_RDONLY           71 maint/gnulib/lib/opendir.c     int fd = open (dir_name, O_RDONLY);
O_RDONLY           38 maint/gnulib/lib/opendirat.c   int open_flags = (O_RDONLY | O_CLOEXEC | O_DIRECTORY | O_NOCTTY
O_RDONLY          135 maint/gnulib/lib/pagealign_alloc.c       fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666);
O_RDONLY           42 maint/gnulib/lib/popen-safer.c   int fd = open ("/dev/null", O_RDONLY | O_CLOEXEC);
O_RDONLY           80 maint/gnulib/lib/popen.c       if (open ("/dev/null", O_RDONLY) != STDIN_FILENO
O_RDONLY           87 maint/gnulib/lib/popen.c       if (open ("/dev/null", O_RDONLY) != STDOUT_FILENO
O_RDONLY           70 maint/gnulib/lib/progreloc.c # define O_EXEC O_RDONLY /* This is often close enough in older systems.  */
O_RDONLY          312 maint/gnulib/lib/progreloc.c     int fd = open ("/proc/self/execname", O_RDONLY | O_CLOEXEC, 0);
O_RDONLY          246 maint/gnulib/lib/spawn-pipe.c           || (stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0)
O_RDONLY          375 maint/gnulib/lib/spawn-pipe.c           || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0
O_RDONLY          511 maint/gnulib/lib/spawn-pipe.c                                                           prog_stdin, O_RDONLY,
O_RDONLY          157 maint/gnulib/lib/stackvma.c   fd = open (filename, O_RDONLY);
O_RDONLY          250 maint/gnulib/lib/stackvma.c           fd = open (filename, O_RDONLY);
O_RDONLY         1615 maint/gnulib/lib/stackvma.c   fd = open (fname, O_RDONLY);
O_RDONLY         1630 maint/gnulib/lib/stackvma.c   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
O_RDONLY         1726 maint/gnulib/lib/stackvma.c   fd = open (fname, O_RDONLY);
O_RDONLY         1745 maint/gnulib/lib/stackvma.c   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
O_RDONLY           50 maint/gnulib/lib/stdopen.c           int mode = fd == STDIN_FILENO ? O_WRONLY : O_RDONLY;
O_RDONLY          410 maint/gnulib/lib/supersede.c             open_direction = O_RDONLY;
O_RDONLY          177 maint/gnulib/lib/vma-iter.c   fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          270 maint/gnulib/lib/vma-iter.c           fd = open (filename, O_RDONLY | O_CLOEXEC);
O_RDONLY          927 maint/gnulib/lib/vma-iter.c   fd = open (fname, O_RDONLY | O_CLOEXEC);
O_RDONLY          942 maint/gnulib/lib/vma-iter.c   zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644);
O_RDONLY         1052 maint/gnulib/lib/vma-iter.c   fd = open (fname, O_RDONLY | O_CLOEXEC);
O_RDONLY         1067 maint/gnulib/lib/vma-iter.c   zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644);
O_RDONLY         1171 maint/gnulib/lib/vma-iter.c   fd = open (fname, O_RDONLY | O_CLOEXEC);
O_RDONLY         1190 maint/gnulib/lib/vma-iter.c   zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644);
O_RDONLY           47 maint/gnulib/tests/qemu.h   fd = open ("/proc/hardware", O_RDONLY);
O_RDONLY           61 maint/gnulib/tests/qemu.h   fd = open ("/proc/cpuinfo", O_RDONLY);
O_RDONLY           58 maint/gnulib/tests/test-areadlinkat-with-size.c   dfd = open (".", O_RDONLY);
O_RDONLY           58 maint/gnulib/tests/test-areadlinkat.c   dfd = open (".", O_RDONLY);
O_RDONLY           47 maint/gnulib/tests/test-copy-acl.c   fd1 = open (file1, O_RDONLY);
O_RDONLY           59 maint/gnulib/tests/test-dirent-safer.c   dfd = open (".", O_RDONLY);
O_RDONLY          352 maint/gnulib/tests/test-execute-main.c         int fd = open (BASE ".tmp", O_RDONLY);
O_RDONLY          409 maint/gnulib/tests/test-execute-main.c         int fd_in = open (BASE ".tmp", O_RDONLY);
O_RDONLY           44 maint/gnulib/tests/test-fchdir.c   fd = open (".", O_RDONLY);
O_RDONLY           62 maint/gnulib/tests/test-fchdir.c     int bad_fd = open ("/dev/null", O_RDONLY);
O_RDONLY           95 maint/gnulib/tests/test-fchownat.c   dfd = open (".", O_RDONLY);
O_RDONLY           52 maint/gnulib/tests/test-fcntl-h.c   switch (O_RDONLY)
O_RDONLY           55 maint/gnulib/tests/test-fcntl-h.c     case O_RDONLY:
O_RDONLY           58 maint/gnulib/tests/test-fcntl-h.c #if O_EXEC && O_EXEC != O_RDONLY
O_RDONLY           61 maint/gnulib/tests/test-fcntl-h.c #if O_SEARCH && O_EXEC != O_SEARCH && O_SEARCH != O_RDONLY
O_RDONLY           64 maint/gnulib/tests/test-fcntl-h.c       i = ! (~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH));
O_RDONLY           70 maint/gnulib/tests/test-fdatasync.c   fd = open (file, O_RDONLY);
O_RDONLY           39 maint/gnulib/tests/test-fdopendir.c   fd = open ("test-fdopendir.tmp", O_RDONLY | O_CREAT, 0600);
O_RDONLY           61 maint/gnulib/tests/test-fdopendir.c   fd = open (".", O_RDONLY);
O_RDONLY           55 maint/gnulib/tests/test-fdutimensat.c     fd = openat (dfd, name, O_RDONLY);
O_RDONLY          111 maint/gnulib/tests/test-fdutimensat.c   dfd = open (".", O_RDONLY);
O_RDONLY          115 maint/gnulib/tests/test-free.c   if (open ("/proc/sys/vm/max_map_count", O_RDONLY) >= 0)
O_RDONLY          127 maint/gnulib/tests/test-free.c       int fd = open ("test-free", O_RDONLY);
O_RDONLY           96 maint/gnulib/tests/test-fstatat.c   dfd = open (".", O_RDONLY);
O_RDONLY           70 maint/gnulib/tests/test-fsync.c   fd = open (file, O_RDONLY);
O_RDONLY           49 maint/gnulib/tests/test-ftruncate.c     int fd = open (filename, O_RDONLY);
O_RDONLY           69 maint/gnulib/tests/test-isatty.c     fd = open (file, O_RDONLY);
O_RDONLY           90 maint/gnulib/tests/test-isatty.c     fd = open (DEV_NULL, O_RDONLY);
O_RDONLY           82 maint/gnulib/tests/test-link.h     fd = open (BASE "a", O_RDONLY);
O_RDONLY           88 maint/gnulib/tests/test-link.h     fd = open (BASE "a", O_RDONLY);
O_RDONLY          125 maint/gnulib/tests/test-linkat.c   dfd1 = open (".", O_RDONLY);
O_RDONLY          149 maint/gnulib/tests/test-linkat.c   dfd = open (BASE "sub1", O_RDONLY);
O_RDONLY          182 maint/gnulib/tests/test-linkat.c   dfd2 = open ("..", O_RDONLY);
O_RDONLY          206 maint/gnulib/tests/test-linkat.c   dfd = open (".", O_RDONLY);
O_RDONLY          355 maint/gnulib/tests/test-linkat.c   dfd = open (BASE "sub1", O_RDONLY);
O_RDONLY          357 maint/gnulib/tests/test-linkat.c   dfd2 = open (BASE "sub2", O_RDONLY);
O_RDONLY           72 maint/gnulib/tests/test-mkdirat.c   dfd = open (".", O_RDONLY);
O_RDONLY           80 maint/gnulib/tests/test-mkdirat.c   dfd = open ("..", O_RDONLY);
O_RDONLY           87 maint/gnulib/tests/test-mkdirat.c   dfd = open ("/dev/null", O_RDONLY);
O_RDONLY           81 maint/gnulib/tests/test-mkfifoat.c   dfd = open (".", O_RDONLY);
O_RDONLY           50 maint/gnulib/tests/test-nonblocking.c   fd_file = open (".", O_RDONLY);
O_RDONLY           48 maint/gnulib/tests/test-open.h   ASSERT (func ("nonexist.ent/", O_CREAT | O_RDONLY, 0600) == -1);
O_RDONLY           53 maint/gnulib/tests/test-open.h   fd = func (BASE "file", O_CREAT | O_RDONLY, 0600);
O_RDONLY           58 maint/gnulib/tests/test-open.h   fd = func (BASE "e.exe", O_CREAT | O_RDONLY, 0700);
O_RDONLY           64 maint/gnulib/tests/test-open.h   ASSERT (func (BASE "file/", O_RDONLY) == -1);
O_RDONLY           73 maint/gnulib/tests/test-open.h   fd = func ("/dev/null", O_RDONLY);
O_RDONLY           87 maint/gnulib/tests/test-open.h   fd = func (BASE "file", O_NONBLOCK | O_RDONLY);
O_RDONLY          102 maint/gnulib/tests/test-open.h           fd = func (BASE "file", O_CLOEXEC | O_RDONLY);
O_RDONLY          121 maint/gnulib/tests/test-open.h   ASSERT (func (BASE "link/", O_RDONLY) == -1);
O_RDONLY          123 maint/gnulib/tests/test-open.h   fd = func (BASE "link", O_RDONLY);
O_RDONLY           55 maint/gnulib/tests/test-openat-safer.c   dfd = openat (AT_FDCWD, ".", O_RDONLY);
O_RDONLY           81 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (AT_FDCWD, "", O_RDONLY) == -1);
O_RDONLY           84 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (dfd, "", O_RDONLY) == -1);
O_RDONLY           87 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (-1, ".", O_RDONLY) == -1);
O_RDONLY           92 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (dfd, "nonexist.ent/", O_CREAT | O_RDONLY,
O_RDONLY           97 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (dfd, witness "/", O_RDONLY) == -1);
O_RDONLY          106 maint/gnulib/tests/test-openat-safer.c           fd = open ("/dev/null", O_RDONLY);
O_RDONLY          108 maint/gnulib/tests/test-openat-safer.c           ASSERT (openat (fd, ".", O_RDONLY) == -1);
O_RDONLY          113 maint/gnulib/tests/test-openat-safer.c           fd = openat (dfd, witness, O_RDONLY | O_NOFOLLOW);
O_RDONLY           68 maint/gnulib/tests/test-openat.c     ASSERT (openat (-1, "foo", O_RDONLY) == -1);
O_RDONLY           74 maint/gnulib/tests/test-openat.c     ASSERT (openat (99, "foo", O_RDONLY) == -1);
O_RDONLY           80 maint/gnulib/tests/test-openat.c   dfd = open (".", O_RDONLY);
O_RDONLY           89 maint/gnulib/tests/test-openat.c   ASSERT (openat (AT_FDCWD, ".", O_RDONLY) == STDIN_FILENO);
O_RDONLY           91 maint/gnulib/tests/test-openat.c     dfd = open (".", O_RDONLY);
O_RDONLY           95 maint/gnulib/tests/test-openat.c     ASSERT (openat (dfd, ".", O_RDONLY) == STDIN_FILENO);
O_RDONLY           94 maint/gnulib/tests/test-posix_spawn-chdir.c           || (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0)) != 0
O_RDONLY          115 maint/gnulib/tests/test-posix_spawn-dup2-stdout.c           || (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0)) != 0
O_RDONLY           74 maint/gnulib/tests/test-posix_spawn-fchdir.c   rootfd = open ("/", O_RDONLY);
O_RDONLY          103 maint/gnulib/tests/test-posix_spawn-fchdir.c           || (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0)) != 0
O_RDONLY           88 maint/gnulib/tests/test-posix_spawn-open1.c           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
O_RDONLY           58 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c                                               "foo", 0, O_RDONLY)
O_RDONLY           65 maint/gnulib/tests/test-posix_spawn_file_actions_addopen.c                                               "foo", 0, O_RDONLY)
O_RDONLY           49 maint/gnulib/tests/test-pread.c   fd = open (file, O_RDONLY);
O_RDONLY           87 maint/gnulib/tests/test-ptsname.c     fd = open ("/dev/tty", O_RDONLY);
O_RDONLY          172 maint/gnulib/tests/test-ptsname.c           fd = open (master_name, O_RDONLY);
O_RDONLY          202 maint/gnulib/tests/test-ptsname.c             fd = open (master_name, O_RDONLY);
O_RDONLY          136 maint/gnulib/tests/test-ptsname_r.c     fd = open ("/dev/tty", O_RDONLY);
O_RDONLY          227 maint/gnulib/tests/test-ptsname_r.c           fd = open (master_name, O_RDONLY);
O_RDONLY          261 maint/gnulib/tests/test-ptsname_r.c             fd = open (master_name, O_RDONLY);
O_RDONLY           73 maint/gnulib/tests/test-pwrite.c     fd = open (file, O_RDONLY);
O_RDONLY           43 maint/gnulib/tests/test-read.c   fd = open (filename, O_RDONLY);
O_RDONLY           77 maint/gnulib/tests/test-readlinkat.c   dfd = openat (AT_FDCWD, ".", O_RDONLY);
O_RDONLY           91 maint/gnulib/tests/test-renameat.c   dfd1 = open (".", O_RDONLY);
O_RDONLY          109 maint/gnulib/tests/test-renameat.c   dfd = open (BASE "sub1", O_RDONLY);
O_RDONLY          137 maint/gnulib/tests/test-renameat.c   dfd2 = open ("..", O_RDONLY);
O_RDONLY          147 maint/gnulib/tests/test-renameat.c   dfd = open (".", O_RDONLY);
O_RDONLY           94 maint/gnulib/tests/test-renameatu.c   dfd1 = open (".", O_RDONLY);
O_RDONLY          112 maint/gnulib/tests/test-renameatu.c   dfd = open (BASE "sub1", O_RDONLY);
O_RDONLY          140 maint/gnulib/tests/test-renameatu.c   dfd2 = open ("..", O_RDONLY);
O_RDONLY          150 maint/gnulib/tests/test-renameatu.c   dfd = open (".", O_RDONLY);
O_RDONLY           71 maint/gnulib/tests/test-sigsegv-catch-segv1.c   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
O_RDONLY           92 maint/gnulib/tests/test-sigsegv-catch-segv2.c   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
O_RDONLY          140 maint/gnulib/tests/test-sigsegv-catch-stackoverflow2.c   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
O_RDONLY           80 maint/gnulib/tests/test-symlinkat.c   dfd = openat (AT_FDCWD, ".", O_RDONLY);
O_RDONLY           46 maint/gnulib/tests/test-truncate.c     int fd = open (BASE "file", O_RDONLY);
O_RDONLY           55 maint/gnulib/tests/test-truncate.c     int fd = open (BASE "file", O_RDONLY);
O_RDONLY           64 maint/gnulib/tests/test-truncate.c     int fd = open (BASE "file", O_RDONLY);
O_RDONLY           73 maint/gnulib/tests/test-truncate.c     int fd = open (BASE "file", O_RDONLY);
O_RDONLY           38 maint/gnulib/tests/test-ttyname_r.c   fd = open ("/dev/tty", O_RDONLY);
O_RDONLY           84 maint/gnulib/tests/test-unlinkat.c   dfd = open (".", O_RDONLY);
O_RDONLY           50 maint/gnulib/tests/test-utimens.c     fd = open (name, O_RDONLY);
O_RDONLY           88 maint/gnulib/tests/test-utimensat.c   dfd = open (".", O_RDONLY);
O_RDONLY           51 maint/gnulib/tests/test-write.c     int rfd = open (filename, O_RDONLY);
O_RDONLY           29 maint/gnulib/tests/test-xstdopen.c   ASSERT (open ("Makefile", O_RDONLY) >= 3);
O_RDONLY           68 maint/gnulib/tests/zerosize-ptr.h   int fd = open ("/dev/zero", O_RDONLY, 0666);