Home
last modified time | relevance | path

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

12

/xnu-10063.141.1/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 Dlockf_basic.c45 return fcntl(fd, (pid == -1) ? F_OFD_GETLK : F_OFD_GETLKPID, fl); in ofd_get()
57 return fcntl(fd, (pid == -1) ? F_GETLK : F_GETLKPID, fl); in posix_get()
70 return fcntl(fd, (flags & WAIT) ? F_SETLKW : F_SETLK, &fl); in posix_lock()
83 return fcntl(fd, (flags & WAIT) ? F_OFD_SETLKW : F_OFD_SETLK, &fl); in ofd_lock()
96 return fcntl(fd, F_SETLK, &fl); in posix_unlock()
109 return fcntl(fd, F_OFD_SETLK, &fl); in ofd_unlock()
276 T_ASSERT_POSIX_SUCCESS(fcntl(a_confined, F_SETCONFINED, 1), "F_SETCONFINED");
278 T_ASSERT_POSIX_SUCCESS(fcntl(b_confined, F_SETCONFINED, 1), "F_SETCONFINED");
667 T_ASSERT_POSIX_SUCCESS(fcntl(a, F_SETLK, &fl), "SEEK_END: -10, 10");
676 T_ASSERT_POSIX_SUCCESS(fcntl(a, F_SETLK, &fl), "SEEK_END: -file_len, file_len");
[all …]
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 Drecvmsg_x_ctrunc.c248 int flags = fcntl(recvSocket, F_GETFL, 0);
249 T_QUIET; T_EXPECT_POSIX_SUCCESS(fcntl(recvSocket, F_SETFL, flags | O_NONBLOCK), "fcntl()");
286 int flags = fcntl(recvSocket, F_GETFL, 0);
287 T_QUIET; T_EXPECT_POSIX_SUCCESS(fcntl(recvSocket, F_SETFL, flags | O_NONBLOCK), "fcntl()");
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 Dvsock.c502 long arg = fcntl(socket, F_GETFL, NULL);
505 result = fcntl(socket, F_SETFL, arg);
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()
/xnu-10063.141.1/libsyscall/wrappers/cancelable/
H A Dfcntl-base.c33 fcntl(int fd, int cmd, ...) in fcntl() function
/xnu-10063.141.1/bsd/sys/
H A Dfcntl.h817 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.…
82 fcntl.h \
151 errno.h ev.h event.h fcntl.h file.h filio.h \
/xnu-10063.141.1/bsd/man/man2/
H A DMakefile55 fcntl.2 \
/xnu-10063.141.1/tests/vfs/
H A Dfreeable_vnodes.c246 …T_ASSERT_POSIX_SUCCESS(fcntl(dlpath_fd, F_GETPATH, &path), "path is %s, iteration number is %d and…
/xnu-10063.141.1/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…
509 …B121C8EE4008C073F /* fcntl-base.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileTyp…
510 …A04E121C8F06008C073F /* fcntl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
511 …121C8FE2008C073F /* fcntl-cancel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileTy…
958 248BA04B121C8EE4008C073F /* fcntl-base.c */,
959 248BA04E121C8F06008C073F /* fcntl.c */,
960 248BA051121C8FE2008C073F /* fcntl-cancel.c */,
1571 248BA04F121C8F06008C073F /* fcntl.c in Sources */,
1574 248BA05C121C9649008C073F /* fcntl-cancel.c in Sources */,
/xnu-10063.141.1/tests/vm/
H A Dtest_vm_no_pager.m2 #include <fcntl.h>
/xnu-10063.141.1/tools/tests/superpages/
H A Dtestsp.c643 fcntl(fd, F_NOCACHE, 1); in test_fileio()

12