Home
last modified time | relevance | path

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

/external/toybox/toys/posix/
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/toybox/toys/other/
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);
Dbzcat.c678 int outfd = 1, rename = 0, len = strlen(name); in do_bunzip2() local
687 if (toys.optflags&FLAG_t) outfd = xopen("/dev/null", O_WRONLY); in do_bunzip2()
696 outfd = copy_tempfile(fd, name, &tmp); in do_bunzip2()
701 err = bunzipStream(fd, outfd); in do_bunzip2()
716 (err ? delete_tempfile : replace_tempfile)(-1, outfd, &tmp); in do_bunzip2()
/external/e2fsprogs/misc/
Dlogsave.c35 static int outfd = -1; variable
106 if (outfd > 0) in send_output()
107 write_all(outfd, buffer, c); in send_output()
283 outfd = open(outfn, openflags, 0644); in main()
323 while (outfd < 0) { in main()
324 outfd = open(outfn, openflags, 0644); in main()
327 write_all(outfd, outbuf, outbufsize); in main()
330 if (outfd >= 0) in main()
331 close(outfd); in main()
/external/elfutils/tests/
Darextract.c85 int outfd; in main() local
98 outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, 0666); in main()
99 if (outfd == -1) in main()
114 if (write (outfd, buf, n) != n) in main()
138 close (outfd); in main()
Decp.c46 int outfd = creat (argv[2], 0666); in main() local
47 if (outfd == -1) in main()
50 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in main()
94 close (outfd); in main()
/external/curl/docs/examples/
Dsendrecv.c35 fd_set infd, outfd, errfd; in wait_on_socket() local
42 FD_ZERO(&outfd); in wait_on_socket()
51 FD_SET(sockfd, &outfd); in wait_on_socket()
55 res = select(sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_posix_libcdep.cc160 int *outfd = NULL; in StartSymbolizerSubprocess() local
181 outfd = sock_pair[i]; in StartSymbolizerSubprocess()
192 CHECK(outfd); in StartSymbolizerSubprocess()
196 pid = StartSubprocess(path_, argv, /* stdin */ outfd[0], in StartSymbolizerSubprocess()
200 internal_close(outfd[1]); in StartSymbolizerSubprocess()
205 output_fd_ = outfd[1]; in StartSymbolizerSubprocess()
/external/selinux/policycoreutils/hll/pp/
Dpp.c76 int outfd = -1; in main() local
162 if (outfd != -1) { in main()
163 close(outfd); in main()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c223 int outfd; member
248 int outfd; member
2212 int infd, outfd, blocks; in do_scsi_device_read_write() local
2256 outfd = STDOUT_FILENO; in do_scsi_device_read_write()
2330 if ((outfd = open(outf, O_RDWR)) < 0) { in do_scsi_device_read_write()
2338 res = ioctl(outfd, SG_SET_RESERVED_SIZE, &t); in do_scsi_device_read_write()
2341 res = ioctl(outfd, SG_GET_VERSION_NUM, &t); in do_scsi_device_read_write()
2348 outfd = -1; /* don't bother opening */ in do_scsi_device_read_write()
2357 if ((outfd = open(outf, flags, 0666)) < 0) { in do_scsi_device_read_write()
2366 if ((outfd = open(outf, O_WRONLY)) < 0) { in do_scsi_device_read_write()
[all …]
/external/iproute2/misc/
Dlnstat_util.c282 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files) in lnstat_dump() argument
289 fprintf(outfd, "%s:\n", lf->path); in lnstat_dump()
292 fprintf(outfd, "\t%2u: %s\n", i+1, lf->fields[i].name); in lnstat_dump()
Dlnstat.h41 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files);
/external/toybox/toys/pending/
Dcompress.c65 int infd, outfd;
174 xwrite(TT.outfd, TT.data, 32768); in output_byte()
344 xwrite(TT.outfd, TT.data, TT.pos & 32767); in inflate()
491 TT.outfd = 1; in do_zcat()
/external/libgsm/src/
Dtoast.c505 int outfd = -1; variable
510 if ((outfd = open(o, O_WRITE_EXCL, 0666)) >= 0)
511 out = fdopen(outfd, WRITE);
521 if (outfd >= 0) (void)close(outfd);
/external/libnfnetlink/src/
Diftable.h10 int iftable_dump(FILE *outfd);
/external/ppp/pppd/
Dmain.c1588 safe_fork(int infd, int outfd, int errfd) in safe_fork() argument
1627 if (outfd == 0 || outfd == 2) in safe_fork()
1628 outfd = dup(outfd); in safe_fork()
1637 if (outfd != 1) in safe_fork()
1638 dup2(outfd, 1); in safe_fork()
1652 if (outfd != 1) in safe_fork()
1653 close(outfd); in safe_fork()
/external/toolchain-utils/cros_utils/
Dcommand_executer.py606 outfd = pobject.stdout.fileno()
607 poll.register(outfd, select.POLLIN | select.POLLPRI)
608 handlermap = {outfd:
609 StreamHandler(pobject, outfd, 'stdout', line_consumer)}
/external/ltp/testcases/kernel/fs/doio/
Diogen.c382 int rseed, outfd, infinite; in main() local
401 outfd = 1; in main()
403 outfd = init_output(); in main()
439 if (write(outfd, (char *)&req, sizeof(req)) == -1) in main()
533 int outfd; in init_output() local
559 if ((outfd = open(Outpipe, O_RDWR)) == -1) { in init_output()
566 return (outfd); in init_output()
/external/elfutils/src/
Dunstrip.c2026 int outfd = open (output_file, O_RDWR | O_CREAT, in handle_file() local
2028 if (outfd < 0) in handle_file()
2030 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in handle_file()
2049 close (outfd); in handle_file()
Dld.h782 int outfd; member
Dldgeneric.c2679 ld_state.outfd = fd; in ld_generic_open_outfile()
6983 if (fstat (ld_state.outfd, &temp_st) != 0) in ld_generic_finalize()
7005 (void) close (ld_state.outfd); in ld_generic_finalize()
/external/toybox/generated/
Dglobals.h474 int infd, outfd; member