Searched defs:fd1 (Results 1 - 4 of 4) 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/core/init/
H A Dbuiltins.c705 int fd1 = -1, fd2 = -1; local
716 if ((fd1 = open(args[1], O_RDONLY)) < 0)
728 rc = read(fd1, p, brtr);
756 if (fd1 >= 0)
757 close(fd1);

Completed in 175 milliseconds