Home
last modified time | relevance | path

Searched refs:sbytes (Results 1 – 23 of 23) sorted by relevance

/src/contrib/bc/tests/bc/ !
H A Dlib2_bytes.txt14 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 …]
/src/tools/test/stress2/misc/ !
H A Dsendfile2.sh87 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 Dsendfile26.sh97 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 Dsendfile_shm.sh106 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 Dsyzkaller78.sh240 /*nbytes=*/0x2000ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
H A Dsyzkaller77.sh249 /*nbytes=*/0ul, /*hdtr=*/0ul, /*sbytes=*/0ul,
/src/tests/sys/kern/ !
H A Dssl_sendfile.c62 ossl_ssize_t sbytes; /* SSL_sendfile returned sbytes */ member
225 c->sbytes = SSL_sendfile(ssl, c->fd, c->offset, in server_thread()
292 ATF_REQUIRE(c->sbytes == expect); in require_sbytes()
439 c.sbytes = -1; in ATF_TC_BODY()
444 ATF_REQUIRE(c.sbytes == 0); in ATF_TC_BODY()
470 ATF_REQUIRE(c.sbytes > 0); in ATF_TC_BODY()
471 ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == 0); in ATF_TC_BODY()
480 ATF_REQUIRE(c.sbytes == -1); in ATF_TC_BODY()
481 ATF_REQUIRE(SSL_get_error(c.srv, c.sbytes) == SSL_ERROR_WANT_WRITE); in ATF_TC_BODY()
486 while (nread < c.sbytes && in ATF_TC_BODY()
[all …]
/src/lib/libsecureboot/openpgp/ !
H A Dopgp_sig.c284 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 Dopgp_key.c393 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 Dpacket.h71 unsigned char *sdata, size_t sbytes, int flags);
/src/sys/kern/ !
H A Dkern_sendfile.c716 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 Dsystrace_args.c1916 uarg[a++] = (intptr_t)p->sbytes; /* off_t * */ in systrace_args()
/src/crypto/openssl/include/internal/ !
H A Dktls.h207 off_t sbytes = 0; in ktls_sendfile() local
210 ret = sendfile(fd, s, off, size, NULL, &sbytes, flags); in ktls_sendfile()
211 if (ret == -1 && sbytes == 0) in ktls_sendfile()
213 return sbytes; in ktls_sendfile()
/src/crypto/openssl/engines/ !
H A De_afalg.c492 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()
/src/sys/compat/linux/ !
H A Dlinux_socket.c2467 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 …]
/src/lib/libc/tests/sys/ !
H A Dsendfile_test.c907 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()
/src/contrib/bc/gen/ !
H A Dlib2.bc307 define sbytes(x){
332 define s2u(x){return s2un(x,sbytes(x))}
446 define void int(x){intn(x,sbytes(x))}
/src/tests/sys/fs/fusefs/ !
H A Dread.cc1496 off_t sbytes; in TEST_F() local
1519 ASSERT_EQ(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0)) in TEST_F()
1541 off_t sbytes; in TEST_F() local
1557 ASSERT_NE(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0)); in TEST_F()
/src/sys/compat/freebsd32/ !
H A Dfreebsd32_misc.c2179 off_t offset, sbytes; in freebsd32_do_sendfile() local
2233 uap->nbytes, &sbytes, uap->flags, td); in freebsd32_do_sendfile()
2236 if (uap->sbytes != NULL) in freebsd32_do_sendfile()
2237 (void)copyout(&sbytes, uap->sbytes, sizeof(off_t)); in freebsd32_do_sendfile()
H A Dfreebsd32_proto.h320 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 Dfreebsd32_systrace_args.c1817 uarg[a++] = (intptr_t)p->sbytes; /* off_t * */ in systrace_args()
/src/lib/libsys/ !
H A D_libsys.h703 …file(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr * hdtr, off_t * sbytes, int flags);
/src/sys/sys/ !
H A Dsysproto.h1027 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member
2572 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; member