Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 110) sorted by relevance

12345

/xnu-11215/tests/
H A Dnetbsd_utimensat.c90 T_ASSERT_POSIX_SUCCESS((fd = open(FILEPATH, O_CREAT | O_RDWR, 0644)), NULL);
93 T_ASSERT_POSIX_SUCCESS((dfd = open(DIRPATH, O_RDONLY, 0)), NULL);
112 T_ASSERT_POSIX_SUCCESS((fd = open(FILEPATH, O_CREAT | O_RDWR, 0644)), NULL);
140 T_ASSERT_POSIX_SUCCESS((dfd = open(DIRPATH, O_RDONLY, 0)), NULL);
154 T_ASSERT_POSIX_SUCCESS((fd = open(FILEPATH, O_CREAT | O_RDWR, 0644)), NULL);
157 T_ASSERT_POSIX_SUCCESS((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)), NULL);
169 T_ASSERT_POSIX_SUCCESS((fd = open(FILEPATH, O_CREAT | O_RDWR, 0644)), NULL);
185 T_ASSERT_POSIX_SUCCESS((dfd = open(DIRPATH, O_RDONLY, 0)), NULL);
H A Dfile_leases.c119 fd = open(testfile, O_RDONLY, 0666);
139 fd = open(testfile, O_RDONLY, 0666);
156 fd = open(testfile, O_RDWR, 0666);
175 fd = open(testfile, O_RDONLY, 0666);
218 fd = open(testfile, O_RDONLY, 0666);
269 fd = open(testfile, O_EVTONLY, 0666);
320 fd = open(testfile, O_RDONLY, 0666);
370 dir_fd = open(testdir, O_RDONLY);
421 fd = open(testfile, O_RDWR, 0666);
434 fd = open(testfile, O_RDONLY, 0666);
[all …]
H A Dfd.c104 fd1 = open("/dev/null", O_RDONLY | O_CLOEXEC);
107 fd2 = open("/dev/null", O_RDONLY | O_CLOEXEC);
142 fd = open("/dev/null", O_RDONLY | 0x08000000 /* O_CLOFORK */);
H A Diopolicy.c65 fd = open(g_testfile, O_CREAT | O_RDWR, 0666);
104 fd = open(g_testfile, O_RDWR | O_EVTONLY, 0666);
126 fd = open(g_testfile, O_EVTONLY, 0666);
H A Drename_excl.c70 fd = open(TEST_FILE1, O_CREAT | O_RDWR, 0666);
77 fd = open(TEST_FILE2, O_CREAT | O_RDWR, 0666);
H A Dioperf.c84 int rndfd = open("/dev/urandom", O_RDONLY, S_IRUSR); in io_perf_test_io_init()
90 int fd = open("/mnt2/test", O_CREAT | O_WRONLY, S_IRUSR); in io_perf_test_io_init()
166 int test_file_fd = open("/mnt2/test", O_RDONLY); in perform_io()
H A Dfd_send.c101 fd = open("/dev/null", O_RDWR);
125 fd = open("/dev/null", O_RDWR);
172 fd = open("/dev/null", O_RDWR);
H A Dtty_hang.c82 T_ASSERT_POSIX_SUCCESS(pty_fd = open(pty_name, O_RDWR), NULL); in get_new_session_and_terminal_and_fork_child_to_read()
96 T_ASSERT_POSIX_SUCCESS(pty_fd_child = open(pty_name, O_RDWR), in get_new_session_and_terminal_and_fork_child_to_read()
H A Dkqueue_fifo_18776047.c129 read_fd = open(fpath, O_RDONLY | O_APPEND | O_NONBLOCK);
132 write_fd = open(fpath, O_WRONLY | O_APPEND | O_NONBLOCK);
H A Dread_nullbuf.c47 fd = open("/etc/passwd", O_RDONLY);
H A Dfduiomove.c18 fd = open(*_NSGetProgname(), O_RDONLY);
H A Dpoll.c62 file = open(LAUNCHD_PATH, O_RDONLY | O_NONBLOCK);
64 dir = open(".", O_RDONLY | O_NONBLOCK);
H A Dtty_ioctl.c60 T_ASSERT_POSIX_SUCCESS(replica = open(name, O_RDWR | O_NOCTTY), "open replica"); in tty_ioctl_tioccons()
/xnu-11215/tests/vfs/
H A Do_search.c62 T_ASSERT_POSIX_SUCCESS(fd = open(g_testfile, O_CREAT | O_RDWR, 0644), NULL);
69 tmpdir_fd = open(tmpdir, O_EXEC);
73 T_ASSERT_POSIX_SUCCESS(tmpdir_fd = open(tmpdir, O_RDONLY), NULL);
77 T_ASSERT_POSIX_SUCCESS(tmpdir_fd = open(tmpdir, O_SEARCH), NULL);
H A Dfreeable_vnodes.c106 T_ASSERT_POSIX_SUCCESS(dir_fd = open(dirpath, O_RDONLY), NULL); in run_vnoder()
244 T_ASSERT_POSIX_SUCCESS(dlpath_fd = open(dlpaths[j], O_RDONLY), NULL);
/xnu-11215/tools/tests/perf_index/
H A Dtest_file_helper.c39 fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY, 0644); in test_file_create()
70 fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY, 0644); in test_file_read_setup()
104 fd = open(filepath, O_RDONLY); in test_file_read()
152 fds[i] = open(filepath, O_CREAT | O_EXCL | O_WRONLY, 0644); in test_file_write_setup()
/xnu-11215/bsd/miscfs/devfs/
H A Dreproto.sh8 open(PROTO, ">devfs_proto.h") || die "Cannot open devfs_proto.h\n";
41 if(open(F, \$file) == 0) {
/xnu-11215/tools/lldbmacros/lint/
H A Dsyntax_checker.py34 fh = open(fname)
51 with open(fname, 'r') as file:
/xnu-11215/tests/vm/
H A Dperf_mlock.c80 fd = open(tmpf, (O_RDWR | O_CREAT));
93 fd = open(tmpf, O_RDWR);
/xnu-11215/libsyscall/wrappers/
H A Dopen-base.c76 open(const char *path, int oflag, ...) in open() function
79 open$NOCANCEL(const char *path, int oflag, ...) in open()
H A Dnfsclnt.c35 fd = open("/dev/" NFSCLNT_DEVICE, O_RDONLY); in nfsclnt()
/xnu-11215/SETUP/setsegname/
H A Dsetsegname.c65 if ((fd = open(path, O_RDONLY)) == -1) { in readFile()
261 int fd = open(output_name, O_WRONLY | O_CREAT | O_TRUNC, 0755); in main()
/xnu-11215/tests/vm_memory_tests_src/
H A Dcommon.c21 int w_fd = open(TEST_TXT_FILE, O_WRONLY | O_CREAT | O_TRUNC, (mode_t)0666); in mach_server_data_setup()
36 fd = open(TEST_TXT_FILE, O_RDONLY | O_EXCL, 0666); in mach_server_data_setup()
/xnu-11215/SETUP/config/
H A Dopenp.c67 value = open(fnam, flgs, mod); in func()
/xnu-11215/bsd/kern/
H A Dtty_dev.h69 struct ptmx_ioctl *(*open)(int minor, int flags); member

12345