Searched defs:fd2 (Results 1 - 7 of 7) sorted by relevance

/system/core/toolbox/
H A Dcmp.c13 int fd1, fd2; local
56 fd2 = open(argv[optind+1], O_RDONLY);
57 if(fd2 < 0) {
64 res2 = read(fd2, &buf2, sizeof(buf2));
/system/extras/tests/ext4/
H A Drand_emmc_perf.c45 int fd, fd2, write_mode = 0, iops = 0; local
91 fd2 = open("/dev/urandom", O_RDONLY);
92 if (fd2 < 0) {
95 if (read(fd2, &seed, sizeof(seed)) != sizeof(seed)) {
98 close(fd2);
/system/core/libsync/
H A Dsync.c37 int sync_merge(const char *name, int fd1, int fd2) argument
42 data.fd2 = fd2;
/system/core/sh/
H A Dinput.c436 int fd2; local
442 fd2 = copyfd(fd, 10);
444 if (fd2 < 0)
446 fd = fd2;
/system/bluetooth/tools/
H A Dasocket_test.c610 int fd1, fd2; local
626 fd2 = _socket(type);
627 if (_connect(fd2, type)) goto error;
629 pthread_create(&t2, NULL, (void *)thread_shutdown, (void *)&fd2);
631 while (1) if (_read(fd2)) break;
H A Dsocktest.c682 int fd1, fd2; local
698 fd2 = _socket(type);
699 if (_connect(fd2, type)) goto error;
701 pthread_create(&t2, NULL, (void *)thread_shutdown, (void *)&fd2);
703 while (1) if (_read(fd2)) break;
/system/core/init/
H A Dbuiltins.c659 int fd1 = -1, fd2 = -1; local
673 if ((fd2 = open(args[2], O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0)
694 rc = write(fd2, p, brtw);
712 if (fd2 >= 0)
713 close(fd2);

Completed in 88 milliseconds