| /freebsd/contrib/bc/tests/bc/ |
| H A D | lib2_bytes.txt | 14 sbytes(0) 15 sbytes(1) 16 sbytes(-1) 17 sbytes(2) 18 sbytes(127) 19 sbytes(128) 20 sbytes(-127) 21 sbytes(-128) 22 sbytes(-129) 23 sbytes(254) [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | sendfile2.sh | 87 off_t sbytes; 123 sbytes = 0; 124 n = sendfile(f, s, sent, chunk, NULL, &sbytes, 0); 127 chunk -= sbytes; 128 size -= sbytes; 129 sent += sbytes;
|
| H A D | sendfile26.sh | 97 off_t sbytes = 0; 102 NULL, &sbytes, 0); 104 cursor += sbytes; 105 to_send -= sbytes; 108 sbytes = to_send; 109 ret = sendfile(fd, sock, cursor, &sbytes, NULL, 0); 115 cursor += sbytes; 116 to_send -= sbytes;
|
| H A D | sendfile_shm.sh | 106 off_t sbytes; 109 error = sendfile(shmfd, s, 0, size, NULL, &sbytes, 0); 112 printf("sent %jd bytes, requested %jd\n", (uintmax_t)sbytes,
|
| 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/tests/sys/kern/ |
| H A D | ssl_sendfile.c | 62 ossl_ssize_t sbytes; /* SSL_sendfile returned sbytes */ member 225 c->sbytes = SSL_sendfile(ssl, c->fd, c->offset, in server_thread() 297 ATF_REQUIRE(c.sbytes == FSIZE); in ATF_TC_BODY() 327 ATF_REQUIRE(c.sbytes == (ssize_t)expect); in ATF_TC_BODY() 363 ATF_REQUIRE(c.sbytes == TRUNC); in ATF_TC_BODY() 414 ATF_REQUIRE(c.sbytes == FSIZE + GROW); in ATF_TC_BODY() 427 c.sbytes = -1; in ATF_TC_BODY() 432 ATF_REQUIRE(c.sbytes == 0); in ATF_TC_BODY() 460 ATF_REQUIRE(c.sbytes > 0); in ATF_TC_BODY() 461 ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == 0); in ATF_TC_BODY() [all …]
|
| /freebsd/lib/libsecureboot/openpgp/ |
| H A D | opgp_sig.c | 284 unsigned char *sdata, size_t sbytes, 312 sdata = ddata = dearmor((char *)sdata, sbytes, &sbytes); 314 rc = decode_packet(2, &ptr, sbytes, (decoder_t)decode_sig, sig); 473 size_t fbytes, sbytes; 476 if ((sdata = read_file(sigfile, &sbytes))) { 483 sbytes, flags)) {
|
| H A D | opgp_key.c | 393 size_t fbytes, sbytes; in openpgp_self_tests() local 400 sbytes = strlen(sdata); in openpgp_self_tests() 403 (unsigned char *)sdata, sbytes, 0); in openpgp_self_tests()
|
| H A D | packet.h | 71 unsigned char *sdata, size_t sbytes, int flags);
|
| /freebsd/sys/kern/ |
| H A D | kern_sendfile.c | 716 off_t off, sbytes, rem, obj_size, nobj_size; in vn_sendfile() local 729 hdrlen = sbytes = 0; in vn_sendfile() 1142 sbytes += space + hdrlen; in vn_sendfile() 1159 sbytes += td->td_retval[0]; in vn_sendfile() 1173 if (sbytes > 0 && vp != NULL) in vn_sendfile() 1177 (*sent) = sbytes; in vn_sendfile() 1203 off_t sbytes; in sendfile() local 1213 sbytes = 0; in sendfile() 1257 uap->nbytes, &sbytes, uap->flags, td); in sendfile() 1260 if (uap->sbytes != NULL) in sendfile() [all …]
|
| H A D | systrace_args.c | 1916 uarg[a++] = (intptr_t)p->sbytes; /* off_t * */ in systrace_args()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | ktls.h | 202 off_t sbytes = 0; in ktls_sendfile() local 205 ret = sendfile(fd, s, off, size, NULL, &sbytes, flags); in ktls_sendfile() 206 if (ret == -1 && sbytes == 0) in ktls_sendfile() 208 return sbytes; in ktls_sendfile()
|
| /freebsd/crypto/openssl/engines/ |
| H A D | e_afalg.c | 492 ssize_t sbytes; in afalg_start_cipher_sk() local 530 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() 531 if (sbytes < 0) { in afalg_start_cipher_sk() 557 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() 558 if (sbytes < 0) { in afalg_start_cipher_sk() 564 if (sbytes != (ssize_t) inl) { in afalg_start_cipher_sk() 565 ALG_WARN("Cipher operation send bytes %zd != inlen %zd\n", sbytes, in afalg_start_cipher_sk()
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_socket.c | 2467 off_t *offset, l_size_t count, off_t *sbytes) in sendfile_fallback() argument 2539 *sbytes = bytes_sent; in sendfile_fallback() 2555 off_t *offset, l_size_t count, off_t *sbytes) in sendfile_sendfile() argument 2569 sbytes, 0, td); in sendfile_sendfile() 2570 if (error == EAGAIN && *sbytes > 0) { in sendfile_sendfile() 2578 current_offset += *sbytes; in sendfile_sendfile() 2592 off_t sbytes; in linux_sendfile_common() local 2617 sbytes = 0; in linux_sendfile_common() 2620 &sbytes); in linux_sendfile_common() 2623 &sbytes); in linux_sendfile_common() [all …]
|
| /freebsd/lib/libc/tests/sys/ |
| H A D | sendfile_test.c | 907 off_t sbytes; in sbytes_positive_test() local 918 error = sendfile(fd, client_sock, 0, 0, NULL, &sbytes, SF_FLAGS(0, 0)); in sbytes_positive_test() 925 ATF_CHECK_EQ_MSG(pattern_size, sbytes, in sbytes_positive_test()
|
| /freebsd/contrib/bc/gen/ |
| H A D | lib2.bc | 307 define sbytes(x){ 332 define s2u(x){return s2un(x,sbytes(x))} 446 define void int(x){intn(x,sbytes(x))}
|
| /freebsd/tests/sys/fs/fusefs/ |
| H A D | read.cc | 1304 off_t sbytes; in TEST_F() local 1327 ASSERT_EQ(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0)) in TEST_F() 1349 off_t sbytes; in TEST_F() local 1365 ASSERT_NE(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0)); in TEST_F()
|
| /freebsd/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 2230 off_t offset, sbytes; in freebsd32_do_sendfile() local 2284 uap->nbytes, &sbytes, uap->flags, td); in freebsd32_do_sendfile() 2287 if (uap->sbytes != NULL) in freebsd32_do_sendfile() 2288 (void)copyout(&sbytes, uap->sbytes, sizeof(off_t)); in freebsd32_do_sendfile()
|
| H A D | freebsd32_proto.h | 320 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member 945 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member
|
| H A D | freebsd32_systrace_args.c | 1817 uarg[a++] = (intptr_t)p->sbytes; /* off_t * */ in systrace_args()
|
| /freebsd/lib/libsys/ |
| H A D | _libsys.h | 702 …file(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr * hdtr, off_t * sbytes, int flags);
|
| /freebsd/sys/sys/ |
| H A D | sysproto.h | 1027 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member 2564 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member
|