Searched defs:fd1 (Results 1 - 6 of 6) sorted by relevance

/system/core/toolbox/
H A Dcmp.c13 int fd1, fd2; local
50 fd1 = open(argv[optind], O_RDONLY);
51 if(fd1 < 0) {
63 res1 = read(fd1, &buf1, sizeof(buf1));
H A Dnewfs_msdos.c272 int ch, fd, fd1; local
497 fd1 = -1;
505 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb))
629 if (!x && lseek(fd1, opt_ofs, SEEK_SET))
633 if ((n = read(fd1, img, bpb.bps)) == -1)
/system/core/libsync/
H A Dsync.c37 int sync_merge(const char *name, int fd1, int fd2) argument
45 err = ioctl(fd1, SYNC_IOC_MERGE, &data);
/system/bluetooth/tools/
H A Dasocket_test.c610 int fd1, fd2; local
616 fd1 = _socket(type);
617 if (fd1 < 0) goto error;
619 if (_bind(fd1, type) < 0) goto error;
621 if (_listen(fd1, type) < 0) goto error;
623 a1.fd = fd1;
H A Dsocktest.c682 int fd1, fd2; local
688 fd1 = _socket(type);
689 if (fd1 < 0) goto error;
691 if (_bind(fd1, type) < 0) goto error;
693 if (_listen(fd1, type) < 0) goto error;
695 a1.fd = fd1;
/system/core/init/
H A Dbuiltins.c659 int fd1 = -1, fd2 = -1; local
670 if ((fd1 = open(args[1], O_RDONLY)) < 0)
682 rc = read(fd1, p, brtr);
710 if (fd1 >= 0)
711 close(fd1);

Completed in 176 milliseconds