Home
last modified time | relevance | path

Searched refs:outfd (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dtxg_integrity.c308 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()
528 p_file = mmap(0, FSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, outfd, 0); in main()
[all …]
H A Dfsync_integrity.c279 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/usr.bin/mail/
H A Dpopen.c208 start_commandv(char *cmd, sigset_t *nset, int infd, int outfd, va_list args) in start_commandv() argument
223 prepare_child(nset, infd, outfd); in start_commandv()
232 run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in run_command() argument
237 va_start(args, outfd); in run_command()
238 pid = start_commandv(cmd, nset, infd, outfd, args); in run_command()
246 start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in start_command() argument
251 va_start(args, outfd); in start_command()
252 r = start_commandv(cmd, nset, infd, outfd, args); in start_command()
258 prepare_child(sigset_t *nset, int infd, int outfd) in prepare_child() argument
269 if (outfd >= 0) in prepare_child()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c58 static int outfd = 0; variable
69 ret = write(outfd, buf, sizeof (buf)); in go()
107 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
108 if (outfd == -1) { in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c62 static int outfd = 0; variable
72 ret = write(outfd, buf, sizeof (buf)); in go()
112 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
113 if (outfd == -1) { in main()
/freebsd/tools/test/stress2/misc/
H A Dsendfile_shm.sh117 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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cpp97 int *outfd = NULL; in CreateTwoHighNumberedPipes() local
116 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()
128 CHECK(outfd); in CreateTwoHighNumberedPipes()
131 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes()
132 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes()
174 fd_t infd[2] = {}, outfd[2] = {}; in StartSymbolizerSubprocess() local
175 if (!CreateTwoHighNumberedPipes(infd, outfd)) { in StartSymbolizerSubprocess()
183 pid = StartSubprocess(path_, argv, GetEnvP(), /* stdin */ outfd[0], in StartSymbolizerSubprocess()
187 internal_close(outfd[1]); in StartSymbolizerSubprocess()
192 output_fd_ = outfd[1]; in StartSymbolizerSubprocess()
/freebsd/usr.sbin/nghook/
H A Dmain.c65 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/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_util.c46 zio_cksum_t *zc, int outfd) in dump_record() argument
59 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
63 if (write(outfd, payload, payload_len) == -1) in dump_record()
H A Dzstream_util.h54 zio_cksum_t *zc, int outfd);
H A Dzstream_redup.c126 zfs_redup_stream(int infd, int outfd, boolean_t verbose) in zfs_redup_stream() argument
349 &stream_cksum, outfd) != 0) in zfs_redup_stream()
/freebsd/usr.sbin/dconschat/
H A Ddconschat.c118 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()
231 write(p->outfd, buf, strlen(buf)); in dconschat_fork_gdb()
236 write(p->outfd, buf, strlen(buf)); in dconschat_fork_gdb()
629 p->infd = p->outfd = -1; in dconschat_init_socket()
638 p->outfd = STDOUT_FILENO; in dconschat_init_socket()
730 p->infd = p->outfd = ns; in dconschat_accept_socket()
793 write(p->outfd, buf, strlen(buf)); in dconschat_read_filter()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddmu_send.h55 const char *redactbook, int outfd, offset_t *off,
62 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off,
/freebsd/usr.sbin/edquota/
H A Dedquota.c462 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) in writeprivs() argument
467 ftruncate(outfd, 0); in writeprivs()
468 lseek(outfd, 0, L_SET); in writeprivs()
469 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writeprivs()
676 writetimes(struct quotause *quplist, int outfd, int quotatype) in writetimes() argument
681 ftruncate(outfd, 0); in writetimes()
682 lseek(outfd, 0, L_SET); in writetimes()
683 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writetimes()
/freebsd/usr.bin/mkimg/
H A Dmkimg.c587 int bcfd, outfd; in main() local
591 outfd = 1; /* Write to stdout by default */ in main()
628 if (outfd != 1) in main()
630 outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC, in main()
632 if (outfd == -1) in main()
768 lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) in main()
783 error = format_write(outfd); in main()
/freebsd/contrib/bmake/
H A Dmeta.c1625 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local
1631 outfd = childPipe[0]; in meta_compat_parent()
1638 if (outfd > maxfd) in meta_compat_parent()
1639 maxfd = outfd; in meta_compat_parent()
1643 while (outfd != -1 || metafd != -1) { in meta_compat_parent()
1645 if (outfd != -1) { in meta_compat_parent()
1646 FD_SET(outfd, &readfds); in meta_compat_parent()
1658 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do { in meta_compat_parent()
1660 ssize_t nread = read(outfd, buf, sizeof buf - 1); in meta_compat_parent()
1664 close(outfd); in meta_compat_parent()
[all …]
/freebsd/usr.sbin/pmc/
H A Dcmd_pmc_filter.cc199 int outfd) in pmc_filter_handler() argument
253 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
293 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
/freebsd/contrib/less/
H A Doutput.c92 static int outfd = 2; /* stderr */ variable
438 if (write(outfd, obuf, n) != (ssize_t) n) in flush()
448 outfd = fd; in set_output()
467 if (!term_init_ever && outfd == 1) in putchr()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_sendrecv.c95 zio_cksum_t *zc, int outfd) in dump_record() argument
108 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
112 if (write(outfd, payload, payload_len) == -1) in dump_record()
765 int outfd; member
835 boolean_t fromorigin, int outfd, enum lzc_send_flags flags, in dump_ioctl() argument
846 zc.zc_cookie = outfd; in dump_ioctl()
1276 pa.pa_fd = sdd->outfd; in dump_snapshot()
1293 fromorigin, sdd->outfd, flags, sdd->debugnv); in dump_snapshot()
1830 int outfd, nvlist_t *resume_nvl) in zfs_send_resume_impl_cb_impl() argument
1945 error = estimate_size(zhp, fromname, outfd, &tmpflags, in zfs_send_resume_impl_cb_impl()
[all …]
H A Dlibzfs_diff.c747 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, in zfs_show_diffs() argument
776 di.outputfd = outfd; in zfs_show_diffs()
/freebsd/usr.sbin/daemon/
H A Ddaemon.c782 int outfd; in reopen_log() local
784 outfd = open_log(state->output_filename, state->output_file_mode); in reopen_log()
788 state->output_fd = outfd; in reopen_log()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dmain.c219 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/sys/contrib/openzfs/module/zfs/
H A Ddmu_send.c1949 int outfd; member
2235 dssp->dss_outfd = dspp->outfd; in setup_send_progress()
2660 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off, in dmu_send_obj() argument
2670 dspp.outfd = outfd; in dmu_send_obj()
2751 const char *redactbook, int outfd, offset_t *off, in dmu_send() argument
2766 dspp.outfd = outfd; in dmu_send()
/freebsd/contrib/pam-krb5/tests/
H A Druntests.c1120 int outfd, status; in test_run() local
1126 testpid = test_start(ts->command, &outfd); in test_run()
1127 output = fdopen(outfd, "r"); in test_run()
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c1339 execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd) in execfilter() argument
1405 dup2(outfd, STDOUT_FILENO); in execfilter()

12