Home
last modified time | relevance | path

Searched refs:xopen (Results 1 – 25 of 37) sorted by relevance

12

/glibc-2.36/posix/
Dtst-execveat.c106 fd = xopen ("/bin", O_PATH | O_DIRECTORY, O_RDONLY); in do_test()
112 fd = xopen ("/usr", O_PATH | O_DIRECTORY, 0); in do_test()
119 fd = xopen ("/usr", O_RDONLY, 0); in do_test()
125 fd = xopen ("/bin/sh", O_RDONLY, 0); in do_test()
138 fd = xopen ("/bin/sh", O_PATH, 0); in do_test()
157 fd_out = xopen (symlink_name, O_CREAT | O_WRONLY, 0); in do_test()
159 fd = xopen ("/bin/sh", O_RDONLY, 0); in do_test()
164 fd_out = xopen (symlink_name, O_PATH, 0); in do_test()
Dtst-spawn6.c69 int fd = xopen (_PATH_TTY, O_RDONLY, 0600); in handle_restart()
137 int tcfd = xopen (ptmxpath, O_RDONLY, 0600); in run_test()
/glibc-2.36/support/
Dtst-support_descriptors.c36 int fd = xopen ("/dev/null", O_WRONLY, 0); in subprocess_no_change()
45 int fd = xopen ("/dev/null", O_WRONLY, 0); in subprocess_closed_descriptor()
58 int fd = xopen ("/dev/null", O_WRONLY, 0); in subprocess_opened_descriptor()
68 int fd = xopen ("/dev/null", O_WRONLY, 0); in subprocess_changed_descriptor()
72 TEST_COMPARE (xopen ("/dev", O_DIRECTORY | O_RDONLY, 0), fd); in subprocess_changed_descriptor()
158 free_descriptor = xopen ("/dev/null", O_WRONLY, 0); in do_test()
177 int fd = xopen ("/dev/full", O_WRONLY, 0); in do_test()
Dsupport_copy_file.c29 int fd_from = xopen (from, O_RDONLY, 0); in support_copy_file()
31 int fd_to = xopen (to, O_WRONLY | O_TRUNC | O_CREAT, mode); in support_copy_file()
Dxopen.c24 xopen (const char *path, int flags, mode_t mode) in xopen() function
Dsupport_write_file_string.c27 int fd = xopen (path, O_CREAT | O_TRUNC | O_WRONLY, 0666); in support_write_file_string()
Dtst-xreadlink.c64 xclose (xopen (symlink_name, O_WRONLY | O_CREAT, 0)); in do_test()
Dsupport_become_root.c71 fd = xopen ("/proc/self/gid_map", O_WRONLY, 0); in setup_uid_gid_mapping()
Dxunistd.h38 int xopen (const char *path, int flags, mode_t);
Dsupport-open-dev-null-range.c52 return xopen ("/dev/null", flags, mode); in open_dev_null()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-o_path-locks.c40 int fd = xopen (path, O_RDWR, 0); in subprocess()
86 xclose (xopen (path, O_RDONLY, 0)); in do_test()
91 xclose (xopen (path, O_PATH, 0)); in do_test()
Dtst-getdents64.c82 int fd = xopen (".", O_RDONLY | O_DIRECTORY, 0); in do_test_large_size()
96 int fd = xopen (".", O_RDONLY | O_DIRECTORY, 0); in do_test_by_size()
Dtst-getcwd-smallbuff.c137 const int fd = xopen ("mpoint", in child_func()
155 const int fd = xopen (map_file, O_WRONLY, 0); in update_map()
Dtst-ttyname.c55 xclose (xopen (path, O_WRONLY|O_CREAT|O_NOCTTY, mode)); in touch()
297 int slave = xopen (slavename, O_RDWR, 0); in do_in_chroot_1()
379 int slave = xopen (slavename, O_RDWR, 0); in do_in_chroot_2()
Dtst-scm_rights.c50 int fd = xopen (PATH, O_RDONLY, 0); in subprocess()
/glibc-2.36/misc/
Dtst-fd_to_filename.c63 int read_alias = xopen (__fd_to_filename (pipes[0], &storage), O_RDONLY, 0); in check_open()
64 int write_alias = xopen (__fd_to_filename (pipes[1], &storage), O_WRONLY, 0); in check_open()
Dtst-syscalls.c149 int fd = xopen ("/dev/null", O_RDWR, 0); in do_test()
/glibc-2.36/stdio-common/
Dtst-renameat2.c50 directory_fd = xopen (directory, O_RDONLY | O_DIRECTORY, 0); in prepare()
58 subdirectory_fd = xopen (subdirectory, O_RDONLY | O_DIRECTORY, 0); in prepare()
Dtst-bz11319.c37 fd = xopen (tempfile, O_RDONLY, 0660); in do_test()
/glibc-2.36/io/
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()
Dtst-closefrom.c111 int lowfd = xopen ("/dev/null", O_RDONLY, 0600); in closefrom_test_file_desc_limit()
/glibc-2.36/libio/
Dtst-wfile-sync.c43 infd = xopen (infile, O_RDONLY, 0); in do_test()
/glibc-2.36/malloc/
Dtst-free-errno.c75 if (xopen ("/proc/sys/vm/max_map_count", O_RDONLY, 0) >= 0) in do_test()
/glibc-2.36/login/
Dtst-pututxline-lockfail.c73 int fd = xopen (path, O_RDONLY, 0); in subprocess_lock_file()
/glibc-2.36/nptl/
Dtst-pthread-gdb-attach.c62 int fd = xopen (path, O_RDONLY, 0); in read_elf_header()

12