Home
last modified time | relevance | path

Searched refs:nwrit (Results 1 – 6 of 6) sorted by relevance

/netbsd/src/tests/kernel/
Dh_execsp.c53 ssize_t nwrit; in execsp_main() local
61 nwrit = write(STDOUT_FILENO, &execsp, sizeof(execsp)); in execsp_main()
62 if (nwrit == -1) in execsp_main()
64 if ((size_t)nwrit != sizeof(execsp)) in execsp_main()
65 errx(1, "wrote %zu != %zu", (size_t)nwrit, sizeof(execsp)); in execsp_main()
Dt_fdrestart.c107 ssize_t nwrit; in dowrite() local
132 nwrit = rump_sys_write(F->fd, buf, sizeof(buf)); in dowrite()
133 ATF_REQUIRE_EQ_MSG(nwrit, -1, "nwrit=%zd", nwrit); in dowrite()
142 nwrit = rump_sys_write(F->fd, buf, sizeof(buf)); in dowrite()
143 ATF_REQUIRE_EQ_MSG(nwrit, -1, "nwrit=%zd", nwrit); in dowrite()
/netbsd/src/tests/dev/cgd/
Dt_cgd_adiantum.c335 ssize_t nwrit, nread; in ATF_TC_BODY() local
351 RL(nwrit = rump_sys_pwrite(cgdfd, C[i].ptxt, C[i].secsize, in ATF_TC_BODY()
354 if ((size_t)nwrit != C[i].secsize) { in ATF_TC_BODY()
356 nwrit, C[i].secsize); in ATF_TC_BODY()
/netbsd/src/tests/lib/libc/sys/
Dt_poll.c110 ssize_t nwrit; variable
146 RL(nwrit = write(pf[1], "konec\n", 6));
147 ATF_REQUIRE_EQ_MSG(nwrit, 6, "nwrit=%zd", nwrit);
168 ssize_t nwrit; in ATF_TC_BODY() local
207 RL(nwrit = write(fds[1], "", 1)); in ATF_TC_BODY()
208 ATF_REQUIRE_EQ_MSG(nwrit, 1, "nwrit=%zd", nwrit); in ATF_TC_BODY()
278 ssize_t nwrit, nread; in ATF_TC_BODY() local
307 RL(nwrit = write(wfd, buf, 1)); in ATF_TC_BODY()
308 ATF_REQUIRE_EQ_MSG(nwrit, 1, "nwrit=%zd", nwrit); in ATF_TC_BODY()
506 ssize_t nwrit; in fillpipebuf() local
[all …]
Dt_futex_ops.c217 ssize_t nwrit; in create_bs() local
226 RL(nwrit = pwrite(bs_fd, bs_source_buffer, bs_pagesize, 0)); in create_bs()
227 ATF_REQUIRE_EQ_MSG(nwrit, bs_pagesize, in create_bs()
228 "nwrit=%zu bs_pagesize=%lu", nwrit, bs_pagesize); in create_bs()
/netbsd/src/sbin/rndctl/
Drndctl.c143 ssize_t nread, nwrit; in update_seed() local
220 if ((size_t)(nwrit = write(fd_seed, &rs, sizeof rs)) != sizeof rs) { in update_seed()
224 if (nwrit == -1) in update_seed()
282 ssize_t nread, nwrit; in do_load() local
415 if ((size_t)(nwrit = pwrite(fd_old, &rs, sizeof rs, 0)) != in do_load()
417 if (nwrit == -1) in do_load()