Searched refs:MSG_PEEK (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dsocket.h169 #define MSG_PEEK 0x2 /* peek at incoming message */ macro
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfpkrd.c208 * work around macos 10.4 recv(MSG_PEEK) bug that consumes pipe() data
219 recv_peek_ok = (!pipe(fds) && write(fds[1], tst, 2) && recv(fds[0], tst, 1, MSG_PEEK) == 1 && tst[0] == 'a' && recv(fds[0], tst, 1, MSG_PEEK) == 1 && tst[0] == 'a') ? 1 : -1;
230 while((r = recv(fd,(char*)buf,n,MSG_PEEK)) < 0)
/illumos-gate/usr/src/lib/libwrap/
H A Dsocket.c107 if (recvfrom(fd, buf, sizeof(buf), MSG_PEEK,
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon_subr.c737 if (flags & MSG_PEEK) {
823 if (copied > 0 && !(flags & MSG_PEEK)) {
846 if ((flags & (MSG_PEEK|MSG_TRUNC))) {
847 if (flags & MSG_PEEK) {
917 !(flags & MSG_PEEK) && so->so_rcv_head != NULL) {
923 error = sogeterr(so, !(flags & MSG_PEEK));
973 if (reset_atmark && partial_read && !(flags & MSG_PEEK)) {
1125 * Handle recv* calls that set MSG_OOB or MSG_OOB together with MSG_PEEK.
1162 if (flags & MSG_PEEK) {
H A Dsodirect.c79 uioasync.enabled && !(flags & MSG_PEEK) &&
H A Dsocktpi.c2690 * with the T_EXDATA_IND MSG_PEEK code in sotpi_recvmsg.
2719 * with the T_EXDATA_IND MSG_PEEK code in sotpi_recvmsg.
3222 * Note that MSG_WAITALL set with MSG_PEEK is a noop.
3225 if (flags & MSG_PEEK) {
3274 !(flags & MSG_PEEK)) {
3308 !(flags & MSG_PEEK)) {
3347 !(flags & MSG_PEEK)) {
3454 !(flags & MSG_PEEK)) {
3554 if (flags & MSG_PEEK) {
3595 } /* end "if (flags & MSG_PEEK)" */
[all...]
H A Dsockcommon_sops.c1610 if (msg->msg_flags & MSG_PEEK)
H A Dsocksyscalls.c862 msg->msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL |
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c493 n = recv(rmtape, cp, len-1, MSG_PEEK);
/illumos-gate/usr/src/uts/common/sys/
H A Dsocket.h409 #define MSG_PEEK 0x2 /* peek at incoming message */ macro
/illumos-gate/usr/src/uts/common/io/ksocket/
H A Dksocket.c381 msghdr.msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL |
434 msghdr.msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL |
491 msg->msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL |
/illumos-gate/usr/src/boot/sys/sys/
H A Dsocket.h418 #define MSG_PEEK 0x2 /* peek at incoming message */ macro
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c354 rv = recvfrom(s, buf, plen, MSG_PEEK,
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drds_recv.c578 if (!rdsv3_still_queued(rs, inc, !(msg_flags & MSG_PEEK))) {
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctp.c532 * MSG_PEEK Don't consume data
533 * MSG_WAITALL Wait for full quantity of data (ignored if MSG_PEEK)
604 if (!(flags & MSG_PEEK))
662 if (!(flags & MSG_PEEK) && !(rval.r_val1 & MOREDATA)) {

Completed in 105 milliseconds