Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 5 of 5) sorted by relevance

/system/core/toolbox/
Dcmp.c13 int fd1, fd2; in cmp_main() local
50 fd1 = open(argv[optind], O_RDONLY); in cmp_main()
51 if(fd1 < 0) { in cmp_main()
63 res1 = read(fd1, &buf1, sizeof(buf1)); in cmp_main()
Dnewfs_msdos.c272 int ch, fd, fd1; in newfs_msdos_main() local
497 fd1 = -1; in newfs_msdos_main()
505 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) in newfs_msdos_main()
629 if (!x && lseek(fd1, opt_ofs, SEEK_SET)) in newfs_msdos_main()
633 if ((n = read(fd1, img, bpb.bps)) == -1) in newfs_msdos_main()
/system/core/libsync/
Dsync.c37 int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument
45 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge()
/system/core/include/sync/
Dsync.h46 int sync_merge(const char *name, int fd1, int fd2);
/system/core/init/
Dbuiltins.c705 int fd1 = -1, fd2 = -1; in do_copy() local
716 if ((fd1 = open(args[1], O_RDONLY)) < 0) in do_copy()
728 rc = read(fd1, p, brtr); in do_copy()
756 if (fd1 >= 0) in do_copy()
757 close(fd1); in do_copy()