/external/toybox/toys/posix/ |
D | split.c | 39 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/ |
D | dos2unix.c | 37 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);
|
D | bzcat.c | 678 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/ |
D | logsave.c | 35 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/ |
D | arextract.c | 85 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()
|
D | ecp.c | 46 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/ |
D | sendrecv.c | 35 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/ |
D | mxsboot.c | 464 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/ |
D | deflate.c | 29 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/ |
D | sanitizer_symbolizer_posix_libcdep.cc | 160 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/ |
D | scsimain.c | 223 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/ |
D | patchstream.py | 348 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/ |
D | syscall_freebsd_386.go | 40 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…
|
D | syscall_dragonfly_amd64.go | 40 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)…
|
D | syscall_freebsd_amd64.go | 40 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)…
|
D | syscall_freebsd_arm.go | 40 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…
|
D | syscall_darwin_386.go | 51 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…
|
D | syscall_darwin_arm64.go | 51 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…
|
D | syscall_darwin_amd64.go | 51 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…
|
D | syscall_darwin_arm.go | 49 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/ |
D | lnstat_util.c | 280 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/ |
D | toast.c | 505 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/ |
D | main.c | 1565 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/ |
D | iftable.h | 10 int iftable_dump(FILE *outfd);
|
/external/toolchain-utils/cros_utils/ |
D | command_executer.py | 612 outfd = pobject.stdout.fileno() 613 poll.register(outfd, select.POLLIN | select.POLLPRI) 615 outfd: StreamHandler(pobject, outfd, 'stdout', line_consumer)
|