Home
last modified time | relevance | path

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

12

/src/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()
/src/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 …]
/src/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()
/src/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()
/src/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);
/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ !
H A Dsanitizer_symbolizer_posix_libcdep.cpp96 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()
/src/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()
/src/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 …]
/src/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,
/src/usr.sbin/edquota/ !
H A Dedquota.c461 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) in writeprivs() argument
466 ftruncate(outfd, 0); in writeprivs()
467 lseek(outfd, 0, L_SET); in writeprivs()
468 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writeprivs()
675 writetimes(struct quotause *quplist, int outfd, int quotatype) in writetimes() argument
680 ftruncate(outfd, 0); in writetimes()
681 lseek(outfd, 0, L_SET); in writetimes()
682 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writetimes()
/src/sys/contrib/openzfs/cmd/zstream/ !
H A Dzstream_redup.c109 zio_cksum_t *zc, int outfd) in dump_record() argument
122 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
126 if (write(outfd, payload, payload_len) == -1) in dump_record()
178 zfs_redup_stream(int infd, int outfd, boolean_t verbose) in zfs_redup_stream() argument
401 &stream_cksum, outfd) != 0) in zfs_redup_stream()
H A Dzstream_recompress.c43 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 Dzstream_decompress.c43 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()
/src/usr.bin/mkimg/ !
H A Dmkimg.c569 int bcfd, outfd; in main() local
573 outfd = 1; /* Write to stdout by default */ in main()
610 if (outfd != 1) in main()
612 outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC, in main()
614 if (outfd == -1) in main()
750 lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) in main()
765 error = format_write(outfd); in main()
/src/contrib/bmake/ !
H A Dmeta.c1660 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local
1666 outfd = childPipe[0]; in meta_compat_parent()
1673 if (outfd > maxfd) in meta_compat_parent()
1674 maxfd = outfd; in meta_compat_parent()
1678 while (outfd != -1 || metafd != -1) { in meta_compat_parent()
1680 if (outfd != -1) { in meta_compat_parent()
1681 FD_SET(outfd, &readfds); in meta_compat_parent()
1693 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do { in meta_compat_parent()
1695 ssize_t nread = read(outfd, buf, sizeof buf - 1); in meta_compat_parent()
1699 close(outfd); in meta_compat_parent()
[all …]
/src/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()
/src/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()
/src/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()
742 int outfd; member
812 boolean_t fromorigin, int outfd, enum lzc_send_flags flags, in dump_ioctl() argument
823 zc.zc_cookie = outfd; in dump_ioctl()
1266 pa.pa_fd = sdd->outfd; in dump_snapshot()
1283 fromorigin, sdd->outfd, flags, sdd->debugnv); in dump_snapshot()
1820 int outfd, nvlist_t *resume_nvl) in zfs_send_resume_impl_cb_impl() argument
1935 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()
/src/usr.sbin/daemon/ !
H A Ddaemon.c781 int outfd; in reopen_log() local
783 outfd = open_log(state->output_filename, state->output_file_mode); in reopen_log()
787 state->output_fd = outfd; in reopen_log()
/src/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()
/src/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()
/src/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()
/src/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