Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 72) sorted by relevance

123

/glibc-2.36/libio/
Dtst-ftell-active-handler.c108 {"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/
Dtst-openat.c85 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()
Dtst-fcntl.c90 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()
Dtst-open-tmpfile.c239 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()
Dtst-copy_file_range.c276 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/
Dsupport_openpty.c62 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/
Dtst-grantpt.c37 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()
Dtst-ptsname.c68 int fd = posix_openpt (O_RDWR); in do_test()
91 fd = open (PTSNAME_EINVAL, O_RDWR | O_CREAT, 0600); in do_test()
Dopenpty.c110 terminal = __ioctl (ptmx, TIOCGPTPEER, O_RDWR | O_NOCTTY); in __openpty()
120 terminal = __open64 (buf, O_RDWR | O_NOCTTY); in __openpty()
/glibc-2.36/rt/
Dtst-mqueue4.c45 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()
Dtst-mqueue2.c48 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()
Dtst-shm.c55 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()
Dtst-aio8.c11 int fd = open ("/dev/full", O_RDWR); in do_test()
Dtst-mqueue9.c41 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dgentempfd.c27 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()
Dtst-ttyname.c283 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()
Dgetpt.c38 return __posix_openpt (O_RDWR); in weak_alias()
Dtst-ofdlocks-compat.c75 int fd = open64 (temp_filename, O_RDWR, 0666); in do_test()
/glibc-2.36/sysdeps/mach/hurd/
Dtmpfile.c46 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()
Dcheck_fds.c78 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/
Dfcntl.h27 #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/
Dfcntl.h41 #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/
Dsem_open.c68 (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/
Dpcprofile.c42 fd = open (outfile, O_RDWR | O_CREAT, 0666); in install()
/glibc-2.36/misc/
Ddaemon.c66 if ((fd = __open_nocancel(_PATH_DEVNULL, O_RDWR, 0)) != -1 in daemon()

123