Searched refs:fd1 (Results 1 - 7 of 7) sorted by relevance
/system/core/toolbox/ |
H A D | cmp.c | 13 int fd1, fd2; local 50 fd1 = open(argv[optind], O_RDONLY); 51 if(fd1 < 0) { 63 res1 = read(fd1, &buf1, sizeof(buf1));
|
H A D | newfs_msdos.c | 272 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/include/sync/ |
H A D | sync.h | 46 int sync_merge(const char *name, int fd1, int fd2);
|
/system/core/libsync/ |
H A D | sync.c | 37 int sync_merge(const char *name, int fd1, int fd2) argument 45 err = ioctl(fd1, SYNC_IOC_MERGE, &data);
|
/system/bluetooth/tools/ |
H A D | asocket_test.c | 610 int fd1, fd2; local 616 fd1 = _socket(type); 617 if (fd1 < 0) goto error; 619 if (_bind(fd1, type) < 0) goto error; 621 if (_listen(fd1, type) < 0) goto error; 623 a1.fd = fd1;
|
H A D | socktest.c | 682 int fd1, fd2; local 688 fd1 = _socket(type); 689 if (fd1 < 0) goto error; 691 if (_bind(fd1, type) < 0) goto error; 693 if (_listen(fd1, type) < 0) goto error; 695 a1.fd = fd1;
|
/system/core/init/ |
H A D | builtins.c | 659 int fd1 = -1, fd2 = -1; local 670 if ((fd1 = open(args[1], O_RDONLY)) < 0) 682 rc = read(fd1, p, brtr); 710 if (fd1 >= 0) 711 close(fd1);
|
Completed in 329 milliseconds