| /freebsd-14.2/tests/sys/cddl/zfs/tests/txg_integrity/ |
| H A D | txg_integrity.c | 308 static int outfd = 0; variable 405 pwrite(outfd, (void*)buf, size, chunk_start); in write_chunk() 431 my_sync(outfd); in follower() 460 my_sync(outfd); in leader() 500 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 501 if (outfd == -1){ in main() 507 if ( ftruncate(outfd, FSIZE)){ in main() 516 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){ in main() 522 if (-1 == lseek(outfd, 0, SEEK_SET)){ in main() 593 if (verify_file(outfd, patterns[pat])) { in main() [all …]
|
| H A D | fsync_integrity.c | 279 static int outfd = 0; variable 364 pwrite(outfd, (void*)buf, size, chunk_start); in write_chunk() 400 my_sync(outfd); in worker() 435 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 436 if (outfd == -1){ in main() 442 if ( ftruncate(outfd, FSIZE)){ in main() 451 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){ in main() 457 if (-1 == lseek(outfd, 0, SEEK_SET)){ in main() 502 if (verify_file(outfd, patterns[pat])) { in main() 508 if (close(outfd)){ in main()
|
| /freebsd-14.2/usr.bin/mail/ |
| H A D | popen.c | 214 start_commandv(char *cmd, sigset_t *nset, int infd, int outfd, va_list args) in start_commandv() argument 229 prepare_child(nset, infd, outfd); in start_commandv() 238 run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in run_command() argument 243 va_start(args, outfd); in run_command() 244 pid = start_commandv(cmd, nset, infd, outfd, args); in run_command() 252 start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in start_command() argument 257 va_start(args, outfd); in start_command() 258 r = start_commandv(cmd, nset, infd, outfd, args); in start_command() 264 prepare_child(sigset_t *nset, int infd, int outfd) in prepare_child() argument 275 if (outfd >= 0) in prepare_child() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | threadsappend.c | 61 static int outfd = 0; variable 71 ret = write(outfd, buf, sizeof (buf)); in go() 111 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main() 112 if (outfd == -1) { in main()
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/threadsappend/ |
| H A D | threadsappend.c | 59 static int outfd = 0; variable 70 ret = write(outfd, buf, sizeof (buf)); in go() 108 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main() 109 if (outfd == -1) { in main()
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | sendfile_shm.sh | 117 receivefd(int s, int outfd, off_t size) 129 r1 = write(outfd, buf, r); 147 int s[2], infd, outfd, shmfd, error; 167 outfd = open(argv[2], O_RDWR | O_CREAT | O_TRUNC, 0666); 168 if (outfd == -1) 196 receivefd(s[1], outfd, st.st_size);
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_symbolizer_posix_libcdep.cpp | 96 int *outfd = NULL; in CreateTwoHighNumberedPipes() local 115 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes() 126 CHECK(outfd); in CreateTwoHighNumberedPipes() 129 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes() 130 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes() 172 fd_t infd[2] = {}, outfd[2] = {}; in StartSymbolizerSubprocess() local 173 if (!CreateTwoHighNumberedPipes(infd, outfd)) { in StartSymbolizerSubprocess() 179 pid = StartSubprocess(path_, argv, GetEnvP(), /* stdin */ outfd[0], in StartSymbolizerSubprocess() 183 internal_close(outfd[1]); in StartSymbolizerSubprocess() 188 output_fd_ = outfd[1]; in StartSymbolizerSubprocess()
|
| /freebsd-14.2/usr.sbin/nghook/ |
| H A D | main.c | 65 static int outfd = STDOUT_FILENO; variable 112 outfd = STDIN_FILENO; in main() 213 else if ((wl = write(outfd, buf, rl)) != rl) { in main() 278 (void) write(outfd, sbuf, strlen(sbuf)); in WriteAscii() 281 write(outfd, &ch, 1); in WriteAscii()
|
| /freebsd-14.2/usr.sbin/dconschat/ |
| H A D | dconschat.c | 118 int outfd; member 168 write(p->outfd, buf, strlen(buf)); in dconschat_reset_target() 200 write(p->outfd, buf, strlen(buf)); in dconschat_sigchld() 219 write(p->outfd, buf, strlen(buf)); in dconschat_fork_gdb() 627 p->infd = p->outfd = -1; in dconschat_init_socket() 636 p->outfd = STDOUT_FILENO; in dconschat_init_socket() 728 p->infd = p->outfd = ns; in dconschat_accept_socket() 806 write(p->outfd, sp, 1); in dconschat_read_filter() 807 write(p->outfd, "\r\n", 2); in dconschat_read_filter() 868 close(p->outfd); in dconschat_read_socket() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | dmu_send.h | 54 const char *redactbook, int outfd, offset_t *off, 61 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off,
|
| /freebsd-14.2/usr.bin/mkimg/ |
| H A D | mkimg.c | 560 int bcfd, outfd; in main() local 564 outfd = 1; /* Write to stdout by default */ in main() 598 if (outfd != 1) in main() 600 outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC, in main() 602 if (outfd == -1) in main() 725 lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) in main() 740 error = format_write(outfd); in main()
|
| /freebsd-14.2/usr.sbin/edquota/ |
| H A D | edquota.c | 474 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) in writeprivs() argument 479 ftruncate(outfd, 0); in writeprivs() 480 lseek(outfd, 0, L_SET); in writeprivs() 481 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writeprivs() 688 writetimes(struct quotause *quplist, int outfd, int quotatype) in writetimes() argument 693 ftruncate(outfd, 0); in writetimes() 694 lseek(outfd, 0, L_SET); in writetimes() 695 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writetimes()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_redup.c | 117 zio_cksum_t *zc, int outfd) in dump_record() argument 130 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record() 134 if (write(outfd, payload, payload_len) == -1) in dump_record() 186 zfs_redup_stream(int infd, int outfd, boolean_t verbose) in zfs_redup_stream() argument 409 &stream_cksum, outfd) != 0) in zfs_redup_stream()
|
| H A D | zstream_recompress.c | 43 zio_cksum_t *zc, int outfd) in dump_record() argument 56 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record() 60 if (write(outfd, payload, payload_len) == -1) in dump_record()
|
| H A D | zstream_decompress.c | 40 zio_cksum_t *zc, int outfd) in dump_record() argument 53 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record() 57 if (write(outfd, payload, payload_len) == -1) in dump_record()
|
| /freebsd-14.2/contrib/bmake/ |
| H A D | meta.c | 1653 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local 1659 outfd = childPipe[0]; in meta_compat_parent() 1666 if (outfd > maxfd) in meta_compat_parent() 1667 maxfd = outfd; in meta_compat_parent() 1671 while (outfd != -1 || metafd != -1) { in meta_compat_parent() 1673 if (outfd != -1) { in meta_compat_parent() 1674 FD_SET(outfd, &readfds); in meta_compat_parent() 1686 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do { in meta_compat_parent() 1688 ssize_t nread = read(outfd, buf, sizeof buf - 1); in meta_compat_parent() 1692 close(outfd); in meta_compat_parent() [all …]
|
| /freebsd-14.2/usr.sbin/pmc/ |
| H A D | cmd_pmc_filter.cc | 200 int outfd) in pmc_filter_handler() argument 254 pmc_log_event(outfd, &ev, json); in pmc_filter_handler() 294 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_sendrecv.c | 93 zio_cksum_t *zc, int outfd) in dump_record() argument 106 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record() 110 if (write(outfd, payload, payload_len) == -1) in dump_record() 740 int outfd; member 821 zc.zc_cookie = outfd; in dump_ioctl() 1263 pa.pa_fd = sdd->outfd; in dump_snapshot() 1817 int outfd, nvlist_t *resume_nvl) in zfs_send_resume_impl_cb_impl() argument 1946 pa.pa_fd = outfd; in zfs_send_resume_impl_cb_impl() 2031 zfs_send_resume_impl_cb(int outfd, void *arg) in zfs_send_resume_impl_cb() argument 2401 sdd.outfd = outfd; in zfs_send_cb_impl() [all …]
|
| H A D | libzfs_diff.c | 746 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, in zfs_show_diffs() argument 775 di.outputfd = outfd; in zfs_show_diffs()
|
| /freebsd-14.2/contrib/less/ |
| H A D | output.c | 84 static int outfd = 2; /* stderr */ variable 391 if (write(outfd, obuf, n) != n) in flush() 401 outfd = fd; in set_output()
|
| /freebsd-14.2/usr.sbin/daemon/ |
| H A D | daemon.c | 727 int outfd; in reopen_log() local 729 outfd = open_log(state->output_filename); in reopen_log() 733 state->output_fd = outfd; in reopen_log()
|
| /freebsd-14.2/contrib/elftoolchain/elfcopy/ |
| H A D | main.c | 219 int infd, int *outfd, int in_place); 596 copy_from_tempfile(const char *src, const char *dst, int infd, int *outfd, in copy_from_tempfile() argument 606 *outfd = infd; in copy_from_tempfile() 643 *outfd = tmpfd; in copy_from_tempfile()
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | dmu_send.c | 1946 int outfd; member 2217 dssp->dss_outfd = dspp->outfd; in setup_send_progress() 2642 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off, in dmu_send_obj() argument 2652 dspp.outfd = outfd; in dmu_send_obj() 2733 const char *redactbook, int outfd, offset_t *off, in dmu_send() argument 2748 dspp.outfd = outfd; in dmu_send()
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 1351 execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd) in execfilter() argument 1417 dup2(outfd, STDOUT_FILENO); in execfilter()
|
| /freebsd-14.2/contrib/tnftp/src/ |
| H A D | ftp.c | 584 copy_bytes(int infd, int outfd, char *buf, size_t bufsize, in copy_bytes() argument 616 outc = write(outfd, bufp, inc); in copy_bytes()
|