Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 21 of 21) sorted by relevance

/xnu-11215/tests/
H A Dfd_send.c13 #define SOCKETPAIR(pair) \ argument
93 int pair[2], fd, status; variable
104 T_ASSERT_EQ(send_fd(pair[0], fd), 0, "send_fd");
118 int pair[2], fd, status; variable
121 T_QUIET; SOCKETPAIR(pair);
128 T_ASSERT_EQ(send_fd(pair[0], fd), 0, "send_fd");
144 int pair[2], fd, status; variable
147 T_QUIET; SOCKETPAIR(pair);
155 T_ASSERT_EQ(send_fd(pair[0], sock[0]), 0, "send_fd");
178 int pairbuf[2], *pair = pairbuf;
[all …]
H A Dsbconcat_mbufs_123249093.c58 int pair[2] = { -1, -1 }; variable
90 T_ASSERT_POSIX_SUCCESS(socketpair(PF_LOCAL, SOCK_DGRAM, 0, pair), "socketpair");
91 T_LOG("pair[0]: %d pair[1]: %d", pair[0], pair[1]);
93 T_ASSERT_POSIX_SUCCESS(bind(pair[0], (struct sockaddr *)sun, sun->sun_len), "bind()");
95 if (getsockname(pair[0], (struct sockaddr *)sun, &address_len) == 0) {
97 pair[0], sun->sun_len, sun->sun_path);
100 pair[0], strerror(errno), errno);
104 retval = write(pair[0], NULL, 0);
107 close(pair[0]);
108 close(pair[1]);
H A Dfd.c28 int pair[2], rc; variable
31 rc = socketpair(PF_LOCAL, SOCK_STREAM, 0, pair);
34 pthread_create(&th, NULL, fd_select_close_helper, pair);
37 FD_SET(pair[0], &read_fd);
39 rc = select(pair[0] + 1, &read_fd, NULL, NULL, NULL);
46 int pair[2], rc; variable
48 rc = socketpair(PF_LOCAL, SOCK_STREAM, 0, pair);
52 FD_SET(pair[0], &read_fd);
54 T_ASSERT_POSIX_SUCCESS(close(pair[0]), "close(%d)", pair[0]);
56 rc = select(pair[0] + 1, &read_fd, NULL, NULL, NULL);
H A Duipc_uaf.c78 int pair[2]; in send_scm_rights() local
80 T_QUIET; T_ASSERT_POSIX_SUCCESS(socketpair(AF_UNIX, SOCK_STREAM, 0, pair), "socketpair"); in send_scm_rights()
82 ctrl_msg.fds[i] = pair[1]; in send_scm_rights()
84 T_QUIET; T_ASSERT_POSIX_SUCCESS(sendmsg(pair[1], &msg, 0), "sendmsg"); in send_scm_rights()
85 T_QUIET; T_ASSERT_POSIX_SUCCESS(sendmsg(pair[0], &msg, 0), "sendmsg"); in send_scm_rights()
87 T_QUIET; T_ASSERT_POSIX_SUCCESS(shutdown(pair[1], SHUT_RD), "shutdown"); in send_scm_rights()
88 T_QUIET; T_ASSERT_POSIX_FAILURE(sendmsg(pair[0], &overwrite_msg, 0), EINVAL, "sendmsg"); in send_scm_rights()
89 T_QUIET; T_ASSERT_POSIX_SUCCESS(close(pair[0]), "close"); in send_scm_rights()
90 T_QUIET; T_ASSERT_POSIX_SUCCESS(close(pair[1]), "close"); in send_scm_rights()
H A Dnet_bond.c188 test_traffic_for_pair(network_interface_pair_t pair, uint8_t af) in test_traffic_for_pair() argument
193 pair->one.if_name, pair->two.if_name); in test_traffic_for_pair()
195 server.v4 = pair->one.ip; in test_traffic_for_pair()
197 server.v6 = pair->one.ip6; in test_traffic_for_pair()
199 inet_test_traffic(af, &server, pair->one.if_name, pair->one.if_index, in test_traffic_for_pair()
200 pair->two.if_name, pair->two.if_index); in test_traffic_for_pair()
209 network_interface_pair_t pair; in test_traffic_for_af() local
211 pair = &S_vlan_pairs->list[i]; in test_traffic_for_af()
212 test_traffic_for_pair(pair, af); in test_traffic_for_af()
H A Dscm_rights_leak.c41 int pair[2] = { -1, -1 }; variable
43 T_ASSERT_POSIX_SUCCESS(socketpair(AF_UNIX, SOCK_STREAM, 0, pair),
74 ssize = sendmsg(pair[0], &mh, 0);
90 ssize = recvmsg(pair[1], &mh, MSG_PEEK);
108 ssize = recvmsg(pair[1], &mh, 0);
121 close(pair[0]);
122 close(pair[1]);
H A Dnet_vlan.c227 test_traffic_for_pair(network_interface_pair_t pair, uint8_t af) in test_traffic_for_pair() argument
229 test_traffic_for_network_interfaces(&pair->one, &pair->two, af); in test_traffic_for_pair()
238 network_interface_pair_t pair; in test_traffic_for_af() local
240 pair = &S_vlan_pairs->list[i]; in test_traffic_for_af()
241 test_traffic_for_pair(pair, af); in test_traffic_for_af()
H A Dvsock.c230 int pair[2]; variable
231 int error = socketpair(AF_VSOCK, SOCK_STREAM, 0, pair);
/xnu-11215/bsd/vfs/
H A Dvfs_utfconv.c344 u_int32_t pair; in utf8_encodestr() local
348 pair = ((ucs_ch - SP_HIGH_FIRST) << SP_HALF_SHIFT) in utf8_encodestr()
356 *utf8p++ = 0xf0 | (u_int8_t)(pair >> 18); in utf8_encodestr()
357 *utf8p++ = 0x80 | (0x3f & (pair >> 12)); in utf8_encodestr()
358 *utf8p++ = 0x80 | (0x3f & (pair >> 6)); in utf8_encodestr()
359 *utf8p++ = 0x80 | (0x3f & pair); in utf8_encodestr()
/xnu-11215/osfmk/kern/
H A Dbtlog.c1080 struct btlog_size_pair pair = {0}; in __btlog_size() local
1084 pair.btsp_size = round_page(sizeof(struct btlog_log) + in __btlog_size()
1086 pair.btsp_count = (pair.btsp_size - sizeof(struct btlog_log)) / in __btlog_size()
1091 pair.btsp_count = MAX(1u << fls(count - 1), 128u); in __btlog_size()
1092 pair.btsp_size = round_page(sizeof(struct btlog_hash) + in __btlog_size()
1093 pair.btsp_count * sizeof(struct bt_log_entry) + in __btlog_size()
1094 (pair.btsp_count >> 2) * sizeof(struct btlog_hash)); in __btlog_size()
1098 return pair; in __btlog_size()
1361 struct btlog_size_pair pair = __btlog_size(type, count); in btlog_create() local
1365 kr = kmem_alloc(kernel_map, &btlu.bta, pair.btsp_size, in btlog_create()
[all …]
/xnu-11215/osfmk/mach/
H A Dmach_voucher.defs38 /* extract just the content data for a <voucher, key> pair */
44 /* extract a recipe to reconstitue a <voucher, key> pair item in a future voucher */
H A Dmach_port.defs473 * by the <task, pset> pair. The results of passing in the
477 * If the <task,pset> pair does not represent a valid portset
/xnu-11215/libkern/c++/
H A Dpriority_queue.cpp220 entry_t pair = merge_pair_inline(que, pair_item_a, pair_item_b); in meld_pair() local
222 pair->prev = pair_list; in meld_pair()
223 pair_list = pair; in meld_pair()
H A DOSUnserialize.y184 pairs: pair
185 | pairs pair { $2->next = $1; $1->prev = $2; $$ = $2; }
188 pair: object '=' object ';' { $$ = newObject();
H A DOSUnserializeXML.y347 pairs: pair
348 | pairs pair { $$ = $2;
363 pair: key object { $$ = $1;
/xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/
H A DSerialization.h64 bool pair; member
/xnu-11215/doc/primitives/
H A Datomics.md338 dependencies that would otherwise pair with store-releases done at this address,
389 * which properly pair with the release barrier in `publish`.
401 that should pair with a store or rmw with release semantics or stronger
H A Dstring-handling.md119 in lieu of a pointer+length pair: `strbuflen(array)`, `strbufcmp(a, b)`,
/xnu-11215/iokit/DriverKit/
H A DOSAction.iig46 * The callback is specified as a method and object pair.
/xnu-11215/tools/kt-dump/
H A Dkt-dump.cpp182 std::set<std::pair<const char *, const char *> > dedup_entries;
/xnu-11215/bsd/kern/
H A Duipc_mbuf.c4625 int wait, int pair) argument
4742 if (!pair) {