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

/external/toybox/toys/other/
H A Ddos2unix.c37 int outfd = 1, catch = 0; local
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile);
61 xwrite(outfd, toybuf, out);
63 if (catch) xwrite(outfd, "\r", 1);
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile);
H A Dbzcat.c678 int outfd = 1, rename = 0, len = strlen(name); local
687 if (toys.optflags&FLAG_t) outfd = xopen("/dev/null", O_WRONLY);
696 outfd = copy_tempfile(fd, name, &tmp);
701 err = bunzipStream(fd, outfd);
707 // can't test outfd==1 because may have been called with stdin+stdout closed
716 (err ? delete_tempfile : replace_tempfile)(-1, outfd, &tmp);
/external/toybox/toys/posix/
H A Dsplit.c41 int outfd = -1; local
70 if (outfd != -1) close(outfd);
71 outfd = xcreate(TT.outfile, O_RDWR|O_CREAT|O_TRUNC, st.st_mode & 0777);
86 xwrite(outfd, toybuf+pos, j);
91 if (outfd != -1) close(outfd);
/external/libnfnetlink/src/
H A Diftable.h10 int iftable_dump(FILE *outfd);
/external/elfutils/tests/
H A Darextract.c85 int outfd; local
98 outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, 0666);
99 if (outfd == -1)
114 if (write (outfd, buf, n) != n)
138 close (outfd);
H A Decp.c46 int outfd = creat (argv[2], 0666); local
47 if (outfd == -1)
50 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL);
94 close (outfd);
/external/curl/docs/examples/
H A Dsendrecv.c35 fd_set infd, outfd, errfd; local
42 FD_ZERO(&outfd);
51 FD_SET(sockfd, &outfd);
55 res = select(sockfd + 1, &infd, &outfd, &errfd, &tv);
/external/e2fsprogs/misc/
H A Dlogsave.c35 static int outfd = -1; variable
106 if (outfd > 0)
107 write_all(outfd, buffer, c);
283 outfd = open(outfn, openflags, 0644);
323 while (outfd < 0) {
324 outfd = open(outfn, openflags, 0644);
327 write_all(outfd, outbuf, outbufsize);
330 if (outfd >= 0)
331 close(outfd);
/external/selinux/policycoreutils/hll/pp/
H A Dpp.c76 int outfd = -1; local
162 if (outfd != -1) {
163 close(outfd);
/external/iproute2/misc/
H A Dlnstat.h41 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files);
H A Dlnstat_util.c282 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files) argument
289 fprintf(outfd, "%s:\n", lf->path);
292 fprintf(outfd, "\t%2u: %s\n", i+1, lf->fields[i].name);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cc160 int *outfd = NULL; local
181 outfd = sock_pair[i];
192 CHECK(outfd);
196 pid = StartSubprocess(path_, argv, /* stdin */ outfd[0],
200 internal_close(outfd[1]);
205 output_fd_ = outfd[1];
/external/toybox/toys/pending/
H A Dcompress.c65 int infd, outfd;
174 xwrite(TT.outfd, TT.data, 32768);
229 // Decompress deflated data from bitbuf to TT.outfd.
344 xwrite(TT.outfd, TT.data, TT.pos & 32767);
491 TT.outfd = 1;
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dscsimain.c223 int outfd; member in struct:request_collection
248 int outfd; member in struct:request_element
2212 int infd, outfd, blocks; local
2256 outfd = STDOUT_FILENO;
2330 if ((outfd = open(outf, O_RDWR)) < 0) {
2338 res = ioctl(outfd, SG_SET_RESERVED_SIZE, &t);
2341 res = ioctl(outfd, SG_GET_VERSION_NUM, &t);
2348 outfd = -1; /* don't bother opening */
2357 if ((outfd = open(outf, flags, 0666)) < 0) {
2366 if ((outfd
6285 int infd, outfd, blocks; local
[all...]
/external/libgsm/src/
H A Dtoast.c505 int outfd = -1; local
510 if ((outfd = open(o, O_WRITE_EXCL, 0666)) >= 0)
511 out = fdopen(outfd, WRITE);
521 if (outfd >= 0) (void)close(outfd);
/external/ppp/pppd/
H A Dmain.c1588 safe_fork(int infd, int outfd, int errfd) argument
1624 /* make sure infd, outfd and errfd won't get tromped on below */
1627 if (outfd == 0 || outfd == 2)
1628 outfd = dup(outfd);
1637 if (outfd != 1)
1638 dup2(outfd, 1);
1652 if (outfd != 1)
1653 close(outfd);
[all...]
/external/toolchain-utils/cros_utils/
H A Dcommand_executer.py606 outfd = pobject.stdout.fileno() variable in class:CommandExecuter.RunCommand2.StreamHandler
607 poll.register(outfd, select.POLLIN | select.POLLPRI)
608 handlermap = {outfd:
609 StreamHandler(pobject, outfd, 'stdout', line_consumer)}
/external/ltp/testcases/kernel/fs/doio/
H A Diogen.c382 int rseed, outfd, infinite; local
401 outfd = 1;
403 outfd = init_output();
439 if (write(outfd, (char *)&req, sizeof(req)) == -1)
533 int outfd; local
559 if ((outfd = open(Outpipe, O_RDWR)) == -1) {
566 return (outfd);
/external/elfutils/src/
H A Dld.h782 int outfd; member in struct:ld_state
H A Dunstrip.c2028 int outfd = open (output_file, O_RDWR | O_CREAT,
2030 if (outfd < 0)
2032 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL);
2051 close (outfd);
2026 int outfd = open (output_file, O_RDWR | O_CREAT, local
H A Dldgeneric.c2679 ld_state.outfd = fd;
6983 if (fstat (ld_state.outfd, &temp_st) != 0)
7005 (void) close (ld_state.outfd);
/external/toybox/generated/
H A Dglobals.h474 int infd, outfd; member in struct:compress_data

Completed in 854 milliseconds