| /freebsd/tools/regression/sockets/sendfile/ |
| H A D | sendfile.c | 270 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 D | kern_sendfile.c | 1212 copyin_hdtr(const struct sf_hdtr *uhdtr, struct sf_hdtr *hdtr) in copyin_hdtr() argument 1214 return (copyin(uhdtr, hdtr, sizeof(*hdtr))); in copyin_hdtr() 1222 struct sf_hdtr hdtr; in kern_sendfile() local 1239 error = copyin_hdtr_f(uhdtr, &hdtr); in kern_sendfile() 1242 if (hdtr.headers != NULL) { in kern_sendfile() 1243 error = copyinuio_f(hdtr.headers, hdtr.hdr_cnt, in kern_sendfile() 1261 if (hdtr.trailers != NULL) { in kern_sendfile() 1262 error = copyinuio_f(hdtr.trailers, hdtr.trl_cnt, in kern_sendfile() 1308 uap->nbytes, uap->hdtr, uap->sbytes, uap->flags, false, in sys_sendfile() 1317 uap->nbytes, uap->hdtr, uap->sbytes, uap->flags, true, in freebsd4_sendfile()
|
| H A D | systrace_args.c | 1915 uarg[a++] = (intptr_t)p->hdtr; /* struct sf_hdtr * */ in systrace_args()
|
| /freebsd/lib/libc/tests/sys/ |
| H A D | sendfile_test.c | 692 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 D | syzkaller93.sh | 82 // hdtr: ptr[in, sf_hdtr] { 117 /*nbytes=*/4ul, /*hdtr=*/0x200000001ac0ul, /*sbytes=*/0ul,
|
| H A D | syzkaller78.sh | 240 /*nbytes=*/0x2000ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
|
| H A D | syzkaller77.sh | 249 /*nbytes=*/0ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
|
| /freebsd/usr.bin/truss/ |
| H A D | syscalls.c | 2649 struct sf_hdtr hdtr; in print_arg() local 2651 if (get_struct(trussinfo, p, args[sc->offset], &hdtr, in print_arg() 2652 sizeof(hdtr)) != -1) { in print_arg() 2654 print_iovec(fp, trussinfo, (uintptr_t)hdtr.headers, in print_arg() 2655 hdtr.hdr_cnt); in print_arg() 2656 print_iovec(fp, trussinfo, (uintptr_t)hdtr.trailers, in print_arg() 2657 hdtr.trl_cnt); in print_arg()
|
| /freebsd/sys/sys/ |
| H A D | syscallsubr.h | 89 typedef int (copyin_hdtr_t)(const void *hdtrp, struct sf_hdtr *hdtr); 352 size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags,
|
| H A D | sysproto.h | 1026 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member 2590 …char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)… member
|
| /freebsd/tests/sys/kern/ |
| H A D | ktls_test.c | 3023 struct sf_hdtr hdtr; in ATF_TC_BODY() 3068 hdtr.headers = iov; in ATF_TP_ADD_TCS() 3069 hdtr.hdr_cnt = 1; in ATF_TP_ADD_TCS() 3070 hdtr.trailers = iov + 1; in ATF_TP_ADD_TCS() 3071 hdtr.trl_cnt = 1; in ATF_TP_ADD_TCS() 3073 ATF_REQUIRE_INTEQ(0, sendfile(shm, sockets[1], 0, payload_len, &hdtr, in ATF_TP_ADD_TCS() 2962 struct sf_hdtr hdtr; ATF_TC_BODY() local
|
| /freebsd/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 2225 freebsd32_copyin_hdtr(const void *uhdtr, struct sf_hdtr *hdtr) in freebsd32_copyin_hdtr() argument 2233 hdtr->headers = PTRIN(hdtr32.headers); in freebsd32_copyin_hdtr() 2234 hdtr->hdr_cnt = hdtr32.hdr_cnt; in freebsd32_copyin_hdtr() 2235 hdtr->trailers = PTRIN(hdtr32.trailers); in freebsd32_copyin_hdtr() 2236 hdtr->trl_cnt = hdtr32.trl_cnt; in freebsd32_copyin_hdtr() 2248 (struct sf_hdtr *)uap->hdtr, uap->sbytes, uap->flags, in freebsd4_freebsd32_sendfile() 2258 (struct sf_hdtr *)uap->hdtr, uap->sbytes, uap->flags, in freebsd32_sendfile()
|
| H A D | freebsd32_proto.h | 319 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member 952 …char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdt… member
|
| H A D | freebsd32_systrace_args.c | 1816 uarg[a++] = (intptr_t)p->hdtr; /* struct sf_hdtr32 * */ in systrace_args()
|
| /freebsd/lib/libsys/ |
| H A D | _libsys.h | 706 int __sys_sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr * hdtr, off_t * sbyte…
|