100+ results results for 'MSG_PEEK' (34707 ms)
162 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 163#define MSG_PEEK MSG_PEEK 164 MSG_DONTROUTE = 0x04, /* Don't use local routing. */toc-bert_rpr.rpc-module.html https://github.com/DwayneDibley/BERT-RPR.git | HTML | 155 lines
88 >MSG_DONTROUTE</a><br /> <a target="mainFrame" href="bert_rpr.rpc-module.html#MSG_OOB" 89 >MSG_OOB</a><br /> <a target="mainFrame" href="bert_rpr.rpc-module.html#MSG_PEEK" 90 >MSG_PEEK</a><br /> <a target="mainFrame" href="bert_rpr.rpc-module.html#MSG_TRUNC"datagram.c https://github.com/gtvhacker/Logitech-Revue.git | C | 535 lines
167 */ 168 if (flags & MSG_PEEK) { 169 unsigned long cpu_flags; 212 * 213 * If the MSG_PEEK flag is set, and the packet is still on the 214 * receive queue of the socket, it will be taken off the queue 223{ 224 if (flags & MSG_PEEK) { 225 spin_lock_bh(&sk->sk_receive_queue.lock);socket.h https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C Header | 300 lines
224#define MSG_OOB 1 225#define MSG_PEEK 2 226#define MSG_DONTROUTE 4socket.h https://gitlab.com/brian0218/rk3288_r-box_android4.4.2_sdk | C Header | 300 lines
224#define MSG_OOB 1 225#define MSG_PEEK 2 226#define MSG_DONTROUTE 4sockets.h https://bitbucket.org/FoolsDelight/openbeacon.git | C Header | 346 lines
134/* Flags we can use with send and recv. */ 135#define MSG_PEEK 0x01 /* Peeks at an incoming message */ 136#define MSG_WAITALL 0x02 /* Unimplemented: Requests that the function block until the full amount of data requested can be returned */AsyncFile.py git://pkgs.fedoraproject.org/eric | Python | 293 lines
178 # read a line at a time. 179 line = self.sock.recv(size, socket.MSG_PEEK) 180socket.h https://github.com/mseaborn/plash-glibc.git | C Header | 343 lines
162 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 163#define MSG_PEEK MSG_PEEK 164 MSG_DONTROUTE = 0x04, /* Don't use local routing. */ofxUDPManager.cpp https://gitlab.com/stillwalker1234/example-code | C++ | 559 lines
267 268 // we can use MSG_PEEK, but we still need a large buffer (udp protocol max is 64kb even if max for this socket is less) 269 // don't want a 64kb stack item here, so instead read how much can be read (note: not queue size, there may be more data-more packets)ipv4-header-test.cc https://gitlab.com/msepahkar/location_in_wireless_ndn | C++ | 266 lines
104 availableData = socket->GetRxAvailable (); 105 m_receivedPacket = socket->Recv (2, MSG_PEEK); 106 NS_ASSERT (m_receivedPacket->GetSize () == 2);kernel_netlink_shared.c git://pkgs.fedoraproject.org/strongswan | C | 307 lines
163 * numbers to detect multi header messages */ 164 len = recvfrom(this->socket, &peek, sizeof(peek), MSG_PEEK | MSG_DONTWAIT, 165 (struct sockaddr*)&addr, &addr_len);socket.h https://github.com/jeremie-koenig/glibc.git | C Header | 343 lines
162 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 163#define MSG_PEEK MSG_PEEK 164 MSG_DONTROUTE = 0x04, /* Don't use local routing. */socket_types.hpp https://github.com/mongodb/mongo.git | C++ Header | 416 lines
141# define ASIO_OS_DEF_MSG_OOB 0x1 142# define ASIO_OS_DEF_MSG_PEEK 0x2 143# define ASIO_OS_DEF_MSG_DONTROUTE 0x4 226# define ASIO_OS_DEF_MSG_OOB MSG_OOB 227# define ASIO_OS_DEF_MSG_PEEK MSG_PEEK 228# define ASIO_OS_DEF_MSG_DONTROUTE MSG_DONTROUTE 342# define ASIO_OS_DEF_MSG_OOB MSG_OOB 343# define ASIO_OS_DEF_MSG_PEEK MSG_PEEK 344# define ASIO_OS_DEF_MSG_DONTROUTE MSG_DONTROUTEvchi.h https://gitlab.com/kush/linux | C Header | 238 lines
132// will return the same message. 133extern int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, 134 void **data,IN.py https://bitbucket.org/__wp__/mb-linux-msli.git | Python | 430 lines
145MSG_OOB = 1 146MSG_PEEK = 2 147MSG_DONTROUTE = 4vchi.h https://gitlab.com/Skylake/Staging | C Header | 238 lines
132// will return the same message. 133extern int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, 134 void **data,socket.h https://github.com/GNA-SERVICES-INC/MoNGate.git | C Header | 431 lines
200 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 201#define MSG_PEEK MSG_PEEK 202 MSG_DONTROUTE = 0x04, /* Don't use local routing. */socket.h https://github.com/GNA-SERVICES-INC/MoNGate.git | C Header | 431 lines
200 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 201#define MSG_PEEK MSG_PEEK 202 MSG_DONTROUTE = 0x04, /* Don't use local routing. */syscall_windows.go https://gitlab.com/4144/gcc | Go | 307 lines
129 130 MSG_PEEK = 0x2 131 MSG_TRUNC = 0x0100socket_base.hpp https://gitlab.com/cdeclare/intcrypt | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,main.c https://gitlab.com/o1s2/selflrrn | C | 438 lines
41int mcastttl; /* multicast TTL */ 42int msgpeek; /* MSG_PEEK */ 43int nodelay; /* TCP_NODELAY (Nagle algorithm) */ 293 294 case 'Z': /* MSG_PEEK option */ 295 msgpeek = MSG_PEEK; 428" -Y SO_DONTROUTE option\n" 429" -Z MSG_PEEK\n" 430#ifdef IP_ONESBCASTvchi.h https://gitlab.com/freesoftware/linux | C Header | 238 lines
132// will return the same message. 133extern int32_t vchi_msg_peek(VCHI_SERVICE_HANDLE_T handle, 134 void **data,socket_base.hpp https://gitlab.com/max-crow/rtbkit-deps-p | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,socket_base.hpp https://gitlab.com/haraven/public_key_cryptography | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,socket_base.hpp https://gitlab.com/haraven/public_key_cryptography | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,ospf6_network.c https://github.com/labx-technologies-llc/mb-linux-labx.git | C | 501 lines
458void 459ospf6_recvmsg_peek (struct in6_addr *src, struct in6_addr *dst, 460 unsigned int *ifindex, struct iovec *message) 486 487 retval = recvmsg (ospf6_sock, &rmsghdr, MSG_PEEK); 488 if (retval != iov_totallen (message))main.c https://gitlab.com/timofonic/selflrrn | C | 438 lines
41int mcastttl; /* multicast TTL */ 42int msgpeek; /* MSG_PEEK */ 43int nodelay; /* TCP_NODELAY (Nagle algorithm) */ 293 294 case 'Z': /* MSG_PEEK option */ 295 msgpeek = MSG_PEEK; 428" -Y SO_DONTROUTE option\n" 429" -Z MSG_PEEK\n" 430#ifdef IP_ONESBCASTsocket_base.hpp https://gitlab.com/alvinahmadov2/icq-desktop | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,socket_base.hpp https://gitlab.com/haraven/formal_langs_and_compiler_design | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,sock.c https://github.com/hackndev/linux-hnd.git | C | 388 lines
112 113 result = _recvfrom(socket, header, 4, MSG_PEEK); 114 if (result == -EAGAIN)socket_base.hpp https://gitlab.com/0072016/0072016-ApplePayDevice- | C++ Header | 522 lines
69 BOOST_ASIO_STATIC_CONSTANT(int, 70 message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK)); 71 BOOST_ASIO_STATIC_CONSTANT(int,TCP.cpp https://gitlab.com/piconf/software.git | C++ | 308 lines
104void VIO::TCP::read() { 105 int bytes = recv(fd, destinations.front().data, destinations.front().left, destinations.front().size ? 0 : MSG_PEEK); 106 if (0 > bytes)neighbour_test.py https://gitlab.com/cde/debian_android-tools_android-platform-system-extras | Python | 297 lines
97 def CheckNoNdEvents(self): 98 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK) 99socket_types.hpp https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C++ Header | 208 lines
148const int shutdown_both = SD_BOTH; 149const int message_peek = MSG_PEEK; 150const int message_out_of_band = MSG_OOB; 187const int shutdown_both = SHUT_RDWR; 188const int message_peek = MSG_PEEK; 189const int message_out_of_band = MSG_OOB;application_manager.rb https://gitlab.com/gitnyasha/zimcreative | Ruby | 140 lines
124 IO.select([child]) 125 break if child.recv(1, Socket::MSG_PEEK).empty? 126 sleep 0.01socket.h https://gitlab.com/ultr/glibc | C Header | 358 lines
177 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 178#define MSG_PEEK MSG_PEEK 179 MSG_DONTROUTE = 0x04, /* Don't use local routing. */socket.h https://gitlab.com/gbenson/glibc | C Header | 365 lines
182 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 183#define MSG_PEEK MSG_PEEK 184 MSG_DONTROUTE = 0x04, /* Don't use local routing. */socket.h https://github.com/GNA-SERVICES-INC/MoNGate.git | C Header | 429 lines
204 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 205#define MSG_PEEK MSG_PEEK 206 MSG_DONTROUTE = 0x04, /* Don't use local routing. */os_socket.h https://bitbucket.org/oregon/oregoncore/ | C Header | 306 lines
152 153#if !defined (MSG_PEEK) 154# define MSG_PEEK 0x2 154# define MSG_PEEK 0x2 155#endif /* MSG_PEEK */ 156ast_lib.h https://bitbucket.org/a3217055/illumos-joyent.git | C Header | 182 lines
166#define _stream_peek 1 /* ioctl(I_PEEK) works */ 167#define _socket_peek 1 /* recv(MSG_PEEK) works */ 168#define _hdr_string 1 /* #include <string.h> ok */ast_lib.h https://bitbucket.org/a3217055/illumos-2.git | C Header | 182 lines
166#define _stream_peek 1 /* ioctl(I_PEEK) works */ 167#define _socket_peek 1 /* recv(MSG_PEEK) works */ 168#define _hdr_string 1 /* #include <string.h> ok */socket.h https://bitbucket.org/pizzafactory/blackfin-toolchain.git | C Header | 369 lines
203 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 204#define MSG_PEEK MSG_PEEK 205 MSG_DONTROUTE = 0x04, /* Don't use local routing. */nl.c https://gitlab.com/gl-xinshouyong/1407-mifi-customer-tmp | C | 720 lines
395 396 if (sk->s_flags & NL_MSG_PEEK) 397 flags |= MSG_PEEK;ngx_http_ajp_msg.c https://github.com/yaoweibin/nginx_ajp_module.git | C | 482 lines
244ngx_int_t 245ajp_msg_peek_uint16(ajp_msg_t *msg, uint16_t *rvalue) 246{ 252 if ((buf->pos + 2) > buf->last) { 253 return ajp_log_overflow(msg, "ajp_msg_peek_uint16"); 254 } 265ngx_int_t 266ajp_msg_peek_uint8(ajp_msg_t *msg, u_char *rvalue) 267{ 268 if ((msg->buf->pos + 1) > msg->buf->last) { 269 return ajp_log_overflow(msg, "ajp_msg_peek_uint8"); 270 }poll.c https://gitlab.com/nmusco/git | C | 614 lines
71 72/* BeOS does not have MSG_PEEK. */ 73#ifndef MSG_PEEK 73#ifndef MSG_PEEK 74# define MSG_PEEK 0 75#endif 244 WSASetLastError (0); 245 r = recv (h, data, sizeof (data), MSG_PEEK); 246 error = WSAGetLastError (); 282# if defined __MACH__ && defined __APPLE__ 283 /* There is a bug in Mac OS X that causes it to ignore MSG_PEEK 284 for some kinds of descriptors. Detect if this descriptor is a 286 0-byte recv, and use ioctl(2) to detect POLLHUP. */ 287 r = recv (fd, NULL, 0, MSG_PEEK); 288 socket_errno = (r < 0) ? errno : 0;RubySocket.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 605 lines
96 rb_mConstants.setConstant("MSG_OOB", runtime.newFixnum(MSG_OOB)); 97 rb_mConstants.setConstant("MSG_PEEK", runtime.newFixnum(MSG_PEEK)); 98 rb_mConstants.setConstant("MSG_DONTROUTE", runtime.newFixnum(MSG_DONTROUTE));owsl_tcp.c https://github.com/VoxOx/VoxOx.git | C | 330 lines
66 /* get packet and packet size */ 67 received_bytes = recv (socket->system_socket, buffer, OWSL_TCP_BUFFER_SIZE, MSG_PEEK) ; 68 if (received_bytes > 0)PlainDatagramSocketImpl.java https://github.com/TaintDroid/android_platform_libcore.git | Java | 240 lines
173 public int peekData(DatagramPacket pack) throws IOException { 174 doRecv(pack, MSG_PEEK); 175 return pack.getPort();socket.h https://gitlab.com/gl-xinshouyong/1407-mifi-customer-tmp | C Header | 221 lines
24#define NL_OWN_PORT (1<<2) 25#define NL_MSG_PEEK (1<<3) 26#define NL_NO_AUTO_ACK (1<<4) 151/** 152 * Enable use of MSG_PEEK when reading from socket 153 * @arg sk Netlink socket. 154 */ 155static inline void nl_socket_enable_msg_peek(struct nl_sock *sk) 156{ 156{ 157 sk->s_flags |= NL_MSG_PEEK; 158} 160/** 161 * Disable use of MSG_PEEK when reading from socket 162 * @arg sk Netlink socket.poll.c https://gitlab.com/Blueprint-Marketing/git | C | 626 lines
71 72/* BeOS does not have MSG_PEEK. */ 73#ifndef MSG_PEEK 73#ifndef MSG_PEEK 74# define MSG_PEEK 0 75#endif 244 WSASetLastError (0); 245 r = recv (h, data, sizeof (data), MSG_PEEK); 246 error = WSAGetLastError (); 282# if defined __MACH__ && defined __APPLE__ 283 /* There is a bug in Mac OS X that causes it to ignore MSG_PEEK 284 for some kinds of descriptors. Detect if this descriptor is a 286 0-byte recv, and use ioctl(2) to detect POLLHUP. */ 287 r = recv (fd, NULL, 0, MSG_PEEK); 288 socket_errno = (r < 0) ? errno : 0;vsock_test.c git://github.com/torvalds/linux.git | C | 456 lines
252 253static void test_stream_msg_peek_client(const struct test_opts *opts) 254{ 266 267static void test_stream_msg_peek_server(const struct test_opts *opts) 268{ 276 277 recv_byte(fd, 1, MSG_PEEK); 278 recv_byte(fd, 1, 0); 307 { 308 .name = "SOCK_STREAM MSG_PEEK", 309 .run_client = test_stream_msg_peek_client, 309 .run_client = test_stream_msg_peek_client, 310 .run_server = test_stream_msg_peek_server, 311 },sock.h https://gitlab.com/lely_industries/io | C Header | 697 lines
52 //! Peeks at incoming data. 53 IO_MSG_PEEK = 1 << 0, 54 //! Requests out-of-band data. 112 * source address. 113 * \param flags the type of message reception (any combination of #IO_MSG_PEEK, 114 * #IO_MSG_OOB and #IO_MSG_WAITALL).nl.c https://gitlab.com/YoungCereal/openwrt-bpi-r1 | C | 720 lines
395 396 if (sk->s_flags & NL_MSG_PEEK) 397 flags |= MSG_PEEK;socket.h https://bitbucket.org/altlc/wive-rtnl-ralink-rt305x-routers-firmware-amod.git | C Header | 369 lines
203 MSG_PEEK = 0x02, /* Peek at incoming messages. */ 204#define MSG_PEEK MSG_PEEK 205 MSG_DONTROUTE = 0x04, /* Don't use local routing. */socket.h https://gitlab.com/YoungCereal/openwrt-bpi-r1 | C Header | 221 lines
24#define NL_OWN_PORT (1<<2) 25#define NL_MSG_PEEK (1<<3) 26#define NL_NO_AUTO_ACK (1<<4) 151/** 152 * Enable use of MSG_PEEK when reading from socket 153 * @arg sk Netlink socket. 154 */ 155static inline void nl_socket_enable_msg_peek(struct nl_sock *sk) 156{ 156{ 157 sk->s_flags |= NL_MSG_PEEK; 158} 160/** 161 * Disable use of MSG_PEEK when reading from socket 162 * @arg sk Netlink socket.datagram.c https://gitlab.com/envieidoc/tomato | C | 551 lines
167 */ 168 if (flags & MSG_PEEK) { 169 unsigned long cpu_flags; 221 * 222 * If the MSG_PEEK flag is set, and the packet is still on the 223 * receive queue of the socket, it will be taken off the queue 232{ 233 if (flags & MSG_PEEK) { 234 spin_lock_bh(&sk->sk_receive_queue.lock);datagram.c https://gitlab.com/envieidoc/advancedtomato2 | C | 551 lines
167 */ 168 if (flags & MSG_PEEK) { 169 unsigned long cpu_flags; 221 * 222 * If the MSG_PEEK flag is set, and the packet is still on the 223 * receive queue of the socket, it will be taken off the queue 232{ 233 if (flags & MSG_PEEK) { 234 spin_lock_bh(&sk->sk_receive_queue.lock);android_net_LocalSocketImpl.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 964 lines
407 do { 408 ret = recvmsg(fd, &msg, MSG_PEEK | MSG_DONTWAIT | MSG_NOSIGNAL); 409 } while (ret < 0 && errno == EINTR); 411 412 // MSG_PEEK returns 0 on EOF and EWOULDBLOCK on none available 413 if (ret < 0 && errno == EWOULDBLOCK) {OsConstants.java https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | Java | 724 lines
210 public static final int MSG_OOB = placeholder(); 211 public static final int MSG_PEEK = placeholder(); 212 public static final int MSG_TRUNC = placeholder();netlink-types.h https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C Header | 832 lines
26#define NL_OWN_PORT (1<<2) 27#define NL_MSG_PEEK (1<<3) 28#define NL_NO_AUTO_ACK (1<<4)privsep.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 1339 lines
115 while ((len = recvfrom(sock, (char *)&com, 116 sizeof(com), MSG_PEEK, NULL, NULL)) == -1) { 117 if (errno == EINTR)libnetlink.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 682 lines
125 /* Check for immediate errors */ 126 status = recv(rth->fd, resp, sizeof(resp), MSG_DONTWAIT|MSG_PEEK); 127 if (status < 0) {dhcp.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 1002 lines
137 msg.msg_flags = 0; 138 while ((sz = recvmsg(daemon->dhcpfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR); 139android_net_LocalSocketImpl.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 964 lines
407 do { 408 ret = recvmsg(fd, &msg, MSG_PEEK | MSG_DONTWAIT | MSG_NOSIGNAL); 409 } while (ret < 0 && errno == EINTR); 411 412 // MSG_PEEK returns 0 on EOF and EWOULDBLOCK on none available 413 if (ret < 0 && errno == EWOULDBLOCK) {OsConstants.java https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | Java | 724 lines
210 public static final int MSG_OOB = placeholder(); 211 public static final int MSG_PEEK = placeholder(); 212 public static final int MSG_TRUNC = placeholder();netlink-types.h https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C Header | 832 lines
26#define NL_OWN_PORT (1<<2) 27#define NL_MSG_PEEK (1<<3) 28#define NL_NO_AUTO_ACK (1<<4)privsep.c https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C | 1339 lines
115 while ((len = recvfrom(sock, (char *)&com, 116 sizeof(com), MSG_PEEK, NULL, NULL)) == -1) { 117 if (errno == EINTR)libnetlink.c https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C | 682 lines
125 /* Check for immediate errors */ 126 status = recv(rth->fd, resp, sizeof(resp), MSG_DONTWAIT|MSG_PEEK); 127 if (status < 0) {dhcp.c https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C | 1002 lines
137 msg.msg_flags = 0; 138 while ((sz = recvmsg(daemon->dhcpfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR); 139os_socket.h git://github.com/insider42/mangos.git | C Header | 307 lines
154 155#if !defined (MSG_PEEK) 156# define MSG_PEEK 0x2 156# define MSG_PEEK 0x2 157#endif /* MSG_PEEK */ 158datagram.c https://bitbucket.org/sangu123/linux-samsung.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/sangu123/linux-samsung.git | C | 841 lines
161 if (len < copied) { 162 if (flags & MSG_PEEK) 163 atomic_dec(&skb->users);udp.c https://bitbucket.org/sourcey/libsourcey.git | C | 748 lines
286 buf.len = 0; 287 flags = MSG_PEEK; 288 424 /* zero-reading we need to call WSARecv/WSARecvFrom _without_ the */ 425 /* MSG_PEEK flag to clear out the error queue. For nonzero reads, */ 426 /* immediately queue a new receive. */datagram.c https://bitbucket.org/alfredchen/linux-gc.git | C | 834 lines
230 *last = skb; 231 if (flags & MSG_PEEK) { 232 if (_off >= skb->len && (skb->len || _off || 340 341 if (flags & MSG_PEEK) { 342 err = -ENOENT; 368 * 369 * If the MSG_PEEK flag is set, and the packet is still on the 370 * receive queue of the socket, it will be taken off the queuesocket.c https://bitbucket.org/alfredchen/linux-gc.git | C | 836 lines
156 if (len < copied) { 157 if (flags & MSG_PEEK) 158 atomic_dec(&skb->users);datagram.c https://bitbucket.org/an0nym0us_/zimage-mod.git | C | 777 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 258 * 259 * If the MSG_PEEK flag is set, and the packet is still on the 260 * receive queue of the socket, it will be taken off the queue 273 274 if (flags & MSG_PEEK) { 275 err = -ENOENT;socket.c https://bitbucket.org/an0nym0us_/zimage-mod.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/an0nym0us_/gt-s5830.git | C | 777 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 258 * 259 * If the MSG_PEEK flag is set, and the packet is still on the 260 * receive queue of the socket, it will be taken off the queue 273 274 if (flags & MSG_PEEK) { 275 err = -ENOENT;socket.c https://bitbucket.org/an0nym0us_/gt-s5830.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/accelecon/linux-at91.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/accelecon/linux-at91.git | C | 837 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/af974/hyperdroid-redpill-kernel.git | C | 777 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 258 * 259 * If the MSG_PEEK flag is set, and the packet is still on the 260 * receive queue of the socket, it will be taken off the queue 273 274 if (flags & MSG_PEEK) { 275 err = -ENOENT;socket.c https://bitbucket.org/af974/hyperdroid-redpill-kernel.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);svcsock.c https://bitbucket.org/droidzone/supernova-kernel.git | C | 1554 lines
538 err = kernel_recvmsg(svsk->sk_sock, &msg, NULL, 539 0, 0, MSG_PEEK | MSG_DONTWAIT); 540 if (err >= 0)datagram.c https://bitbucket.org/droidzone/supernova-kernel.git | C | 777 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 258 * 259 * If the MSG_PEEK flag is set, and the packet is still on the 260 * receive queue of the socket, it will be taken off the queue 273 274 if (flags & MSG_PEEK) { 275 err = -ENOENT;datagram.c https://bitbucket.org/droidzone/supernova-kernel.git | C | 777 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 258 * 259 * If the MSG_PEEK flag is set, and the packet is still on the 260 * receive queue of the socket, it will be taken off the queue 273 274 if (flags & MSG_PEEK) { 275 err = -ENOENT;socket.c https://bitbucket.org/droidzone/supernova-kernel.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);socket.c https://bitbucket.org/droidzone/supernova-kernel.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/somat/linux-blankon.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/somat/linux-blankon.git | C | 841 lines
161 if (len < copied) { 162 if (flags & MSG_PEEK) 163 atomic_dec(&skb->users);datagram.c https://bitbucket.org/mdamt/linux-blankon.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/mdamt/linux-blankon.git | C | 841 lines
161 if (len < copied) { 162 if (flags & MSG_PEEK) 163 atomic_dec(&skb->users);datagram.c https://bitbucket.org/accelecon/linux-stable-accelecon.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/accelecon/linux-stable-accelecon.git | C | 837 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/accelecon/linux-stable.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/accelecon/linux-stable.git | C | 841 lines
161 if (len < copied) { 162 if (flags & MSG_PEEK) 163 atomic_dec(&skb->users);datagram.c https://bitbucket.org/Neos/tf101-kernel2.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 259 * 260 * If the MSG_PEEK flag is set, and the packet is still on the 261 * receive queue of the socket, it will be taken off the queue 274 275 if (flags & MSG_PEEK) { 276 err = -ENOENT;socket.c https://bitbucket.org/Neos/tf101-kernel2.git | C | 835 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/sola/android_board_gnexus_kernel.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;socket.c https://bitbucket.org/sola/android_board_gnexus_kernel.git | C | 840 lines
160 if (len < copied) { 161 if (flags & MSG_PEEK) 162 atomic_dec(&skb->users);datagram.c https://bitbucket.org/mathkid95/galaxynexuskernel.git | C | 775 lines
187 *peeked = skb->peeked; 188 if (flags & MSG_PEEK) { 189 skb->peeked = 1; 260 * 261 * If the MSG_PEEK flag is set, and the packet is still on the 262 * receive queue of the socket, it will be taken off the queue 275 276 if (flags & MSG_PEEK) { 277 err = -ENOENT;