Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/subversion/subversion/libsvn_subr/
H A Dprompt.c79 terminal->outfd = outfd; in terminal_handle_init()
107 apr_file_t *const outfd = terminal->outfd; in terminal_cleanup_handler() local
115 if (!status && outfd && outfd != infd) in terminal_cleanup_handler()
117 terminal->outfd = NULL; in terminal_cleanup_handler()
193 apr_file_t *outfd; in terminal_open() local
249 if (!terminal->outfd) in terminal_puts()
277 apr_file_putc('^', outfd); in echo_control_char()
278 apr_file_putc(substitute, outfd); in echo_control_char()
283 apr_file_putc(ch, outfd); in echo_control_char()
288 apr_file_putc('^', outfd); in echo_control_char()
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cc108 int *outfd = NULL; in CreateTwoHighNumberedPipes() local
127 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()
138 CHECK(outfd); in CreateTwoHighNumberedPipes()
141 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes()
142 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes()
159 int outfd[2]; in StartSymbolizerSubprocess() local
160 internal_memset(&outfd, 0, sizeof(outfd)); in StartSymbolizerSubprocess()
178 close(outfd[0]); in StartSymbolizerSubprocess()
179 close(outfd[1]); in StartSymbolizerSubprocess()
233 internal_close(outfd[1]); in StartSymbolizerSubprocess()
[all …]
/freebsd-12.1/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dtxg_integrity.c309 static int outfd = 0; variable
406 pwrite(outfd, (void*)buf, size, chunk_start); in write_chunk()
432 my_sync(outfd); in follower()
461 my_sync(outfd); in leader()
501 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
502 if (outfd == -1){ in main()
508 if ( ftruncate(outfd, FSIZE)){ in main()
517 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){ in main()
523 if (-1 == lseek(outfd, 0, SEEK_SET)){ in main()
594 if (verify_file(outfd, patterns[pat])) { in main()
[all …]
H A Dfsync_integrity.c280 static int outfd = 0; variable
365 pwrite(outfd, (void*)buf, size, chunk_start); in write_chunk()
401 my_sync(outfd); in worker()
436 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
437 if (outfd == -1){ in main()
443 if ( ftruncate(outfd, FSIZE)){ in main()
452 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){ in main()
458 if (-1 == lseek(outfd, 0, SEEK_SET)){ in main()
503 if (verify_file(outfd, patterns[pat])) { in main()
509 if (close(outfd)){ in main()
/freebsd-12.1/usr.bin/mail/
H A Dpopen.c216 start_commandv(char *cmd, sigset_t *nset, int infd, int outfd, va_list args) in start_commandv() argument
231 prepare_child(nset, infd, outfd); in start_commandv()
240 run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in run_command() argument
245 va_start(args, outfd); in run_command()
246 pid = start_commandv(cmd, nset, infd, outfd, args); in run_command()
254 start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) in start_command() argument
259 va_start(args, outfd); in start_command()
260 r = start_commandv(cmd, nset, infd, outfd, args); in start_command()
266 prepare_child(sigset_t *nset, int infd, int outfd) in prepare_child() argument
277 if (outfd >= 0) in prepare_child()
[all …]
/freebsd-12.1/usr.sbin/daemon/
H A Ddaemon.c63 int outfd; member
86 int pfd[2] = { -1, -1 }, outfd = -1; in main() local
171 outfd = open(outfn, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0600); in main()
172 if (outfd == -1) in main()
203 if (pidfile || ppidfile || restart || outfd != -1 || dosyslog) { in main()
250 logpar.outfd = outfd; in main()
373 close(outfd); in main()
523 if (logpar->outfd != -1) { in do_output()
524 if (write(logpar->outfd, buf, len) == -1) in do_output()
527 if (logpar->noclose && !logpar->dosyslog && logpar->outfd == -1) in do_output()
/freebsd-12.1/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c60 static int outfd = 0; variable
71 ret = write(outfd, buf, sizeof (buf)); in go()
109 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777); in main()
110 if (outfd == -1) { in main()
/freebsd-12.1/usr.sbin/nghook/
H A Dmain.c67 static int outfd = STDOUT_FILENO; variable
114 outfd = STDIN_FILENO; in main()
215 else if ((wl = write(outfd, buf, rl)) != rl) { in main()
280 (void) write(outfd, sbuf, strlen(sbuf)); in WriteAscii()
283 write(outfd, &ch, 1); in WriteAscii()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Ddmu_send.h44 boolean_t large_block_ok, boolean_t compressok, int outfd,
58 int outfd, struct vnode *vp, offset_t *off);
60 int outfd, struct file *fp, offset_t *off);
/freebsd-12.1/usr.sbin/dconschat/
H A Ddconschat.c119 int outfd; member
169 write(p->outfd, buf, strlen(buf)); in dconschat_reset_target()
201 write(p->outfd, buf, strlen(buf)); in dconschat_sigchld()
220 write(p->outfd, buf, strlen(buf)); in dconschat_fork_gdb()
637 p->infd = p->outfd = -1; in dconschat_init_socket()
646 p->outfd = STDOUT_FILENO; in dconschat_init_socket()
739 p->infd = p->outfd = ns; in dconschat_accept_socket()
817 write(p->outfd, sp, 1); in dconschat_read_filter()
818 write(p->outfd, "\r\n", 2); in dconschat_read_filter()
879 close(p->outfd); in dconschat_read_socket()
[all …]
/freebsd-12.1/usr.sbin/edquota/
H A Dedquota.c476 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) in writeprivs() argument
481 ftruncate(outfd, 0); in writeprivs()
482 lseek(outfd, 0, L_SET); in writeprivs()
483 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writeprivs()
690 writetimes(struct quotause *quplist, int outfd, int quotatype) in writetimes() argument
695 ftruncate(outfd, 0); in writetimes()
696 lseek(outfd, 0, L_SET); in writetimes()
697 if ((fd = fdopen(dup(outfd), "w")) == NULL) in writetimes()
/freebsd-12.1/usr.bin/mkimg/
H A Dmkimg.c560 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()
729 error = format_write(outfd); in main()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_sendrecv.c248 int outfd; in cksummer() local
274 outfd = dda->outputfd; in cksummer()
315 outfd) != 0) in cksummer()
326 outfd) != 0) in cksummer()
359 outfd) != 0) in cksummer()
460 outfd) != 0) in cksummer()
937 int outfd; member
1027 zc.zc_cookie = outfd; in dump_ioctl()
1684 pa.pa_fd = outfd; in zfs_send_resume()
1802 dda.outputfd = outfd; in zfs_send()
[all …]
H A Dlibzfs_diff.c753 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, in zfs_show_diffs() argument
781 di.outputfd = outfd; in zfs_show_diffs()
H A Dlibzfs.h664 extern int zfs_send_resume(libzfs_handle_t *, sendflags_t *, int outfd,
/freebsd-12.1/usr.sbin/pmc/
H A Dcmd_pmc_filter.cc201 int outfd) in pmc_filter_handler() argument
256 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
296 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
/freebsd-12.1/contrib/elftoolchain/elfcopy/
H A Dmain.c219 int infd, int *outfd, int in_place);
562 copy_from_tempfile(const char *src, const char *dst, int infd, int *outfd, in copy_from_tempfile() argument
572 *outfd = infd; in copy_from_tempfile()
605 *outfd = tmpfd; in copy_from_tempfile()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_send.c792 int outfd, uint64_t resumeobj, uint64_t resumeoff, in dmu_send_impl() argument
884 dsp->dsa_outfd = outfd; in dmu_send_impl()
1001 int outfd, vnode_t *vp, offset_t *off) in dmu_send_obj() argument
1003 int outfd, struct file *fp, offset_t *off) in dmu_send_obj()
1040 embedok, large_block_ok, compressok, outfd, 0, 0, fp, off); in dmu_send_obj()
1043 embedok, large_block_ok, compressok, outfd, 0, 0, fp, off); in dmu_send_obj()
1051 boolean_t large_block_ok, boolean_t compressok, int outfd, in dmu_send() argument
1125 outfd, resumeobj, resumeoff, fp, off); in dmu_send()
1129 outfd, resumeobj, resumeoff, fp, off); in dmu_send()
/freebsd-12.1/usr.sbin/lpr/lpd/
H A Dprintjob.c1353 execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd) in execfilter() argument
1419 dup2(outfd, STDOUT_FILENO); in execfilter()
/freebsd-12.1/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()
/freebsd-12.1/contrib/sendmail/src/
H A Dsrvrsmtp.c4398 int inchfd, outchfd, outfd; in setup_smtpd_io() local
4402 outfd = sm_io_getinfo(smioout, SM_IO_WHAT_FD, NULL); in setup_smtpd_io()
4403 if (outchfd != outfd) in setup_smtpd_io()
4406 (void) dup2(outchfd, outfd); in setup_smtpd_io()