Home
last modified time | relevance | path

Searched refs:hdtr (Results 1 – 13 of 13) sorted by relevance

/freebsd/tools/regression/sockets/sendfile/
H A Dsendfile.c270 struct sf_hdtr hdtr, *hdtrp; in send_test() local
299 hdtrp = &hdtr; in send_test()
303 bzero(&hdtr, sizeof(hdtr)); in send_test()
304 hdtr.headers = &headers; in send_test()
305 hdtr.hdr_cnt = 1; in send_test()
306 hdtr.trailers = NULL; in send_test()
307 hdtr.trl_cnt = 0; in send_test()
/freebsd/sys/kern/
H A Dkern_sendfile.c1219 struct sf_hdtr hdtr; in sendfile() local
1235 if (uap->hdtr != NULL) { in sendfile()
1236 error = copyin(uap->hdtr, &hdtr, sizeof(hdtr)); in sendfile()
1239 if (hdtr.headers != NULL) { in sendfile()
1240 error = copyinuio(hdtr.headers, hdtr.hdr_cnt, in sendfile()
1258 if (hdtr.trailers != NULL) { in sendfile()
1259 error = copyinuio(hdtr.trailers, hdtr.trl_cnt, in sendfile()
1316 args.hdtr = uap->hdtr; in freebsd4_sendfile()
H A Dsystrace_args.c1915 uarg[a++] = (intptr_t)p->hdtr; /* struct sf_hdtr * */ in systrace_args()
/freebsd/lib/libc/tests/sys/
H A Dsendfile_test.c692 struct sf_hdtr hdtr; in hdtr_positive_test() local
696 hdtr.headers = headers; in hdtr_positive_test()
697 hdtr.hdr_cnt = nitems(headers); in hdtr_positive_test()
699 hdtr.headers = NULL; in hdtr_positive_test()
700 hdtr.hdr_cnt = 0; in hdtr_positive_test()
704 hdtr.trailers = trailers; in hdtr_positive_test()
705 hdtr.trl_cnt = nitems(trailers); in hdtr_positive_test()
707 hdtr.trailers = NULL; in hdtr_positive_test()
708 hdtr.trl_cnt = 0; in hdtr_positive_test()
739 error = sendfile(fd, client_sock, offset, nbytes, &hdtr, in hdtr_positive_test()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller93.sh82 // hdtr: ptr[in, sf_hdtr] {
117 /*nbytes=*/4ul, /*hdtr=*/0x200000001ac0ul, /*sbytes=*/0ul,
H A Dsyzkaller78.sh240 /*nbytes=*/0x2000ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
H A Dsyzkaller77.sh249 /*nbytes=*/0ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
/freebsd/usr.bin/truss/
H A Dsyscalls.c2621 struct sf_hdtr hdtr; in print_arg()
2623 if (get_struct(pid, args[sc->offset], &hdtr, sizeof(hdtr)) != in print_arg()
2626 print_iovec(fp, trussinfo, (uintptr_t)hdtr.headers, in print_arg()
2627 hdtr.hdr_cnt); in print_arg()
2628 print_iovec(fp, trussinfo, (uintptr_t)hdtr.trailers, in print_arg()
2629 hdtr.trl_cnt); in print_arg()
2620 struct sf_hdtr hdtr; print_arg() local
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c2170 struct sf_hdtr hdtr; in freebsd32_do_sendfile()
2184 if (uap->hdtr != NULL) { in freebsd32_do_sendfile()
2185 error = copyin(uap->hdtr, &hdtr32, sizeof(hdtr32)); in freebsd32_do_sendfile()
2188 PTRIN_CP(hdtr32, hdtr, headers); in freebsd32_do_sendfile()
2189 CP(hdtr32, hdtr, hdr_cnt); in freebsd32_do_sendfile()
2190 PTRIN_CP(hdtr32, hdtr, trailers); in freebsd32_do_sendfile()
2191 CP(hdtr32, hdtr, trl_cnt); in freebsd32_do_sendfile()
2193 if (hdtr.headers != NULL) { in freebsd32_do_sendfile()
2213 if (hdtr.trailers != NULL) { in freebsd32_do_sendfile()
2174 struct sf_hdtr hdtr; freebsd32_do_sendfile() local
H A Dfreebsd32_proto.h319 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member
944 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member
H A Dfreebsd32_systrace_args.c1816 uarg[a++] = (intptr_t)p->hdtr; /* struct sf_hdtr32 * */ in systrace_args()
/freebsd/lib/libsys/
H A D_libsys.h703 int __sys_sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr * hdtr, off_t * sbyte…
/freebsd/sys/sys/
H A Dsysproto.h1026 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member
2571 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member