Home
last modified time | relevance | path

Searched refs:outfd (Results 1 – 25 of 34) 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/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c61 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/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/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.cpp96 int *outfd = NULL; in CreateTwoHighNumberedPipes()
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()
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[ in StartSymbolizerSubprocess()
95 int *outfd = NULL; CreateTwoHighNumberedPipes() local
171 fd_t infd[2] = {}, outfd[2] = {}; StartSymbolizerSubprocess() local
[all...]
/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/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.h54 const char *redactbook, int outfd, offset_t *off,
61 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off,
/freebsd/usr.bin/mkimg/
H A Dmkimg.c559 int bcfd, outfd; in main() local
563 outfd = 1; /* Write to stdout by default */ in main()
597 if (outfd != 1) in main()
599 outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC, in main()
601 if (outfd == -1) in main()
724 lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) in main()
739 error = format_write(outfd); in main()
/freebsd/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()
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_redup.c108 zio_cksum_t *zc, int outfd) in dump_record() argument
121 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
125 if (write(outfd, payload, payload_len) == -1) in dump_record()
177 zfs_redup_stream(int infd, int outfd, boolean_t verbose) in zfs_redup_stream() argument
400 &stream_cksum, outfd) != 0) in zfs_redup_stream()
H A Dzstream_recompress.c42 zio_cksum_t *zc, int outfd) in dump_record() argument
55 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
59 if (write(outfd, payload, payload_len) == -1) in dump_record()
H A Dzstream_decompress.c42 zio_cksum_t *zc, int outfd) in dump_record() argument
55 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
59 if (write(outfd, payload, payload_len) == -1) in dump_record()
/freebsd/contrib/bmake/
H A Dmeta.c1664 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local
1670 outfd = childPipe[0]; in meta_compat_parent()
1677 if (outfd > maxfd) in meta_compat_parent()
1678 maxfd = outfd; in meta_compat_parent()
1682 while (outfd != -1 || metafd != -1) { in meta_compat_parent()
1684 if (outfd != -1) { in meta_compat_parent()
1685 FD_SET(outfd, &readfds); in meta_compat_parent()
1697 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do { in meta_compat_parent()
1699 ssize_t nread = read(outfd, buf, sizeof buf - 1); in meta_compat_parent()
1703 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/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_sendrecv.c94 zio_cksum_t *zc, int outfd) in dump_record() argument
107 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
111 if (write(outfd, payload, payload_len) == -1) in dump_record()
741 int outfd; member
811 boolean_t fromorigin, int outfd, enum lzc_send_flags flags, in dump_ioctl() argument
822 zc.zc_cookie = outfd; in dump_ioctl()
1264 pa.pa_fd = sdd->outfd; in dump_snapshot()
1281 fromorigin, sdd->outfd, flags, sdd->debugnv); in dump_snapshot()
1818 int outfd, nvlist_t *resume_nvl) in zfs_send_resume_impl_cb_impl() argument
1933 error = estimate_size(zhp, fromname, outfd, &tmpflags, in zfs_send_resume_impl_cb_impl()
[all …]
H A Dlibzfs_diff.c746 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/contrib/less/
H A Doutput.c90 static int outfd = 2; /* stderr */ in win_flush()
437 if (write(outfd, obuf, n) != n) in putchr()
447 outfd = fd; in putchr()
84 static int outfd = 2; /* stderr */ global() variable
/freebsd/usr.sbin/daemon/
H A Ddaemon.c768 int outfd; in reopen_log() local
770 outfd = open_log(state->output_filename); in reopen_log()
774 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.c1948 int outfd; member
2234 dssp->dss_outfd = dspp->outfd; in setup_send_progress()
2659 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off, in dmu_send_obj() argument
2669 dspp.outfd = outfd; in dmu_send_obj()
2750 const char *redactbook, int outfd, offset_t *off, in dmu_send() argument
2765 dspp.outfd = outfd; in dmu_send()
/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()
/freebsd/contrib/tnftp/src/
H A Dftp.c584 copy_bytes(int infd, int outfd, char *buf, size_t bufsize, in copy_bytes() argument
616 outc = write(outfd, bufp, inc); in copy_bytes()

12