Lines Matching defs:bytes
723 int bytes;
728 bytes = snprintf(msg->buf, sizeof(msg->buf),
731 bytes = snprintf(msg->buf, sizeof(msg->buf),
733 if (bytes < 0)
736 msg->len = bytes;
1077 ssize_t bytes = 0;
1087 bytes += resize_msg->len;
1103 bytes += r;
1107 write_or_die(fd_stdout, buffer, bytes);
1135 ssize_t bytes = 0;
1145 bytes = resize_msg->len;
1146 strncpy(p, resize_msg->buf, bytes);
1147 bytes_tot += bytes;
1148 p += bytes;
1149 bufspace -= bytes;
1164 bytes = snprintf(p, bufspace,
1168 bytes = snprintf(p, bufspace,
1173 if (bytes < 0) {
1177 p += bytes;
1178 bufspace -= bytes;
1179 bytes_tot += bytes;
1181 bytes = snprintf(p, bufspace,
1185 if (bytes < 0) {
1190 p += bytes;
1191 bufspace -= bytes;
1192 bytes_tot += bytes;
1195 bytes = read(trace_fd, p, bufspace);
1196 if (bytes < 0) {
1204 if (bytes == 0)
1206 p += bytes;
1207 bufspace -= bytes;
1208 bytes_tot += bytes;
1218 bytes = snprintf(p, bufspace,
1221 if (bytes < 0) {
1226 bytes_tot += bytes;
1507 warnx("read() returned too few bytes on inotify fd");