Home
last modified time | relevance | path

Searched full:sendmsg (Results 1 – 25 of 188) sorted by relevance

12345678

/freebsd/tools/test/stress2/misc/
H A Dsendmsg.sh29 # sendmsg(2) fuzz test.
32 # https://people.freebsd.org/~pho/stress/log/sendmsg.txt
39 sed '1,/^EOF/d' < $odir/$0 > $dir/sendmsg.c
40 mycc -o sendmsg -Wall -Wextra -O0 -g sendmsg.c || exit 1
41 rm -f sendmsg.c
47 /tmp/sendmsg 2>/dev/null
52 rm -f /tmp/sendmsg sendmsg.core
55 while pgrep -q sendmsg; do
56 pkill -9 sendmsg
58 [ $n -gt 20 ] && { echo "Looping sendmsg"; exit 1; }
[all …]
H A Dsendmsg2.sh91 ret = sendmsg(sv[0], &msg, 0);
92 if (ret == -1) { perror("sendmsg"); exit(1); }
110 if (ret == -1) { perror("sendmsg"); exit(1); }
H A Doverflow3.sh79 if (sendmsg(sv[0], &hdr, 0) != 1)
80 err(1, "sendmsg");
H A Ddatagram3.sh91 len = sendmsg(sockfd, &mh, 0);
93 err(1, "sendmsg");
H A Ddatagram2.sh90 len = sendmsg(sockfd, &mh, 0);
92 err(1, "sendmsg");
/freebsd/lib/libsys/
H A Dsend.234 .Nm sendmsg ,
46 .Fn sendmsg "int s" "const struct msghdr *msg" "int flags"
58 .Fn sendmsg
72 .Fn sendmsg
94 .Fn sendmsg
187 .Fn sendmsg
202 .Fn sendmsg
280 .Fn sendmsg
H A Dsocket.2215 .Xr sendmsg 2
250 .Xr sendmsg 2
287 .Xr sendmsg 2 ,
325 .Xr sendmsg 2
391 .Xr sendmsg 2
489 .Xr sendmsg 2 ,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUAsmUtils.h63 // Symbolic names for the sendmsg(msg_id, operation, stream) syntax.
64 namespace SendMsg {
75 /// Map from a symbolic name for a sendmsg operation to the operation portion of
80 /// Map from an encoding to the symbolic name for a sendmsg operation. This is
85 } // namespace SendMsg
/freebsd/tests/sys/kern/
H A Dunix_passfd_test.c182 return (sendmsg(sockfd, &msghdr, 0)); in sendfd_payload()
194 "sendmsg: %zd bytes sent; expected %zu; %s", len, sizeof(ch), in sendfd()
497 ATF_REQUIRE(sendmsg(fd[0], &msghdr, 0) == -1); in ATF_TC_BODY()
503 ATF_REQUIRE(sendmsg(fd[0], &msghdr, 0) == 1); in ATF_TC_BODY()
516 ATF_REQUIRE(sendmsg(fd[0], &msghdr, 0) == 1); in ATF_TC_BODY()
565 "sendmsg: %zd bytes sent, errno %d", len, errno); in ATF_TC_BODY()
568 "sendmsg: %zd bytes sent, errno %d", len, errno); in ATF_TC_BODY()
730 ATF_REQUIRE_MSG(len != -1 , "sendmsg failed: %s", strerror(errno)); in ATF_TC_BODY()
733 "sendmsg: %zd bytes sent, expected < %lu", len, sendspace); in ATF_TC_BODY()
737 * sendmsg(2) can't truncate datagrams, only recvmsg(2) can. There are in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/sys/
H A Dsendmsg.c37 #pragma weak sendmsg macro
39 sendmsg(int s, const struct msghdr *msg, int flags) in sendmsg() function
41 return (INTERPOS_SYS(sendmsg, s, msg, flags)); in sendmsg()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_linux.c473 ret = sendmsg(skcipher->t, &msg, 0); in linux_af_alg_skcipher_oper()
475 wpa_printf(MSG_ERROR, "%s: sendmsg failed: %s", in linux_af_alg_skcipher_oper()
575 ret = sendmsg(skcipher->t, &msg, 0); in rc4_skip()
577 wpa_printf(MSG_ERROR, "%s: sendmsg failed: %s", in rc4_skip()
648 ret = sendmsg(skcipher->t, &msg, 0); in des_encrypt()
650 wpa_printf(MSG_ERROR, "%s: sendmsg failed: %s", in des_encrypt()
717 ret = sendmsg(skcipher->t, &msg, 0); in aes_128_cbc_oper()
719 wpa_printf(MSG_ERROR, "%s: sendmsg failed: %s", in aes_128_cbc_oper()
826 ret = sendmsg(skcipher->t, &msg, 0); in aes_unwrap()
828 wpa_printf(MSG_ERROR, "%s: sendmsg failed: %s", in aes_unwrap()
[all …]
/freebsd/share/man/man3/
H A DCMSG_DATA.332 .Xr sendmsg 2
161 if (sendmsg(presharedfd[0], &msg, 0) == -1)
162 err(EX_IOERR, "sendmsg");
176 .Xr sendmsg 2 ,
/freebsd/crypto/openssh/
H A Dmonitor_fdpass.c81 while ((n = sendmsg(sock, &msg, 0)) == -1 && in mm_send_fd()
83 debug3_f("sendmsg(%d): %s", fd, strerror(errno)); in mm_send_fd()
87 error_f("sendmsg(%d): %s", fd, strerror(errno)); in mm_send_fd()
92 error_f("sendmsg: expected sent 1 got %zd", n); in mm_send_fd()
/freebsd/crypto/openssl/doc/designs/quic-design/
H A Ddgram-api.md23 on OSes which do not support `sendmmsg` or `sendmsg`.
36 calls to `sendmsg`. For OSes which do not support `sendmsg`, we emulate it
262 `sendmsg`/`recvmsg`.
268 at least sendmsg/recvmsg is a simple solution but adds
276 the iovec arguments on platforms without `sendmsg`/`recvmsg`. (We cannot
286 `sendmsg`/`recvmsg`. This again adds burdens on the code using
357 APIs proposed in the sendmsg/recvmsg PR (#5257). `BIO_get_dgram_(origin|dest)`
/freebsd/contrib/pf/pflogd/
H A Dprivsep_fdpass.c81 if ((n = sendmsg(sock, &msg, 0)) == -1) in send_fd()
82 warn("%s: sendmsg(%d)", __func__, sock); in send_fd()
84 warnx("%s: sendmsg: expected sent 1 got %ld", in send_fd()
/freebsd/contrib/wpa/src/l2_packet/
H A Dl2_packet_privsep.c46 if (sendmsg(l2->fd, &msg, 0) < 0) { in wpa_priv_cmd()
47 wpa_printf(MSG_ERROR, "L2: sendmsg(cmd): %s", strerror(errno)); in wpa_priv_cmd()
84 if (sendmsg(l2->fd, &msg, 0) < 0) { in l2_packet_send()
85 wpa_printf(MSG_ERROR, "L2: sendmsg(packet_send): %s", in l2_packet_send()
/freebsd/crypto/heimdal/lib/roken/
H A Dsendmsg.c41 sendmsg(rk_socket_t s, const struct msghdr *msg, int flags) in sendmsg() function
104 * Implementation of sendmsg() for WIN32
132 WSAMSG which is a much more direct analogue to sendmsg(). */ in sendmsg_w32()
/freebsd/crypto/openssl/engines/
H A De_afalg.c505 * kernel as part of sendmsg()'s ancillary data in afalg_start_cipher_sk()
525 /* Input data is not sent as part of call to sendmsg() */ in afalg_start_cipher_sk()
529 /* Sendmsg() sends iv and cipher direction to the kernel */ in afalg_start_cipher_sk()
530 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk()
532 ALG_PERR("%s(%d): sendmsg failed for zero copy cipher operation : ", in afalg_start_cipher_sk()
556 /* Sendmsg() sends iv, cipher direction and input data to the kernel */ in afalg_start_cipher_sk()
557 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk()
559 ALG_PERR("%s(%d): sendmsg failed for cipher operation : ", __FILE__, in afalg_start_cipher_sk()
/freebsd/contrib/mandoc/
H A Dcatman.c124 * It appears that on some systems, sendmsg(3) in process_manpage()
131 while ((sz = sendmsg(fd, &msg, 0)) == -1) { in process_manpage()
133 warn("FATAL: sendmsg"); in process_manpage()
/freebsd/contrib/netbsd-tests/net/fdpass/
H A Dfdpass.c81 while ((n = sendmsg(sock, &msg, 0)) == -1 && in send_fd()
87 err(1, "%s: sendmsg(%d)", __func__, fd); in send_fd()
93 errx(1, "%s: sendmsg: expected sent 1 got %ld", in send_fd()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Dt_cmsg_len.c81 if (sendmsg(fd, &msghdr, 0) < 0) { in t_cmsg_len_client()
82 uc_dbgmsg("sendmsg(2) failed: %s; retrying", in t_cmsg_len_client()
/freebsd/share/man/man4/
H A Dip6.4138 .Xr sendmsg 2 .
378 .Xr sendmsg 2
442 .Xr sendmsg 2
453 .Xr sendmsg 2
474 .Xr sendmsg 2 )
/freebsd/tests/sys/netinet/
H A Dudp_bindings.c129 ATF_REQUIRE_MSG(sendmsg(s, &msg, 0) == -1 && errno == EINVAL, in ATF_TC_BODY()
130 "sendmsg(.cmsg_type = IP_SENDSRCADDR), errno %d", errno); in ATF_TC_BODY()
150 ATF_REQUIRE(sendmsg(s, &msg, 0) == sizeof(buf)); in ATF_TC_BODY()
H A Dudp_io.c82 ATF_REQUIRE(sendmsg(s[1], &msg, 0) == sizeof(sbuf)); in ATF_TC_BODY()
117 ATF_REQUIRE(sendmsg(s[1], &msg, 0) == sizeof(sbuf)); in ATF_TC_BODY()
/freebsd/usr.sbin/rtsold/
H A Dcap_sendmsg.c120 return (sendmsg(sock, &hdr, 0)); in sendpacket()
247 warnmsg(LOG_ERR, __func__, "sendmsg on %s: %s", in cap_rssend()
281 CREATE_SERVICE("rtsold.sendmsg", NULL, sendmsg_command, 0);

12345678