Home
last modified time | relevance | path

Searched refs:hdtr (Results 1 – 10 of 10) 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.c1270 struct sf_hdtr hdtr; in sendfile() local
1286 if (uap->hdtr != NULL) { in sendfile()
1287 error = copyin(uap->hdtr, &hdtr, sizeof(hdtr)); in sendfile()
1290 if (hdtr.headers != NULL) { in sendfile()
1291 error = copyinuio(hdtr.headers, hdtr.hdr_cnt, in sendfile()
1309 if (hdtr.trailers != NULL) { in sendfile()
1310 error = copyinuio(hdtr.trailers, hdtr.trl_cnt, in sendfile()
1367 args.hdtr = uap->hdtr; in freebsd4_sendfile()
H A Dsystrace_args.c1931 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/usr.bin/truss/
H A Dsyscalls.c2554 struct sf_hdtr hdtr; in print_arg() local
2556 if (get_struct(pid, args[sc->offset], &hdtr, sizeof(hdtr)) != in print_arg()
2559 print_iovec(fp, trussinfo, (uintptr_t)hdtr.headers, in print_arg()
2560 hdtr.hdr_cnt); in print_arg()
2561 print_iovec(fp, trussinfo, (uintptr_t)hdtr.trailers, in print_arg()
2562 hdtr.trl_cnt); in print_arg()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c2134 struct sf_hdtr hdtr; in freebsd32_do_sendfile() local
2148 if (uap->hdtr != NULL) { in freebsd32_do_sendfile()
2149 error = copyin(uap->hdtr, &hdtr32, sizeof(hdtr32)); in freebsd32_do_sendfile()
2152 PTRIN_CP(hdtr32, hdtr, headers); in freebsd32_do_sendfile()
2153 CP(hdtr32, hdtr, hdr_cnt); in freebsd32_do_sendfile()
2154 PTRIN_CP(hdtr32, hdtr, trailers); in freebsd32_do_sendfile()
2155 CP(hdtr32, hdtr, trl_cnt); in freebsd32_do_sendfile()
2157 if (hdtr.headers != NULL) { in freebsd32_do_sendfile()
2177 if (hdtr.trailers != NULL) { in freebsd32_do_sendfile()
H A Dfreebsd32_proto.h319 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member
936 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member
H A Dfreebsd32_systrace_args.c1832 uarg[a++] = (intptr_t)p->hdtr; /* struct sf_hdtr32 * */ in systrace_args()
/freebsd/lib/libsys/
H A D_libsys.h695 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.h1034 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member
2516 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member