Home
last modified time | relevance | path

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

/xnu-8792.41.9/tests/
H A Dfile_leases.c122 err = fcntl(fd, F_SETLEASE, F_RDLCK);
126 err = fcntl(fd, F_GETLEASE);
142 err = fcntl(fd, F_SETLEASE, F_RDLCK);
159 err = fcntl(fd, F_SETLEASE, F_WRLCK);
178 err = fcntl(fd, F_SETLEASE, F_RDLCK);
202 err = fcntl(fd, F_SETLEASE, F_UNLCK);
221 err = fcntl(fd, F_SETLEASE, F_WRLCK);
245 err = fcntl(fd, F_SETLEASE, F_RDLCK);
273 err = fcntl(fd, F_SETLEASE, F_SETLEASE_ARG(F_WRLCK, 3));
298 err = fcntl(fd, F_SETLEASE, F_SETLEASE_ARG(F_RDLCK, 2));
[all …]
H A Dlockf_EOF_77264182.c46 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "wrlock");
49 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "unlock");
53 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETLK, &fl), "wrlock 2");
H A Duipc_kevent.c36 int flags = fcntl(sockets[0], F_GETFL); in test_kevent()
37 T_ASSERT_POSIX_SUCCESS(fcntl(sockets[0], F_SETFL, flags | O_NONBLOCK), "fcntl"); in test_kevent()
74 int flags = fcntl(sockets[0], F_GETFL); in test_kevent_lowat()
75 T_ASSERT_POSIX_SUCCESS(fcntl(sockets[0], F_SETFL, flags | O_NONBLOCK), "fcntl"); in test_kevent_lowat()
H A Dfd.c111 T_EXPECT_EQ(fcntl(fd2, F_GETFD, 0), 0,
126 fcntl(*fdp, F_SETCONFINED, 1); in confine_thread()
145 T_QUIET; T_ASSERT_EQ(fcntl(fd, F_GETCONFINED), 0,
H A Dsendmsg_x_test.c122 int flags = fcntl(socket_fds[1], F_GETFL, 0);
123 T_EXPECT_POSIX_SUCCESS(fcntl(socket_fds[1], F_SETFL, flags | O_NONBLOCK), "fcntl() O_NONBLOCK");
H A Dtcp_input_outputopts_uaf_56155583.c77 T_ASSERT_POSIX_SUCCESS(fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK), NULL);
H A Dioperf.c93 T_ASSERT_POSIX_ZERO(fcntl(fd, F_NOCACHE, 1), "fcntl F_NOCACHE enable"); in io_perf_test_io_init()
171 T_ASSERT_POSIX_ZERO(fcntl(test_file_fd, F_NOCACHE, 1), "fcntl F_NOCACHE enable"); in perform_io()
172 T_ASSERT_POSIX_ZERO(fcntl(test_file_fd, F_RDAHEAD, 0), "fcntl F_RDAHEAD disable"); in perform_io()
H A Duipc_sosendcheck.c92 int flags = fcntl(sk, F_GETFL, 0); in cfg_sk()
94 T_ASSERT_POSIX_SUCCESS(fcntl(sk, F_SETFL, flags | O_NONBLOCK), in cfg_sk()
H A Dpipe_kevent.c56 fcntl(write_fd, F_SETFL, (O_NONBLOCK));
H A Dfcntl.c36 int result = fcntl(fd, F_ADDSIGS, &args);
H A Drecvmsg_x_test.c182 int flags = fcntl(recvSocket, F_GETFL, 0);
183 T_QUIET; T_EXPECT_POSIX_SUCCESS(fcntl(recvSocket, F_SETFL, flags | O_NONBLOCK), "fcntl()");
H A Dtty_hang.c194 (void)fcntl(master_fd, F_SETFL, O_NONBLOCK); in run_test()
H A Ddisk_mount_conditioner.c289 fcntl(fd, F_FULLFSYNC);
527 fcntl(temp_fd, F_NOCACHE, 1); in perf_setup()
H A Dpoll_select_kevent_paired_fds.c552 fd_flags = fcntl(fd, F_GETFL, 0); in read_from_fd()
557 T_ASSERT_POSIX_SUCCESS(fcntl(fd, F_SETFL, in read_from_fd()
H A Dvsock.c502 long arg = fcntl(socket, F_GETFL, NULL);
505 result = fcntl(socket, F_SETFL, arg);
H A Dnet_tuntests.c130 T_QUIET; T_EXPECT_POSIX_SUCCESS(flags = fcntl(s, F_GETFL, 0), NULL); in setblocking()
146 T_QUIET; T_EXPECT_POSIX_SUCCESS(flags = fcntl(s, F_SETFL, flags), NULL); in setblocking()
H A Dproc_info.c622 retval = fcntl(tmp_fd, F_NOCACHE, 1); in proc_info_caller()
H A Dkqueue_file_tests.c241 fcntl(tmpwritefd, F_SETFL, O_WRONLY | O_NONBLOCK); in open_fifo()
/xnu-8792.41.9/libsyscall/wrappers/cancelable/
H A Dfcntl-base.c33 fcntl(int fd, int cmd, ...) in fcntl() function
/xnu-8792.41.9/bsd/sys/
H A Dfcntl.h798 int fcntl(int, int, ...) __DARWIN_ALIAS_C(fcntl);
H A DMakefile35 …errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h fsgetpath.h gmon.…
80 fcntl.h \
152 errno.h ev.h event.h fcntl.h file.h filio.h \
/xnu-8792.41.9/bsd/man/man2/
H A DMakefile55 fcntl.2 \
H A Dgetdirentriesattr.2335 #include <fcntl.h>
/xnu-8792.41.9/libsyscall/Libsyscall.xcodeproj/
H A Dproject.pbxproj83 …248BA04F121C8F06008C073F /* fcntl.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA04E121C8F0…
84 …248BA05C121C9649008C073F /* fcntl-cancel.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA051…
506 …B121C8EE4008C073F /* fcntl-base.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileTyp…
507 …A04E121C8F06008C073F /* fcntl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
508 …121C8FE2008C073F /* fcntl-cancel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileTy…
950 248BA04B121C8EE4008C073F /* fcntl-base.c */,
951 248BA04E121C8F06008C073F /* fcntl.c */,
952 248BA051121C8FE2008C073F /* fcntl-cancel.c */,
1537 248BA04F121C8F06008C073F /* fcntl.c in Sources */,
1540 248BA05C121C9649008C073F /* fcntl-cancel.c in Sources */,
/xnu-8792.41.9/tools/tests/superpages/
H A Dtestsp.c643 fcntl(fd, F_NOCACHE, 1); in test_fileio()