Lines Matching refs:recv
318 res = recv(fd, buf_peek, sizeof(buf_peek), MSG_PEEK | MSG_DONTWAIT);
320 fprintf(stderr, "expected recv(2) failure, got %zi\n", res);
332 res = recv(fd, buf_half, sizeof(buf_half), MSG_PEEK);
334 fprintf(stderr, "recv(2) + MSG_PEEK, expected %zu, got %zi\n",
340 res = recv(fd, buf_peek, sizeof(buf_peek), MSG_PEEK);
342 fprintf(stderr, "recv(2) + MSG_PEEK, expected %zu, got %zi\n",
358 res = recv(fd, buf_half, sizeof(buf_half), MSG_PEEK |
362 "recv(2) + MSG_PEEK | MSG_TRUNC, exp %zu, got %zi\n",
368 res = recv(fd, buf_normal, sizeof(buf_normal), 0);
370 fprintf(stderr, "recv(2), expected %zu, got %zi\n",
965 read_res = recv(fd, buf, sizeof(buf), MSG_DONTWAIT);
967 fprintf(stderr, "Unexpected recv result %zi\n",
998 ret = recv(fd, NULL, sizeof(data), 0);
1000 fprintf(stderr, "expected recv(2) failure, got %zi\n", ret);
1005 fprintf(stderr, "unexpected recv(2) errno %d\n", errno);
1009 ret = recv(fd, data, sizeof(data), MSG_DONTWAIT);
1014 fprintf(stderr, "expected recv(2) success, got %zi\n", ret);
1021 fprintf(stderr, "expected recv(2) failure, got %zi\n", ret);
1026 fprintf(stderr, "unexpected recv(2) errno %d\n", errno);
1139 res = recv(fd, buf, 2, 0);
1141 fprintf(stderr, "expected recv(2) returns 2 bytes, got %zi\n", res);
1148 res = recv(fd, buf + 2, sizeof(buf) - 2, 0);
1150 fprintf(stderr, "expected recv(2) returns 8 bytes, got %zi\n", res);
1154 res = recv(fd, buf, sizeof(buf) - 8 - 2, MSG_DONTWAIT);
1156 fprintf(stderr, "expected recv(2) failure, got %zi\n", res);