/glibc-2.36/libio/ |
D | tst-ftell-active-handler.c | 108 {"r+", O_RDWR}, in do_ftruncate_test() 110 {"w+", O_RDWR | O_TRUNC}, in do_ftruncate_test() 112 {"a+", O_RDWR} in do_ftruncate_test() 195 {"w+", O_RDWR | O_TRUNC, 0, data_len}, in do_rewind_test() 196 {"r+", O_RDWR, 0, data_len}, in do_rewind_test() 201 {"a+", O_RDWR, 0, 4 * data_len}, in do_rewind_test() 302 {"w+", O_RDWR | O_TRUNC, 0, data_len, 2 * data_len}, in do_ftell_test() 303 {"r+", O_RDWR, 0, data_len, 3 * data_len}, in do_ftell_test() 310 {"a+", O_RDWR, 0, 5 * data_len, 6 * data_len}, in do_ftell_test() 415 {"w+", O_RDWR | O_TRUNC}, in do_write_test() [all …]
|
/glibc-2.36/io/ |
D | tst-openat.c | 85 int fd = openat (dir_fd, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test() 101 int fd2 = openat (fd, "should-not-work", O_CREAT|O_RDWR, 0666); in do_test() 185 fd = openat (dir_fd, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test() 197 fd = openat (-1, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test()
|
D | tst-fcntl.c | 90 else if ((val & O_ACCMODE) != O_RDWR) in do_test() 109 else if ((val & O_ACCMODE) != O_RDWR) in do_test() 162 fd2 = open (_PATH_DEVNULL, O_RDWR); in do_test()
|
D | tst-open-tmpfile.c | 239 check_wrapper_flags_mode (op, wrapper, path, O_RDWR, mode); in check_wrapper_mode() 240 check_wrapper_flags_mode (op, wrapper, path, O_RDWR | O_EXCL, mode); in check_wrapper_mode() 263 int fd = openat (AT_FDCWD, path, O_TMPFILE | O_RDWR, 0); in probe_path()
|
D | tst-copy_file_range.c | 276 infd = xopen (infile, O_RDWR | O_LARGEFILE, 0); in do_test() 278 outfd = xopen (outfile, O_RDWR | O_LARGEFILE, 0); in do_test()
|
/glibc-2.36/support/ |
D | support_openpty.c | 62 outer = posix_openpt (O_RDWR | O_NOCTTY); in support_openpty() 74 inner = ioctl (outer, TIOCGPTPEER, O_RDWR | O_NOCTTY); in support_openpty() 81 inner = open (namebuf, O_RDWR | O_NOCTTY); in support_openpty()
|
/glibc-2.36/login/ |
D | tst-grantpt.c | 37 fd = posix_openpt (O_RDWR); in test_ebadf() 84 int ptmx = posix_openpt (O_RDWR); in test_not_ptmx() 94 int pts = open (name, O_RDWR | O_NOCTTY); in test_not_ptmx()
|
D | tst-ptsname.c | 68 int fd = posix_openpt (O_RDWR); in do_test() 91 fd = open (PTSNAME_EINVAL, O_RDWR | O_CREAT, 0600); in do_test()
|
D | openpty.c | 110 terminal = __ioctl (ptmx, TIOCGPTPEER, O_RDWR | O_NOCTTY); in __openpty() 120 terminal = __open64 (buf, O_RDWR | O_NOCTTY); in __openpty()
|
/glibc-2.36/rt/ |
D | tst-mqueue4.c | 45 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 62 mqd_t q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 83 q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 113 q2 = mq_open (name, O_CREAT | O_RDWR, 0600, &attr); in do_test()
|
D | tst-mqueue2.c | 48 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 61 mqd_t q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 77 q2 = mq_open (name2, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 93 q2 = mq_open (name2, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() 399 q2 = mq_open (name, O_RDWR); in do_test()
|
D | tst-shm.c | 55 int fd = shm_open (shm_test_name, O_RDWR, 0600); in worker() 134 fd = shm_open (shm_escape_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600); in do_test() 143 fd = shm_open (shm_test_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600); in do_test()
|
D | tst-aio8.c | 11 int fd = open ("/dev/full", O_RDWR); in do_test()
|
D | tst-mqueue9.c | 41 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | gentempfd.c | 27 int fd = __open (P_tmpdir, O_RDWR | O_TMPFILE | O_EXCL | flags, in __gen_tempfd() 30 fd = __open ("/tmp", O_RDWR | O_TMPFILE | O_EXCL | flags, in __gen_tempfd()
|
D | tst-ttyname.c | 283 master = posix_openpt (O_RDWR|O_NOCTTY|O_NONBLOCK); in do_in_chroot_1() 297 int slave = xopen (slavename, O_RDWR, 0); in do_in_chroot_1() 357 VERIFY ((master = posix_openpt (O_RDWR|O_NOCTTY|O_NONBLOCK)) >= 0); in do_in_chroot_2() 379 int slave = xopen (slavename, O_RDWR, 0); in do_in_chroot_2() 482 if (posix_openpt (O_RDWR|O_NOCTTY|O_NONBLOCK) < 0) in run_chroot_tests()
|
D | getpt.c | 38 return __posix_openpt (O_RDWR); in weak_alias()
|
D | tst-ofdlocks-compat.c | 75 int fd = open64 (temp_filename, O_RDWR, 0666); in do_test()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | tmpfile.c | 46 err = __dir_mkfile (dir, O_RDWR, S_IRUSR | S_IWUSR, &file); in __tmpfile() 53 fd = _hurd_intern_fd (file, O_RDWR, 1); /* dealloc on error */ in __tmpfile()
|
D | check_fds.c | 78 check_one_fd (STDOUT_FILENO, O_RDWR); in check_standard_fds() 79 check_one_fd (STDERR_FILENO, O_RDWR); in check_standard_fds()
|
/glibc-2.36/bits/ |
D | fcntl.h | 27 #define O_RDWR 2 /* Open read/write. */ macro 80 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
|
/glibc-2.36/sysdeps/mach/hurd/bits/ |
D | fcntl.h | 41 #define O_RDWR (O_RDONLY|O_WRONLY) /* Open for reading and writing. */ macro 42 #define O_ACCMODE O_RDWR /* Mask for file access modes. */
|
/glibc-2.36/sysdeps/pthread/ |
D | sem_open.c | 68 (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR); in __sem_open() 135 fd = __open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode); in __sem_open()
|
/glibc-2.36/debug/ |
D | pcprofile.c | 42 fd = open (outfile, O_RDWR | O_CREAT, 0666); in install()
|
/glibc-2.36/misc/ |
D | daemon.c | 66 if ((fd = __open_nocancel(_PATH_DEVNULL, O_RDWR, 0)) != -1 in daemon()
|