Searched refs:fd2 (Results 1 - 5 of 5) sorted by relevance

/system/core/toolbox/
H A Dcmp.c12 int fd1, fd2; local
55 fd2 = open(argv[optind+1], O_RDONLY);
56 if(fd2 < 0) {
63 res2 = read(fd2, &buf2, sizeof(buf2));
/system/core/sh/
H A Dinput.c390 int fd2; local
396 fd2 = copyfd(fd, 10);
398 if (fd2 < 0)
400 fd = fd2;
/system/core/init/
H A Dbuiltins.c448 int fd1 = -1, fd2 = -1; local
462 if ((fd2 = open(args[2], O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0)
483 rc = write(fd2, p, brtw);
501 if (fd2 >= 0)
502 close(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;

Completed in 77 milliseconds