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.c265 int ch, fd, fd1; local
495 fd1 = -1;
503 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb))
648 if (!x && lseek(fd1, opt_ofs, SEEK_SET))
652 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.c755 int fd1 = -1, fd2 = -1; local
766 if ((fd1 = open(args[1], O_RDONLY)) < 0)
778 rc = read(fd1, p, brtr);
806 if (fd1 >= 0)
807 close(fd1);

Completed in 98 milliseconds