Searched refs:outfd (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c61 static int outfd = 0; variable
71 ret = write(outfd, buf, sizeof (buf));
111 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777);
112 if (outfd == -1) {
/freebsd-current/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c58 static int outfd = 0; variable
69 ret = write(outfd, buf, sizeof (buf));
107 outfd = open(argv[optind++], O_RDWR|O_CREAT|O_APPEND|O_TRUNC, 0777);
108 if (outfd == -1) {
/freebsd-current/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-current/usr.bin/mail/
H A Dpopen.c208 start_commandv(char *cmd, sigset_t *nset, int infd, int outfd, va_list args) argument
223 prepare_child(nset, infd, outfd);
232 run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) argument
237 va_start(args, outfd);
238 pid = start_commandv(cmd, nset, infd, outfd, args);
246 start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...) argument
251 va_start(args, outfd);
252 r = start_commandv(cmd, nset, infd, outfd, args);
258 prepare_child(sigset_t *nset, int infd, int outfd) argument
269 if (outfd >
[all...]
/freebsd-current/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-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cpp96 int *outfd = NULL; local
115 outfd = sock_pair[i];
126 CHECK(outfd);
129 outfd_[0] = outfd[0];
130 outfd_[1] = outfd[1];
172 fd_t infd[2] = {}, outfd[2] = {}; local
173 if (!CreateTwoHighNumberedPipes(infd, outfd)) {
179 pid = StartSubprocess(path_, argv, GetEnvP(), /* stdin */ outfd[0],
183 internal_close(outfd[1]);
188 output_fd_ = outfd[
[all...]
/freebsd-current/usr.sbin/nghook/
H A Dmain.c65 static int outfd = STDOUT_FILENO; variable
112 outfd = STDIN_FILENO;
213 else if ((wl = write(outfd, buf, rl)) != rl) {
278 (void) write(outfd, sbuf, strlen(sbuf));
281 write(outfd, &ch, 1);
/freebsd-current/usr.sbin/dconschat/
H A Ddconschat.c118 int outfd; member in struct:dcons_state::dcons_port
168 write(p->outfd, buf, strlen(buf));
200 write(p->outfd, buf, strlen(buf));
219 write(p->outfd, buf, strlen(buf));
231 write(p->outfd, buf, strlen(buf));
236 write(p->outfd, buf, strlen(buf));
627 p->infd = p->outfd = -1;
636 p->outfd = STDOUT_FILENO;
728 p->infd = p->outfd = ns;
791 write(p->outfd, bu
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c43 zio_cksum_t *zc, int outfd)
56 if (write(outfd, drr, sizeof (*drr)) == -1)
60 if (write(outfd, payload, payload_len) == -1)
42 dump_record(dmu_replay_record_t *drr, void *payload, int payload_len, zio_cksum_t *zc, int outfd) argument
H A Dzstream_redup.c117 zio_cksum_t *zc, int outfd)
130 if (write(outfd, drr, sizeof (*drr)) == -1)
134 if (write(outfd, payload, payload_len) == -1)
186 zfs_redup_stream(int infd, int outfd, boolean_t verbose) argument
407 &stream_cksum, outfd) != 0)
116 dump_record(dmu_replay_record_t *drr, void *payload, int payload_len, zio_cksum_t *zc, int outfd) argument
H A Dzstream_decompress.c40 zio_cksum_t *zc, int outfd)
53 if (write(outfd, drr, sizeof (*drr)) == -1)
57 if (write(outfd, payload, payload_len) == -1)
39 dump_record(dmu_replay_record_t *drr, void *payload, int payload_len, zio_cksum_t *zc, int outfd) argument
/freebsd-current/usr.bin/mkimg/
H A Dmkimg.c559 int bcfd, outfd; local
563 outfd = 1; /* Write to stdout by default */
597 if (outfd != 1)
599 outfd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC,
601 if (outfd == -1)
724 lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
739 error = format_write(outfd);
/freebsd-current/usr.sbin/pmc/
H A Dcmd_pmc_filter.cc199 int outfd)
253 pmc_log_event(outfd, &ev, json);
293 pmc_log_event(outfd, &ev, json);
197 pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidcount, char *events, char *processes, char *threads, bool exclusive, bool json, int infd, int outfd) argument
/freebsd-current/contrib/bmake/
H A Dmeta.c1660 int outfd, metafd, maxfd, nfds; local
1666 outfd = childPipe[0];
1673 if (outfd > maxfd)
1674 maxfd = outfd;
1678 while (outfd != -1 || metafd != -1) {
1680 if (outfd != -1) {
1681 FD_SET(outfd, &readfds);
1693 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do {
1695 ssize_t nread = read(outfd, bu
[all...]
/freebsd-current/usr.sbin/edquota/
H A Dedquota.c461 writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) argument
466 ftruncate(outfd, 0);
467 lseek(outfd, 0, L_SET);
468 if ((fd = fdopen(dup(outfd), "w")) == NULL)
675 writetimes(struct quotause *quplist, int outfd, int quotatype) argument
680 ftruncate(outfd, 0);
681 lseek(outfd, 0, L_SET);
682 if ((fd = fdopen(dup(outfd), "w")) == NULL)
/freebsd-current/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dfsync_integrity.c279 static int outfd = 0; variable
364 pwrite(outfd, (void*)buf, size, chunk_start);
400 my_sync(outfd);
435 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644);
436 if (outfd == -1){
442 if ( ftruncate(outfd, FSIZE)){
451 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){
457 if (-1 == lseek(outfd, 0, SEEK_SET)){
502 if (verify_file(outfd, patterns[pat])) {
508 if (close(outfd)){
[all...]
H A Dtxg_integrity.c308 static int outfd = 0; variable
405 pwrite(outfd, (void*)buf, size, chunk_start);
431 my_sync(outfd);
460 my_sync(outfd);
500 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644);
501 if (outfd == -1){
507 if ( ftruncate(outfd, FSIZE)){
516 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){
522 if (-1 == lseek(outfd, 0, SEEK_SET)){
528 p_file = mmap(0, FSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, outfd,
[all...]
/freebsd-current/contrib/less/
H A Doutput.c84 static int outfd = 2; /* stderr */ variable
391 if (write(outfd, obuf, n) != n)
401 outfd = fd;
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_sendrecv.c93 zio_cksum_t *zc, int outfd)
106 if (write(outfd, drr, sizeof (*drr)) == -1)
110 if (write(outfd, payload, payload_len) == -1)
740 int outfd; member in struct:send_dump_data
806 * NULL) to the file descriptor specified by outfd.
810 boolean_t fromorigin, int outfd, enum lzc_send_flags flags,
821 zc.zc_cookie = outfd;
1263 pa.pa_fd = sdd->outfd;
1280 fromorigin, sdd->outfd, flags, sdd->debugnv);
1817 int outfd, nvlist_
92 dump_record(dmu_replay_record_t *drr, void *payload, size_t payload_len, zio_cksum_t *zc, int outfd) argument
809 dump_ioctl(zfs_handle_t *zhp, const char *fromsnap, uint64_t fromsnap_obj, boolean_t fromorigin, int outfd, enum lzc_send_flags flags, nvlist_t *debugnv) argument
1816 zfs_send_resume_impl_cb_impl(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, nvlist_t *resume_nvl) argument
2031 zfs_send_resume_impl_cb(int outfd, void *arg) argument
2039 zfs_send_resume_impl(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, nvlist_t *resume_nvl) argument
2051 zfs_send_resume(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, const char *resume_token) argument
2077 zfs_send_saved(zfs_handle_t *zhp, sendflags_t *flags, int outfd, const char *resume_token) argument
2331 zfs_send_cb_impl(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap, sendflags_t *flags, int outfd, snapfilter_cb_t filter_func, void *cb_arg, nvlist_t **debugnvp) argument
2545 zfs_send_cb(int outfd, void *arg) argument
2553 zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap, sendflags_t *flags, int outfd, snapfilter_cb_t filter_func, void *cb_arg, nvlist_t **debugnvp) argument
[all...]
H A Dlibzfs_diff.c746 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, argument
775 di.outputfd = outfd;
/freebsd-current/usr.sbin/daemon/
H A Ddaemon.c709 int outfd;
711 outfd = open_log(state->output_filename);
715 state->output_fd = outfd;
688 int outfd; local
/freebsd-current/contrib/elftoolchain/elfcopy/
H A Dmain.c219 int infd, int *outfd, int in_place);
593 * descriptor returned in outfd.
596 copy_from_tempfile(const char *src, const char *dst, int infd, int *outfd, argument
606 *outfd = infd;
643 *outfd = tmpfd;
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Ddmu_send.c1946 int outfd; member in struct:dmu_send_params
2217 dssp->dss_outfd = dspp->outfd;
2642 boolean_t rawok, boolean_t savedok, int outfd, offset_t *off,
2652 dspp.outfd = outfd;
2733 const char *redactbook, int outfd, offset_t *off,
2748 dspp.outfd = outfd;
2640 dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap, boolean_t embedok, boolean_t large_block_ok, boolean_t compressok, boolean_t rawok, boolean_t savedok, int outfd, offset_t *off, dmu_send_outparams_t *dsop) argument
2730 dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok, boolean_t large_block_ok, boolean_t compressok, boolean_t rawok, boolean_t savedok, uint64_t resumeobj, uint64_t resumeoff, const char *redactbook, int outfd, offset_t *off, dmu_send_outparams_t *dsop) argument
/freebsd-current/contrib/tnftp/src/
H A Dftp.c575 * Read data from infd & write to outfd, using buf/bufsize as the temporary
584 copy_bytes(int infd, int outfd, char *buf, size_t bufsize, argument
616 outc = write(outfd, bufp, inc);
/freebsd-current/usr.sbin/lpr/lpd/
H A Dprintjob.c1339 execfilter(struct printer *pp, char *f_cmd, char *f_av[], int infd, int outfd) argument
1405 dup2(outfd, STDOUT_FILENO);

Completed in 287 milliseconds

12