hdtrl 272 source3/lib/sendfile.c struct iovec hdtrl[2];
hdtrl 277 source3/lib/sendfile.c hdtrl[0].iov_base = header->data;
hdtrl 278 source3/lib/sendfile.c hdtrl[0].iov_len = hdr_len = header->length;
hdtrl 280 source3/lib/sendfile.c hdtrl[0].iov_base = NULL;
hdtrl 281 source3/lib/sendfile.c hdtrl[0].iov_len = hdr_len = 0;
hdtrl 283 source3/lib/sendfile.c hdtrl[1].iov_base = NULL;
hdtrl 284 source3/lib/sendfile.c hdtrl[1].iov_len = 0;
hdtrl 287 source3/lib/sendfile.c while (total + hdtrl[0].iov_len) {
hdtrl 299 source3/lib/sendfile.c nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
hdtrl 301 source3/lib/sendfile.c nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
hdtrl 316 source3/lib/sendfile.c if (hdtrl[0].iov_base && hdtrl[0].iov_len) {
hdtrl 317 source3/lib/sendfile.c if (nwritten >= hdtrl[0].iov_len) {
hdtrl 318 source3/lib/sendfile.c nwritten -= hdtrl[0].iov_len;
hdtrl 319 source3/lib/sendfile.c hdtrl[0].iov_base = NULL;
hdtrl 320 source3/lib/sendfile.c hdtrl[0].iov_len = 0;
hdtrl 323 source3/lib/sendfile.c hdtrl[0].iov_base = ((char *)hdtrl[0].iov_base) + nwritten;
hdtrl 324 source3/lib/sendfile.c hdtrl[0].iov_len -= nwritten;
hdtrl 344 source3/lib/sendfile.c struct iovec hdtrl;
hdtrl 347 source3/lib/sendfile.c hdr.headers = &hdtrl;
hdtrl 354 source3/lib/sendfile.c hdtrl.iov_base = header->data;
hdtrl 355 source3/lib/sendfile.c hdtrl.iov_len = hdr_len = header->length;
hdtrl 357 source3/lib/sendfile.c hdtrl.iov_base = NULL;
hdtrl 358 source3/lib/sendfile.c hdtrl.iov_len = 0;
hdtrl 362 source3/lib/sendfile.c while (total + hdtrl.iov_len) {
hdtrl 388 source3/lib/sendfile.c if (hdtrl.iov_base && hdtrl.iov_len) {
hdtrl 389 source3/lib/sendfile.c if (nwritten >= hdtrl.iov_len) {
hdtrl 390 source3/lib/sendfile.c nwritten -= hdtrl.iov_len;
hdtrl 391 source3/lib/sendfile.c hdtrl.iov_base = NULL;
hdtrl 392 source3/lib/sendfile.c hdtrl.iov_len = 0;
hdtrl 394 source3/lib/sendfile.c hdtrl.iov_base =
hdtrl 395 source3/lib/sendfile.c (caddr_t)hdtrl.iov_base + nwritten;
hdtrl 396 source3/lib/sendfile.c hdtrl.iov_len -= nwritten;
hdtrl 415 source3/lib/sendfile.c struct sf_parms hdtrl;
hdtrl 419 source3/lib/sendfile.c hdtrl.header_data = header->data;
hdtrl 420 source3/lib/sendfile.c hdtrl.header_length = header->length;
hdtrl 422 source3/lib/sendfile.c hdtrl.header_data = NULL;
hdtrl 423 source3/lib/sendfile.c hdtrl.header_length = 0;
hdtrl 425 source3/lib/sendfile.c hdtrl.trailer_data = NULL;
hdtrl 426 source3/lib/sendfile.c hdtrl.trailer_length = 0;
hdtrl 428 source3/lib/sendfile.c hdtrl.file_descriptor = fromfd;
hdtrl 429 source3/lib/sendfile.c hdtrl.file_offset = offset;
hdtrl 430 source3/lib/sendfile.c hdtrl.file_bytes = count;
hdtrl 432 source3/lib/sendfile.c while ( hdtrl.file_bytes + hdtrl.header_length ) {
hdtrl 451 source3/lib/sendfile.c ret = send_file(&tofd, &hdtrl, 0);
hdtrl 221 source3/modules/onefs_system.c struct iovec hdtrl;
hdtrl 229 source3/modules/onefs_system.c hdr.headers = &hdtrl;
hdtrl 236 source3/modules/onefs_system.c hdtrl.iov_base = header->data;
hdtrl 237 source3/modules/onefs_system.c hdtrl.iov_len = hdr_len = header->length;
hdtrl 239 source3/modules/onefs_system.c hdtrl.iov_base = NULL;
hdtrl 240 source3/modules/onefs_system.c hdtrl.iov_len = 0;
hdtrl 244 source3/modules/onefs_system.c while (total + hdtrl.iov_len) {
hdtrl 277 source3/modules/onefs_system.c if (atomic && nwritten != total + hdtrl.iov_len) {
hdtrl 280 source3/modules/onefs_system.c total + hdtrl.iov_len));
hdtrl 291 source3/modules/onefs_system.c if (hdtrl.iov_base && hdtrl.iov_len) {
hdtrl 292 source3/modules/onefs_system.c if (nwritten >= hdtrl.iov_len) {
hdtrl 293 source3/modules/onefs_system.c nwritten -= hdtrl.iov_len;
hdtrl 294 source3/modules/onefs_system.c hdtrl.iov_base = NULL;
hdtrl 295 source3/modules/onefs_system.c hdtrl.iov_len = 0;
hdtrl 297 source3/modules/onefs_system.c hdtrl.iov_base =
hdtrl 298 source3/modules/onefs_system.c (caddr_t)hdtrl.iov_base + nwritten;
hdtrl 299 source3/modules/onefs_system.c hdtrl.iov_len -= nwritten;