PageRenderTime 185ms queryFilters 1ms Sphinxql 23ms app.CodeModel.GetByIds 51ms findMatchingLines 21ms GetByIds 72ms meta 0ms repositoryFilters 18ms languageFilters 1ms sourceFilters 3ms

15,640 results for 'MSG_PEEK' (185 ms)

Source

Language

Repository

uipc_socket.cc https://gitlab.com/jforge/osv.git | C++ | 3,583 lines
1305	m = m_get(M_WAIT, MT_DATA);
1306	error = (*pr->pr_usrreqs->pru_rcvoob)(so, m, flags & MSG_PEEK);
1307	if (error)
1427			error = so->so_error;
1428			if ((flags & MSG_PEEK) == 0)
1429				so->so_error = 0;
1491			    M_NOWAIT);
1492		if (flags & MSG_PEEK) {
1493			m = m->m_hdr.mh_next;
1503	 * Process one or more MT_CONTROL mbufs present before any data mbufs
1504	 * in the first mbuf chain on the socket buffer.  If MSG_PEEK, we
1505	 * just copy the data; if !MSG_PEEK, we call into the protocol to
1512		do {
1513			if (flags & MSG_PEEK) {
1514				if (controlp != NULL) {
ERRATA.txt https://bitbucket.org/nexenta/onnv_134 | text | 786 lines
55 #define _stream_peek	1	/* ioctl(I_PEEK) works */
56 #define _socket_peek	1	/* recv(MSG_PEEK) works */
57 #define _hdr_string	1	/* #include <string.h> ok */
68 #define _stream_peek	1	/* ioctl(I_PEEK) works */
69 #define _socket_peek	1	/* recv(MSG_PEEK) works */
70 #define _hdr_string	1	/* #include <string.h> ok */
81 #define _stream_peek	1	/* ioctl(I_PEEK) works */
82 #define _socket_peek	1	/* recv(MSG_PEEK) works */
83 #define _hdr_string	1	/* #include <string.h> ok */
94 #define _stream_peek	1	/* ioctl(I_PEEK) works */
95 #define _socket_peek	1	/* recv(MSG_PEEK) works */
96 #define _hdr_string	1	/* #include <string.h> ok */
107 #define _stream_peek	1	/* ioctl(I_PEEK) works */
108 #define _socket_peek	1	/* recv(MSG_PEEK) works */
109 #define _hdr_string	1	/* #include <string.h> ok */
extconf.rb https://github.com/ahwuyeah/ruby.git | Ruby | 694 lines
123
124RECVMSG_WITH_MSG_PEEK_ALLOCATE_FD_TEST = <<'EOF'
125#include <stdlib.h>
192
193    ss = recvmsg(sv[1], &r_msg, MSG_PEEK);
194    if (ss == -1) { perror("recvmsg"); exit(EXIT_FAILURE); }
244
245def test_recvmsg_with_msg_peek_creates_fds(headers)
246  case RUBY_PLATFORM
247  when /linux/
248    # Linux 2.6.38 allocate fds by recvmsg with MSG_PEEK.
249    close_fds = true
251    # FreeBSD 8.2.0, NetBSD 5 and MacOS X Snow Leopard doesn't
252    # allocate fds by recvmsg with MSG_PEEK.
253    # [ruby-dev:44189]
uipc_socket.c https://github.com/7shi/openbsd-loongson-vc.git | C | 1,316 lines
573		error = (*pr->pr_usrreq)(so, PRU_RCVOOB, m,
574		    (struct mbuf *)(long)(flags & MSG_PEEK), NULL, curproc);
575		if (error)
621			error = so->so_error;
622			if ((flags & MSG_PEEK) == 0)
623				so->so_error = 0;
674		orig_resid = 0;
675		if (flags & MSG_PEEK) {
676			if (paddr)
692	while (m && m->m_type == MT_CONTROL && error == 0) {
693		if (flags & MSG_PEEK) {
694			if (controlp)
733	if (m) {
734		if ((flags & MSG_PEEK) == 0) {
735			m->m_nextpkt = nextrecord;
extconf.rb https://github.com/jhs/ruby-inabox.git | Ruby | 636 lines
123
124RECVMSG_WITH_MSG_PEEK_ALLOCATE_FD_TEST = <<'EOF'
125#include <stdlib.h>
192
193    ss = recvmsg(sv[1], &r_msg, MSG_PEEK);
194    if (ss == -1) { perror("recvmsg"); exit(EXIT_FAILURE); }
244
245def test_recvmsg_with_msg_peek_creates_fds(headers)
246  case RUBY_PLATFORM
247  when /linux/
248    # Linux 2.6.38 allocate fds by recvmsg with MSG_PEEK.
249    close_fds = true
251    # FreeBSD 8.2.0, NetBSD 5 and MacOS X Snow Leopard doesn't
252    # allocate fds by recvmsg with MSG_PEEK.
253    # [ruby-dev:44189]
tcp.c https://bitbucket.org/zarboz/villez-htc-2.40-linux-3.0.51.git | C | 3,452 lines
1174
1175		if (!(flags & MSG_PEEK))
1176			tp->urg_data = TCP_URG_READ;
1453	seq = &tp->copied_seq;
1454	if (flags & MSG_PEEK) {
1455		peek_seq = tp->copied_seq;
1470		if ((available < target) &&
1471		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1472		    !sysctl_tcp_low_latency &&
1514				goto found_fin_ok;
1515			WARN(!(flags & MSG_PEEK),
1516			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1569			/* Install new reader */
1570			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1571				user_recv = current;
tcp.c https://bitbucket.org/zarboz/villez-htc-2.38-linux-3.0.51.git | C | 3,450 lines
1172
1173		if (!(flags & MSG_PEEK))
1174			tp->urg_data = TCP_URG_READ;
1451	seq = &tp->copied_seq;
1452	if (flags & MSG_PEEK) {
1453		peek_seq = tp->copied_seq;
1468		if ((available < target) &&
1469		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1470		    !sysctl_tcp_low_latency &&
1512				goto found_fin_ok;
1513			WARN(!(flags & MSG_PEEK),
1514			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1567			/* Install new reader */
1568			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1569				user_recv = current;
tcp.c https://bitbucket.org/zarboz/evilz.213.blackout_edition.git | C | 3,454 lines
1172
1173		if (!(flags & MSG_PEEK))
1174			tp->urg_data = TCP_URG_READ;
1451	seq = &tp->copied_seq;
1452	if (flags & MSG_PEEK) {
1453		peek_seq = tp->copied_seq;
1468		if ((available < target) &&
1469		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1470		    !sysctl_tcp_low_latency &&
1512				goto found_fin_ok;
1513			WARN(!(flags & MSG_PEEK),
1514			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1567			/* Install new reader */
1568			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1569				user_recv = current;
tcp.c https://bitbucket.org/teamblackout/vivo-blackout-edition.git | C | 3,442 lines
1165
1166		if (!(flags & MSG_PEEK))
1167			tp->urg_data = TCP_URG_READ;
1444	seq = &tp->copied_seq;
1445	if (flags & MSG_PEEK) {
1446		peek_seq = tp->copied_seq;
1461		if ((available < target) &&
1462		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1463		    !sysctl_tcp_low_latency &&
1505				goto found_fin_ok;
1506			WARN(!(flags & MSG_PEEK),
1507			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1560			/* Install new reader */
1561			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1562				user_recv = current;
tcp.c https://bitbucket.org/sp4rda/source-ville.git | C | 3,448 lines
1175
1176		if (!(flags & MSG_PEEK))
1177			tp->urg_data = TCP_URG_READ;
1454	seq = &tp->copied_seq;
1455	if (flags & MSG_PEEK) {
1456		peek_seq = tp->copied_seq;
1471		if ((available < target) &&
1472		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1473		    !sysctl_tcp_low_latency &&
1515				goto found_fin_ok;
1516			WARN(!(flags & MSG_PEEK),
1517			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1570			/* Install new reader */
1571			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1572				user_recv = current;
tcp.c https://bitbucket.org/zarboz/ville-upstream-test-branch.git | C | 3,317 lines
1155
1156		if (!(flags & MSG_PEEK))
1157			tp->urg_data = TCP_URG_READ;
1429	seq = &tp->copied_seq;
1430	if (flags & MSG_PEEK) {
1431		peek_seq = tp->copied_seq;
1446		if ((available < target) &&
1447		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1448		    !sysctl_tcp_low_latency &&
1490				goto found_fin_ok;
1491			WARN(!(flags & MSG_PEEK),
1492			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1545			/* Install new reader */
1546			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1547				user_recv = current;
tcp.c https://bitbucket.org/altlc/wive-rtnl-ralink-rt305x-routers-firmware-amod.git | C | 2,575 lines
931
932		if (!(flags & MSG_PEEK))
933			tp->urg_data = TCP_URG_READ;
1168	seq = &tp->copied_seq;
1169	if (flags & MSG_PEEK) {
1170		peek_seq = tp->copied_seq;
1178	preempt_disable();
1179	if ((len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1180	    !sysctl_tcp_low_latency && __get_cpu_var(softnet_data).net_dma) {
1222				goto found_fin_ok;
1223			WARN_ON(!(flags & MSG_PEEK));
1224			skb = skb->next;
1276			/* Install new reader */
1277			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1278				user_recv = current;
tcp.c https://bitbucket.org/zarboz/droid-dna-beastmode.git | C | 3,487 lines
1172
1173		if (!(flags & MSG_PEEK))
1174			tp->urg_data = TCP_URG_READ;
1449	seq = &tp->copied_seq;
1450	if (flags & MSG_PEEK) {
1451		peek_seq = tp->copied_seq;
1466		if ((available < target) &&
1467		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1468		    !sysctl_tcp_low_latency &&
1510				goto found_fin_ok;
1511			WARN(!(flags & MSG_PEEK),
1512			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1565			/* Install new reader */
1566			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1567				user_recv = current;
tcp.c https://bitbucket.org/p2pjack/ucxl.git | C | 3,434 lines
1163
1164		if (!(flags & MSG_PEEK))
1165			tp->urg_data = TCP_URG_READ;
1442	seq = &tp->copied_seq;
1443	if (flags & MSG_PEEK) {
1444		peek_seq = tp->copied_seq;
1459		if ((available < target) &&
1460		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1461		    !sysctl_tcp_low_latency &&
1503				goto found_fin_ok;
1504			WARN(!(flags & MSG_PEEK),
1505			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1558			/* Install new reader */
1559			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1560				user_recv = current;
tcp.c https://bitbucket.org/morfic/trinity_four.git | C | 3,455 lines
1167
1168		if (!(flags & MSG_PEEK))
1169			tp->urg_data = TCP_URG_READ;
1444	seq = &tp->copied_seq;
1445	if (flags & MSG_PEEK) {
1446		peek_seq = tp->copied_seq;
1461		if ((available < target) &&
1462		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1463		    !sysctl_tcp_low_latency &&
1505				goto found_fin_ok;
1506			WARN(!(flags & MSG_PEEK),
1507			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1560			/* Install new reader */
1561			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1562				user_recv = current;
tcp.c https://bitbucket.org/jdstroy/ipaq214.git | C | 2,936 lines
1099
1100		if (!(flags & MSG_PEEK))
1101			tp->urg_data = TCP_URG_READ;
1339	seq = &tp->copied_seq;
1340	if (flags & MSG_PEEK) {
1341		peek_seq = tp->copied_seq;
1356		if ((available < target) &&
1357		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1358		    !sysctl_tcp_low_latency &&
1403				goto found_fin_ok;
1404			WARN_ON(!(flags & MSG_PEEK));
1405			skb = skb->next;
1457			/* Install new reader */
1458			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1459				user_recv = current;
tcp.c https://bitbucket.org/morfic/jb-sgs3-tmo.git | C | 3,441 lines
1164
1165		if (!(flags & MSG_PEEK))
1166			tp->urg_data = TCP_URG_READ;
1443	seq = &tp->copied_seq;
1444	if (flags & MSG_PEEK) {
1445		peek_seq = tp->copied_seq;
1460		if ((available < target) &&
1461		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1462		    !sysctl_tcp_low_latency &&
1504				goto found_fin_ok;
1505			WARN(!(flags & MSG_PEEK),
1506			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1559			/* Install new reader */
1560			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1561				user_recv = current;
tcp.c https://bitbucket.org/bradfa/linux.git | C | 3,678 lines
1272
1273		if (!(flags & MSG_PEEK))
1274			tp->urg_data = TCP_URG_READ;
1576		err = -EPERM;
1577		if (!(flags & MSG_PEEK))
1578			goto out;
1586
1587		/* 'common' recv queue MSG_PEEK-ing */
1588	}
1590	seq = &tp->copied_seq;
1591	if (flags & MSG_PEEK) {
1592		peek_seq = tp->copied_seq;
1607		if ((available < target) &&
1608		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1609		    !sysctl_tcp_low_latency &&
tcp.c https://bitbucket.org/codefirex/kernel_lge_kamakogeebang.git | C | 3,463 lines
1167
1168		if (!(flags & MSG_PEEK))
1169			tp->urg_data = TCP_URG_READ;
1444	seq = &tp->copied_seq;
1445	if (flags & MSG_PEEK) {
1446		peek_seq = tp->copied_seq;
1461		if ((available < target) &&
1462		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1463		    !sysctl_tcp_low_latency &&
1505				goto found_fin_ok;
1506			WARN(!(flags & MSG_PEEK),
1507			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1560			/* Install new reader */
1561			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1562				user_recv = current;
tcp.c https://bitbucket.org/DutchDanny/bindroid-xtc-onex.git | C | 3,457 lines
1164
1165		if (!(flags & MSG_PEEK))
1166			tp->urg_data = TCP_URG_READ;
1443	seq = &tp->copied_seq;
1444	if (flags & MSG_PEEK) {
1445		peek_seq = tp->copied_seq;
1460		if ((available < target) &&
1461		    (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
1462		    !sysctl_tcp_low_latency &&
1504				goto found_fin_ok;
1505			WARN(!(flags & MSG_PEEK),
1506			     "recvmsg bug 2: copied %X seq %X rcvnxt %X fl %X\n",
1559			/* Install new reader */
1560			if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) {
1561				user_recv = current;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21