Lines Matching defs:to

7  * as defined in and that are subject to the Apple Public Source License
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
48 * may be used to endorse or promote products derived from this software
66 * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
150 * System call interface to the socket abstraction.
430 * ready to be accepted. Remove it from the queue prior to
432 * block allowing another process to accept the connection
439 /* unlock head to avoid deadlock with select, keep a ref on head */
444 * Pass the pre-accepted socket to the MAC framework. This is
460 * Pass the pre-accepted socket to any interested socket filter(s).
466 /* Propagate socket filter's error code to the caller */
477 * Don't put this back on the socket like we used to, that
478 * just causes the client to spin. Drop the socket.
605 * Ask getsockaddr{_s} to not translate AF_UNSPEC to AF_INET
814 struct sockaddr *to = NULL;
833 error = getsockaddr(so, &to, mp->msg_name,
839 to = (struct sockaddr *)&ss;
845 AUDIT_ARG(sockaddr, vfs_context_cwd(vfs_context_current()), to);
862 * in an extra call to the MAC check function.
864 if ( to != NULL &&
866 (error = mac_socket_check_send(kauth_cred_get(), so, to)) != 0)
871 error = so->so_proto->pr_usrreqs->pru_sosend(so, to, uiop, 0, control,
884 if (to != NULL && want_free)
885 FREE(to, M_SONAME);
923 msg.msg_name = uap->to;
925 /* no need to set up msg_iov. sendit uses uio_t we send it */
940 * Temporary workaround to let send() and recv() work over
1042 /* allocate a uio large enough to hold the number of iovecs passed */
1146 * in an extra call to the MAC check function.
1306 * instead of recv or recvfrom when attempting to read data
1346 /* no need to set up msg_iov. recvit uses uio_t we send it */
1360 * Temporary workaround to let send() and recv() work over
1444 /* only need to copy if user process is not 64-bit */
1471 /* allocate a uio large enough to hold the number of iovecs passed */
1852 /* The fd's in the buffer must expand to be pointers, thus we need twice as much space */
1920 * Force sa_family to AF_INET on AF_INET sockets to handle
1957 * Force sa_family to AF_INET on AF_INET sockets to handle
1981 /* Macros to compute the number of mbufs needed depending on cluster size */
2016 * Try to allocate for the whole thing. Since we want full control
2017 * over the buffer size and be able to accept partial result, we can't
2018 * use mbuf_allocpacket(). The logic below is similar to sosend().
2032 * may be short on mbufs, and we want to block until they are
2051 * Send a file specified by 'fd' and starting at 'offset' to a socket
2053 * *nbytes == 0. Optionally add a header and/or trailer to the socket
2077 "File a radar related to rdar://10146739 \n"); \
2142 * Get number of bytes to send
2143 * Should it applies to size of header and trailer?
2149 * If specified, get the pointer to the sf_hdtr struct for
2197 * 1. We don't want to allocate more mbufs than necessary
2198 * 2. We don't want to read past the end of file
2207 * gather reads. We're not (yet?) setup to use zero copy external
2208 * mbufs that point to the file pages.
2228 * Calculate the amount to transfer.
2229 * Align to round number of pages.
2230 * Not to exceed send socket buffer,
2264 * Attempt to use larger than system page-size clusters for
2281 "File a radar related to rdar://10146739.\n");
2347 * Make sure that the socket is still able to take more data.
2355 * results in a loop back to here to re-check).
2369 * Wait for socket space to become available. We do this just
2370 * after checking the connection state above in order to avoid