Home
last modified time | relevance | path

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

12

/external/toybox/toys/posix/
Dsplit.c39 int outfd = -1; local
68 if (outfd != -1) close(outfd);
69 outfd = xcreate(TT.outfile, O_RDWR|O_CREAT|O_TRUNC, st.st_mode & 0777);
84 xwrite(outfd, toybuf+pos, j);
89 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((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
/external/u-boot/tools/
Dmxsboot.c464 static int mx28_create_nand_image(int infd, int outfd) in mx28_create_nand_image() argument
513 wr_size = write(outfd, buf, size); in mx28_create_nand_image()
531 static int mx28_create_sd_image(int infd, int outfd) in mx28_create_sd_image() argument
568 wr_size = write(outfd, buf, size); in mx28_create_sd_image()
639 int infd, outfd; in main() local
657 outfd = open(argv[offset + 2], O_CREAT | O_TRUNC | O_WRONLY, in main()
659 if (outfd < 0) { in main()
666 ret = mx28_create_sd_image(infd, outfd); in main()
668 ret = mx28_create_nand_image(infd, outfd); in main()
670 close(outfd); in main()
/external/toybox/lib/
Ddeflate.c29 int infd, outfd; member
137 xwrite(dd->outfd, dd->data, 32768); in output_byte()
308 xwrite(dd->outfd, dd->data, dd->pos&32767); in inflate()
425 long long gzip_fd(int infd, int outfd) in gzip_fd() argument
427 struct bitbuf *bb = bitbuf_init(outfd, 4096); in gzip_fd()
459 long long gunzip_fd(int infd, int outfd) in gunzip_fd() argument
466 dd->outfd = outfd; in gunzip_fd()
/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/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/u-boot/tools/patman/
Dpatchstream.py348 def ProcessStream(self, infd, outfd): argument
379 outfd.write('+\n' * self.blank_count)
380 outfd.write(line + '\n')
455 outfd = os.fdopen(handle, 'w')
459 ps.ProcessStream(infd, outfd)
461 outfd.close()
/external/syzkaller/vendor/golang.org/x/sys/unix/
Dsyscall_freebsd_386.go40 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
42 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offs…
Dsyscall_dragonfly_amd64.go40 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
42 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count)…
Dsyscall_freebsd_amd64.go40 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
42 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count)…
Dsyscall_freebsd_arm.go40 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
42 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offs…
Dsyscall_darwin_386.go51 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
54 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offse…
Dsyscall_darwin_arm64.go51 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
54 …_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe…
Dsyscall_darwin_amd64.go51 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
54 …_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe…
Dsyscall_darwin_arm.go49 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 …_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offse…
/external/iproute2/misc/
Dlnstat_util.c280 int lnstat_dump(FILE *outfd, struct lnstat_file *lnstat_files) in lnstat_dump() argument
287 fprintf(outfd, "%s:\n", lf->path); in lnstat_dump()
290 fprintf(outfd, "\t%2u: %s\n", i+1, lf->fields[i].name); in lnstat_dump()
/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/ppp/pppd/
Dmain.c1565 safe_fork(int infd, int outfd, int errfd) in safe_fork() argument
1604 if (outfd == 0 || outfd == 2) in safe_fork()
1605 outfd = dup(outfd); in safe_fork()
1614 if (outfd != 1) in safe_fork()
1615 dup2(outfd, 1); in safe_fork()
1629 if (outfd != 1) in safe_fork()
1630 close(outfd); in safe_fork()
/external/libnfnetlink/src/
Diftable.h10 int iftable_dump(FILE *outfd);
/external/toolchain-utils/cros_utils/
Dcommand_executer.py612 outfd = pobject.stdout.fileno()
613 poll.register(outfd, select.POLLIN | select.POLLPRI)
615 outfd: StreamHandler(pobject, outfd, 'stdout', line_consumer)

12