Lines Matching refs:len

418 	uint32_t	len;
431 len = htonl(tok->length);
432 lensz = sizeof (len);
442 (void) memcpy((void *)out_buf, (void *)&len, lensz);
464 uint32_t len;
466 if (recv_timeout(fd, (char *)&len, sizeof (len))) {
469 len = ntohl(len);
472 if (len > MAX_TOK_LEN) {
478 tok->value = (char *)malloc(len);
487 if (recv_timeout(fd, tok->value, len)) {
494 tok->length = len;
555 send_timeout(int fd, const char *buf, size_t len)
564 while (len) {
580 bytes = write(fd, buf, len);
591 len -= bytes;
604 recv_timeout(int fd, char *buf, size_t len)
613 while (len) {
630 bytes = read(fd, buf, len);
641 len -= bytes;
649 * read_fd() - reads data of length len from the given file descriptor fd to the
654 read_fd(int fd, char *buf, size_t len)
658 size_t len_o = len;
661 while (len) {
662 bytes = read(fd, buf, len);
673 len -= bytes;
677 DPRINT((dfile, "read_fd: Read %d bytes.\n", len_o - len));
682 * write_fd() - writes buf of length len to the opened file descriptor fd, in
688 write_fd(int fd, char *buf, size_t len)
692 size_t len_o = len;
695 while (len) {
696 bytes = write(fd, buf, len);
705 len -= bytes;
709 DPRINT((dfile, "write_fd: Wrote %d bytes.\n", len_o - len));
960 uint32_t len;
1048 if (!read_fd(recv_fd->fd, (char *)&len, sizeof (len))) {
1054 len = ntohl(len);
1057 if (len > MAX_TOK_LEN) {
1067 in_buf.value = (char *)malloc(len);
1076 if (!read_fd(recv_fd->fd, (char *)in_buf.value, len)) {
1084 in_buf.length = len;
1150 "the token (transq len = %ld)\n",
1390 "(len = %ld)\n", transq_hdr.count));
1545 "size=%d, transq len=%ld)\n", cur_node->seq_num,