Searched refs:fd1 (Results 1 – 6 of 6) sorted by relevance
| /system/utest/fs/ |
| A D | test-basic.c | 28 ASSERT_GT(fd1, 0, ""); in test_basic() 32 ASSERT_EQ(close(fd1), 0, ""); in test_basic() 39 ASSERT_GT(fd1, 0, ""); in test_basic() 42 ASSERT_EQ(close(fd1), 0, ""); in test_basic() 46 ASSERT_GT(fd1, 0, ""); in test_basic() 48 ASSERT_EQ(close(fd1), -1, ""); in test_basic() 51 ASSERT_GT(fd1, 0, ""); in test_basic() 52 ASSERT_EQ(close(fd1), 0, ""); in test_basic() 57 ASSERT_GT(fd1, 0, ""); in test_basic() 60 ASSERT_EQ(read(fd1, NULL, 0), 0, ""); in test_basic() [all …]
|
| A D | test-attr.c | 34 int fd1 = open("::file.txt", O_CREAT | O_RDWR, 0644); in test_attr() local 35 ASSERT_GT(fd1, 0, ""); in test_attr() 43 ASSERT_EQ(futimens(fd1, ts), 0, ""); in test_attr() 45 ASSERT_EQ(fstat(fd1, &statb1), 0, ""); in test_attr() 49 ASSERT_EQ(close(fd1), 0, ""); in test_attr()
|
| A D | test-unlink.cpp | 85 int fd1 = open(path, O_RDWR | O_CREAT | O_EXCL, 0644); in TestUnlinkOpenElsewhere() local 86 ASSERT_GT(fd1, 0); in TestUnlinkOpenElsewhere() 90 ASSERT_TRUE(simple_write_test(fd1, 0)); in TestUnlinkOpenElsewhere() 91 ASSERT_EQ(close(fd1), 0); in TestUnlinkOpenElsewhere()
|
| /system/utest/fs-host/ |
| A D | test-basic.cpp | 15 ASSERT_GT(fd1, 0); in test_basic() 18 ASSERT_EQ(emu_write(fd1, "Hello, World!\n", 14), 14); in test_basic() 19 ASSERT_EQ(emu_close(fd1), 0); in test_basic() 22 fd1 = emu_open("::file.txt", O_CREAT | O_RDWR, 0644); in test_basic() 23 ASSERT_GT(fd1, 0); in test_basic() 24 ASSERT_EQ(emu_close(fd1), 0); in test_basic() 27 fd1 = emu_open("::emptydir", O_RDONLY, 0644); in test_basic() 28 ASSERT_GT(fd1, 0); in test_basic() 30 ASSERT_LT(emu_read(fd1, &buf, 1), 0); in test_basic() 32 ASSERT_EQ(emu_ftruncate(fd1, 0), -1); in test_basic() [all …]
|
| /system/ulib/fdio/ |
| A D | stubs.c | 51 static int check2fds(int fd1, int fd2, int err) { in check2fds() argument 53 if ((io = fd_to_io(fd1)) == NULL) { in check2fds() 207 int linkat(int fd1, const char* existing, int fd2, const char* new, int flag) { in linkat() argument 208 return check2fds(fd1, fd2, ENOSYS); in linkat()
|
| /system/ulib/blktest/ |
| A D | blktest.cpp | 121 int fd1 = get_testdev("blkdev-test-A", PAGE_SIZE, 512); 126 ASSERT_EQ(write(fd1, buf, sizeof(buf)), (ssize_t) sizeof(buf), ""); 130 ASSERT_EQ(lseek(fd1, 0, SEEK_SET), 0, ""); 139 ASSERT_EQ(read(fd1, out, sizeof(buf)), (ssize_t) sizeof(buf), ""); 141 close(fd1);
|
Completed in 10 milliseconds